I selected USB for the mouse (not asked for keyboard) during setup, and
lsmod gives me this:
Module Size Used by
autofs 11232 0 (autoclean) (unused)
ipchains 36000 0
mousedev 4192 1
keybdev 2000 0 (unused)
hid 19408 0 (unused)
usbkbd 3232 0 (unused)
input 3552 0 [mousedev keybdev hid usbkbd]
usb-ohci 17936 0 (unused)
usbcore 49792 1 [hid usbkbd usb-ohci]
tulip 37696 1
ext3 61936 2
jbd 38976 2 [ext3]
I get valid USB messages when I boot up. The usb keyboard works up until
linux starts (it works fine in DOS with BIOS). I have it connected through
an IOGear USB KVM which works great for my other machines.
Any ideas? Until I fix this, I am forced to use a telnet session...
Thanks.
Don't use hid and usbkdb at the same time. Try just usb-ohci and hid.
From kernel config help:
USB Human Interface Device (full HID) support
CONFIG_USB_HID
Say Y here if you want full HID support to connect keyboards,
mice, joysticks, graphic tablets, or any other HID based devices
to your computer via USB. You __can't__ use this driver and the
HIDBP (Boot Protocol) keyboard and mouse drivers at the same time.
More information is available: <file:Documentation/input/input.txt>.
If unsure, say Y.
This code is also available as a module ( = code which can be
inserted in and removed from the running kernel whenever you want).
The module will be called hid.o. If you want to compile it as a
module, say M here and read <file:Documentation/modules.txt>.
> Don't use hid and usbkdb at the same time. Try just usb-ohci and hid.
> From kernel config help:
How do I prevent usbkbd from starting? This is basically a default rh 7.2
install.
Thanks,
Look for it on /etc/rc.modules. Comment out the line that loads the
module.
Sorry for the basic questions, but I am a linux newbie. I am runnig RedHat
7.2 and I don't seem to have an /etc/rc.modules file.
Is there a way I can add a usb-keyboard and usb-mouse manually.
Thanks,
They were handled automatically by kudzu detecting the hardware, and the
built-in USB management tools automatically loading the modules as needed. I
take it this isn't happening for you? Have you tried installing and running
kudzu (which is much better than it used to be, honest!)?
Look at /etc/modules.conf, it should be in there. This is the standard
file for the autoloading of modules.
> Look at /etc/modules.conf, it should be in there. This is the standard
> file for the autoloading of modules.
This is what that file has in it:
alias parport_lowlevel parport_pc
alias eth0 tulip
alias usb-controller usb-ohci
I have kudzu running and disconnected and reconnected my USB keyboard.
After rebooting, it came up and said there was new hardware. It defaulted
to USB keyboard so I selected it and continued. The keyboard however still
does not work. Only in Linux, it works fine in Windows, DOS, and even in
the linux install for about the first minute. AFter this, I am forced to
continue with a PS/2 keyboard.
lsmod gives me this:
Module Size Used by
usbkbd 3232 0 (unused)
autofs 11232 0 (autoclean) (unused)
tulip 37728 1
ipt_REJECT 3392 2 (autoclean)
iptable_nat 16528 0 (autoclean) (unused)
ip_conntrack 15824 1 (autoclean) [iptable_nat]
iptable_mangle 2160 0 (autoclean) (unused)
iptable_filter 2128 0 (autoclean) (unused)
ip_tables 10944 6 [ipt_REJECT iptable_nat iptable_mangle
iptable_filter]
mousedev 4192 0 (unused)
keybdev 2000 0 (unused)
hid 19408 0 (unused)
input 3552 0 [usbkbd mousedev keybdev hid]
usb-ohci 17936 0 (unused)
usbcore 49792 1 [usbkbd hid usb-ohci]
ext3 61936 2
jbd 38976 2 [ext3]
Someone suggested that I not run usbkbd and usb-ohci together. While I
have no idea how this happened (as this is just a default RH 7.2 install), I
tried killing the process and that did not work either. I also tried to
find out where usbkbd is started, but couldn't find it.
Any help would be appreciated.
Thanks,
I will have to check the redhat scripts later tonight to find out
where redhat loads this module but to remove it you can su to root and
run:
rmmod usbkbd
You can read about the different modules in
/usr/share/doc/kernel-(your kernel version)/input/input.txt. I had
problems with the defaults in the redhat install, I am using the SGI
xfs install and my usb mouse worked fine during the install but upon
boot it no longer worked. I was able to put:
usbdevfs /proc/bus/usb usbdevfs defaults 0 0
in /etc/fstab and all worked fine. I had other problems though, like
sound, so I just compiled these into the kernel. You can use usbkbd
with usb-ohci but not with the keybdev module. In your kernel config
you will see that one supplies full hid support for usb input devices
and the other supplies seperate modules for keyboard and mouse. I
would just recompile the kernel selecting full hid support and
unselecting the seperate modules. The easy way to do this is to su to
root and from /usr/src/linux-(your kernel version) run make xconfig,
you can then select the usb section. Unselect the seperate keyboard
and mouse support and select the full hid support (which will grey out
the seperate modules). Now, save your config and run make modules, and
then run make modules_install. That should take care of it. If you
have any other problems I will be checking which modules each
selection compiles and which ones need to be loaded later tonight and
will post a follow up then. Hope this helps!
Don't bother unless you're in a hurry. There is a cron job that flushes
unused modules every 10 minutes.
> I will have to check the redhat scripts later tonight to find out
> where redhat loads this module but to remove it you can su to root and
> run:
> rmmod usbkbd
> You can read about the different modules in
> /usr/share/doc/kernel-(your kernel version)/input/input.txt. I had
> problems with the defaults in the redhat install, I am using the SGI
> xfs install and my usb mouse worked fine during the install but upon
> boot it no longer worked. I was able to put:
> usbdevfs /proc/bus/usb usbdevfs defaults 0 0
I don't know why I didn't try testing this before, but my problem seems to
be related to the USB KVM switch I am running. I am using the IOGear
MiniView II USB KVM switch which works fine for Windows, DOS, and as I
mentioned, Linux (at least the first 2 mins of the install).
Does anyone know if there are special settings required for my KVM? It is
supposed to emulate a normal USB keyboard/mouse (which it seems to do just
fine as it works in plain-old DOS).
Thanks,