LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (http://www.linuxquestions.org/questions/slackware-14/)
-   -   uhci kills usb keyboard (http://www.linuxquestions.org/questions/slackware-14/uhci-kills-usb-keyboard-54087/)

pkdk657 04-08-2003 06:47 PM

uhci kills usb keyboard
 
executing modprobe usb-uhci disables my usb keyboard. What's the problem? My keyboard works fine with stock bare.i kernel from Slackware 8.1. I need the usb-uhci module to use my usb flash drive.

Excalibur 04-08-2003 10:24 PM

Well, if the bare.i kernel from Slack 8.1 was working with a USB keyboard without USB modules loaded then I suspect it was using BIOS compatible mode. By enabling the USB ports and making them hot it would disable the BIOS function.

After loading the usb-uhci module, then also load the usbkbd, input, and keybdev modules for the keyboard support. Of course you know by now that you can't type these commands in to the system. They have to be loaded from a script.

#!/bin/sh
/sbin/modprobe usb-uhci
/sbin/modprobe usbkbd
/sbin/modprobe input
/sbin/modprobe keybdev

You can create a script for the above and run it manually. You will need to do a "chmod 755 script_name" to make it executable after you create it. Use pico editor or other if you like. Then run it by using "./script_name". If it works OK then copy it to the /etc/rc.d directory and call it from the /etc/rc.d/rc.local script if you like. But I think they are also called from the rc.modules script if you locate them all and remove the remark from the line to enable it during bootup. The exception from what I could see is the "input" module, but that would autoload from the dependicies I would think for keybdev. But be carefull because the rc.modules executes on each boot. If it doesn't work then you will not be able to even login to the system to make any changes to it because the keyboard will not work. That is why I suggested using a separate script to make sure it was working prior to making the change to the startup scripts. The worse case there is to reset the system or maybe use the mouse to shutdown if GUI operation.

pkdk657 04-08-2003 11:51 PM

I tried the script. It worked!!! --thank you!! I'll try to move it to rc.modules next.


All times are GMT -5. The time now is 05:21 PM.