SlackwareThis Forum is for the discussion of Slackware Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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 ?
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.