Patch?: linux-2.5.33/drivers/input/keyboard/atkbd.c allow SETLEDS to fail
I have a computer with an Iwill VD133 motherboard doing
USB-to-PS/2 keyboard emulation (built into the chipset somewhere) for a BTC 7932M USB keyboard. Under this configuration, the SETLEDS command in atkbd_probe fails (the first atkbd_sendbyte in atkbd_command fails), but the keyboard otherwise works if that failure is ignored.
I noticed this when my keyboard stopped working in 2.5.32.
I have verified that 2.5.31 (and probably all kernels before it) also do not set the LEDs on my USB-emulating-PS/2 keyboard.
I cannot say whether the problem occurs with other USB
keyboards because I don't have one handy.
One cannot run the USB keyboard "natively" via Linux USB on this
motherboard because the BIOS does not seem to set an IRQ line for the USB controller. I've tried booting with "pci=biosirq", and I think I've tried all the relevant BIOS menu options, and I'm running the latest BIOS, and the VD133 product has been terminated. So the patch does seem to be "necessary" to support some configurations, at least for now.
Signature · 4 lines
Adam J. Richter __ ______________ 575 Oroville Road [email protected] \ / Milpitas, California 95035 +1 408 309-6081 | g g d r a s i l United States of America "Free Software For The Rest Of Us."
drivers/input/keyboard/atkbd.c +4 -4
@@ -359,13 +359,13 @@#endif /* -* Next we check we can set LEDs on the keyboard. This should work on every -* keyboard out there. It also turns the LEDs off, which we want anyway. +* Turn off LEDs. This command fails on at least a BTC 7932M USB keyboard +* connected to an Iwill VD133 motherboard that is configured to emulate +* a PS/2 keyboard via USB. */ param[0 ] =0 ; -if (atkbd_command (atkbd, param,ATKBD_CMD_SETLEDS )) -return -1 ; +atkbd_command (atkbd, param,ATKBD_CMD_SETLEDS );/* * Then we check the keyboard ID. We should get 0xab83 under normal conditions.
Quoted 14 lines · Adam J. Richter
I have a computer with an Iwill VD133 motherboard doing
USB-to-PS/2 keyboard emulation (built into the chipset somewhere) for a BTC 7932M USB keyboard. Under this configuration, the SETLEDS command inatkbd_probefails (the firstatkbd_sendbyteinatkbd_commandfails), but the keyboard otherwise works if that failure is ignored.I noticed this when my keyboard stopped working in 2.5.32.
I have verified that 2.5.31 (and probably all kernels before it) also do not set the LEDs on my USB-emulating-PS/2 keyboard.I cannot say whether the problem occurs with other USB
keyboards because I don't have one handy.
Quoted 6 lines
One cannot run the USB keyboard "natively" via Linux USB on this
motherboard because the BIOS does not seem to set an IRQ line for the USB controller. I've tried booting with "pci=biosirq", and I think I've tried all the relevant BIOS menu options, and I'm running the latest BIOS, and the VD133 product has been terminated. So the patch does seem to be "necessary" to support some configurations, at least for now.
I cannot do that, since then the keyboard identification will give too many positives.
I assume you have an USB keyboard, and the BIOS emulates a PS/2 keyboard for non-USB capable OSes.
Well, fix Linux irq router code, instead of damaging the keyboard code.
The mainboard has VIA Apollo Pro133 chipset - it should be fairly easily possible to change the IRQ routes in the pci-irq.c code for the USB controller.
Quoted 20 lines
drivers/input/keyboard/atkbd.c +4
-4@@ -359,13 +359,13 @@#endif /* -* Next we check we can set LEDs on the keyboard. This should work on every -* keyboard out there. It also turns the LEDs off, which we want anyway. +* Turn off LEDs. This command fails on at least a BTC 7932M USB keyboard +* connected to an Iwill VD133 motherboard that is configured to emulate +* a PS/2 keyboard via USB. */ param[0 ] =0 ; -if (atkbd_command (atkbd, param,ATKBD_CMD_SETLEDS )) -return -1 ; +atkbd_command (atkbd, param,ATKBD_CMD_SETLEDS );/* * Then we check the keyboard ID. We should get 0xab83 under normal conditions.
Signature · 2 lines
Vojtech Pavlik SuSE Labs