:: Re: [DNG] suspend
Página Principal
Delete this message
Reply to this message
Autor: Boruch Baum
Data:  
Para: dng
Assunto: Re: [DNG] suspend
On 04/12/2016 01:32 AM, Mitt Green wrote:
> Boruch Baum wrote:‎
>
>> I don't yet have a working solution for 'switch-users',
>> 'shutdown', or 'restart'.
>
> Try these:

Thanks, Mitt. I had tried those earlier (along with the parallel actions
ending with "-multiple-users", to no avail. However, I put them all in
the same file as the org.freedesktop.upower.hibernate and .suspend
actions. I'll try them in their own file now, though I'm dubious that
should make a difference.

> create /etc/polkit-1/localauthority/50-local.d/‎consolekit.pkla and with 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
>
> ----------


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