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:

'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.

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 FOSSLinux.com. 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!

11
Leave a Reply

avatar
10 Comment threads
1 Thread replies
0 Followers
 
Most reacted comment
Hottest comment thread
10 Comment authors
alexSankarshanabrucelaiRimomVas Recent comment authors
  Subscribe  
newest oldest most voted
Notify of
Akshay
Guest
Akshay

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

adrian
Guest
adrian

fixed for stream 14 hp. Thank you

adrian
Guest
adrian

fixed for stream 14 hp. thenk you

Peter
Guest
Peter

And fixed for Asus K55D – thanks.

Anadi Mishra
Guest
Anadi Mishra

Didnt Work on Acer 573-G

Vas
Guest
Vas

Did not work for me on a HP spectre 360 laptop

Rimom
Guest
Rimom

Perfect, thank you very much

brucelai
Guest
brucelai

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

Sankarshana
Guest
Sankarshana

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

alex
Guest
alex

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