Bug 2808
Summary: | atkbd.c: wrong asumption: SysRq == Alt-PrintScreen | ||
---|---|---|---|
Product: | Drivers | Reporter: | LEE Sau Dan (danlee) |
Component: | Input Devices | Assignee: | Vojtech Pavlik (vojtech) |
Status: | CLOSED PATCH_ALREADY_AVAILABLE | ||
Severity: | low | CC: | vojtech |
Priority: | P2 | ||
Hardware: | i386 | ||
OS: | Linux | ||
Kernel Version: | 2.6.0 -- 2.6.7-rc1 | Subsystem: | |
Regression: | --- | Bisected commit-id: | |
Attachments: |
First half of the fix: removes the wrong assumption in atkbd.c
Second half of bug fix: keyboard handler no longer require Alt to be pressed with SysRq |
Description
LEE Sau Dan
2004-06-01 01:02:56 UTC
Created attachment 3030 [details]
First half of the fix: removes the wrong assumption in atkbd.c
This fixes atkbd.c, so that SysRq and PrintScreen now generated distinct
events:
Now, PrintScreen *correctly* generates:
evbug.c: Event. Dev: isa0060/serio0/input0, Type: 1, Code: 55, Value: 1
evbug.c: Event. Dev: isa0060/serio0/input0, Type: 0, Code: 0, Value: 0
evbug.c: Event. Dev: isa0060/serio0/input0, Type: 1, Code: 55, Value: 0
evbug.c: Event. Dev: isa0060/serio0/input0, Type: 0, Code: 0, Value: 0
and SysRq *correctly* generates:
evbug.c: Event. Dev: isa0060/serio0/input0, Type: 1, Code: 99, Value: 1
evbug.c: Event. Dev: isa0060/serio0/input0, Type: 0, Code: 0, Value: 0
evbug.c: Event. Dev: isa0060/serio0/input0, Type: 1, Code: 99, Value: 0
evbug.c: Event. Dev: isa0060/serio0/input0, Type: 0, Code: 0, Value: 0
Created attachment 3031 [details]
Second half of bug fix: keyboard handler no longer require Alt to be pressed with SysRq
This fixes the wrong assumption in the kernel's keyboard event handler, so that
it no longer assumes that Alt (either one) must be pressed before SysRq can be
pressed.
I'm sorry you can't use the fn+printscreen function on your LifeBook, but such is life. Is using Alt+printscreen such a big difference? On USB keyboards (and many others, too), there is no specific SysRq keycode, and thus the kernel magic-sysrq handler uses the alt-printscreen combination, to make it work on ALL keyboards. This is intentional. Further, keycode 99 is KEY_SYSRQ, as defined in input.h, and is used for the PrtScr/SysRq key. Keycode 55 is KEY_KPASTERISK. Keycodes are NOT the same as raw scancodes. So your patch won't be applied, because current behavior is intended and not a bug. |