Is there any way to make my PC hibernate when I press the power button? Obviously when I press this button somewhere some signal is sent. Can it be intercepted to enable my PC to hibernate?
Asked
Active
Viewed 1,071 times
2
1 Answers
2
You probably (could) use acpid
(check via ps aux | grep acpid
). Then have a look at this article in the ArchWiki explaining how to use pm-utils
to extend acpid
to easily achieve whatever effect you'd like when some hardware button is pressed.
If, however, you use GNOME, there other (also GUI) ways, see this comprehensive thread on askubuntu.com
acpid
which is also explained here where you find references to for examplepm-utils
which might also help. – sr_ Oct 25 '11 at 08:34ps aux | grep acpid
, it might already be running. – sr_ Oct 25 '11 at 08:51acpid
andpm-utils
, this can easily be adjusted to your needs. – sr_ Oct 25 '11 at 09:01acpid
is a (the?) correct way to handle this kind of events, so I guess you can write one of your comments as an answer :-) – njsg Feb 14 '12 at 19:49