Skip to content

Instantly share code, notes, and snippets.

@iberianpig
Created May 7, 2018 05:38
Show Gist options
  • Save iberianpig/bf36db6e4b493b2caff0a25e9dd20bec to your computer and use it in GitHub Desktop.
Save iberianpig/bf36db6e4b493b2caff0a25e9dd20bec to your computer and use it in GitHub Desktop.
/etc/systemd/logind.conf for hibernate XPS-13-9360 4.10.0-35-generic #39~16.04.1-Ubuntu SMP Wed Sep 13 09:02:42 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux
# 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 logind.conf(5) for details.
[Login]
#NAutoVTs=6
#ReserveVT=6
#KillUserProcesses=no
#KillOnlyUsers=
#KillExcludeUsers=root
#InhibitDelayMaxSec=5
#HandlePowerKey=poweroff
HandlePowerKey=hibernate
#HandleSuspendKey=suspend
#HandleHibernateKey=hibernate
HandleLidSwitch=hibernate
#HandleLidSwitchDocked=ignore
HandleLidSwitchDocked=hibernate
#PowerKeyIgnoreInhibited=no
#SuspendKeyIgnoreInhibited=no
#HibernateKeyIgnoreInhibited=no
# LidSwitchIgnoreInhibited=yes
LidSwitchIgnoreInhibited=no
HoldoffTimeoutSec=10s
#IdleAction=ignore
#IdleActionSec=30min
#RuntimeDirectorySize=10%
#RemoveIPC=yes
#UserTasksMax=12288
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment