[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH] Detect key modifier status in 'sleep --interruptible'

From: Colin Watson
Subject: [PATCH] Detect key modifier status in 'sleep --interruptible'
Date: Wed, 12 Aug 2009 16:35:21 +0100
User-agent: Mutt/1.5.18 (2008-05-17)

The attached patch arranges to make use of key modifier status in 'sleep
--interruptible', so that you can interrupt the sleep by pressing Shift.
The benefit of this is that on some architectures it makes it possible
and even sometimes reasonable to use an extremely short sleep for a
hiddenmenu-type arrangement - even a zero sleep - because on some
architectures you can query key modifier state asynchronously without
having to wait for make scancodes by way of key repeat or whatever, so
all the user needs to do is hold Shift as they come out of the BIOS.
While a zero sleep probably isn't a reasonable default for GRUB in
general, it's very useful if you're building single-boot out-of-the-box
systems where you just want to get on with booting the one installed OS.

This is based on previous work in GRUB Legacy by Kristian and Peter
(CCed). Peter tells me that Red Hat has an assignment already on file,
and it looks like mine is finally making some progress ...


Colin Watson                                       address@hidden

Attachment: keystatus.diff
Description: Text Data

reply via email to

[Prev in Thread] Current Thread [Next in Thread]