Merge lp:~debfx/acpi-support/fix-lp387750 into lp:acpi-support

Proposed by Felix Geyer
Status: Merged
Approved by: Steve Langasek
Approved revision: 160
Merged at revision: not available
Proposed branch: lp:~debfx/acpi-support/fix-lp387750
Merge into: lp:acpi-support
Diff against target: 47 lines
2 files modified
debian/changelog (+6/-1)
lib/policy-funcs (+15/-1)
To merge this branch: bzr merge lp:~debfx/acpi-support/fix-lp387750
To post a comment you must log in.
Revision history for this message
Felix Geyer (debfx) wrote :

Sync the 0.126 upload to bzr and fix bug #387750

lp:~debfx/acpi-support/fix-lp387750 updated
151. By Steve Langasek

merge from trunk

152. By Steve Langasek

Drop /etc/acpi/start.d/90-hdparm.sh: this is redundant because we're
already calling pm-powersave on start (either via /etc/acpi/power.sh,
or by one of the desktop power managers as enumerated in
lib/policy-funcs) so there's no reason we should be reapplying the
policy here. LP: #443992.

153. By Steve Langasek

Add guidance-power-manager to the list of known desktop power managers.
LP: #154910

154. By Steve Langasek

  policy here. LP: #443992, LP: #438355.

155. By Steve Langasek

another bug fixed

156. By Steve Langasek

merge from Michael Terry

157. By Steve Langasek

use a shorter variable name, and declare it local so we don't worry about
polluting the caller's namespace

158. By Steve Langasek

releasing version 0.127

159. By Steve Langasek

Get laptop-mode-tools out of Suggests. Finally-really-fixes LP: #74683.

160. By Felix Geyer

Recognize KDE4 PowerDevil as a power manager

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'debian/changelog'
2--- debian/changelog 2009-10-06 08:41:00 +0000
3+++ debian/changelog 2009-10-07 20:53:09 +0000
4@@ -1,8 +1,13 @@
5 acpi-support (0.128) UNRELEASED; urgency=low
6
7+ [ Steve Langasek ]
8 * Get laptop-mode-tools out of Suggests. Finally-really-fixes LP: #74683.
9
10- -- Steve Langasek <steve.langasek@ubuntu.com> Tue, 06 Oct 2009 01:39:15 -0700
11+ [ Felix Geyer ]
12+ * lib/policy-funcs: Recognize KDE4 PowerDevil as a power manager.
13+ LP: #387750.
14+
15+ -- Felix Geyer <debfx-pkg@fobos.de> Wed, 07 Oct 2009 22:49:42 +0200
16
17 acpi-support (0.127) karmic; urgency=low
18
19
20=== modified file 'lib/policy-funcs'
21--- lib/policy-funcs 2009-10-06 03:10:38 +0000
22+++ lib/policy-funcs 2009-10-07 20:53:09 +0000
23@@ -3,9 +3,23 @@
24 PMS="gnome-power-manager kpowersave xfce4-power-manager"
25 PMS="$PMS guidance-power-manager.py dalston-power-applet"
26 if pidof -x $PMS > /dev/null ||
27- (pidof dcopserver > /dev/null && test -x /usr/bin/dcop && /usr/bin/dcop kded kded loadedModules | grep -q klaptopdaemon) ; then
28+ (pidof dcopserver > /dev/null && test -x /usr/bin/dcop && /usr/bin/dcop kded kded loadedModules | grep -q klaptopdaemon) ||
29+ PowerDevilRunning ; then
30 echo 0;
31 else
32 echo 1;
33 fi
34 }
35+
36+PowerDevilRunning() {
37+ test -x /usr/bin/dbus-send || return 1
38+
39+ for p in $(pidof kded4); do
40+ test -r /proc/$p/environ || continue
41+ local DBUS_SESS=$(cat /proc/$p/environ | grep -z "DBUS_SESSION_BUS_ADDRESS=")
42+ test "$DBUS_SESS" != "" || continue
43+ (su - $(ps -o user= $p) -c "$DBUS_SESS dbus-send --print-reply --dest=org.kde.kded /kded org.kde.kded.loadedModules" | grep -q powerdevil) && return 0
44+ done
45+
46+ return 1
47+}

Subscribers

People subscribed via source and target branches