1 |
--nextPart1816019.02x4Fs9hru |
2 |
Content-Transfer-Encoding: 7Bit |
3 |
Content-Type: text/plain; charset="UTF-8" |
4 |
|
5 |
On Friday, 20 December 2019 16:14:00 GMT you wrote: |
6 |
> Mick, |
7 |
> |
8 |
> On Friday, 2019-12-20 13:55:29 +0000, you wrote: |
9 |
> > ... |
10 |
> > If you can't run suspend/hibernate it may be polkit policies are not |
11 |
> > allowing you to run these commands via dbus. However, polkit policies |
12 |
> > are |
13 |
> > automatically installed/updated as required by the packages you have on |
14 |
> > your system. For example, this is what I have on my desktop (KDE): |
15 |
> > |
16 |
> > $ pkaction | grep susp |
17 |
> > org.freedesktop.login1.inhibit-handle-suspend-key |
18 |
> > org.freedesktop.login1.suspend |
19 |
> > org.freedesktop.login1.suspend-ignore-inhibit |
20 |
> > org.freedesktop.login1.suspend-multiple-sessions |
21 |
> > |
22 |
> > $ pkaction | grep hibernate |
23 |
> > org.freedesktop.login1.hibernate |
24 |
> > org.freedesktop.login1.hibernate-ignore-inhibit |
25 |
> > org.freedesktop.login1.hibernate-multiple-sessions |
26 |
> > org.freedesktop.login1.inhibit-handle-hibernate-key |
27 |
> |
28 |
> Here it is: |
29 |
> |
30 |
> $ pkaction|\grep -E 'hiber|susp' |
31 |
> org.freedesktop.consolekit.system.hibernate |
32 |
> org.freedesktop.consolekit.system.hibernate-multiple-users |
33 |
> org.freedesktop.consolekit.system.suspend |
34 |
> org.freedesktop.consolekit.system.suspend-multiple-users |
35 |
> $ |
36 |
|
37 |
Hmm ... clearly we have a difference in polkit authorised actions between our |
38 |
two systems. I use elogind, but don't have a box with consolekit to compare. |
39 |
|
40 |
[snip ...] |
41 |
> In "/etc/polkit-1/rules.d/" are only three rules files, the first and |
42 |
> last one being copied by me from the internet somewhere, the second one |
43 |
> being original: |
44 |
> |
45 |
> # cd /etc/polkit-1/rules.d |
46 |
> # for f in *; do echo ---- $f; cat $f; done |
47 |
> ---- 10-admin.rules |
48 |
> polkit.addAdminRule(function(action, subject) { |
49 |
> return ["unix-group:wheel"]; |
50 |
> }); |
51 |
> ---- 50-default.rules |
52 |
> /* -*- mode: js; js-indent-level: 4; indent-tabs-mode: nil -*- */ |
53 |
> |
54 |
> // DO NOT EDIT THIS FILE, it will be overwritten on update |
55 |
> // |
56 |
> // Default rules for polkit |
57 |
> // |
58 |
> // See the polkit(8) man page for more information |
59 |
> // about configuring polkit. |
60 |
> |
61 |
> polkit.addAdminRule(function(action, subject) { |
62 |
> return ["unix-user:0"]; |
63 |
> }); |
64 |
> ---- 50-org.freedesktop.NetworkManager.rules |
65 |
> polkit.addRule(function(action, subject) { |
66 |
> if (action.id.indexOf("org.freedesktop.NetworkManager.") == 0 && |
67 |
> subject.isInGroup("plugdev")) { return polkit.Result.YES; |
68 |
> } |
69 |
> }); |
70 |
> # |
71 |
> |
72 |
> > ... |
73 |
|
74 |
I only have the 50-default.rules, I suspect you copied 10-admin.rules from: |
75 |
|
76 |
https://wiki.gentoo.org/wiki/Polkit |
77 |
|
78 |
|
79 |
> > These are the USE flags for polkit on this system: |
80 |
> These are the polkit USE flags here: |
81 |
> |
82 |
> $ eix -l sys-auth/polkit|grep Installed |
83 |
> Installed versions: 0.115-r4(15:10:56 22/10/19)(consolekit gtk |
84 |
> introspection nls pam -elogind -examples -jit -kde -selinux -systemd -test) |
85 |
> $ |
86 |
> |
87 |
> The only differences I see are that you are using "elogind" rather than |
88 |
> "consolekit", and that I'm using "gtk" while you are using "kde". |
89 |
|
90 |
Yes, this is as it should be. |
91 |
|
92 |
|
93 |
> If someone could point me to any missing policy rules, I would be glad |
94 |
> to add them. |
95 |
> |
96 |
> Sincerely, |
97 |
> Rainer |
98 |
|
99 |
The thing is you shouldn't have to add polkit actions or rules manually. As I |
100 |
understand it any userspace applications which require access to system |
101 |
services should install any rules as dependencies. |
102 |
|
103 |
A Gentoo user with consolekit and xfce should kindly check their settings and |
104 |
compare with yours to see if something is amiss. I'm thinking, any xfce |
105 |
regression bugs ought to affect more than one user at a time, so you shouldn't |
106 |
be alone in this. |
107 |
|
108 |
PS. I had a look at the interwebs for your problem and a user mentioned upower |
109 |
(as I did in a previous message) - do you have upower installed? The xfce |
110 |
desktop should have installed this as a dependency: |
111 |
|
112 |
sys-power/upower |
113 |
Available versions: |
114 |
0.99.9-r1 (0/3) [doc +introspection ios selinux |
115 |
KERNEL="FreeBSD linux"] |
116 |
~ 0.99.11 (0/3) [doc +introspection ios selinux |
117 |
KERNEL="FreeBSD linux"] |
118 |
Installed versions: 0.99.9-r1(0/3)(10:05:06 14/06/19)(introspection -doc |
119 |
-ios -selinux KERNEL="linux -FreeBSD") |
120 |
Homepage: https://upower.freedesktop.org/ |
121 |
Description: D-Bus abstraction for enumerating power devices, |
122 |
querying history and statistics |
123 |
|
124 |
|
125 |
PPS. This page mentions some troubleshooting steps which you may have not been |
126 |
through yet: |
127 |
|
128 |
https://docs.xfce.org/xfce/xfce4-power-manager/faq |
129 |
|
130 |
-- |
131 |
Regards, |
132 |
|
133 |
Mick |
134 |
--nextPart1816019.02x4Fs9hru |
135 |
Content-Type: application/pgp-signature; name="signature.asc" |
136 |
Content-Description: This is a digitally signed message part. |
137 |
Content-Transfer-Encoding: 7Bit |
138 |
|
139 |
-----BEGIN PGP SIGNATURE----- |
140 |
|
141 |
iQIzBAABCAAdFiEEt7MNaGaS6HvTUrEz6WnU8jC95dcFAl3+DocACgkQ6WnU8jC9 |
142 |
5dfogA//cIYWUDZ8DZXQ9Z9gQ7AedVWRuelHkyjUU8j1T2yeVWrwMMZE5Kor4PLn |
143 |
xjtdZBlUM6W3C+BdZjV6sSMA8ec7pnh67+Y/Ml6Dg0J50kwsSV4HqJzSVPf4NfoS |
144 |
mBdf3U3SXX5LgY+5NUDz8cYSj8hNjQ9TacVLRLW94LoNd0gk7nqXG6o17OrjaQqb |
145 |
K74hp66R3PgbaFjb/X82pIOXU2EYo8fqLKzh5y7TYPVfTi4XHkw0Hz8RWLLqnjuN |
146 |
JODhOaqEAefYT8U3KaWYfp3YgtE1fy4YDC+IpmbhZBRsQxO1MJu6pXfZoTqxjTOk |
147 |
Y/82mI//sifXmfqk93Ql3sBGpg1dYu5JZbTZSJ04d7dopMQVVmwx18Ic6KOC2UNa |
148 |
BPvvVEqpoH8EZl4vT0EgMLmrgD+TYJX4BmtUgL/M2acBwcdxJukzBEVz8ee7zs4T |
149 |
KAFKsqaycPiJtbn+3BDKrcPu6rAKjUcgD5OVQMEntANy2FIZw+XCjloxN08/7Y1s |
150 |
RlmCynp1A0N8WLIv6r1UsZh7rGgM8wnHkIT/CPJeKNWeaes7D6vC2ZrEVr3VS9bD |
151 |
Q2gFhqr3xP4doXVce5Mo7k/TCi7QK+B3L61dKPGsc/b3vylmt/YYAv6S4tIBtT1h |
152 |
UBAjrYVeVI5lk/NRcczpKgp4rKApgwmjv/UXH2NGrkioyHkNKjo= |
153 |
=mJxM |
154 |
-----END PGP SIGNATURE----- |
155 |
|
156 |
--nextPart1816019.02x4Fs9hru-- |