Skip to content

Instantly share code, notes, and snippets.

@JayCuthrell
Created October 10, 2019 13:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save JayCuthrell/b79a35a9fd01b77789144ad563cbc042 to your computer and use it in GitHub Desktop.
Save JayCuthrell/b79a35a9fd01b77789144ad563cbc042 to your computer and use it in GitHub Desktop.
$ grep -v "^#" /etc/systemd/logind.conf
[Login]
HandleHibernateKey=suspend
HandleLidSwitch=suspend
HandleLidSwitchExternalPower=suspend
HandleLidSwitchDocked=suspend
LidSwitchIgnoreInhibited=yes
$ grep -v "^#" /etc/systemd/sleep.conf
[Sleep]
SuspendMode=
SuspendState=mem
$ grep -v "^#" /etc/UPower/UPower.conf
[UPower]
EnableWattsUpPro=false
NoPollBatteries=false
IgnoreLid=false
UsePercentageForPolicy=true
PercentageLow=10
PercentageCritical=3
PercentageAction=2
TimeLow=1200
TimeCritical=300
TimeAction=120
CriticalPowerAction=HybridSleep
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment