Logged In: NO

You'll want to use Inhibit() and UnInhibit(). See
http://cvs.gnome.org/viewcvs/\*checkout*/gnome-power-manager/docs/gnome-power-manager.html#pm-Compatibility
This is due to XDG standardisation.