14

I have been administering Linux systems for years now, but usually they are commodity boxes and as a result I rarely have driver problems, short of needing to install some "restricted" or "proprietary" driver package, or manually installing the nvidia binary drivers back in the day.

However, one question to which I have never picked up a straight answer regards common troubleshooting practice. Will lsusb and lspci list device for which a system has no drivers (kernel modules)? I am trying to install a webcam on a SiS-chipset laptop and though I can see a physical webcam, neither lsusb or lspci are showing me that any webcam-like device exists.

What I want to know is if it would show anything, or if it needs drivers in order to show a device?

1
  • 1
    Hello. Did you solve the problem with your web cam? I have the same issue - I connected a new usb web cam to pc but it is not detected by lsusb.
    – ThatsMe
    Commented Mar 19, 2016 at 15:18

4 Answers 4

15

lsusb and lspci scan the buses at a low level, and do not require drivers in order for the devices to be found beyond those for the buses themselves.

2
  • that's the assumption I have operated on but thank you for the answer!
    – J Mac
    Commented Jul 20, 2010 at 14:43
  • then what about kernel modules aren't they work like drivers? Commented Aug 18, 2023 at 12:16
4

As Ignacio says, lsusb and lspci do not need drivers - if something is connected they will show it, though they may only show a few numbers without any descriptive text if the connected device is not recognised - that is if the id number of the connected device is not in the database of values.

If there is not even an unlabelled device in the output, then it is likely your webcam is dead, or possible the USB port is dead. I would try the webcam in another computer, and try another device in the USB port. Does the webcam have any switch on it?

Also note that lspci will show USB controllers on the PCI bus, but it will not list any devices connected to those controllers, only lsusb will show that.

2
  • it's hard to think the webcam is dead, as it is integrated and the computer is brand new!
    – J Mac
    Commented Jul 20, 2010 at 14:43
  • I wonder if this means it is not turned on somehow, much like the wlan device not being detected until its switched on using the fn key sequence.
    – J Mac
    Commented Jul 20, 2010 at 14:44
4

Try "lshw" as superuser. It gives a detailed list of all hardware, your camera and details about it should be listed in there.

1
  • Your answer misses the main point here because you failed to mention whether lshw will show devices without drivers or not. That said, I believe other answers imply that for PCI and USB buses lshw should work disregarding drivers availability.
    – Hi-Angel
    Commented Mar 21, 2021 at 13:47
0

Try update-pciids and update-usbids(?) to update the local database of lspci/lsusb. Maybe the description of the webcam device is a very generic in the output of lsusb?

1
  • 1
    I ended up monitoring dmesg with the watch command, and then started holding down the function key and hitting random buttons. Sure enough, one of them powered on the missing webcam and it popped up in dmesg. now i just need to figure out why it's not creating a /dev/video node...
    – J Mac
    Commented Jul 22, 2010 at 3:27

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .