Ubuntu – With Ubuntu 16.04 laptop doesn’t suspend when lid is closed

16.04delllaptoppower-managementsuspend

I have a Dell 7737 laptop, and with Ubuntu 16.04 it no longer suspends when the laptop lid is closed. With 14.04 closing the lid put the laptop to suspend as expected. However, I reloaded the system with Ubuntu 16.04 and now closing the laptop does nothing. The laptop continues to run as if nothing happened.

When I manually select "Suspend" from the menu it works as expected. (Though it does prompt me to double login on resume. No, not encryption login followed by OS login. This is a double OS login.)

NOTE: Altering the System Settings|Power doesn't seem to affect anything.

Any ideas on what changed from 14.04 to 16.04 in this area?

Best Answer

I stumbled across an answer that seems to have worked. Too bad there is not a cleaner way to do this than to alter the default settings. Would rather the System Settings|Power setting worked.

I edited the file '/etc/systemd/logind.conf'

sudo vi /etc/systemd/logind.conf

Then I uncommented the line (removed the beginning #) containing 'HandleLidSwitchDocked=ignore' and changed the value to be:

HandleLidSwitchDocked=suspend

After a reboot all seems to be working as expected, though I'm still prompted to login twice. (Once to unlock, and again as a user of the OS.)

Related Question