add systemd config files for sleep and login/session behaviour
This commit is contained in:
36
10_logind_default.conf
Normal file
36
10_logind_default.conf
Normal file
@@ -0,0 +1,36 @@
|
|||||||
|
#/etc/systemd/logind.conf.d/10_default.conf
|
||||||
|
|
||||||
|
[Login]
|
||||||
|
#NAutoVTs=6
|
||||||
|
#ReserveVT=6
|
||||||
|
#KillUserProcesses=no
|
||||||
|
#KillOnlyUsers=
|
||||||
|
#KillExcludeUsers=root
|
||||||
|
#InhibitDelayMaxSec=5
|
||||||
|
#UserStopDelaySec=10
|
||||||
|
#SleepOperation=suspend-then-hibernate suspend
|
||||||
|
#HandlePowerKey=poweroff
|
||||||
|
#HandlePowerKeyLongPress=ignore
|
||||||
|
#HandleRebootKey=reboot
|
||||||
|
#HandleRebootKeyLongPress=poweroff
|
||||||
|
#HandleSuspendKey=suspend
|
||||||
|
#HandleSuspendKeyLongPress=hibernate
|
||||||
|
#HandleHibernateKey=hibernate
|
||||||
|
#HandleHibernateKeyLongPress=ignore
|
||||||
|
HandleLidSwitch=suspend-then-hibernate
|
||||||
|
#HandleLidSwitchExternalPower=suspend
|
||||||
|
#HandleLidSwitchDocked=ignore
|
||||||
|
#PowerKeyIgnoreInhibited=no
|
||||||
|
#SuspendKeyIgnoreInhibited=no
|
||||||
|
#HibernateKeyIgnoreInhibited=no
|
||||||
|
LidSwitchIgnoreInhibited=yes
|
||||||
|
#RebootKeyIgnoreInhibited=no
|
||||||
|
#HoldoffTimeoutSec=30s
|
||||||
|
IdleAction=Suspend
|
||||||
|
IdleActionSec=20min
|
||||||
|
#RuntimeDirectorySize=10%
|
||||||
|
#RuntimeDirectoryInodesMax=
|
||||||
|
#RemoveIPC=yes
|
||||||
|
#InhibitorsMax=8192
|
||||||
|
#SessionsMax=8192
|
||||||
|
StopIdleSessionSec=3600
|
||||||
12
10_sleepd_default.conf
Normal file
12
10_sleepd_default.conf
Normal file
@@ -0,0 +1,12 @@
|
|||||||
|
# /etc/systemd/sleep.conf.d/10_default.conf
|
||||||
|
[Sleep]
|
||||||
|
AllowSuspend=yes
|
||||||
|
AllowHibernation=yes
|
||||||
|
AllowSuspendThenHibernate=yes
|
||||||
|
AllowHybridSleep=no
|
||||||
|
SuspendState=mem standby freeze
|
||||||
|
HibernateMode=platform shutdown
|
||||||
|
MemorySleepMode=deep
|
||||||
|
HibernateDelaySec=7200
|
||||||
|
SuspendEstimationSec=60min
|
||||||
|
|
||||||
Reference in New Issue
Block a user