Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save jpeletier/ee591d9b298d21032ef08427bba4f498 to your computer and use it in GitHub Desktop.
Save jpeletier/ee591d9b298d21032ef08427bba4f498 to your computer and use it in GitHub Desktop.
ubuntu tweaks
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