LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 12-14-2006, 09:27 AM   #1
fasta
Member
 
Registered: Aug 2003
Location: Livorno - Italy
Distribution: Debian
Posts: 84

Rep: Reputation: 15
A quick way to find out module names?


Hi. Simple question. Is there a way to find an exact module name which has to be loaded for a piece of hardware, besides trying to guess it from the kernel drivers folder or google it?
 
Old 12-14-2006, 09:32 AM   #2
kalleanka
Member
 
Registered: Aug 2003
Location: Mallorca, Spain
Distribution: xubuntu
Posts: 551

Rep: Reputation: 38
lsmod
modprobe -l

if I understood your question rigth.
 
Old 12-14-2006, 09:41 AM   #3
fasta
Member
 
Registered: Aug 2003
Location: Livorno - Italy
Distribution: Debian
Posts: 84

Original Poster
Rep: Reputation: 15
Not really I am a piece of crap in English. Sorry.
Suppose i installed a new Network Card: Broadcom WhateverModel Gigabit bla bla. How do I find out the module name that covers this piece of hardware? Suppose it has not been loaded for any absurd reason of your choice and my Network Card is not working. All I need to do is jump into /lib/module/$(uname -r)/kernel/drivers/net and browse the whole sh*tload of modules of the standard kernel. There! I do not know the module name that "covers" my hardware i.e. I can't neither modprobe neither insmod. Clear enough?
Sorry for fuzzy languaging

Last edited by fasta; 12-14-2006 at 09:43 AM.
 
Old 12-14-2006, 10:19 AM   #4
kalleanka
Member
 
Registered: Aug 2003
Location: Mallorca, Spain
Distribution: xubuntu
Posts: 551

Rep: Reputation: 38
I think the nly way is to surf around. Sorry.
 
Old 12-14-2006, 10:22 AM   #5
fasta
Member
 
Registered: Aug 2003
Location: Livorno - Italy
Distribution: Debian
Posts: 84

Original Poster
Rep: Reputation: 15
There HAS to be a way...
 
Old 12-14-2006, 10:44 AM   #6
fasta
Member
 
Registered: Aug 2003
Location: Livorno - Italy
Distribution: Debian
Posts: 84

Original Poster
Rep: Reputation: 15
In any case,
Quote:
find /lib/modules/$(uname -r)/ | xargs -i% modinfo % > /tmp/mods.txt
might even help a bit...
in /tmp/mods.txt I could find out the vendor name (or manufacturer) and figure out the module name...
Any other better hint?

Last edited by fasta; 12-14-2006 at 10:45 AM.
 
Old 12-14-2006, 11:43 AM   #7
nx5000
Senior Member
 
Registered: Sep 2005
Location: Out
Posts: 3,307

Rep: Reputation: 57
http://wiki.archlinux.org/index.php/ModaliasPrimer

for example with my wireless card:

lspci | grep Wireless
01:04.0 Network controller: Intel Corporation PRO/Wireless 2200BG Network Connection (rev 05)


cat /devices/pci0000:00/0000:00:1e.0/0000:01:04.0/modalias

pci:v00008086d00004220sv0000103Csd000012F6bc02sc80i00

grep pci:v00008086d00004220sv /lib/modules/`uname -r`/modules.alias

alias pci:v00008086d00004220sv*sd*bc*sc*i* ipw2200

The corresponding driver is ipw2200

Sometimes such automatic detection doesn't work.
 
Old 12-14-2006, 10:27 PM   #8
fasta
Member
 
Registered: Aug 2003
Location: Livorno - Italy
Distribution: Debian
Posts: 84

Original Poster
Rep: Reputation: 15
Nice one. Which distro are u on?
 
Old 12-15-2006, 06:26 AM   #9
nx5000
Senior Member
 
Registered: Sep 2005
Location: Out
Posts: 3,307

Rep: Reputation: 57
A happy Unstable and Sarge user ;-)
What about you?
 
Old 12-18-2006, 02:10 AM   #10
fasta
Member
 
Registered: Aug 2003
Location: Livorno - Italy
Distribution: Debian
Posts: 84

Original Poster
Rep: Reputation: 15
Very happy Sarge & Etch user! This last one mostly...
 
Old 12-21-2006, 03:45 PM   #11
fasta
Member
 
Registered: Aug 2003
Location: Livorno - Italy
Distribution: Debian
Posts: 84

Original Poster
Rep: Reputation: 15
I am just curious where you find this

Quote:
cat /devices/pci0000:00/0000:00:1e.0/0000:01:04.0/modalias
in your debian installation... ?
 
Old 12-22-2006, 04:45 AM   #12
nx5000
Senior Member
 
Registered: Sep 2005
Location: Out
Posts: 3,307

Rep: Reputation: 57
Quote:
Originally Posted by fasta
I am just curious where you find this



in your debian installation... ?
yeah something missing
cat /sys/devices ...

Good spot
 
Old 12-23-2006, 01:55 AM   #13
fasta
Member
 
Registered: Aug 2003
Location: Livorno - Italy
Distribution: Debian
Posts: 84

Original Poster
Rep: Reputation: 15
aaaw! Gotcha!!!
nice!
 
  


Reply



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
Find out module names fasta Debian 2 12-14-2006 10:33 AM
List of kernel module names (database) when helping newbies Emmanuel_uk Linux - Newbie 2 11-16-2005 07:03 AM
kernel module names and config description? mosca Linux - General 1 08-01-2004 06:23 AM
how to find volume names for CD? sanglih Linux - Software 0 06-24-2002 11:57 AM
kernel upgrade and module names incompatibility and /etc/modules.conf concoran Linux - General 2 11-29-2001 07:48 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 04:23 PM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration