4
I recently installed the new Fedora 18, LXDE spin on a workstation (not a laptop).
I want to disable the hibernate and suspend functions, and remove them from the "Logout" menu in the UI.
In F17 and earlier, this was easily done by adding a file /etc/polkit-1/localauthority/50-local.d/50-disable-suspend.pkla
with the contents:
[Disable Suspend]
Identity=unix-user:*
Action=org.freedesktop.upower.hibernate;org.freedesktop.upower.suspend
ResultAny=no
ResultInactive=no
ResultActive=no
Doing so would remove the menu entries, leaving Logout, Reboot, Shutdown and Cancel.
I also found instructions to modify the file /usr/share/polkit-1/actions/org.freedesktop.upower.policy
, changing two values to:
<allow_active>no</allow_active>
Neither works for F-18.
The problem with the latter approach for F17 and earlier was that the file might be overwritten when upower is updated, but even that would be acceptable.
Removing pm-utils
also seemed ideal, but I can't remove pm-utils
because libvirt
indirectly depends on it.
Has anyone figured this out?
If editing that file achieved the desired end for F18, this would be an option. Alas, it does not work. – Matthew Lundberg – 2013-01-20T21:57:15.383
Ok, if you don't need hiberbate and susnend - just remove "pm-utils" from system, and those items will be gone. – loadaverage – 2013-01-20T23:54:31.357
I considered that.
libvirt
depends on it (vialibvirt-client
) so that is a no-go. It also wants to removelxde-common
which doesn't look very helpful. I'll edit the question to indicate this. – Matthew Lundberg – 2013-01-21T00:19:32.583