add systemd config files for sleep and login/session behaviour

This commit is contained in:
fbachus
2024-11-08 19:02:18 +01:00
parent c25464068e
commit 6e9dd516f1
2 changed files with 48 additions and 0 deletions

36
10_logind_default.conf Normal file
View 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
View 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