The officially official Devuan Forum!

You are not logged in.

#1 2016-08-21 22:36:47

Jaromil
d1g
Registered: 2017-03-06
Posts: 0

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/‎consolekit.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
```


________________________________________

Project: devuan-packages/policykit-1
Issue: #5
By: Jaromil

Offline

#2 2017-06-20 13:46:57

fsmithred
Administrator
Registered: 2016-11-25
Posts: 469

Re: restore desktop functionalies for: suspend, hibernate, switch-users, shutdown and restart

Where can I get a power group so I can add my user to it? I tried 'addgroup power && adduser user power' but that didn't fix the problem. (I didn't really expect it to.)

Offline

#3 2017-06-20 14:26:48

fsmithred
Administrator
Registered: 2016-11-25
Posts: 469

Re: restore desktop functionalies for: suspend, hibernate, switch-users, shutdown and restart

In case someone else gets the idea to try it, I'll list one more thing that did NOT work for me.

remove (purge) task-desktop and task-xfce-desktop
apt-get autoremove (removes 314 packages)
install task-desktop task-xfce-desktop and slim

Offline

#4 2017-06-20 16:31:40

fsmithred
Administrator
Registered: 2016-11-25
Posts: 469

Re: restore desktop functionalies for: suspend, hibernate, switch-users, shutdown and restart

One more time...

I compared package lists between my debian upgrade and the desktop-live. I removed and added packages to the upgraded system until the lists were the same (with the exception of non-free firmware and refracta tools.)  It still doesn't work.

I wish I had tried this months ago. Tell me what I'm missing, or we need to stop telling people that this works.

Offline

Board footer