restore desktop functionalies for: suspend, hibernate, switch-users, shutdown and restart
Upon installation of the default xfce4 desktop, buttons for suspend, hibernate, switch-users, shutdown and restart are not working. Solutions suggested on DNG here below:
The easy solution for suspend and hibernate is to create a pkla file i n folder /etc/polkit-1/localauthority/50-local.d with contents: [Allow locally logged in members of group 'power' to put the hardware in suspend mode] Identity=unix-user:* Action=org.freedesktop.upower.suspend ResultAny=no ResultInactive=yes ResultActive=yes [Allow locally logged in members of group 'power' to put the hardware in hibernate mode] Identity=unix-user:* Action=org.freedesktop.upower.hibernate ResultAny=no ResultInactive=yes ResultActive=yes
Installing upower and libupower-glib1 from the devuan repos got the whole shebang working for me from the xfce panel and/or main menu.
(for Reboot and Shutdown) try these: create /etc/polkit-1/localauthority/50-local.d/\xe2\x80\x8econsolekit.pkla and wit h the content: [restart] Identity=unix-user:* Action=org.freedesktop.consolekit.system.restart ResultAny=yes [stop] Identity=unix-user:* Action=org.freedesktop.consolekit.system.stop ResultAny=yes
Centurion_Dan already solved this with his modifications to upower. as per this discussion on #devuan:
Solved by adding
<allow_any>yes</allow_any>to /usr/share/polkit-1/actions/org.freedesktop.upower.policy See also http://askubuntu.com/questions/21586/how-can-i-configure-dbus-to-allow-ssh-user-to-suspend-server#answer-79927
I think this is resolved with Centurion_Dan's updates to upower or by installing elogind.