This question already has an answer here:

I recently updated to 16.04 (64 bit) and I'd really love to be able to make my laptop hibernate on closing the lid. I'm able to successfully hibernate by typing sudo pm-hibernate into terminal but I tend to forget to do this when tossing my laptop in my bag and then I pull out a dead computer.

I've followed the directions here: http://ubuntuhandbook.org/index.php/2016/05/ubuntu-16-04-shutdown-hibernate-your-laptop-lid-closed/ with no luck. Are there any other options I can try to get my computer to automatically hibernate?

EDIT: following the instructions at the above link, I've used dconf Editor to set hibernate on lid closed and also set /etc/systemd/logind.conf to hibernate on lid switch

marked as duplicate by Pilot6, Eric Carvalho, amc, waltinator, Tom Brossman Sep 23 '16 at 18:34

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.


You can easily do it.

Edit /etc/systemd/logind.conf and set


You can also use hybrid-sleep instead of hibernate.

Don't forget to remove the # in front of the above two lines and also to reboot.

  • So I've actually already done exactly this with no effect. I'll try hybrid-sleep to see if it does anything... – Indigo Sep 22 '16 at 19:47
  • 2
    Did you remove # in front of the lines? And did you reboot? – Pilot6 Sep 22 '16 at 20:00
  • Aaaaand I'm just super dumb. No, I didn't remove the #. Thank you. This fixed it. – Indigo Sep 22 '16 at 20:44

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