On Mon, Dec 03, 2018 at 01:01:34PM -0500, Wayne Sallee via blfs-support wrote: > I upgraded upower to version 0.99.7 but then could no longer suspend with > the command "dbus-send --system --print-reply > --dest='org.freedesktop.UPower' /org/freedesktop/UPower > org.freedesktop.UPower.Suspend", as it gives the error "Error > org.freedesktop.DBus.Error.UnknownMethod: No such method 'Suspend' ". > > So I put the older version of upower back. > > > > Google search shows that this is "because UPower has been superseded by > Systemd.Logind". > > So without systemd, what methods have y'all used to work around this? > > Wayne Sallee
Three things: pm-utils to provide the suspend and hibernate commands, xbindkeys (run from startx) with a script to bind a specific key to pm-suspend (on a plain keyboard I use F12 for suspend, F11 for hibernate, but if there are extra silly keys at the top, I have used one of those in the past), and a file in /etc/sudoers.d so that I can run pm-suspend or pm-hibernate via sudo without needing a password. I will note that on modern *desktop* machines, not all of them support suspend (nowadays, hibernate seems to work a lot more reliably than it used to), and of those that do support suspend, a PS/2 keyboard seems to be required (otherwise, there may not be a way to wake it up). For laptops, hopefully suspend "just works". ĸen -- I'm saving up 22 shillings and 10 pence (almost a pound!) per week to buy an ARM-13. http://www.antipope.org/charlie/blog-static/2018/11/brexit-means-brexit.html -- http://lists.linuxfromscratch.org/listinfo/blfs-support FAQ: http://www.linuxfromscratch.org/blfs/faq.html Unsubscribe: See the above information page
