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 Santiago Collazo <scollazo@activitycentral.com>2013-02-15 15:53:17 (GMT)
commitba07b3054e5f3739bb7659d6618fc916e4b5e4ee (patch)
tree44d7afea44db57d8a8ac9cbe3e18a8da337bb4db
parentddc947d9267e495bd45933e309e6df5b863bafe5 (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