PowerManager is a simple DBUS daemon that runs as the root user and holds the system connection name net.sf.PowerManager. Only root is allowed to run this program, (this can be changed in /etc/dbus-1/system.d/PowerManager.conf) as it's entire purpose is to allow non-root users to run the scripts /usr/sbin/pm-*. This is also configurable in the above PowerManager.conf config file. By default, all users are allowed to connect to the system DBUS net.sf.PowerManager connection, and issue the following methods:
bool isActive () bool shutdown () bool restart () bool hibernate () bool suspend () bool hdparm (timeout, device)
You can lock out specific users, or groups of users by adding to /etc/dbus-1/system.d/PowerManager.conf:
<policy user="suzy"> <deny send_destination="net.sf.PowerManager"/> <deny send_interface="net.sf.PowerManager"/> </policy>
Most of this functionality could (and will?) be included in the main HAL daemon in the future, hence why the pmscripts package has been kept separate. For the time being the functionality has been kept separate so we can do independent releases of PowerManager and not worry about machines running the very latest CVS HAL.
The latest 'stable' code can be found at https://sourceforge.net/project/showfiles.php?group_id=133929
RPM's suitable for a Fedora Core 4 can also be found here.
You can check out the latest PowerManager code using CVS:
cvs -d:pserver:anonymous@cvs.sf.net:/cvsroot/gnome-power checkout power-manager