HOWTO: Find Out if Linux Recognizes my USB Device.
First understand that ‘recognize’ is different from ’supports’. Your GNU/Linux box may recognize your USB device, but that doesn’t mean it has the drivers to run it.
But don’t despair, recognizing a device is the first step to determining whether you can use said device.
Plug the device in and then in a terminal window, type:
lsusb
The terminal window should respond with a list of all detected USB devices. When I do this on my laptop with my cheapo $10 keychain digital camera plugged in I see:
Bus 003 Device 001: ID 0000:0000
Bus 002 Device 004: ID 2770:9120 NHJ, Ltd Che-ez! Snap / iClick Tiny VGA Digital Camera
Bus 002 Device 001: ID 0000:0000
Bus 001 Device 003: ID 04fc:0003 Sunplus Technology Co., Ltd CM1092 Optical Scroller Mouse
Bus 001 Device 001: ID 0000:0000
As you can see, both my USB mouse and cheap-o digital camera are listed. That means Linux recognizes them and may be able to deal with them as is. In my case, both my mouse and camera are usable without any further work on my part.
Related Stories
POSTED IN: General
6 opinions for HOWTO: Find Out if Linux Recognizes my USB Device.
New Linux User » HOWTO: Find Out if Linux Recognizes my PCI Device.
Sep 25, 2005 at 3:03 pm
[...] This is an almost verbatim copy of the post on how to determine whether your GNU/Linux box recognizes your USB device. [...]
craig
Sep 29, 2005 at 7:22 pm
Damn, I could have used this information yesterday trying to diagnose a bad USB hdd enclosure problem. Good to know, Thanks. :)
Jon
Sep 29, 2005 at 8:15 pm
Damn! If only we had launched one day earlier!
Everyone else who reads this, click on Craig’s name to get to his blog. Then read the post on adopting a penguin. Then adopt one. Do it.
You know you wanna…
New Linux User » EXPLAIN: What is DMESG?
Oct 12, 2005 at 7:29 am
[...] If your goal is to see if a PCI or USB piece of hardware has been detected, you may be able to use lspci or lsusb while the machine is running. [...]
sanjay ghosh
Sep 11, 2008 at 11:56 pm
wow … that was a really good piece of information …
only that I found it a bit too late … anyways please keep up the good work …
DSpider
Dec 13, 2008 at 9:23 pm
Holy shit ! Didn’t think it was THAT easy. I thought I had to look for some type of application to tell me what USB devices are hooked up to my PC.
lsusb
I’ll remember that for the rest of my life. Thank you for sharing with us.
Have an opinion? Leave a comment: