CheckPolicy() in policy-funcs script does not detect PowerDevil

Bug #387750 reported by Elvis Stansvik
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
acpi-support (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

The CheckPolicy() function in the /usr/share/acpi-support/policy-funcs script will not detect PowerDevil running under KDE4. I'm not sure how to fix this, this is how you can check with DBus:

dbus-send --system --print-reply --dest='org.kde.kded' /kded org.kde.kded.loadedModules | grep -q powerdevil

But I don't think that will work in those scripts since it doesn't have access to the session bus. So I'm not sure how to fix this.

It would be nice if it also checked for guidance-power-manager in the same way.

PS. I discovered this since I'm running a trunk installation of KDE on a 9.04 system, and no matter what I set my lid close action to be, the screen was blanked. This was because /etc/acpi/lid.sh used the CheckPolicy() function to see if there was a policy daemon running. DS.

Related branches

Revision history for this message
Felix Geyer (debfx) wrote :

Submitted a merge request to add PowerDevil detection to CheckPolicy()

Changed in acpi-support (Ubuntu):
status: New → Confirmed
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package acpi-support - 0.128

---------------
acpi-support (0.128) karmic; urgency=low

  [ Steve Langasek ]
  * Get laptop-mode-tools out of Suggests. Finally-really-fixes LP: #74683.
  * Fix the touchpad handler to use xinput instead of (unreliable)
    synclient, and add a corresponding Recommends; and call getXconsole so
    we can actually talk to the X server. LP: #447211.
  * new events/asus-f8sv-touchpad: handle another touchpad ACPI event on
    another ASUS model. LP: #218598.
  * lib/power-funcs: adjust getXconsole to work when the tty number is not
    present on the X commandline.

  [ Felix Geyer ]
  * lib/policy-funcs: Recognize KDE4 PowerDevil as a power manager.
    LP: #387750.

 -- Steve Langasek <email address hidden> Mon, 12 Oct 2009 16:49:00 -0700

Changed in acpi-support (Ubuntu):
status: Confirmed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.