The Cookie Machine - Click here to drag window

DUMMY TEXT - Real text set in assets/js/theCookieMachine.js

If you can read me, I'm broken!

Views: 1,116β€…    Votes:  3β€…
Tags: suspend   laptop   hibernate   lid  
Link: πŸ” See Original Answer on Ask Ubuntu ⧉ πŸ”—

URL: https://askubuntu.com/q/1086247
Title: How to put the laptop to sleep/hibernatation by closing the LCD lid?
ID: /2018/10/22/How-to-put-the-laptop-to-sleep_hibernatation-by-closing-the-LCD-lid_
Created: October 22, 2018
Upload: May 5, 2024    Layout:  post
TOC: false    Navigation:  false    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:

#HandleLidSwitchDocked=ignore

to read:

HandleLidSwitchDocked=suspend

Then save the file and reboot.

Note: This is the most common solution and if it doesn’t work we can explore other options.

⇧ How can I see my password on the terminal? How do I prevent 'cd' command from going to home directory?  β‡©