0

I have hybrid-sleep mapped to my laptop lid closing in /etc/systemd/logind.conf:

HandleLidSwitch=hybrid-sleep

If my memory usage is too high when I close the lid, the suspend will never take place. I assume this is a result of my swap partition being smaller than the RAM in use, and so the hibernation function doesn't work properly.

Every once in a while, if I don't watch my laptop go to sleep, I'll find it running the next time I take it out of my bag (which could have been after hours of heating up in a case).

Is there any way to default to a regular suspend if my memory usage precludes hibernation? I'd rather not have to expand my swap space to solve this.

  • Hybrid-sleep needs a swap space to work. Some details here. What system are you using? – user32012 Apr 17 '18 at 12:50
  • I should have mentioned that. This only occurs when the memory usage exceeds swap space. I'm running Arch kernel 3.14 with 24gb RAM on btrfs with a 10 gb swap. – stnma7e Apr 18 '18 at 13:48

Your Answer

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

Browse other questions tagged or ask your own question.