USB keyboard and printer not recognized
I'm running Slackware 10.2. I'd like to hook up my printer to use network printing via Samba and CUPS. Problem is, as far as I can tell slackware has no idea that any of the usb is there.
I don't even get a num-lock light on my usb keyboard! Any ideas? I get nothing from lsusb. Here's what I get in the log: # grep usb /var/log/messages Aug 27 09:35:00 server kernel: usb 2-1: new low speed USB device using ohci_hcd and address 2 Aug 27 09:35:01 server kernel: usb 2-1: configuration #1 chosen from 1 choice Aug 27 09:35:28 server kernel: usb 1-1: new full speed USB device using ohci_hcd and address 2 Aug 27 09:35:28 server kernel: usb 1-1: configuration #1 chosen from 1 choice Here's what I get from lspci: # lspci 00:00.0 Host bridge: Silicon Integrated Systems [SiS] 735 Host (rev 01) 00:01.0 PCI bridge: Silicon Integrated Systems [SiS] Virtual PCI-to-PCI bridge (AGP) 00:02.0 ISA bridge: Silicon Integrated Systems [SiS] SiS85C503/5513 (LPC Bridge) 00:02.1 SMBus: Silicon Integrated Systems [SiS] SiS961/2 SMBus Controller 00:02.2 USB Controller: Silicon Integrated Systems [SiS] USB 1.0 Controller (rev 07) 00:02.3 USB Controller: Silicon Integrated Systems [SiS] USB 1.0 Controller (rev 07) 00:02.5 IDE interface: Silicon Integrated Systems [SiS] 5513 [IDE] (rev d0) 00:02.7 Multimedia audio controller: Silicon Integrated Systems [SiS] Sound Controller (rev a0) 00:03.0 Ethernet controller: Silicon Integrated Systems [SiS] SiS900 PCI Fast Ethernet (rev 90) 01:00.0 VGA compatible controller: nVidia Corporation NV20 [GeForce3 Ti 200] (rev a3) I know there's been a lot of talk around these forums about how to get usb working properly, with udev and hotplug and all. I wasn't able to find a solution though. Any thoughts? Thanks in advance for your help! |
Okay, first of all you said your keyboard isn't recognized, what do you understand by that cause I see you can use your kbd just fine, please expand more. As for the output's you posted... not very convincing, you need to do 'lsusb' not 'lspci' and post the output here, also post 'lsmod' output.
|
I don't get anything from lsusb.
#lsusb # Here's what lsmod looks like: # lsmod Module Size Used by nfsd 52680 8 exportfs 4032 1 nfsd lockd 40456 2 nfsd sunrpc 122364 2 nfsd,lockd I do see that its getting recognized, but the keyboard still doesn't work. Can't type anything (I'm using a different computer to post this), and none of the Num-lock type buttons turn their coresponding lights on. Still pretty new at linux, Thanks for your help. |
Do you have USB and USB Printer support enabled in your kernel ? I myself have USB mouse/keyboard , printer and webcam connected to the USB ports and didn't have any problems, just needed to install the drivers and adjust some stuff. So first thing, check your kernel configuration and recompile it with the needed modules included.
|
I think so, to be honest I had a buddy of mine who is really good with linux help me get on my feet and get this box running. I'm pretty sure that he added that support, but is there a way for me to check? Possibly the .config file when we compiled the new kernel? (If so where can I find that?) Thanks! I greatly appreciate the help.
|
Quote:
|
Have you tried typing (at a root prompt)
Code:
modprobe -v usbcore Code:
modprobe -v printer Code:
modprobe -v hid Just looking at that lsmod of yours makes me suspicious :/ You have very few modules loaded and don't appear to have _any_ usb related modules loaded: Assuming you are using a standard 2.4.31 kernel off the Slackware CD, you should have lines similar to this line : Code:
usbcore 56812 1 [printer hid usbmouse pegasus uhci ehci-hcd] BTW are you getting the output from the slackware installation? Will it work with a ps2 keyboard? Is your mouse working and is it USB? |
Ok, I think its all comming into focus here. Here's the results from modprobe:
# modprobe -v usbcore FATAL: Module usbcore not found. # modprobe -v printer FATAL: Module printer not found. # modprobe -v hid FATAL: Module hid not found. Rut Roh. Probelm located. I actually did use PS2 for installing slackware on this box. It functions as my server, so I ssh into it almost exclusively. I don't need the keyboard functionality, but I would like to set up my usb printer, so I can print through the network. So, looks like I need to recompile the kernel. I know that my buddy compiled a new one, other than the usb, its running great. Here's the bits that he setup related to USB (from the .config file in the 2.6 source directory): # # USB support # CONFIG_USB_ARCH_HAS_HCD=y CONFIG_USB_ARCH_HAS_OHCI=y CONFIG_USB_ARCH_HAS_EHCI=y CONFIG_USB=y # CONFIG_USB_DEBUG is not set # # Miscellaneous USB options # # CONFIG_USB_DEVICEFS is not set # CONFIG_USB_BANDWIDTH is not set # CONFIG_USB_DYNAMIC_MINORS is not set # CONFIG_USB_OTG is not set # # USB Host Controller Drivers # # CONFIG_USB_EHCI_HCD is not set # CONFIG_USB_ISP116X_HCD is not set CONFIG_USB_OHCI_HCD=y # CONFIG_USB_OHCI_BIG_ENDIAN is not set CONFIG_USB_OHCI_LITTLE_ENDIAN=y # CONFIG_USB_UHCI_HCD is not set # CONFIG_USB_SL811_HCD is not set # # USB Device Class drivers # # CONFIG_USB_ACM is not set # CONFIG_USB_PRINTER is not set # # USB Input Devices # # CONFIG_USB_HID is not set # # USB HID Boot Protocol drivers # # CONFIG_USB_KBD is not set # CONFIG_USB_MOUSE is not set # CONFIG_USB_AIPTEK is not set # CONFIG_USB_WACOM is not set # CONFIG_USB_ACECAD is not set # CONFIG_USB_KBTAB is not set # CONFIG_USB_POWERMATE is not set # CONFIG_USB_TOUCHSCREEN is not set # CONFIG_USB_YEALINK is not set # CONFIG_USB_XPAD is not set # CONFIG_USB_ATI_REMOTE is not set # CONFIG_USB_ATI_REMOTE2 is not set # CONFIG_USB_KEYSPAN_REMOTE is not set # CONFIG_USB_APPLETOUCH is not set # # USB Miscellaneous drivers # # CONFIG_USB_EMI62 is not set # CONFIG_USB_EMI26 is not set # CONFIG_USB_AUERSWALD is not set # CONFIG_USB_RIO500 is not set # CONFIG_USB_LEGOTOWER is not set # CONFIG_USB_LCD is not set # CONFIG_USB_LED is not set # CONFIG_USB_CYTHERM is not set # CONFIG_USB_PHIDGETKIT is not set # CONFIG_USB_PHIDGETSERVO is not set # CONFIG_USB_IDMOUSE is not set # CONFIG_USB_LD is not set So odviously I'm shooting blanks here. Ok. Need to recompile. I need to be honest, I've compiled one kernel in my time (soon to be two). Which of these options do I need? Can I start with the configuration that he had setup and add the usb support? Thanks a bunch for your help! |
yes you can, just go into the dir where your kernel-source is located ( the one where .config is ) and make sure you're in the right one if you have more than 1 :). Then do a 'make menuconfig' (or make xconfig, or whatever you like) and start adding things. You can do this 2 ways, either select everything that is not already selected as modules or take every option and read it's Help, use a little bit of intuition and it should work but will be more time consuming. And here's your problem, I wonder why you didn't see it cause it's obvious
Code:
# USB Device Class drivers |
Good to be of help :)
You _might_ want to set this to load as a module as well. Code:
# CONFIG_USB_HID is not set Edit: added unnecessary advice. |
Quote:
I installed slackware with bare.i before I'd started to get an idea of what the kernel did and haven't got the ACPI setup on my laptop and rather than upgrading to a 2.6 kernel, I wondered whether this could be used to modify what was already working by just adding ACPI. Thanks |
Yes you can do this . ACPI support is under 'General Setup' under 'make menuconfig'
If this is your first kernel build it's a good idea to read the excellent howtos on this site first. |
Quote:
|
Quote:
I was able to restart, select the new kernel, but it'd get part way through booting & then bring up a stream of errors which and then would say press enter to reboot. This just brought up more errors, then went to the login screen, but wouldn't do anything beyond that. I couldn't work out how to copy the error message to show on here, but part of it referred to Attempt to remount root device as read-write failed! This is going to cause serious problems. If you're using the UMSDOS filesystem, you **MUST** mount the root partition read-write with 'rw' flag to Loadlin: loadlin vmlinuz root=/dev/hda1 rw (replace /dev/hda1 with your root device) Normal bootdisks can be made to mount a system read-write with the rdev command: rdev -R /dev/fd0 0 You can also get into your system by using a boot disk with a comman dlike this on the LILO promt line: (change the root partition name as needed) LILO: mount root /dev/hda1 rw Please press ENTER to continue, then reboot and use onr of the above methods to get into your machince and start looking for the problem. I did find this thread that may be an explanation. http://www.linuxquestions.org/questi...hlight=loadlin I'll have another look tomorrow when I've got more time & maybe somethine will solve it. If not, I'll try recompiling the kernel. Maybe even be brave and change to a 2.6 kernel. Thanks anyway. |
Hmm, I think I've misguided you... you said you're using 2.4.31 kernel ( Slackware 10.2 default ) right ? If you do then I pointed you to the 2.4.33.2 kernel, try the one from HERE. That should be the 2.4.31 bareacpi. Could you post your lilo.conf file here ? With the modifications you've made to it ?
|
All times are GMT -5. The time now is 11:03 AM. |