The Cookie Machine - Click here to drag window

DUMMY TEXT - Real text set in assets/js/theCookieMachine.js

If you can read me, I'm broken!

Views: 8,359β€…    Votes:  6β€…
Tags: suspend   laptop   power-management   shutdown   hibernate   grub  
Link: πŸ” See Original Answer on Ask Ubuntu ⧉ πŸ”—

URL: https://askubuntu.com/q/815134
Title: My laptop shuts down when I close the lid even though it's set to hibernate
ID: /2016/08/21/My-laptop-shuts-down-when-I-close-the-lid-even-though-it_s-set-to-hibernate
Created: August 21, 2016    Edited:  June 12, 2020
Upload: April 8, 2024    Layout:  post
TOC: false    Navigation:  false    Copy to clipboard:  false


With sudo powers open up /etc/systemd/logind.conf and look for the following two lines:

#HandleLidSwitch=suspend
#HandleLidSwitchDocked=suspend

If they begin with a hash tag (#) remove it and set your option to ignore, poweroff, reboot, halt, suspend, hibernate, hybrid-sleep, lock or kexec. More details can be found at Power Management

This worked for me and hopefully works for you too.


Bug Reports

There are many bug reports starting in August 2016 with Linux Suspend / Resume issues. This bug report has lots of solutions. One comment #140 has grub command line changes that are confirmed to work:

GRUB_CMDLINE_LINUX_DEFAULT="quiet splash acpi_backlight=vendor acpi_osi='!Windows 2013' acpi_osi='!Windows 2012'"

If this doesn’t work, by all means check out the other solutions in this bug report. Also check out other bug reports using google search string: β€œResume shuts down 16.04”

⇧ best way to dual boot Ubuntu with windows 10? How can I quickly disable standby lid off in Ubuntu Unity 16.04?  β‡©