hibernate/sleep function in hoary

Matthew Garrett mjg59 at srcf.ucam.org
Tue Feb 15 19:28:39 UTC 2005


On Tue, 2005-02-15 at 17:15 +0100, Simon Santoro wrote:

> Well, the key maps to 0xdf, so if the "Sleep" Action in the gnome
> Keyboard Shortcuts would work, that would be enough I think.
> And acerhk (http://www.informatik.hu-berlin.de/~tauber/acerhk/) is a
> driver for the special shortkeys on the laptop, not the
> suspend/hybernate button, so to support it would be usless for this
> "bug" to be fixed.

The problem is that catching the sleep button in gnome only allows you
to run a command as the logged in user, whereas we need to run it as
root. The acerhk code lets us make the kernel produce messages when the
key is pressed, which provides a way of working around that.

-- 
Matthew Garrett | mjg59 at srcf.ucam.org





More information about the ubuntu-users mailing list