![]() ![]() And ‘ Suspend when laptop lid is closed‘ option in Gnome Tweaks will no longer work before you comment (add # at the beginning) the line in /etc/systemd/nf. Note you have to do previous steps every time you want to change the action. ( Save your works before running the command, it may restart your session) systemctl restart rvice Now, you can close your laptop, and your display will transfer to your external screen. It’s essential because you won’t be able to use your external monitor if your Mac isn’t powered on. ![]() HandleLidSwitch=hibernate – hibernate Ubuntu.įor automatic hibernate, you have to test if it works properly via command: sudo systemctl hibernateģ.) Finally apply changes by running command: The final step is to plug your Mac into power.HandleLidSwitch=lock – lock when lid closed.For Ubuntu server without UI, use nano text editor instead.Ģ.) When the file opens, find out the line #HandleLidSwitch=suspend and change it to one of following : ![]() Type user password (no asterisk feedback) and hit Enter. When it opens, run command: sudo gedit /etc/systemd/nf And it should work on all Ubuntu desktop, server, and flavors.ġ.) Open terminal (press Ctrl+Alt+T on Gnome) from your system application menu. So far as I know, you can edit the nf file to change the action. This simple tutorial shows how to change the action (e.g., power off, hibernate, do nothing, or lock) when laptop lid is closed in Ubuntu 20.04, while it suspends Ubuntu by default.ĭconf editor offers options to change the action to take when the laptop lid is closed on AC or power, but it doesn’t work! ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |