From: Dmitry Torokhov This gives keyboard a chance to work in text console so user can attempt to exctract more useful data form crashed box (for example some backtraces from SysRq) Signed-off-by: Dmitry Torokhov Cc: Andi Kleen Signed-off-by: Andrew Morton --- drivers/input/serio/i8042.c | 10 ++++++++++ 1 files changed, 10 insertions(+) diff -puN drivers/input/serio/i8042.c~i8042-activate-panic-blink-only-in-x drivers/input/serio/i8042.c --- a/drivers/input/serio/i8042.c~i8042-activate-panic-blink-only-in-x +++ a/drivers/input/serio/i8042.c @@ -20,6 +20,7 @@ #include #include #include +#include #include @@ -831,6 +832,15 @@ static long i8042_panic_blink(long count static char led; /* + * Only blink while in X because it messes up scrollback in console + * preventing users to see the entire oops. + */ +#ifdef CONFIG_HW_CONSOLE + if (vc_cons[fg_console].d->vc_mode != KD_GRAPHICS) + return 0; +#endif + + /* * We expect frequency to be about 1/2s. KDB uses about 1s. * Make sure they are different. */ _