Catching modifier keys after kernel boot

From: David Christensen (dave@drc.dhs.org)
Date: Wed Jan 30 2002 - 10:53:57 EST


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/



This archive was generated by hypermail 2b29 : Thu Jan 31 2002 - 21:01:19 EST