--- drivers/char/keyboard.c | 7 +++++++ include/linux/keyboard.h | 7 +++++++ 2 files changed, 14 insertions(+) Index: linux-2.6.21.1/drivers/char/keyboard.c =================================================================== --- linux-2.6.21.1.orig/drivers/char/keyboard.c +++ linux-2.6.21.1/drivers/char/keyboard.c @@ -956,6 +956,13 @@ void setledstate(struct kbd_struct *kbd, set_leds(); } +void setledstate_fgconsole(unsigned int led) +{ + struct kbd_struct *kbd = kbd_table + fg_console; + setledstate(kbd, led); +} +EXPORT_SYMBOL_GPL(setledstate_fgconsole); + static inline unsigned char getleds(void) { struct kbd_struct *kbd = kbd_table + fg_console; Index: linux-2.6.21.1/include/linux/keyboard.h =================================================================== --- linux-2.6.21.1.orig/include/linux/keyboard.h +++ linux-2.6.21.1/include/linux/keyboard.h @@ -441,4 +441,11 @@ extern unsigned short plain_map[NR_KEYS] #define NR_BRL 9 #define MAX_DIACR 256 + + + +#ifdef __KERNEL__ +void setledstate_fgconsole(unsigned int led); +#endif + #endif