I get following error when I try to suspend my laptop:
failed to check authorisation:
GDBus.Error:org.freedesktop.DBus.Error.Service.Unknown:
The name org.freedesktop.PolicyKit1 was not provided by any .service files
Which I understand as telling me that PolicyKit is not installed. The problem is, on my second laptop, which has identical OS and almost identical HW, suspend works fine without PolicyKit
.
I know I could fix my problem by installing the policykit-1
package, but I am wondering whether PolicyKit is necessary for suspend to work - obviously not, because it works without on my other laptop.
I have no idea how PolicyKit is supposed to work. For reasons beyond this discussion, I would very much like to avoid having to install it.
Can I use suspend without having to install policyKit
?
I am using Debian Wheezy and LXDE
The other commands: "Shutdown" and "Restart" work fine. Also, my user is in group powerdev
:
powerdev:x:108:martin
By "suspend", I mean "suspend to RAM".
PolicyKit
is installed: https://unix.stackexchange.com/questions/158494/the-name-org-freedesktop-policykit1-was-not-provided-by-any-service-files – a coder Oct 01 '14 at 16:07id -a
on each system as the user that owns the desktop. – slm Oct 01 '14 at 23:42id -a
gives the same output on both systems:uid=1000(martin) gid=1000(martin) groups=1000(martin),29(audio),108(powerdev)
– Martin Vegter Oct 02 '14 at 00:30