Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDaniel Drake <dsd@laptop.org>2012-04-25 22:57:12 (GMT)
committer Daniel Drake <dsd@laptop.org>2012-04-25 22:57:22 (GMT)
commit661ce44ca406040e23cef1b62c1730a7a9754d5e (patch)
treecf4dc597b63fcd8fc33a9365d2958ff35e0a9861
parent53ad049fbfa84346c6debed9e8b093837304b0dc (diff)
Tweak upower configuration (#11815)
We don't want GNOME to handle lid events. The most effective way to make that happen seems to be to ask upower not to watch the lid.
-rw-r--r--modules/base/kspost.10.core.inc5
1 files changed, 5 insertions, 0 deletions
diff --git a/modules/base/kspost.10.core.inc b/modules/base/kspost.10.core.inc
index b8643f4..8a409ee 100644
--- a/modules/base/kspost.10.core.inc
+++ b/modules/base/kspost.10.core.inc
@@ -230,3 +230,8 @@ sed -i -e 's/plymouthd --mode=shutdown/plymouthd --mode=shutdown --kernel-comman
sed -i -e 's,/var/log/messages,:omfile:$messages,' \
-e '/$messages/ i$outchannel messages,/var/log/messages,1048576,/usr/sbin/olpc-logrotate' \
/etc/rsyslog.conf
+
+# tweak upower behaviour, mostly to ignore lid events (#11815)
+sed -i -e 's/EnableWattsUpPro=true/EnableWattsUpPro=false/' \
+ -e 's/IgnoreLid=false/IgnoreLid=true/' \
+ /etc/UPower/UPower.conf