[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: USB Keyboard



Submitted 04-Feb-02 by  Bruce Burhans:
 
>     I'm encouraged, Anton. The modules will be on the 2.2r5 CDs? I can
> live with a fast repeat-rate for awhile, but not without a KB! Do I need
> to write anything into...
> ... / LILO config?

Nothing, works out of the box if your BIOS supports a USB keyboard.
That's the native "Boot Protocol" mode, which had the too fast key
repeat here.  The modules should be installed with stock Debian kernel.
There are, a few things to be aware of.

 1) The keyboard should be plugged into the root hub (i.e. a port on the
motherboard) as opposed to an external hub.  The ability for the machine
to detect it at boot time can be affected by this.

 2) When using the modules, there are three different USB drivers and
which one will work for you may take a bit of "playing".  The modules I
use are defined in a couple different files, so we'll go step by step:

  In /etc/modules, add a line that reads "#usb-interface"
  I have a four line file /etc/modutils/usb that reads:

    alias usb-interface usb-uhci
    post-install usb-interface modprobe input
    post-install input modprobe hid
    post-install hid modprobe keybdev

Some of these modules depend on each other and are pulled in by
default, but I just went overkill on it.  After generating the
modutils/usb file, run /sbin/update-modules.

We commented the line in /etc/modules because we don't want it
autoloading yet (usb-uhci could be the wrong driver).  Now comes the fun
part: /sbin/modprobe usb-interface

If all went well, you still have a working keyboard, with a much saner
repeat rate (this should be the case with most Intel based hardware).
If not, you may have to do a hard reboot (which is why the commented
line above was commented).  At that point, you'll want to try the
usb-ohci and uhci modules (one at a time, of course) in place of the
usb-uhci module.  Re-run /sbin/update-modules after each change to
/etc/modutils/usb, then do a modprobe usb-interface.  So, you could have
a couple reboots before it's all working right.  After it's all working,
uncomment (remove the '#' from) the line we added to /etc/modules.  This
will cause the usb modules to autoload at any reboot.

 3) Please take a look at http://www.linux-usb.org/USB-guide for
anything I may have left out here.

-- 
Anton Graham                            GPG ID: 0x18F78541
<bladehawke@amaesing.com>
 
H. L. Mencken suffers from the hallucination that he is H. L. Mencken --
there is no cure for a disease of that magnitude.
  -- Maxwell Bodenheim

Attachment: pgppcjJRDfTsO.pgp
Description: PGP signature


Reply to: