LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Debian (https://www.linuxquestions.org/questions/debian-26/)
-   -   How would I know what to modprobe, what to m-a a-i, etc for hardware? (https://www.linuxquestions.org/questions/debian-26/how-would-i-know-what-to-modprobe-what-to-m-a-a-i-etc-for-hardware-666139/)

lefty.crupps 08-28-2008 04:28 PM

How would I know what to modprobe, what to m-a a-i, etc for hardware?
 
In general Debian's hardware support is great, but occasionally I need to modprobe a driver or run 'm-a a-i ___' . This often seems to work but its just due to random stumble-upons over the net.

How do people know which hardware and the corresponding software to do this with?

wernerz 08-28-2008 04:46 PM

modprobe -l|more = List all available kernel modules

lspci = Will display pci devices on you're system

lsusb = Will display usb devices

lsmod = Display loaded modules

I have used lspci and lsusb to find my hardware. Then I do the modprobe -l|more to try and match a module with a hardware device. The modprobe -l |more command will display drivers by type. Example below:

$ modprobe -l

/lib/modules/2.6.12/net/wlan_xauth.ko
/lib/modules/2.6.12/net/wlan_wep.ko
/lib/modules/2.6.12/net/wlan_tkip.ko
/lib/modules/2.6.12/net/wlan_ccmp.ko
/lib/modules/2.6.12/net/wlan_acl.ko
/lib/modules/2.6.12/net/wlan.ko
/lib/modules/2.6.12/net/ath_rate_onoe.ko
/lib/modules/2.6.12/net/ath_pci.ko
/lib/modules/2.6.12/net/ath_hal.ko
/lib/modules/2.6.12/misc/ndiswrapper.ko
/lib/modules/2.6.12/misc/ltserial.ko
/lib/modules/2.6.12/misc/ltmodem.ko
/lib/modules/2.6.12/linux-wlan-ng/prism2_usb.ko
/lib/modules/2.6.12/linux-wlan-ng/prism2_plx.ko
/lib/modules/2.6.12/linux-wlan-ng/prism2_pci.ko
/lib/modules/2.6.12/linux-wlan-ng/prism2_cs.ko
/lib/modules/2.6.12/linux-wlan-ng/p80211.ko
/lib/modules/2.6.12/kernel/sound/usb/usx2y/snd-usb-usx2y.ko
/lib/modules/2.6.12/kernel/sound/usb/snd-usb-lib.ko
/lib/modules/2.6.12/kernel/sound/usb/snd-usb-audio.ko
/lib/modules/2.6.12/kernel/sound/synth/snd-util-mem.ko
/lib/modules/2.6.12/kernel/sound/synth/emux/snd-emux-synth.ko
/lib/modules/2.6.12/kernel/sound/soundcore.ko
/lib/modules/2.6.12/kernel/sound/pcmcia/vx/snd-vxpocket.ko
/lib/modules/2.6.12/kernel/sound/pcmcia/vx/snd-vxp440.ko
/lib/modules/2.6.12/kernel/sound/pcmcia/vx/snd-vx-cs.ko
/lib/modules/2.6.12/kernel/sound/pcmcia/pdaudiocf/snd-pdaudiocf.ko
/lib/modules/2.6.12/kernel/sound/pci/ymfpci/snd-ymfpci.ko
/lib/modules/2.6.12/kernel/sound/pci/vx222/snd-vx222.ko

Hope this helps a bit.

lefty.crupps 09-19-2008 02:13 PM

Ok but recently I got an older webcam; when I plug it in I get this:

$ dmesg
...
...
[19490.687420] usb 4-1.4: new full speed USB device using ehci_hcd and address 6
[19490.782448] usb 4-1.4: configuration #1 chosen from 1 choice
[19490.783932] usb 4-1.4: New USB device found, idVendor=05a9, idProduct=8519
[19490.783940] usb 4-1.4: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[19490.783944] usb 4-1.4: Product: USB Camera
[19490.783947] usb 4-1.4: Manufacturer: OmniVision Technologies, Inc.

$ lsusb
Bus 001 Device 003: ID 413c:3010 Dell Computer Corp. Optical Wheel Mouse
Bus 001 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 004 Device 006: ID 05a9:8519 OmniVision Technologies, Inc. OV519 WebCam
Bus 004 Device 002: ID 0424:2504 Standard Microsystems Corp. USB 2.0 Hub
Bus 004 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub

So I now know that this USB device is also known as '05a9:8519' -- but what driver would I search for to match this device?

kaz2100 09-19-2008 03:05 PM

http://alpha.dyndns.org/ov511/cameras.html
http://www.rastageeks.org/ov51x-jpeg....php/Main_Page

lefty.crupps 09-25-2008 01:16 PM

Thanks; I was hoping for something within apt/aptitude or even within some sort of official Debian HCL website.

I was able to google the driver for this before the post, but my question is: how would I know that if, say, there were no results from my websearch? How would I know that if someone didn't spend the time making these websites?

Where would I point a newbie to find drivers for their hardware, without hoping they'll stumble across it on various weblinks that may be relevant but are "wrong" in their eyes because the branding is different on the casing?

How is this done without a websearch?

farslayer 09-25-2008 02:53 PM

The web is your documentation for Linux, whenever you deal with various hardware you will end up doing some searching t find out which module to load or what driver to use. I prefer to search BEFORE I buy hardware to find a device that is well supported in Linux. That reduces the amount of custom modules that need installed or compiled.

The Internet is your documentation for Windows as well. The issues I ran into on my Production MS SQL Server and our MS Dynamics AX Accounting system today would not have been resolved in a timely fashion without Google, and the various other bits of documentation out there on the web. We spent around $250,000.00 on the accounting system and licensing and I still end up searching the Internet for answers. Kinda sick isn't it ?


All times are GMT -5. The time now is 10:09 PM.