🔍 See Original Answer on Ask Ubuntu 🔗
How to put the laptop to sleep/hibernatation by closing the LCD lid?
October 22, 2018
November 24, 2022
Copy to clipboard: false
When an HDMI monitor is plugged in, the system considers it “docked” as if it were plugged into a docking station. As such you need to use:
sudo -H gedit /etc/systemd/logind.conf
Change the line:
Then save the file and reboot.
Note: This is the most common solution and if it doesn’t work we can explore other options.