PM / Hibernate: Allow to abort falling asleep by <ESC> or <DELETE> key press
Hi!
Quoted 4 lines
Add input handler to be able to abort
hibernation()action.Sometimes user needs this to stop unnecessary
hibernation()caused by himself or by DE utils/daemons.
I can't say I like this too much.
root user did ask for hibernation, and now we allow anyone who might be present at console to abort it (cat?).
For s2ram, we already set up wakeup devices. If wakeup event happened during hibernation, that might be reason to abort it.
Plus, root user will be able to control if cat is allowed to abort hibernation or not...
Pavel
Quoted 8 lines
Signed-off-by Kirill Tkhai <[email protected]>CC Pavel Machek <[email protected]>CC "Rafael J. Wysocki" <[email protected]>--- kernel/power/console.c | 96 ++++++++++++++++++++++++++++++++++++++++++++++++ kernel/power/hibernate.c | 7 ++++ kernel/power/power.h | 3 ++ kernel/power/swap.c | 19 ++++++++++
Signature · 2 lines
(english) http://www.livejournal.com/~pavelmachek (cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html