2

I have configured hibernation on my laptop. It works as intended now as long as there is not external screen connected.

I often connect a second screen and close the lid of the laptop. It's set to do nothing when the lid is closed. The laptop display will just turn off and I can continue working on the larger screen. So far so good.

Now when I hibernate with an external screen connected, instead of hibernating properly some close lid action starts creating problems with the ubuntu login screen.

Hibernation with the second screen connected only works if I fully disable the lid action in: /etc/UPower/UPower.conf IgnoreLid=true

This however renders my second screen useless as the laptop screen stays powered on with closed lid and I can't get the full screen reso on my external screen.

I already tried to set all possible lid options in dconf editor to 'nothing'. Yet, this seems to have no effect. Same goes for lid related changes in /etc/systemd/logind.conf

I am lost at this point. I hope someone here can help.

Edit: I use a swap file for hibernation. 8GB RAM/ 16GB Swap. Hibernation works as long as no external monitor is connected with the laptop lid closed.

Update: When I hibernate with the laptop lid closed the system seems to sleep first then hibernate. When it boots back up it apparently then first comes back from hibernation and then tries to wake-up from sleep which fails due to RAM being empty (hibernation had caused a power off before). I still didn't find a solution for this problem. I made this observation from what I see happening on screen. Not sure if there are any logs that can confirm this.

Update: It's not the close lid action causing the problem. The problem occurs if a second screen is fully connected (using graphics card) regardless of any lid action.

2
  • 1
    I have added the information to the orginal post. Yet, I don't see how this is relevant. The problem is not that hibernation does not work. The problem is that hibernation does not work with an external monitor connected and the lid of the laptop closed.
    – phanky5
    Sep 20 '19 at 19:50
  • Rules out two failure modes (i.e., changing to a swap file from a swap partition, and inadequate swap partition size). Thank you for the follow through.
    – K7AAY
    Sep 20 '19 at 20:06
0

It appears the problem has been caused by a kernel bug. I am now using Linux 5.0.0-37-generic x86_64 and the problem has fixed itself with the kernel update.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.