4

After issues with Windows, I decided to try out Linux. On Windows, when I close the lid, the fan turns off and can be placed in my backpack. Opening the lid, it quickly resumes where it left off. I am trying to recreate this functionality.

Currently, the screen shuts off, but the power light and fan is still on, leading to overheating if placed in a backpack

To fix this, I tried sudo vim /etc/systemd/logind.conf uncommenting:

HandleSuspendKey=suspend

HandleLidSwitch=suspend

HandleLidSwitchDocked=suspend

and restarting.

Online, I learned that suspend is still using power, but I am unaware if turning off the display and suspend is the same thing (If the laptop is actually suspending).

To check this, I changed the power button functionality to suspend, but only a hard-reset could turn on the display after this. I know there are issues with this, but if I can't have my backpack in suspend mode in my backpack, I might be looking at different functionality.

Do you know if there is similar functionality to the Windows 'sleep on lid closed' functionality? Is setting up hibernate what I'm looking for?

My laptop is an HP envy x360 convertible 13-ar0802

Edit: My Ubuntu version is 18.04.4 I googled power management and downloaded an app through Ubuntu Software which has a setting for when the lid is closed. It is set to suspend. Under settings - power - Suspend and power button, I only have two options, one for automatic suspend (on for both plugged and unplugged after 20 min), and when power button is pressed, power off

Edit: I notice that the screen is at 0% brightness when it wakes from WinKeySuspendEnter. Running a video with audio in the background will resume once awoken, but no display, and I am unable to login (I think. I cant see anything, but pressing enter and my password repeatedly does nothing)

Edit: Update on cat /sys/power/mem_sleep

5
  • Switching the display off and suspending are not the same thing. Suspend does use power, but not enough to overheat a laptop in a backpack. It sounds like your laptop fails to suspend when closing the lid. You did not specify your version of Ubuntu, but check the system power management settings before manually editing system files. – Sebastian May 11 '20 at 17:38
  • The default system settings didn't have an option for when the lid is closed. I added my version of Ubuntu – Christoffer May 12 '20 at 8:07
  • @Christoffer Suspend when lid is closed is same as sleep when lid is closed in Windows. Suspend to disk is the same as hibernate but you need to create a /swap partition to achieve this. Sleep and hibernate are different. In sleep, data is stored in the RAM which uses a bit of power as it is volatile. In hibernate data is stored in the HDD or SSD which uses no power as it is non volatile. – Sasuke Uchiha May 13 '20 at 7:15
  • Please edit your question and add the output of the following command in Terminal: cat /sys/power/mem_sleep – pomsky May 13 '20 at 18:49
  • I still cannot get it to work :/ Any help is appreciated – Christoffer May 18 '20 at 16:00
0
  1. Install Gnome Tweaks if you haven't already.
  2. Make sure suspend when the lid is closed is turned on. Suspend in tweaks
1
  • Comments are not for extended discussion; this conversation has been moved to chat. – Mitch May 14 '20 at 7:17
0

Does your laptop have dedicated Nvidia GPU? If yes then turning off the hybrid graphics will help.

0
0

You better use the power button to put your laptop to sleep.

I've noticed that the Suspend when laptop lid is closed option in Tweaks doesn't seem to have the expected behavior for some laptops. So, if you close the lid, it actually just turns off the screen, instead of putting the laptop to sleep.

So, manually suspend your laptop just to be sure.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.