From 863a80b017bc1a411929cd08215c8b26592965ca Mon Sep 17 00:00:00 2001 From: Ole Tange Date: Sat, 9 May 2020 17:07:01 +0200 Subject: [PATCH] nlv: Do not suspend. --- README.md | 2 +- nlv/etc/systemd/logind.conf | 39 +++++++++++++++++++++++++++++++++++++ nlv/etc/systemd/sleep.conf | 25 ++++++++++++++++++++++++ 3 files changed, 65 insertions(+), 1 deletion(-) create mode 100644 nlv/etc/systemd/logind.conf create mode 100644 nlv/etc/systemd/sleep.conf diff --git a/README.md b/README.md index 839613b..8af2403 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,3 @@ # config -Config files for systems \ No newline at end of file +Edited config files for systems that are not general. diff --git a/nlv/etc/systemd/logind.conf b/nlv/etc/systemd/logind.conf new file mode 100644 index 0000000..ae9ac27 --- /dev/null +++ b/nlv/etc/systemd/logind.conf @@ -0,0 +1,39 @@ +# This file is part of systemd. +# +# systemd is free software; you can redistribute it and/or modify it +# under the terms of the GNU Lesser General Public License as published by +# the Free Software Foundation; either version 2.1 of the License, or +# (at your option) any later version. +# +# Entries in this file show the compile time defaults. +# You can change settings by editing this file. +# Defaults can be restored by simply deleting this file. +# +# Activate settings with `systemctl restart systemd-logind` +# +# See logind.conf(5) for details. + +[Login] +#NAutoVTs=6 +#ReserveVT=6 +#KillUserProcesses=no +#KillOnlyUsers= +#KillExcludeUsers=root +#InhibitDelayMaxSec=5 +#HandlePowerKey=poweroff +#HandleSuspendKey=suspend +#HandleHibernateKey=hibernate +HandleLidSwitch=ignore +HandleLidSwitchExternalPower=ignore +HandleLidSwitchDocked=ignore +#PowerKeyIgnoreInhibited=no +#SuspendKeyIgnoreInhibited=no +#HibernateKeyIgnoreInhibited=no +#LidSwitchIgnoreInhibited=yes +#HoldoffTimeoutSec=30s +IdleAction=ignore +IdleActionSec=1min +#RuntimeDirectorySize=10% +#RemoveIPC=yes +#InhibitorsMax=8192 +#SessionsMax=8192 diff --git a/nlv/etc/systemd/sleep.conf b/nlv/etc/systemd/sleep.conf new file mode 100644 index 0000000..f869caa --- /dev/null +++ b/nlv/etc/systemd/sleep.conf @@ -0,0 +1,25 @@ +# This file is part of systemd. +# +# systemd is free software; you can redistribute it and/or modify it +# under the terms of the GNU Lesser General Public License as published by +# the Free Software Foundation; either version 2.1 of the License, or +# (at your option) any later version. +# +# Entries in this file show the compile time defaults. +# You can change settings by editing this file. +# Defaults can be restored by simply deleting this file. +# +# See systemd-sleep.conf(5) for details + +[Sleep] +AllowSuspend=no +#AllowHibernation=yes +AllowSuspendThenHibernate=no +#AllowHybridSleep=yes +#SuspendMode= +#SuspendState=mem standby freeze +#HibernateMode=platform shutdown +#HibernateState=disk +#HybridSleepMode=suspend platform shutdown +#HybridSleepState=disk +#HibernateDelaySec=180min