:: Re: [DNG] suspend
Forside
Slet denne besked
Besvar denne besked
Skribent: Boruch Baum
Dato:  
Til: dng
Emne: Re: [DNG] suspend
On 04/11/2016 09:40 PM, Go Linux wrote:
> On Mon, 4/11/16, Boruch Baum <boruch_baum@???> wrote:
>> Upon adding a GUI on top of a pre-existing cli-only install of
>> devuan-alpha-4, the functionality of suspend, hibernate, switch-users,
>> shutdown and restart were unavailable to the desktop user.
>>
>> The easy solution for suspend and hibernate is to create a pkla file in
>> 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
>>
>> The more complex solution is to create a group 'power', add desktop
>> users to that group, and then create the above file, but replacing
>> 'unix-user:*' with unix-group:power'.
>>
>> I don't yet have a working solution for 'switch-users', 'shutdown', or
>> 'restart'.
>
> --------------------------------------------
>
> Installing upower and libupower-glib1 from the devuan repos got the
> whole shebang working for me from the xfce panel and/or main menu. I
> suspect that xfce4-power-manager also has something to do with it.


My installed versions for upower, libupower-glib1:amd64, and
libupower-glib1:amd64 are all 1:0.9.23-2+devuan1.2

The polkit actions:
org.freedesktop.consolekit.system.stop
org.freedesktop.consolekit.system.restart
org.freedesktop.consolekit.stop-multiple-users
org.freedesktop.consolekit.system.restart-multiple-users
seem to be those that would control the remaining issues, and the
installed version of consolekit is 0.4.6-5, from:
us.mirror.devuan.org_merged_dists_jessie_main_binary-amd64_Packages

Do you get any ouput from running?:
find /etc/polkit-1/localauthority -type f -print -exec cat '{}' \;

If so, could you post it?

IMPORTANT: There is, across the internet, mention of a different policy
file, /usr/share/polkit-1/actions/org.freedesktop.login1.policy instead
of org.freedesktop.consolekit.policy. According to the ArchWIki, it is
package systemd-logind that stands behind this alternative.

--
hkp://keys.gnupg.net
CA45 09B5 5351 7C11 A9D1 7286 0036 9E45 1595 8BC0