Catching modifier keys after kernel boot

David Christensen (dave@drc.dhs.org)
Wed, 30 Jan 2002 07:53:57 -0800


I'm working on a system recovery mechanism that runs in the linuxrc file
that will restore a corrupted system. I need to do it by detecting that
the user is pressing a certain key sequence (such as
CTRL-ALT-BACKSPACE). Since the user may start pressing that key
sequence while the kernel is booting, how can I detect the make codes
for the CTRL and ALT keys? (The BACKSPACE key is easy enough to see
since the keyboard in autorepeat mode repeats the last key pressed.)
I'm already reading from the keyboard in RAW mode, but is there another
way to check the state of the modifier keys?

David Christensen
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/