(This was previously asked, but the solution no longer works under 11.10.)
In Ubuntu 11.10 any user can suspend the machine from the power menu in the top right of the screen without needing root privileges. How can I suspend as a normal user from a command line?
pmi action suspend
errors out withError org.freedesktop.DBus.Error.ServiceUnknown: The name org.freedesktop.Hal was not provided by any .service files
– detly Apr 11 '12 at 10:26hal
;) might work for you too :D – Rinzwind Apr 11 '12 at 10:42acpi-support
is already installed, and suspending from the menu works fine. I'm reluctant to installhal
, though — AFAIK it's a legacy system. It can be a backup plan... – detly Apr 11 '12 at 10:48