Apparently, many users of Ubuntu are reporting problem with laptop not 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 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 enabled 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, and 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:


Uncomment means remove the # in front of it.

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


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

Previous articleHow to install Spotify in Linux Mint, Ubuntu, and elementary OS
Next articleWhat is Linux Kernel, and Should you upgrade to the latest Kernel
Hi there! I'm Kiran Kumar, founder of I'm an avid Linux lover, and enjoys hands-on with new promising distros. Currently, I'm using Ubuntu as a daily driver and run several other distros such as Fedora, Solus, Manjaro, 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 Linux love!. 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

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

newest oldest most voted
Notify of

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


fixed for stream 14 hp. Thank you


fixed for stream 14 hp. thenk you


And fixed for Asus K55D – thanks.

Anadi Mishra

Didnt Work on Acer 573-G


Did not work for me on a HP spectre 360 laptop


Perfect, thank you very much


perfect,it help me fix the problem. Thanks a lot!


im not able to do this. how to save the file after changing from ignore to suspend


it works only once. After second try to suspend the problem stayed the same