Repair Laptop computer Doesn’t Droop After Lid is Closed on Ubuntu Linux

Transient: You shut the lid of your laptop computer nevertheless it retains on operating as an alternative of going into droop mode? Listed below are a couple of methods how one can make Ubuntu droop when the lid is closed.

One of many methods to save lots of battery on Ubuntu with out dropping work is to make use of the droop mode. I choose to hyperlink with the lid motion of my laptop computer. If I shut the lid of the laptop computer, it goes to droop/sleep mode and after I open the lid, it wakes up.

Nevertheless, there are a number of customers who’re dealing with points with droop conduct when the lid of the laptop computer is closed. Ubuntu merely retains on operating with out bothering about entering into droop mode.

There’s a confirmed bug on this subject beginning Ubuntu 16.04. Sadly, this bug has not been mounted even after greater than a 12 months.

Whereas I can not repair the bug, I can absolutely counsel you a few methods in order that Ubuntu goes to droop mode after the lid is closed. Let’s see how to do this.

Fixing Ubuntu received’t droop when laptop computer lid is closed

I do hope that these fixes work for everybody nevertheless it’s not a assure as a result of the bug is hardware dependent and although the workaround works for many laptop computer fashions, there are absolutely a couple of exceptions.

Let’s begin engaged on it.

Make sure that to allow droop for lid shut motion

It is a no-brainer. You should just remember to have the right settings in place.

Go to System Settings after which click on on Energy. Within the energy setting, be sure that choice for ‘When the lid is closed’ is ready to Droop.

Ubuntu power settings

Ubuntu power settings

For those who had a unique setting right here, you need to test if you’ll be able to droop Ubuntu by closing the lid. If not, then observe the workaround within the subsequent part.

Workaround to make Ubuntu droop when laptop computer lid is closed

First, guarantee that you’ve pm-utils put in in your system. pm-utils is a group of scripts that deal with droop and resume. Ubuntu ought to have already got it however no hurt in verifying it.

sudo apt set up pm-utils

After that, we have to edit the logind.conf file of systemd. This file normally comprises the entries which might be utilized by default by systemd. Nevertheless, all of the entries are commented out right here. For those who change the settings on this file, it can take priority over the systemd default settings.

It’s at all times a good suggestion to make a backup of configuration recordsdata earlier than altering them. Use this command:

sudo cp /and many others/systemd/logind.conf  /and many others/systemd/logind.conf.again

And after that, set up gksu as a way to open a graphical utility (gedit on this case) from the terminal. You may as well use a terminal based mostly textual content editor like Vim in case you are snug with that.

sudo apt set up gksu && gksudo gedit /and many others/systemd/logind.conf

You’ll see traces like these on this file:

#NAutoVTs=6
#ReserveVT=6
#KillUserProcesses=no
#KillOnlyUsers=
#KillExcludeUsers=root
#InhibitDelayMaxSec=5
#HandlePowerKey=poweroff
#HandleSuspendKey=droop
#HandleHibernateKey=hibernate
#HandleLidSwitch=droop
#HandleLidSwitchDocked=ignore
#PowerKeyIgnoreInhibited=no
#SuspendKeyIgnoreInhibited=no
#HibernateKeyIgnoreInhibited=no
#LidSwitchIgnoreInhibited=sure
#HoldoffTimeoutSec=30s
#IdleAction=ignore
#IdleActionSec=30min
#RuntimeDirectorySize=10%
#RemoveIPC=sure
#UserTasksMax=12288

What you need to do is to take away the # from a few of the traces and alter it’s worth to:

HandleSuspendKey=droop
HandleLidSwitch=droop
HandleLidSwitchDocked=droop

Fix suspend not working on Ubuntu linux

Fix suspend not working on Ubuntu linux

Save your adjustments and restart your system. Now test in case your system goes to droop mode when the lid is closed.

If not, you may as well attempt altering the beneath line (although I’m not certain if that makes a distinction):

HandleHibernateKey=droop

I hope this lets you repair the annoying subject of Ubuntu not suspending when laptop computer lid is closed. This could work with Ubuntu 16.04, 17.04 and 17.10. Undecided about Ubuntu 18.04.

Do share your suggestions whether or not it labored for you or not.

Source link

Leave a Reply