Fix laptop doesn’t suspend after lid is closed in Ubuntu 16.04

Apparently, many users of Ubuntu are reporting problem with laptop going to suspend/sleep mode when the lid is closed. This is a confirmed bug in Ubuntu 16.04 and developers are working on a permanent fix to this problem. Seems like the problem may be due to hardware-kernel compatibility in some cases and for some it is due to missing proprietary drivers. For now, the reasons are still vague and root cause is not yet determined as per the Ubuntu bug thread.

But don’t worry, there is still a workaround to get through this problem by modifying the logind.conf file. Let’s get started. Note that it is important to first check if you have enable the suspend settings for the laptop lid close setting in the ‘Power’ options.

Enable Laptop Lid Close Suspend/Sleep Action

Go to ‘Power’ settings and select ‘Suspend’ for the item “When the lid is closed”. You can do it for only the Battery power mode or also for ‘when plugged’ in option.

Power Settings
Power Settings

Once you have confirmed the setting is good, but still Ubuntu doesn’t go to suspend when laptop lid is closed, try this below workaround:

Workaround for the Bug: edit logind.conf file

STEP 1: Launch ‘Terminal’ and run the following command:

sudo vi /etc/systemd/logind.conf

STEP 2: Uncomment the line:

'HandleLidSwitchDocked=ignore'

Uncomment means remove the # in front of it.

STEP 3: Change ‘ignore’ to ‘suspend’.

HandleLidSwitchDocked=suspend

That’s it. Reboot your computer and see if the problem is fixed. Do let us know in comments below.

Hi there! I’m Kiran Kumar, founder of FOSSLinux.com. I’m an avid Linux lover, and enjoys hands-on with new promising distros. Currently, I’m using Linux Mint as a daily driver and run several other distros such as Fedora, Solus, Ubuntu, Debian, and some new ones on my test PC and virtual machines. I have a day job as an Engineer, and this website is one of my favorite past time activities especially during Winter ;). When I’m not writing for FOSSLinux, I’m seen biking and hiking on scenic trails. Hope you enjoy using this website as much as I do writing for it. Feedback from readers is something that inspires me to do more, and spread my love for Linux. If you find time, drop me an email or feedback from ‘Contact’ page. Or simply leave a comment below if you found this article useful. Have a good day!

Leave a Reply

7 Comments on "Fix laptop doesn’t suspend after lid is closed in Ubuntu 16.04"

Notify of
avatar
Sort by:   newest | oldest | most voted
Akshay
Guest

Hello Kiran, That fixed my problem..!! Thank you!

adrian
Guest

fixed for stream 14 hp. Thank you

adrian
Guest

fixed for stream 14 hp. thenk you

Peter
Guest

And fixed for Asus K55D – thanks.

Anadi Mishra
Guest

Didnt Work on Acer 573-G

Vas
Guest

Did not work for me on a HP spectre 360 laptop

wpDiscuz