Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDaniel Drake <dsd@laptop.org>2013-02-11 17:31:55 (GMT)
committer Daniel Drake <dsd@laptop.org>2013-02-11 19:14:21 (GMT)
commitb45641c5e0f9c53d94fa054a90d222f84ac87c34 (patch)
treeff4bbd1e79c5cbaea3eedb6b0730454674540e2e
parenta3b35049199fd6175ae26bf2bbe5c55c71ab3d87 (diff)
base: Ignore lid switch in logind (#12504)
-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