load usb printer module -> usb kb keys lost???

Albrecht Dreß yellowdog-general@lists.terrasoftsolutions.com
Sun Dec 29 05:09:01 2002


Hi!

I think I found a strange bug in the interaction of the USB printer and hid 
(kb) modules....

I tried to get the volume and cd eject keys of the apple kb working. Booting 
*without* the usb printer module (printer.o) loaded, xev reports keycodes 
165, 158 and 166 for the volume keys and 116 for the cd eject key (btw, the 
right apple key also reports keycode 116). Using xbindkeys, I could bind 
aumix and eject actions to these keys.

Now I run "modprobe printer" with a HP deskjet 3320 connected to the usb, 
and xev does not report any event any more for the volume and eject keys. 
The right apple key, however, still reports code 116, and all other keys 
seem to work, too. The printer also works fine. Removing the printer module 
does not change this behaviour (== volume/eject keys are still dead).

Sometimes the keys are still working after loading the printer module. 
However, running "rmmod printer; modprobe printer" *will* kill the keys 
after a few tries (usually upon the second one...).

My system is a G4/800 Silver, running 2.4.20-ben1. The USB tree looks as 
follows:

+ USB OHCI Root Hub
|  + deskjet 3320
+ USB OHCI Root Hub
    + General Purpose USB Hub [in Formac 1740 flat panel display]
       + Hub in Apple Extended USB Keyboard
          + Apple Extended USB Keyboard
          + Apple Optical USB Mouse

Thanks in advance for any help,

	Albrecht.


-- 
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  Albrecht Dreß  -  Johanna-Kirchner-Straße 13  -  D-53123 Bonn (Germany)
        Phone (+49) 228 6199571  -  mailto:albrecht.dress@arcor.de
_________________________________________________________________________