Created
July 1, 2023 22:57
-
-
Save jpeletier/ee591d9b298d21032ef08427bba4f498 to your computer and use it in GitHub Desktop.
ubuntu tweaks
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Suspend when laptop lid is closed, even if there is an external monitor plugged in: | |
1.- dconf-editor org.gnome.settings-daemon.plugins.power | |
set lid-close-suspend-with-external-monitor to TRUE | |
2.- edit /etc/systemd/logind.conf | |
set as follows: | |
HandleLidSwitch=suspend | |
HandleLidSwitchDocked=suspend | |
LidSwitchIgnoreInhibited=no | |
3.- reboot | |
4.- edit /etc/UPower/UPower.conf | |
set IgnoreLid=true | |
5.- reboot | |
Reference: https://askubuntu.com/questions/1355031/when-laptop-lid-is-closed-the-desktop-switches-to-external-monitor-ubuntu-20-0 | |
https://apiraino.github.io/ubuntu-gnome-power/ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment