LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   USB keyboard and printer not recognized (https://www.linuxquestions.org/questions/slackware-14/usb-keyboard-and-printer-not-recognized-477825/)

c4onastick 08-27-2006 01:01 PM

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!

nykey 08-28-2006 05:52 AM

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.

c4onastick 08-28-2006 10:15 AM

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.

nykey 08-28-2006 11:23 AM

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.

c4onastick 08-28-2006 03:52 PM

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.

c4onastick 08-28-2006 03:55 PM

Quote:

Originally Posted by c4onastick
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

As an aside, what is that sunrpc? Do I need it?

Eternal_Newbie 08-28-2006 07:42 PM

Have you tried typing (at a root prompt)
Code:

modprobe -v usbcore
or
Code:

modprobe -v printer
or
Code:

modprobe -v hid
These may help, but probaby won't but might give interesting error messages

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]
that particular line refers to the usbcore module and the modules that depend on it .

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?

c4onastick 08-28-2006 10:07 PM

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!

nykey 08-29-2006 01:30 AM

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
#
# 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

These are the most important things you're missing.

Eternal_Newbie 08-29-2006 09:15 AM

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
this is for USB Human Interface Device (full HID) support. Apparently superior to the USB Boot protocol (HIDBP) drivers.

Edit: added unnecessary advice.

Interdictor 08-29-2006 09:41 AM

Quote:

Originally Posted by nykey
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.

Out of interest, could this process be used to add ACPI support to a 2.4.31 bare.i kernel effectively converting it to the bareacpi.i kernel?

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

Eternal_Newbie 08-29-2006 09:50 AM

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.

nykey 08-29-2006 10:24 AM

Quote:

Originally Posted by Interdictor
Out of interest, could this process be used to add ACPI support to a 2.4.31 bare.i kernel effectively converting it to the bareacpi.i kernel?

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 that like Eternal_Newbie said, or you can try this (I haven't tested it but theoretically it should work, because bareacpi is exactly the bare kernel you installed + ACPI support): Download the bareacpi.i bzImage and save it in your /boot directory. Then edit your /etc/lilo.conf file and add a proper line for the new image ( bzImage ) and name it something else than your old bare kernel. Then do 'lilo -v' , make sure no important errors occur, reboot and choose to boot the new kernel you've added... if it works OK keep it, if it doesn't work or doesn't boot, just boot your old kernel and delete the /boot/bzImage.

Interdictor 08-29-2006 03:44 PM

Quote:

Originally Posted by nykey
Yes, you can do that like Eternal_Newbie said, or you can try this (I haven't tested it but theoretically it should work, because bareacpi is exactly the bare kernel you installed + ACPI support): Download the bareacpi.i bzImage and save it in your /boot directory. Then edit your /etc/lilo.conf file and add a proper line for the new image ( bzImage ) and name it something else than your old bare kernel. Then do 'lilo -v' , make sure no important errors occur, reboot and choose to boot the new kernel you've added... if it works OK keep it, if it doesn't work or doesn't boot, just boot your old kernel and delete the /boot/bzImage.

I tried that on a spare machine I use for testing (with a clean install of Slackware 10.2) before I make a change, sadly, it didn't work. It seemed to work - no errors after typing "lilo -v" etc.

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.

nykey 08-29-2006 03:51 PM

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.