• devuan-packages
  • policykit-1
  • Issues
  • #5

Closed
Open
Opened 2016-04-12T10:20Z by Jaromil @jaromil

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:

Boruch:

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

Golinux:

Installing upower and libupower-glib1 from the devuan repos got the
whole shebang working for me from the xfce panel and/or main menu.

Mitt:

(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

Please solve the reCAPTCHA

We want to be sure it is you, please confirm you are not a robot.

  • golinux
    golinux @golinux · 2016-04-13T15:26Z

    Centurion_Dan already solved this with his modifications to upower. as per this discussion on #devuan:

    https://botbot.me/freenode/devuan/search/?q=upower

  • Alice
    Alice @need4openid · 2016-08-21T22:36Z

    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

  • Mark Hindley
    Mark Hindley @LeePen · 2019-07-25T09:25Z

    I think this is resolved with Centurion_Dan's updates to upower or by installing elogind.

    Therefore, closing.

  • Mark Hindley @LeePen closed · 2019-07-25T09:25Z

    closed