Skip to content

Instantly share code, notes, and snippets.

@jandrewthompson
Last active August 29, 2015 14:01
Show Gist options
  • Save jandrewthompson/9eccecb7a99a5e94fc5e to your computer and use it in GitHub Desktop.
Save jandrewthompson/9eccecb7a99a5e94fc5e to your computer and use it in GitHub Desktop.
Reviving power management features after kubuntu update.
##########################
# /etc/systemd/logind.conf was recently changed to intercept and
# eat power events (like laptop lid closing) BEFORE kde has a
# chance to act on them. Rendering System_Settings->Power_Management->Energy_Savings
# settings useless. The following settings should fix it.
##########################
#
#
# 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.
#
# See logind.conf(5) for details
[Login]
#NAutoVTs=6
#ReserveVT=6
#KillUserProcesses=no
#KillOnlyUsers=
#KillExcludeUsers=root
#Controllers=
#ResetControllers=cpu
#InhibitDelayMaxSec=5
#HandlePowerKey=poweroff
#HandleSuspendKey=suspend
#HandleHibernateKey=hibernate
#HandleLidSwitch=suspend
#PowerKeyIgnoreInhibited=no
#SuspendKeyIgnoreInhibited=no
#HibernateKeyIgnoreInhibited=no
#LidSwitchIgnoreInhibited=yes
#IdleAction=ignore
#IdleActionSec=30min
HandlePowerKey=ignore
HandleSuspendKey=suspend
HandleHibernateKey=hibernate
HandleLidSwitch=ignore
PowerKeyIgnoreInhibited=no
SuspendKeyIgnoreInhibited=no
HibernateKeyIgnoreInhibited=no
LidSwitchIgnoreInhibited=yes
IdleAction=ignore
IdleActionSec=30min
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment