Skip to contentSkip to conversation

PM / Hibernate: Allow to abort falling asleep by <ESC> or <DELETE> key press

PATCH Pavel Machek 1 participant 1 message Jun 27, 2013 1 message not in the archive

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

#1 lore raw

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
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