Suspend to RAM not working

laptoppolkitpower-managementsuspend

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".

Best Answer

What about pm-utils?

Typing pm-suspend at the console suspends on demand.

You can install both acpid and acpi-support to sleep your laptop when you close the lid. You have to uncomment LID_SLEEP=true in /etc/default/acpi-support to get the lid working.

It did not require policykit-1 for me, but for full disclosure I am on jessie.

Related Question