Ubuntu 15.04: suspend from console without sudo

10

1

For years I have been able to suspend my Ubuntu-based machine from regular account using

dbus-send --system --print-reply --dest="org.freedesktop.UPower" /org/freedesktop/UPower org.freedesktop.UPower.Suspend

This no longer works in Ubuntu 15.04, where the following is reported:

Error org.freedesktop.DBus.Error.UnknownMethod: Method "Suspend" with signature "" on interface "org.freedesktop.UPower" doesn't exist

One option to suspend without password prompt is to edit sudoers and then sudo pm-suspend. Are there any other ways that do not involve granting root privileges?

narthi

Posted 2015-04-24T09:57:55.637

Reputation: 203

Answers

13

Try systemctl suspend That worked for me.

krzysz00

Posted 2015-04-24T09:57:55.637

Reputation: 285

1

See also http://askubuntu.com/a/613814/43344 .

– JdeBP – 2015-04-26T06:59:09.077