[ltp] Head's up: KEY_SLEEP/SUSPEND/HIBERNATE changes

Chris Schumann linux-thinkpad@linux-thinkpad.org
Wed, 04 Mar 2009 11:47:18 -0600


Henrique de Moraes Holschuh wrote:
> It has been defined by the core userspace UI people (X.org, HAL,
> desktop.org, etc) that:
> 
> KEY_SLEEP - Maps to any of the sleep modes, by asking the user what
> should be done.  Used when the platform doesn't have a preference for
> that key (e.g. moon icon on normal keyboards).
> 
> KEY_SUSPEND - Sleep to RAM  (thinkpad fn+f4)

The ThinkPad F4 button has a moon on it, as I'm sure you know. Would 
anything on a ThinkPad then generate KEY_SLEEP?

> KEY_HIBERNATE (new) - Sleep to disk, or RediSafe (disk+ram).
> (thinkpad fn+f12).

ThinkPad configuration puts their version of RediSafe under suspend. 
Hibernate to me means the machine should shut off. I haven't followed 
the story so far, but this seems like a big change.

> And thinkpad-acpi, as well as the rest of the kernel laptop drivers
> are going to change their default mappings to implement it, probably
> for 2.6.30.  In thinkpad-acpi's case, I will change it on the next
> development/backport version as well.
> 
> This is just a head's up, so that you know what is happening if
> suddenly your keys start doing something different.
> 
> There are NO CHANGES to the ACPI events.
> 
> You can, of course, restore the old key mappings using any of the
> possible ways to reprogram an input device's keymap (such as HAL .fdi
> files).

Thanks for the update,
Chris