I've been pulling my hair out on this one today on a lucid test system, wondering why I couldn't get the parts that should work working. Finally realized that it was a simple mistake, but thought I'd point it out here in the hopes that it will save someone else some time.
In *lucid*, the policykit "actions" have changed. They used to be org.freedesktop.devicekit.power.* but are now org.freedesktop.upower.*
So, Martin's example in #28 goes like this on lucid:
$ sudo cat /etc/polkit-1/localauthority/50-local.d/disable-suspend.pkla
[Disable suspend]
Identity=unix-user:*
Action=org.freedesktop.upower.suspend;org.freedesktop.upower.hibernate
ResultActive=no
ResultAny=no
$ pkcheck --action-id org.freedesktop.upower.suspend --process $$
Not authorized.
Once this change is made, everything's happy, except for the Indicator applet, which is still an open issue.
I've been pulling my hair out on this one today on a lucid test system, wondering why I couldn't get the parts that should work working. Finally realized that it was a simple mistake, but thought I'd point it out here in the hopes that it will save someone else some time.
In *lucid*, the policykit "actions" have changed. They used to be org.freedesktop .devicekit. power.* but are now org.freedesktop .upower. *
So, Martin's example in #28 goes like this on lucid: 1/localauthorit y/50-local. d/disable- suspend. pkla unix-user: * org.freedesktop .upower. suspend; org.freedesktop .upower. hibernate
$ sudo cat /etc/polkit-
[Disable suspend]
Identity=
Action=
ResultActive=no
ResultAny=no
$ pkcheck --action-id org.freedesktop .upower. suspend --process $$
Not authorized.
Once this change is made, everything's happy, except for the Indicator applet, which is still an open issue.