LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices

Reply
 
Search this Thread
Old 08-27-2006, 01:01 PM   #1
c4onastick
Member
 
Registered: Aug 2006
Distribution: Slackware
Posts: 51

Rep: Reputation: 15
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!

Last edited by c4onastick; 08-27-2006 at 01:02 PM.
 
Old 08-28-2006, 05:52 AM   #2
nykey
Member
 
Registered: Nov 2003
Location: Tg-Jiu, Romania
Distribution: OpenSUSE 11.1 / echo "Windows XP" > Trash
Posts: 360

Rep: Reputation: 30
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.
 
Old 08-28-2006, 10:15 AM   #3
c4onastick
Member
 
Registered: Aug 2006
Distribution: Slackware
Posts: 51

Original Poster
Rep: Reputation: 15
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.

Last edited by c4onastick; 08-28-2006 at 03:50 PM.
 
Old 08-28-2006, 11:23 AM   #4
nykey
Member
 
Registered: Nov 2003
Location: Tg-Jiu, Romania
Distribution: OpenSUSE 11.1 / echo "Windows XP" > Trash
Posts: 360

Rep: Reputation: 30
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.
 
Old 08-28-2006, 03:52 PM   #5
c4onastick
Member
 
Registered: Aug 2006
Distribution: Slackware
Posts: 51

Original Poster
Rep: Reputation: 15
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.
 
Old 08-28-2006, 03:55 PM   #6
c4onastick
Member
 
Registered: Aug 2006
Distribution: Slackware
Posts: 51

Original Poster
Rep: Reputation: 15
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?
 
Old 08-28-2006, 07:42 PM   #7
Eternal_Newbie
Member
 
Registered: Jun 2005
Location: The Pudding Isles
Distribution: Slackware 13.37
Posts: 573

Rep: Reputation: 58
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?

Last edited by Eternal_Newbie; 08-28-2006 at 07:48 PM.
 
Old 08-28-2006, 10:07 PM   #8
c4onastick
Member
 
Registered: Aug 2006
Distribution: Slackware
Posts: 51

Original Poster
Rep: Reputation: 15
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!

Last edited by c4onastick; 08-28-2006 at 10:31 PM.
 
Old 08-29-2006, 01:30 AM   #9
nykey
Member
 
Registered: Nov 2003
Location: Tg-Jiu, Romania
Distribution: OpenSUSE 11.1 / echo "Windows XP" > Trash
Posts: 360

Rep: Reputation: 30
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.
 
Old 08-29-2006, 09:15 AM   #10
Eternal_Newbie
Member
 
Registered: Jun 2005
Location: The Pudding Isles
Distribution: Slackware 13.37
Posts: 573

Rep: Reputation: 58
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.

Last edited by Eternal_Newbie; 08-29-2006 at 09:42 AM.
 
Old 08-29-2006, 09:41 AM   #11
Interdictor
Member
 
Registered: Jul 2006
Location: Runcorn, England
Distribution: Ubuntu 6.06 & 6.1, Mandriva 2007, Knoppix
Posts: 72

Rep: Reputation: 15
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
 
Old 08-29-2006, 09:50 AM   #12
Eternal_Newbie
Member
 
Registered: Jun 2005
Location: The Pudding Isles
Distribution: Slackware 13.37
Posts: 573

Rep: Reputation: 58
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.
 
Old 08-29-2006, 10:24 AM   #13
nykey
Member
 
Registered: Nov 2003
Location: Tg-Jiu, Romania
Distribution: OpenSUSE 11.1 / echo "Windows XP" > Trash
Posts: 360

Rep: Reputation: 30
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.
 
Old 08-29-2006, 03:44 PM   #14
Interdictor
Member
 
Registered: Jul 2006
Location: Runcorn, England
Distribution: Ubuntu 6.06 & 6.1, Mandriva 2007, Knoppix
Posts: 72

Rep: Reputation: 15
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.
 
Old 08-29-2006, 03:51 PM   #15
nykey
Member
 
Registered: Nov 2003
Location: Tg-Jiu, Romania
Distribution: OpenSUSE 11.1 / echo "Windows XP" > Trash
Posts: 360

Rep: Reputation: 30
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 ?
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
USB Keyboard Extended Codes not being recognized jkoeller Linux - Hardware 2 03-28-2006 08:33 AM
USB Keyboard not recognized on boot screen using fedora 3 rebel penguin Linux - Newbie 2 05-24-2005 04:55 AM
USB keyboard recognized but not working on 2.6.8 joyman555 Linux - Hardware 4 04-08-2005 10:41 PM
USB keyboard not recognized in mandrake FrankZappa17_4 Linux - Hardware 0 08-18-2004 03:32 PM
My USB printer is recognized, but will not print. MackH Linux - Hardware 2 06-12-2004 10:35 PM


All times are GMT -5. The time now is 06:32 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration