Another keyboard woes with 2.6.0...
Quoted 11 lines · Zwane Mwaikambo
Quoted 8 lines · Petr Vandrovec
I have MicroStar MS-9211 box with connected to the KVM switch
MasterView CS-1016, which is connected to the some Chicony keyboard. 2.4.x kernel works without problem, but when 2.6.0 starts, immediately after input device driver is initialized it starts thinking that F7 key is held down, and it stays that way until I hit some other key to stop autorepeat... What debugging I can do for you to get rid of screen full of '^[[18~' ?/bin/logincontinuously complains about username being too long :-(
Quoted 6 lines
Hi Petr,
I have the same problem with an Avocent SwitchView and Keytronic
keyboard, although it doesn't sound as bad as your problem. Occasionally some keys just repeat until i press another key. I'm not quite sure what kind of information Vojtech would like. The machine is 440BX based and kernel is 2.6.0-test3-mm1
Andries is already gathering info for this one. This problem (missed key release) happens to me on all systems I have (Athlon + via, P3 + i440BX, P4 + 845...), most often when I do alt+right-arrow for walking through consoles (and for Andries: hitting key stops this, otherwise it endlessly switches all VTs around, and while kernel thinks that key is down, keyboard actually does not generate any IRQs, so keyboard knows that all keys are released).
Petr
Quoted 7 lines · Petr Vandrovec
Andries is already gathering info for this one. This problem (missed key release) happens to me on all systems I have (Athlon + via, P3 + i440BX, P4 + 845...), most often when I do alt+right-arrow for walking through consoles (and for Andries: hitting key stops this, otherwise it endlessly switches all VTs around, and while kernel thinks that key is down, keyboard actually does not generate any IRQs, so keyboard knows that all keys are released).
OK. It seems to me the two main hypotheses are: (i) problem with timers, (ii) problem with keyboard.
In other words: could you (and/or anybody else who can reproduce this at will) change the #undef DEBUG in i8042.c to #define DEBUG, recreate the problem, and post or mail the resulting file with keystrokes?
[of course: cut away parts corresponding to login sequences etc.]
This will probably allow us to decide whether the missing key release was never sent by the keyboard, or was lost by the kernel.
Andries
[email protected]
Quoted 13 lines · Andries Brouwer
Quoted 7 lines · Petr Vandrovec
Andries is already gathering info for this one. This problem (missed key release) happens to me on all systems I have (Athlon + via, P3 + i440BX, P4 + 845...), most often when I do alt+right-arrow for walking through consoles (and for Andries: hitting key stops this, otherwise it endlessly switches all VTs around, and while kernel thinks that key is down, keyboard actually does not generate any IRQs, so keyboard knows that all keys are released).
OK. It seems to me the two main hypotheses are: (i) problem with timers, (ii) problem with keyboard.
Quoted 8 lines
In other words: could you (and/or anybody else who can reproduce this at will) change the #undef DEBUG in
i8042.cto #define DEBUG, recreate the problem, and post or mail the resulting file with keystrokes?[of course: cut away parts corresponding to login sequences etc.]
This will probably allow us to decide whether the missing key release was never sent by the keyboard, or was lost by the kernel.
Unfortunately I'm at home, while box is at work, so I could only reboot it, and confirm that it happened again. Unfortunately I cannot go to the box and hit any key to get some more data. But I'll enable this on my workstation, and if I'll get some "unexpected keycode" or "keyboard reconnect" errors again, I'll have more data in the hand.
Quoted 1 line
From log it looks like that switch likes
0x41a lot: it reports ID0x41AB,
it reports current scan set 0x41, and when we enable it, it returns spurious 0x41... And the last 0x41 is one which confuses everything.
Thanks,
Petr
Linux version 2.6.0-test5-c1283 (root@placatec) (gcc version 3.3.2 20030908 (Debian prerelease)) #5 SMP Sat Sep 13 23:11:05 CEST 2003 [...]drivers/usb/misc/usblcd.c: USBLCD Driver Version 1.04 (C) Adams IT Services http://www.usblcd.dedrivers/usb/misc/usblcd.c: USBLCD support registered.
mice: PS/2 mouse device common for all mice
input: PC Speakerdrivers/input/serio/i8042.c: 20 -> i8042 (command) [0]drivers/input/serio/i8042.c: 47 <- i8042 (return) [0]drivers/input/serio/i8042.c: 60 -> i8042 (command) [0]drivers/input/serio/i8042.c: 56 -> i8042 (parameter) [0]drivers/input/serio/i8042.c: d3 -> i8042 (command) [0]drivers/input/serio/i8042.c: f0 -> i8042 (parameter) [0]drivers/input/serio/i8042.c: 0f <- i8042 (return) [0]drivers/input/serio/i8042.c: d3 -> i8042 (command) [0]drivers/input/serio/i8042.c: 56 -> i8042 (parameter) [0]drivers/input/serio/i8042.c: a9 <- i8042 (return) [0]drivers/input/serio/i8042.c: d3 -> i8042 (command) [1]drivers/input/serio/i8042.c: a4 -> i8042 (parameter) [1]drivers/input/serio/i8042.c: 5b <- i8042 (return) [1]drivers/input/serio/i8042.c: d3 -> i8042 (command) [1]drivers/input/serio/i8042.c: 5a -> i8042 (parameter) [1]drivers/input/serio/i8042.c: a5 <- i8042 (return) [1]drivers/input/serio/i8042.c: a7 -> i8042 (command) [1]drivers/input/serio/i8042.c: 20 -> i8042 (command) [1]drivers/input/serio/i8042.c: 76 <- i8042 (return) [1]drivers/input/serio/i8042.c: a8 -> i8042 (command) [1]drivers/input/serio/i8042.c: 20 -> i8042 (command) [1]drivers/input/serio/i8042.c: 56 <- i8042 (return) [1]drivers/input/serio/i8042.c: 60 -> i8042 (command) [1]drivers/input/serio/i8042.c: 74 -> i8042 (parameter) [1]drivers/input/serio/i8042.c: 60 -> i8042 (command) [1]drivers/input/serio/i8042.c: 54 -> i8042 (parameter) [1]drivers/input/serio/i8042.c: 60 -> i8042 (command) [2]drivers/input/serio/i8042.c: 56 -> i8042 (parameter) [2]drivers/input/serio/i8042.c: d4 -> i8042 (command) [2]drivers/input/serio/i8042.c: f2 -> i8042 (parameter) [2]drivers/input/serio/i8042.c: fa <- i8042 (interrupt, aux, 12) [5]drivers/input/serio/i8042.c: 00 <- i8042 (interrupt, aux, 12) [6]drivers/input/serio/i8042.c: 60 -> i8042 (command) [6]drivers/input/serio/i8042.c: 54 -> i8042 (parameter) [6]drivers/input/serio/i8042.c: 60 -> i8042 (command) [6]drivers/input/serio/i8042.c: 56 -> i8042 (parameter) [6]drivers/input/serio/i8042.c: d4 -> i8042 (command) [7]drivers/input/serio/i8042.c: f2 -> i8042 (parameter) [7]drivers/input/serio/i8042.c: fa <- i8042 (interrupt, aux, 12) [10]drivers/input/serio/i8042.c: 00 <- i8042 (interrupt, aux, 12) [11]drivers/input/serio/i8042.c: d4 -> i8042 (command) [11]drivers/input/serio/i8042.c: f6 -> i8042 (parameter) [11]drivers/input/serio/i8042.c: fa <- i8042 (interrupt, aux, 12) [15]drivers/input/serio/i8042.c: d4 -> i8042 (command) [15]drivers/input/serio/i8042.c: e8 -> i8042 (parameter) [15]drivers/input/serio/i8042.c: fa <- i8042 (interrupt, aux, 12) [18]drivers/input/serio/i8042.c: d4 -> i8042 (command) [18]drivers/input/serio/i8042.c: 00 -> i8042 (parameter) [18]drivers/input/serio/i8042.c: fa <- i8042 (interrupt, aux, 12) [21]drivers/input/serio/i8042.c: d4 -> i8042 (command) [21]drivers/input/serio/i8042.c: e8 -> i8042 (parameter) [21]drivers/input/serio/i8042.c: fa <- i8042 (interrupt, aux, 12) [25]drivers/input/serio/i8042.c: d4 -> i8042 (command) [25]drivers/input/serio/i8042.c: 00 -> i8042 (parameter) [25]drivers/input/serio/i8042.c: fa <- i8042 (interrupt, aux, 12) [28]drivers/input/serio/i8042.c: d4 -> i8042 (command) [28]drivers/input/serio/i8042.c: e8 -> i8042 (parameter) [28]drivers/input/serio/i8042.c: fa <- i8042 (interrupt, aux, 12) [32]drivers/input/serio/i8042.c: d4 -> i8042 (command) [32]drivers/input/serio/i8042.c: 00 -> i8042 (parameter) [32]drivers/input/serio/i8042.c: fa <- i8042 (interrupt, aux, 12) [35]drivers/input/serio/i8042.c: d4 -> i8042 (command) [35]drivers/input/serio/i8042.c: e8 -> i8042 (parameter) [35]drivers/input/serio/i8042.c: fa <- i8042 (interrupt, aux, 12) [39]drivers/input/serio/i8042.c: d4 -> i8042 (command) [39]drivers/input/serio/i8042.c: 00 -> i8042 (parameter) [39]drivers/input/serio/i8042.c: fa <- i8042 (interrupt, aux, 12) [42]drivers/input/serio/i8042.c: d4 -> i8042 (command) [42]drivers/input/serio/i8042.c: e9 -> i8042 (parameter) [42]drivers/input/serio/i8042.c: fa <- i8042 (interrupt, aux, 12) [46]drivers/input/serio/i8042.c: 00 <- i8042 (interrupt, aux, 12) [47]drivers/input/serio/i8042.c: 00 <- i8042 (interrupt, aux, 12) [48]drivers/input/serio/i8042.c: 28 <- i8042 (interrupt, aux, 12) [49]drivers/input/serio/i8042.c: d4 -> i8042 (command) [49]drivers/input/serio/i8042.c: e8 -> i8042 (parameter) [49]drivers/input/serio/i8042.c: fa <- i8042 (interrupt, aux, 12) [53]drivers/input/serio/i8042.c: d4 -> i8042 (command) [53]drivers/input/serio/i8042.c: 03 -> i8042 (parameter) [53]drivers/input/serio/i8042.c: fa <- i8042 (interrupt, aux, 12) [56]drivers/input/serio/i8042.c: d4 -> i8042 (command) [56]drivers/input/serio/i8042.c: e6 -> i8042 (parameter) [56]drivers/input/serio/i8042.c: fa <- i8042 (interrupt, aux, 12) [60]drivers/input/serio/i8042.c: d4 -> i8042 (command) [60]drivers/input/serio/i8042.c: e6 -> i8042 (parameter) [60]drivers/input/serio/i8042.c: fa <- i8042 (interrupt, aux, 12) [63]drivers/input/serio/i8042.c: d4 -> i8042 (command) [63]drivers/input/serio/i8042.c: e6 -> i8042 (parameter) [63]drivers/input/serio/i8042.c: fa <- i8042 (interrupt, aux, 12) [67]drivers/input/serio/i8042.c: d4 -> i8042 (command) [67]drivers/input/serio/i8042.c: e9 -> i8042 (parameter) [67]drivers/input/serio/i8042.c: fa <- i8042 (interrupt, aux, 12) [70]drivers/input/serio/i8042.c: 00 <- i8042 (interrupt, aux, 12) [71]drivers/input/serio/i8042.c: 03 <- i8042 (interrupt, aux, 12) [72]drivers/input/serio/i8042.c: 28 <- i8042 (interrupt, aux, 12) [74]drivers/input/serio/i8042.c: d4 -> i8042 (command) [74]drivers/input/serio/i8042.c: e8 -> i8042 (parameter) [74]drivers/input/serio/i8042.c: fa <- i8042 (interrupt, aux, 12) [77]drivers/input/serio/i8042.c: d4 -> i8042 (command) [77]drivers/input/serio/i8042.c: 00 -> i8042 (parameter) [77]drivers/input/serio/i8042.c: fa <- i8042 (interrupt, aux, 12) [81]drivers/input/serio/i8042.c: d4 -> i8042 (command) [81]drivers/input/serio/i8042.c: e6 -> i8042 (parameter) [81]drivers/input/serio/i8042.c: fa <- i8042 (interrupt, aux, 12) [84]drivers/input/serio/i8042.c: d4 -> i8042 (command) [84]drivers/input/serio/i8042.c: e6 -> i8042 (parameter) [84]drivers/input/serio/i8042.c: fa <- i8042 (interrupt, aux, 12) [87]drivers/input/serio/i8042.c: d4 -> i8042 (command) [87]drivers/input/serio/i8042.c: e6 -> i8042 (parameter) [87]drivers/input/serio/i8042.c: fa <- i8042 (interrupt, aux, 12) [91]drivers/input/serio/i8042.c: d4 -> i8042 (command) [91]drivers/input/serio/i8042.c: e9 -> i8042 (parameter) [91]drivers/input/serio/i8042.c: fa <- i8042 (interrupt, aux, 12) [94]drivers/input/serio/i8042.c: 00 <- i8042 (interrupt, aux, 12) [95]drivers/input/serio/i8042.c: 00 <- i8042 (interrupt, aux, 12) [97]drivers/input/serio/i8042.c: 28 <- i8042 (interrupt, aux, 12) [98]drivers/input/serio/i8042.c: d4 -> i8042 (command) [98]drivers/input/serio/i8042.c: f3 -> i8042 (parameter) [98]drivers/input/serio/i8042.c: fa <- i8042 (interrupt, aux, 12) [101]drivers/input/serio/i8042.c: d4 -> i8042 (command) [101]drivers/input/serio/i8042.c: c8 -> i8042 (parameter) [101]drivers/input/serio/i8042.c: fa <- i8042 (interrupt, aux, 12) [105]drivers/input/serio/i8042.c: d4 -> i8042 (command) [105]drivers/input/serio/i8042.c: f3 -> i8042 (parameter) [105]drivers/input/serio/i8042.c: fa <- i8042 (interrupt, aux, 12) [108]drivers/input/serio/i8042.c: d4 -> i8042 (command) [108]drivers/input/serio/i8042.c: 64 -> i8042 (parameter) [108]drivers/input/serio/i8042.c: fa <- i8042 (interrupt, aux, 12) [112]drivers/input/serio/i8042.c: d4 -> i8042 (command) [112]drivers/input/serio/i8042.c: f3 -> i8042 (parameter) [112]drivers/input/serio/i8042.c: fa <- i8042 (interrupt, aux, 12) [115]drivers/input/serio/i8042.c: d4 -> i8042 (command) [115]drivers/input/serio/i8042.c: 50 -> i8042 (parameter) [115]drivers/input/serio/i8042.c: fa <- i8042 (interrupt, aux, 12) [119]drivers/input/serio/i8042.c: d4 -> i8042 (command) [119]drivers/input/serio/i8042.c: f2 -> i8042 (parameter) [119]drivers/input/serio/i8042.c: fa <- i8042 (interrupt, aux, 12) [122]drivers/input/serio/i8042.c: 03 <- i8042 (interrupt, aux, 12) [123]drivers/input/serio/i8042.c: d4 -> i8042 (command) [123]drivers/input/serio/i8042.c: f3 -> i8042 (parameter) [123]drivers/input/serio/i8042.c: fa <- i8042 (interrupt, aux, 12) [127]drivers/input/serio/i8042.c: d4 -> i8042 (command) [127]drivers/input/serio/i8042.c: c8 -> i8042 (parameter) [127]drivers/input/serio/i8042.c: fa <- i8042 (interrupt, aux, 12) [130]drivers/input/serio/i8042.c: d4 -> i8042 (command) [130]drivers/input/serio/i8042.c: f3 -> i8042 (parameter) [130]drivers/input/serio/i8042.c: fa <- i8042 (interrupt, aux, 12) [134]drivers/input/serio/i8042.c: d4 -> i8042 (command) [134]drivers/input/serio/i8042.c: c8 -> i8042 (parameter) [134]drivers/input/serio/i8042.c: fa <- i8042 (interrupt, aux, 12) [137]drivers/input/serio/i8042.c: d4 -> i8042 (command) [137]drivers/input/serio/i8042.c: f3 -> i8042 (parameter) [137]drivers/input/serio/i8042.c: fa <- i8042 (interrupt, aux, 12) [141]drivers/input/serio/i8042.c: d4 -> i8042 (command) [141]drivers/input/serio/i8042.c: 50 -> i8042 (parameter) [141]drivers/input/serio/i8042.c: fa <- i8042 (interrupt, aux, 12) [144]drivers/input/serio/i8042.c: d4 -> i8042 (command) [144]drivers/input/serio/i8042.c: f2 -> i8042 (parameter) [144]drivers/input/serio/i8042.c: fa <- i8042 (interrupt, aux, 12) [148]drivers/input/serio/i8042.c: 03 <- i8042 (interrupt, aux, 12) [149]
input: ImPS/2 Generic Wheel Mouse on isa0060/serio1drivers/input/serio/i8042.c: d4 -> i8042 (command) [149]drivers/input/serio/i8042.c: f3 -> i8042 (parameter) [149]drivers/input/serio/i8042.c: fa <- i8042 (interrupt, aux, 12) [152]drivers/input/serio/i8042.c: d4 -> i8042 (command) [152]drivers/input/serio/i8042.c: 64 -> i8042 (parameter) [152]drivers/input/serio/i8042.c: fa <- i8042 (interrupt, aux, 12) [156]drivers/input/serio/i8042.c: d4 -> i8042 (command) [156]drivers/input/serio/i8042.c: f3 -> i8042 (parameter) [156]drivers/input/serio/i8042.c: fa <- i8042 (interrupt, aux, 12) [159]drivers/input/serio/i8042.c: d4 -> i8042 (command) [159]drivers/input/serio/i8042.c: c8 -> i8042 (parameter) [159]drivers/input/serio/i8042.c: fa <- i8042 (interrupt, aux, 12) [163]drivers/input/serio/i8042.c: d4 -> i8042 (command) [163]drivers/input/serio/i8042.c: e8 -> i8042 (parameter) [163]drivers/input/serio/i8042.c: fa <- i8042 (interrupt, aux, 12) [166]drivers/input/serio/i8042.c: d4 -> i8042 (command) [166]drivers/input/serio/i8042.c: 03 -> i8042 (parameter) [166]drivers/input/serio/i8042.c: fa <- i8042 (interrupt, aux, 12) [170]drivers/input/serio/i8042.c: d4 -> i8042 (command) [170]drivers/input/serio/i8042.c: e6 -> i8042 (parameter) [170]drivers/input/serio/i8042.c: fa <- i8042 (interrupt, aux, 12) [173]drivers/input/serio/i8042.c: d4 -> i8042 (command) [173]drivers/input/serio/i8042.c: ea -> i8042 (parameter) [173]drivers/input/serio/i8042.c: fa <- i8042 (interrupt, aux, 12) [176]drivers/input/serio/i8042.c: d4 -> i8042 (command) [176]drivers/input/serio/i8042.c: f4 -> i8042 (parameter) [176]drivers/input/serio/i8042.c: fa <- i8042 (interrupt, aux, 12) [180]
serio: i8042 AUX port at 0x60,0x64 irq 12drivers/input/serio/i8042.c: 60 -> i8042 (command) [180]drivers/input/serio/i8042.c: 46 -> i8042 (parameter) [180]drivers/input/serio/i8042.c: 60 -> i8042 (command) [180]drivers/input/serio/i8042.c: 47 -> i8042 (parameter) [180]drivers/input/serio/i8042.c: f2 -> i8042 (kbd-data) [180]drivers/input/serio/i8042.c: fa <- i8042 (interrupt, kbd, 1) [183]drivers/input/serio/i8042.c: ab <- i8042 (interrupt, kbd, 1) [184]drivers/input/serio/i8042.c: 41 <- i8042 (interrupt, kbd, 1) [185]drivers/input/serio/i8042.c: ed -> i8042 (kbd-data) [185]drivers/input/serio/i8042.c: fa <- i8042 (interrupt, kbd, 1) [188]drivers/input/serio/i8042.c: 00 -> i8042 (kbd-data) [188]drivers/input/serio/i8042.c: fa <- i8042 (interrupt, kbd, 1) [191]drivers/input/serio/i8042.c: f0 -> i8042 (kbd-data) [191]drivers/input/serio/i8042.c: fa <- i8042 (interrupt, kbd, 1) [194]drivers/input/serio/i8042.c: 02 -> i8042 (kbd-data) [194]drivers/input/serio/i8042.c: fa <- i8042 (interrupt, kbd, 1) [196]drivers/input/serio/i8042.c: f0 -> i8042 (kbd-data) [196]drivers/input/serio/i8042.c: fa <- i8042 (interrupt, kbd, 1) [199]drivers/input/serio/i8042.c: 00 -> i8042 (kbd-data) [199]drivers/input/serio/i8042.c: fa <- i8042 (interrupt, kbd, 1) [202]drivers/input/serio/i8042.c: 41 <- i8042 (interrupt, kbd, 1) [203]drivers/input/serio/i8042.c: f4 -> i8042 (kbd-data) [203]drivers/input/serio/i8042.c: fa <- i8042 (interrupt, kbd, 1) [206]
input: AT Set 2 keyboard on isa0060/serio0
serio: i8042 KBD port at 0x60,0x64 irq 1
i2c /dev entries driver module version 2.7.0 (20021208)
i2c-i801 version 2.7.0 (20021208)
i2c-piix4 version 2.7.0 (20021208)drivers/input/serio/i8042.c: 41 <- i8042 (interrupt, kbd, 1) [207]
registering 1-0290
oprofile: using NMI interrupt.
NET: Registered protocol family 2
IP: routing cache hash table of 4096 buckets, 64Kbytes
TCP: Hash tables configured (established 131072 bind 43690)
Initializing IPsec netlink socket
NET: Registered protocol family 1
NET: Registered protocol family 17
NET: Registered protocol family 15
BIOS EDD facility v0.09 2003-Jan-22, 2 devices found
ACPI: (supports S0 S1 S4 S5)
VFS: Mounted root (ext2 filesystem) readonly.
Freeing unused kernel memory: 368k freed
Adding 1959920k swap on /dev/hde2. Priority:-1 extents:1
Intel(R) PRO/1000 Network Driver - version 5.1.13-k2
Copyright (c) 1999-2003 Intel Corporation.
eth0: Intel(R) PRO/1000 Network Connection
e1000: eth0 NIC Link is Up 1000 Mbps Full Duplex
Quoted 10 lines · Petr Vandrovec
From log it looks like that switch likes
0x41a lot: it reports ID0x41AB, it reports current scan set0x41, and when we enable it, it returns spurious0x41... And the last0x41is one which confuses everything.Linux version 2.6.0-test5-c1283
[...]drivers/usb/misc/usblcd.c: USBLCD Driver Version 1.04 (C) Adams IT Services http://www.usblcd.dedrivers/usb/misc/usblcd.c: USBLCD support registered.
mice: PS/2 mouse device common for all mice
input: PC Speaker
Get keyboard controller command byte
Quoted 2 lines
i8042.c: 20 -> i8042 (command) [0]i8042.c: 47 <- i8042 (return) [0]
47: XLATE, SYSF, MIE, KIE
Quoted 2 lines
i8042.c: 60 -> i8042 (command) [0]i8042.c: 56 -> i8042 (parameter) [0]
Disable keyboard and keyboard interrupt
Quoted 4 lines
i8042.c: d3 -> i8042 (command) [0]i8042.c: f0 -> i8042 (parameter) [0]i8042.c: 0f <- i8042 (return) [0]i8042.c: d3 -> i8042 (command) [0]
Quoted 8 lines
i8042.c: 56 -> i8042 (parameter) [0]i8042.c: a9 <- i8042 (return) [0]i8042.c: d3 -> i8042 (command) [1]i8042.c: a4 -> i8042 (parameter) [1]i8042.c: 5b <- i8042 (return) [1]i8042.c: d3 -> i8042 (command) [1]i8042.c: 5a -> i8042 (parameter) [1]i8042.c: a5 <- i8042 (return) [1]
No special multiplexer in sight
Quoted 1 line
i8042.c: a7 -> i8042 (command) [1]
Disable mouse port
Quoted 2 lines
i8042.c: 20 -> i8042 (command) [1]i8042.c: 76 <- i8042 (return) [1]
XLATE, ME, KE, SYSF, MIE
Quoted 1 line
i8042.c: a8 -> i8042 (command) [1]
Enable mouse port
Quoted 2 lines
i8042.c: 20 -> i8042 (command) [1]i8042.c: 56 <- i8042 (return) [1]
XLATE, KE, SYSF, MIE
Quoted 6 lines
i8042.c: 60 -> i8042 (command) [1]i8042.c: 74 -> i8042 (parameter) [1]i8042.c: 60 -> i8042 (command) [1]i8042.c: 54 -> i8042 (parameter) [1]i8042.c: 60 -> i8042 (command) [2]i8042.c: 56 -> i8042 (parameter) [2]
After changing our minds twice we set XLATE, KE, SYSF, MIE (keyboard disabled, mouse enabled)
Quoted 4 lines
i8042.c: d4 -> i8042 (command) [2]i8042.c: f2 -> i8042 (parameter) [2]i8042.c: fa <- i8042 (interrupt, aux, 12) [5]i8042.c: 00 <- i8042 (interrupt, aux, 12) [6]
Read mouse ID. Get 0, as expected.
Quoted 4 lines
i8042.c: 60 -> i8042 (command) [6]i8042.c: 54 -> i8042 (parameter) [6]i8042.c: 60 -> i8042 (command) [6]i8042.c: 56 -> i8042 (parameter) [6]
Again some nonsense changes. Set XLATE, KE, SYSF, MIE
Quoted 4 lines
i8042.c: d4 -> i8042 (command) [7]i8042.c: f2 -> i8042 (parameter) [7]i8042.c: fa <- i8042 (interrupt, aux, 12) [10]i8042.c: 00 <- i8042 (interrupt, aux, 12) [11]
Read mouse ID again. Get 0, as expected.
Quoted 3 lines
i8042.c: d4 -> i8042 (command) [11]i8042.c: f6 -> i8042 (parameter) [11]i8042.c: fa <- i8042 (interrupt, aux, 12) [15]
Set defaults.
Quoted 22 lines
i8042.c: d4 -> i8042 (command) [15]i8042.c: e8 -> i8042 (parameter) [15]i8042.c: fa <- i8042 (interrupt, aux, 12) [18]i8042.c: d4 -> i8042 (command) [18]i8042.c: 00 -> i8042 (parameter) [18]i8042.c: fa <- i8042 (interrupt, aux, 12) [21]i8042.c: d4 -> i8042 (command) [21]i8042.c: e8 -> i8042 (parameter) [21]i8042.c: fa <- i8042 (interrupt, aux, 12) [25]i8042.c: d4 -> i8042 (command) [25]i8042.c: 00 -> i8042 (parameter) [25]i8042.c: fa <- i8042 (interrupt, aux, 12) [28]i8042.c: d4 -> i8042 (command) [28]i8042.c: e8 -> i8042 (parameter) [28]i8042.c: fa <- i8042 (interrupt, aux, 12) [32]i8042.c: d4 -> i8042 (command) [32]i8042.c: 00 -> i8042 (parameter) [32]i8042.c: fa <- i8042 (interrupt, aux, 12) [35]i8042.c: d4 -> i8042 (command) [35]i8042.c: e8 -> i8042 (parameter) [35]i8042.c: fa <- i8042 (interrupt, aux, 12) [39]i8042.c: d4 -> i8042 (command) [39]
Quoted 8 lines
i8042.c: 00 -> i8042 (parameter) [39]i8042.c: fa <- i8042 (interrupt, aux, 12) [42]i8042.c: d4 -> i8042 (command) [42]i8042.c: e9 -> i8042 (parameter) [42]i8042.c: fa <- i8042 (interrupt, aux, 12) [46]i8042.c: 00 <- i8042 (interrupt, aux, 12) [47]i8042.c: 00 <- i8042 (interrupt, aux, 12) [48]i8042.c: 28 <- i8042 (interrupt, aux, 12) [49]
Send the magic sequence e8 00 e8 00 e8 00 e8 00 e9 The middle byte of the reply does not have 47: no Touchpad
Quoted 13 lines
i8042.c: d4 -> i8042 (command) [49]i8042.c: e8 -> i8042 (parameter) [49]i8042.c: fa <- i8042 (interrupt, aux, 12) [53]i8042.c: d4 -> i8042 (command) [53]i8042.c: 03 -> i8042 (parameter) [53]i8042.c: fa <- i8042 (interrupt, aux, 12) [56]i8042.c: d4 -> i8042 (command) [56]i8042.c: e6 -> i8042 (parameter) [56]i8042.c: fa <- i8042 (interrupt, aux, 12) [60]i8042.c: d4 -> i8042 (command) [60]i8042.c: e6 -> i8042 (parameter) [60]i8042.c: fa <- i8042 (interrupt, aux, 12) [63]i8042.c: d4 -> i8042 (command) [63]
Quoted 8 lines
i8042.c: e6 -> i8042 (parameter) [63]i8042.c: fa <- i8042 (interrupt, aux, 12) [67]i8042.c: d4 -> i8042 (command) [67]i8042.c: e9 -> i8042 (parameter) [67]i8042.c: fa <- i8042 (interrupt, aux, 12) [70]i8042.c: 00 <- i8042 (interrupt, aux, 12) [71]i8042.c: 03 <- i8042 (interrupt, aux, 12) [72]i8042.c: 28 <- i8042 (interrupt, aux, 12) [74]
Send the magic sequence e8 03 e6 e6 e6 e9
No magic reaction
Quoted 13 lines
i8042.c: d4 -> i8042 (command) [74]i8042.c: e8 -> i8042 (parameter) [74]i8042.c: fa <- i8042 (interrupt, aux, 12) [77]i8042.c: d4 -> i8042 (command) [77]i8042.c: 00 -> i8042 (parameter) [77]i8042.c: fa <- i8042 (interrupt, aux, 12) [81]i8042.c: d4 -> i8042 (command) [81]i8042.c: e6 -> i8042 (parameter) [81]i8042.c: fa <- i8042 (interrupt, aux, 12) [84]i8042.c: d4 -> i8042 (command) [84]i8042.c: e6 -> i8042 (parameter) [84]i8042.c: fa <- i8042 (interrupt, aux, 12) [87]i8042.c: d4 -> i8042 (command) [87]
Quoted 8 lines
i8042.c: e6 -> i8042 (parameter) [87]i8042.c: fa <- i8042 (interrupt, aux, 12) [91]i8042.c: d4 -> i8042 (command) [91]i8042.c: e9 -> i8042 (parameter) [91]i8042.c: fa <- i8042 (interrupt, aux, 12) [94]i8042.c: 00 <- i8042 (interrupt, aux, 12) [95]i8042.c: 00 <- i8042 (interrupt, aux, 12) [97]i8042.c: 28 <- i8042 (interrupt, aux, 12) [98]
Send the magic sequence e8 00 e6 e6 e6 e9 (Identify Touchpad) No magic reaction
Quoted 10 lines
i8042.c: d4 -> i8042 (command) [98]i8042.c: f3 -> i8042 (parameter) [98]i8042.c: fa <- i8042 (interrupt, aux, 12) [101]i8042.c: d4 -> i8042 (command) [101]i8042.c: c8 -> i8042 (parameter) [101]i8042.c: fa <- i8042 (interrupt, aux, 12) [105]i8042.c: d4 -> i8042 (command) [105]i8042.c: f3 -> i8042 (parameter) [105]i8042.c: fa <- i8042 (interrupt, aux, 12) [108]i8042.c: d4 -> i8042 (command) [108]
Quoted 8 lines
i8042.c: 64 -> i8042 (parameter) [108]i8042.c: fa <- i8042 (interrupt, aux, 12) [112]i8042.c: d4 -> i8042 (command) [112]i8042.c: f3 -> i8042 (parameter) [112]i8042.c: fa <- i8042 (interrupt, aux, 12) [115]i8042.c: d4 -> i8042 (command) [115]i8042.c: 50 -> i8042 (parameter) [115]i8042.c: fa <- i8042 (interrupt, aux, 12) [119]
Set sampling rate to 200, 100, 80
Quoted 4 lines
i8042.c: d4 -> i8042 (command) [119]i8042.c: f2 -> i8042 (parameter) [119]i8042.c: fa <- i8042 (interrupt, aux, 12) [122]i8042.c: 03 <- i8042 (interrupt, aux, 12) [123]
Now ID has become 03: we recognise Intellimouse
Quoted 14 lines
i8042.c: d4 -> i8042 (command) [123]i8042.c: f3 -> i8042 (parameter) [123]i8042.c: fa <- i8042 (interrupt, aux, 12) [127]i8042.c: d4 -> i8042 (command) [127]i8042.c: c8 -> i8042 (parameter) [127]i8042.c: fa <- i8042 (interrupt, aux, 12) [130]i8042.c: d4 -> i8042 (command) [130]i8042.c: f3 -> i8042 (parameter) [130]i8042.c: fa <- i8042 (interrupt, aux, 12) [134]i8042.c: d4 -> i8042 (command) [134]i8042.c: c8 -> i8042 (parameter) [134]i8042.c: fa <- i8042 (interrupt, aux, 12) [137]i8042.c: d4 -> i8042 (command) [137]i8042.c: f3 -> i8042 (parameter) [137]
Quoted 8 lines
i8042.c: fa <- i8042 (interrupt, aux, 12) [141]i8042.c: d4 -> i8042 (command) [141]i8042.c: 50 -> i8042 (parameter) [141]i8042.c: fa <- i8042 (interrupt, aux, 12) [144]i8042.c: d4 -> i8042 (command) [144]i8042.c: f2 -> i8042 (parameter) [144]i8042.c: fa <- i8042 (interrupt, aux, 12) [148]i8042.c: 03 <- i8042 (interrupt, aux, 12) [149]
After set sampling rate 200,200,80 the ID is still 03:
Not an Explorer mouse
Quoted 8 lines
input: ImPS/2 Generic Wheel Mouse on isa0060/serio1
i8042.c: d4 -> i8042 (command) [149]i8042.c: f3 -> i8042 (parameter) [149]i8042.c: fa <- i8042 (interrupt, aux, 12) [152]i8042.c: d4 -> i8042 (command) [152]i8042.c: 64 -> i8042 (parameter) [152]i8042.c: fa <- i8042 (interrupt, aux, 12) [156]
Set sampling rate 100
Quoted 6 lines
i8042.c: d4 -> i8042 (command) [156]i8042.c: f3 -> i8042 (parameter) [156]i8042.c: fa <- i8042 (interrupt, aux, 12) [159]i8042.c: d4 -> i8042 (command) [159]i8042.c: c8 -> i8042 (parameter) [159]i8042.c: fa <- i8042 (interrupt, aux, 12) [163]
Set sampling rate 200
Quoted 6 lines
i8042.c: d4 -> i8042 (command) [163]i8042.c: e8 -> i8042 (parameter) [163]i8042.c: fa <- i8042 (interrupt, aux, 12) [166]i8042.c: d4 -> i8042 (command) [166]i8042.c: 03 -> i8042 (parameter) [166]i8042.c: fa <- i8042 (interrupt, aux, 12) [170]
Set resolution 3
Quoted 3 lines
i8042.c: d4 -> i8042 (command) [170]i8042.c: e6 -> i8042 (parameter) [170]i8042.c: fa <- i8042 (interrupt, aux, 12) [173]
Set scaling 1:1
Quoted 3 lines
i8042.c: d4 -> i8042 (command) [173]i8042.c: ea -> i8042 (parameter) [173]i8042.c: fa <- i8042 (interrupt, aux, 12) [176]
Set stream mode
Quoted 3 lines
i8042.c: d4 -> i8042 (command) [176]i8042.c: f4 -> i8042 (parameter) [176]i8042.c: fa <- i8042 (interrupt, aux, 12) [180]
Mouse enable
Quoted 1 line
serio: i8042 AUX port at 0x60,0x64 irq 12
So far the mouse probing. Now the keyboard probing.
Quoted 4 lines
i8042.c: 60 -> i8042 (command) [180]i8042.c: 46 -> i8042 (parameter) [180]i8042.c: 60 -> i8042 (command) [180]i8042.c: 47 -> i8042 (parameter) [180]
We change our mind once more and set XLATE, SYSF, MIE, KIE
Quoted 4 lines
i8042.c: f2 -> i8042 (kbd-data) [180]i8042.c: fa <- i8042 (interrupt, kbd, 1) [183]i8042.c: ab <- i8042 (interrupt, kbd, 1) [184]i8042.c: 41 <- i8042 (interrupt, kbd, 1) [185]
Keyboard ID is as usual (translation of ab 83)
Quoted 4 lines
i8042.c: ed -> i8042 (kbd-data) [185]i8042.c: fa <- i8042 (interrupt, kbd, 1) [188]i8042.c: 00 -> i8042 (kbd-data) [188]i8042.c: fa <- i8042 (interrupt, kbd, 1) [191]
Set LEDs
Quoted 4 lines
i8042.c: f0 -> i8042 (kbd-data) [191]i8042.c: fa <- i8042 (interrupt, kbd, 1) [194]i8042.c: 02 -> i8042 (kbd-data) [194]i8042.c: fa <- i8042 (interrupt, kbd, 1) [196]
Set scancode set 2
Quoted 5 lines
i8042.c: f0 -> i8042 (kbd-data) [196]i8042.c: fa <- i8042 (interrupt, kbd, 1) [199]i8042.c: 00 -> i8042 (kbd-data) [199]i8042.c: fa <- i8042 (interrupt, kbd, 1) [202]i8042.c: 41 <- i8042 (interrupt, kbd, 1) [203]
Read scancode set. Get 41 (41 is translation of 02)
Quoted 2 lines
i8042.c: f4 -> i8042 (kbd-data) [203]i8042.c: fa <- i8042 (interrupt, kbd, 1) [206]
Keyboard enable
Quoted 6 lines
input: AT Set 2 keyboard on isa0060/serio0
serio: i8042 KBD port at 0x60,0x64 irq 1
i2c /dev entries driver module version 2.7.0 (20021208) i2c-i801 version 2.7.0 (20021208)
i2c-piix4 version 2.7.0 (20021208)i8042.c: 41 <- i8042 (interrupt, kbd, 1) [207]
Surprise! An additional 41 nobody had asked for. As a scancode this is the scancode for the F7 function key.
--------
Quoted 3 lines
From log it looks like that switch likes
0x41a lot: it reports ID0x41AB, it reports current scan set0x41, and when we enable it, it returns spurious0x41... And the last0x41is one which confuses everything.
Yes. ID is OK. Scancode set is OK. But the final one is unexpected.
You say "confuses everything".
Is it not treated as a keypress for the F7 key?
Andries
Quoted 8 lines · Andries Brouwer
Quoted 3 lines
From log it looks like that switch likes
0x41a lot: it reports ID0x41AB, it reports current scan set0x41, and when we enable it, it returns spurious0x41... And the last0x41is one which confuses everything.Yes. ID is OK. Scancode set is OK. But the final one is unexpected.
You say "confuses everything".
Is it not treated as a keypress for the F7 key?
Hmm. Yes. An F7 that is never released.
Is that what you see - an infinitely repeated F7 until you hit the next key?
And the 0x41 is generated by this switch?
And it also occurs on 2.4 but there nothing bad happens?
Quoted 6 lines · Andries Brouwer
Quoted 4 lines · Andries Brouwer
Quoted 3 lines
From log it looks like that switch likes
0x41a lot: it reports ID0x41AB, it reports current scan set0x41, and when we enable it, it returns spurious0x41... And the last0x41is one which confuses everything.
Quoted 8 lines
Quoted 4 lines
Yes. ID is OK. Scancode set is OK. But the final one is unexpected.
You say "confuses everything".
Is it not treated as a keypress for the F7 key?Hmm. Yes. An F7 that is never released.
Is that what you see - an infinitely repeated F7 until you hit the next key?
Yes. It is what I was trying to tell by "confuses everything".
Quoted 1 line
And the
0x41is generated by this switch?
Yes.
Quoted 1 line
And it also occurs on 2.4 but there nothing bad happens?
It looks to me like that it does. We get one 0x41 when we send ED 00, and second time after enabling keyboard by F4, like 2.6.x does... But it is not that serious under 2.4.x...
Full log, including reads from status (0x64) register under 2.4.x is at
http://platan.vc.cvut.cz/cs1016-24.log.
Petr Vandrovec
Linux version 2.4.22-ac1 (root@placatec) (gcc version 3.3.2 20030908 (Debian prerelease)) #5 SMP Sun Sep 14 21:35:38 CEST 2003
...
Non-volatile memory driver v1.2
WOutput: ED
RInput: FA
WOutput: 00
RInput: FA
RInput: 41 <<<<<<<<<<<<<<<
FDC 0 is a post-1991 82077
RAMDISK driver initialized: 16 RAM disks of 4096K size 1024 blocksize
...
Adding Swap: 1959920k swap-space (priority -1)
e1000: eth0 NIC Link is Up 1000 Mbps Full Duplex
WCmd: A8
WCmd: D4
WOutput: F4
WCmd: 60
RInput: FA
WOutput: 47
WOutput: F4
RInput: FA
RInput: 41 <<<<<<<<<<<<<<<<<<<
WCmd: D4
WOutput: F6
RInput: FA
WCmd: D4
WOutput: F3
WCmd: D4
RInput: FA
WOutput: C8
RInput: FA
WCmd: D4
WOutput: F3
WCmd: D4
RInput: FA
WOutput: 64
RInput: FA
WCmd: D4
WOutput: F3
WCmd: D4
RInput: FA
WOutput: 50
RInput: FA
WCmd: D4
WOutput: F3
WCmd: D4
RInput: FA
WOutput: C8
RInput: FA
WCmd: D4
WOutput: F3
WCmd: D4
RInput: FA
WOutput: C8
RInput: FA
WCmd: D4
WOutput: F3
WCmd: D4
RInput: FA
WOutput: 50
RInput: FA
WCmd: D4
WOutput: E6
RInput: FA
WCmd: D4
WOutput: F3
WCmd: D4
RInput: FA
WOutput: 64
RInput: FA
WCmd: D4
WOutput: F2
RInput: FA
WCmd: D4
WOutput: EA
RInput: FA
WCmd: D4
WOutput: F4
RInput: FA
Quoted 8 lines · Petr Vandrovec
Quoted 3 lines
Hmm. Yes. An F7 that is never released.
Is that what you see - an infinitely repeated F7 until you hit the next key?Yes. It is what I was trying to tell by "confuses everything".
Quoted 1 line
And the
0x41is generated by this switch?
Quoted 7 lines
Yes.
Quoted 1 line
And it also occurs on 2.4 but there nothing bad happens?
It looks to me like that it does. We get one
0x41when we send ED 00, and second time after enabling keyboard by F4, like 2.6.x does... But it is not that serious under 2.4.x...
No - it is sent only once (and, I suppose, gives a little bit of garbage to whatever process eats it in 2.4) but in 2.6 it is repeated.
A separate micro project might be to find out precisely when this switch sends this code, and whether it can send other codes.
To save this machine for 2.6 no doubt you can invent something most suitable for you. Replacing input.c:input_repeat_key() by a dummy routine kills all key repeat.
The key that is repeated is dev->repeat_key, and we have the keycode there if I am not mistaken, not the scancode, but they are equal in this case, so you might also add
if (dev->repeat_key == 65) return;
at the start of input_repeat_key().
In the mean time we must invent a real solution instead of a stopgap.
Andries
Quoted 29 lines · Petr Vandrovec
Quoted 13 lines · Andries Brouwer
Quoted 7 lines · Petr Vandrovec
Andries is already gathering info for this one. This problem (missed key release) happens to me on all systems I have (Athlon + via, P3 + i440BX, P4 + 845...), most often when I do alt+right-arrow for walking through consoles (and for Andries: hitting key stops this, otherwise it endlessly switches all VTs around, and while kernel thinks that key is down, keyboard actually does not generate any IRQs, so keyboard knows that all keys are released).
OK. It seems to me the two main hypotheses are: (i) problem with timers, (ii) problem with keyboard.
Quoted 8 lines
In other words: could you (and/or anybody else who can reproduce this at will) change the #undef DEBUG in
i8042.cto #define DEBUG, recreate the problem, and post or mail the resulting file with keystrokes?[of course: cut away parts corresponding to login sequences etc.]
This will probably allow us to decide whether the missing key release was never sent by the keyboard, or was lost by the kernel.
Unfortunately I'm at home, while box is at work, so I could only reboot it, and confirm that it happened again. Unfortunately I cannot go to the box and hit any key to get some more data. But I'll enable this on my workstation, and if I'll get some "unexpected keycode" or "keyboard reconnect" errors again, I'll have more data in the hand.
Quoted 3 lines
Quoted 1 line
From log it looks like that switch likes
0x41a lot: it reports ID0x41AB,it reports current scan set
0x41, and when we enable it, it returns spurious0x41... And the last0x41is one which confuses everything.
I've just sent a patch to Linus that should fix this. Please try ... (either get the patch from LKML or wait for next Linus's release).
Signature · 2 lines
Vojtech Pavlik SuSE Labs, SuSE CR