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
HandleSuspendKey=suspend HandleLidSwitch=suspend HandleLidSwitchDocked=suspend
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 WinKey → Suspend → Enter. 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)