Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/modules/base/kspost.10.core.inc
diff options
context:
space:
mode:
Diffstat (limited to 'modules/base/kspost.10.core.inc')
-rw-r--r--modules/base/kspost.10.core.inc8
1 files changed, 8 insertions, 0 deletions
diff --git a/modules/base/kspost.10.core.inc b/modules/base/kspost.10.core.inc
index dd72546..037dcc9 100644
--- a/modules/base/kspost.10.core.inc
+++ b/modules/base/kspost.10.core.inc
@@ -228,6 +228,14 @@ sed -i -e 's/EnableWattsUpPro=true/EnableWattsUpPro=false/' \
-e 's/IgnoreLid=false/IgnoreLid=true/' \
/etc/UPower/UPower.conf
+# ignore lid events in logind too (#12504)
+sed -i \
+ -e "s/#HandleSuspendKey=.*/HandleSuspendKey=ignore/" \
+ -e "s/#HandlePowerKey=.*/HandlePowerKey=ignore/" \
+ -e "s/#HandleHibernateKey=.*/HandleHibernateKey=ignore/" \
+ -e "s/#HandleLidSwitch=.*/HandleLidSwitch=ignore/" \
+ /etc/systemd/logind.conf
+
# Tracker has snuck in and is autostarted by default.
# I don't think we want this.
# https://bugzilla.redhat.com/show_bug.cgi?id=821952