On Sat, Mar 7, 2009 at 4:48 PM, Matthew Garrett <mjg@xxxxxxxxxx> wrote: > On Sat, Mar 07, 2009 at 01:41:51PM -0300, Henrique de Moraes Holschuh wrote: > >> All machines with a standard crappy PeeCee keyboard with the moon key >> have a KEY_SLEEP key, and you can plug a PeeCee USB keyboard in just >> about anything nowadays... including on thinkpads, which have a key >> that is specific for S4, and one that is specific for S3 in their >> internal keyboards. > > And is this really common enough that it's worth breaking existing > userland? Xorg and evdev already does the right thing, we have XF86Hibernate now. All I have to do is patch HAL to check the kernel version and then everything in userspace we care about should just work. We have to sort out the insane mappings sooner or later, and what I've put in linux-next seems to be the right way of dong this, rather than the way things used to be (suspend -> hibernate, sleep->suspend, standby->sleep). I'm fed up of debugging why sleep buttons don't work right in userspace when the kernel isn't sure what button to emit. Richard. -- To unsubscribe from this list: send the line "unsubscribe linux-input" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html