:: [DNG] suspend
トップ ページ
このメッセージを削除
このメッセージに返信
著者: Boruch Baum
日付:  
To: dng
題目: [DNG] suspend
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'.

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