Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 107552

Summary: hal 0.5.4/gnome-power-manager 0.2.3 power management permissions
Product: Gentoo Linux Reporter: Chris <thirtyyearswar>
Component: Current packagesAssignee: Project Gentopia <gentopia>
Status: RESOLVED INVALID    
Severity: normal CC: xoen.gnu
Priority: High    
Version: unspecified   
Hardware: x86   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Chris 2005-09-28 19:30:12 UTC
gnome-power-manager responds to the acpi sleep button event as follows:

** (gnome-power-manager:13227): DEBUG: Error: A security policy in place
prevents this sender from sending this message to this recipient, see message
bus configuration file (rejected message had interface
"org.freedesktop.Hal.Device.SystemPowerManagement" member "Hibernate" error name
"(unset)" destination "org.freedesktop.Hal")

** (gnome-power-manager:13227): WARNING **:
org.freedesktop.Hal.Device.SystemPowerManagement.Hibernate failed (HAL error)

** (gnome-power-manager:13227): WARNING **:
org.freedesktop.Hal.Device.SystemPowerManagement.Hibernate call failed (134568889)

The same issue seems to be impacting SetPowerSave as well:

** (gnome-power-manager:13227): DEBUG: Error: A security policy in place
prevents this sender from sending this message to this recipient, see message
bus configuration file (rejected message had interface
"org.freedesktop.Hal.Device.SystemPowerManagement" member "SetPowerSave" error
name "(unset)" destination "org.freedesktop.Hal")

This has also been reported by another gentoo user in the gnome-power-manager
mailing list:

http://sourceforge.net/mailarchive/forum.php?thread_id=8129732&forum_id=44600


Reproducible: Always
Steps to Reproduce:
1.
2.
3.
Comment 1 Chris 2005-09-29 04:05:25 UTC
Note that I patched the /usr/sbin/hal-system-power-hibernate and -suspend
scripts so that they would run /usr/sbin/hibernate in response to the
button/SLPB event. (This is per discussion on the hal mailing list.)

Note also that, based on the g-p-m thread discussed above, I tried using a
script that could be run as a mortal user (hibernate needs to be run as root)
with the same results.
Comment 2 Doug Goldstein (RETIRED) gentoo-dev 2005-12-29 22:35:18 UTC
The real problem may be G-P-M doing something it's not allowed to do. Who's to say that HAL isn't correct in enforcing the permissions. Has G-P-M asked for the permissions?

Since we don't have gnome-power-manager in the tree and since no other app has a problem with HAL currently, I'm going to blame G-P-M.

You can however bug steev[at]gentoo.org since he's working on G-P-M for Gentoo.