LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Tool to retrieve drivers information on Linux? (https://www.linuxquestions.org/questions/linux-newbie-8/tool-to-retrieve-drivers-information-on-linux-806006/)

ajeetsinghraina 05-05-2010 12:55 AM

Tool to retrieve drivers information on Linux?
 
We have driversquery software in Windows which list all the hardware and storage drivers. I am aware of lsmod and modinfo command but is there any customized tool which on run should display the overall drivers (both storage and hardware) on linux Machine.

craigevil 05-05-2010 07:01 AM

dmidecode
lscpi
hwinfo
sysinfo


inxi
$ inxi -F
System: Host craigevil Kernel 2.6.33-3.dmz.2-liquorix-686 i686 (32 bit) Distro Debian GNU/Linux squeeze/sid
CPU: Single core Intel Pentium 4 (UP) cache 1024 KB flags (lm nx sse sse2 sse3) bmips 5586.49
Clock Speeds: (1) 2793.245 MHz (2) 2793.245 MHz
Graphics: Card nVidia G96 [GeForce 9400 GT] X.Org 1.7.7 Res: 1280x1024@50.0hz
GLX Renderer GeForce 9400 GT/PCI/SSE2 GLX Version 3.2.0 NVIDIA 195.36.24 Direct Rendering Yes
Audio: Card-1 Intel 82801FB/FBM/FR/FW/FRW (ICH6 Family) High Definition Audio Controller driver HDA Intel BusID: 00:1b.0
Card-2 Atmel Corp. Tux Droid fish dongle driver snd-usb-audio
Sound: Advanced Linux Sound Architecture Version 1.0.21
Network: Card Intel 82562ET/EZ/GT/GZ - PRO/100 VE (LOM) Ethernet Controller driver e100 v: 3.5.24-k2-NAPI at port dcc0 BusID: 03:08.0
Disks: HDD Total Size: 160.0GB (16.6% used) 1: /dev/sda WDC_WD1600JS 160.0GB
Partition: ID:/ size: 103G used: 25G (26%) fs: ext3 ID:swap-1 size: 5.25GB used: 0.00GB (0%) fs: swap
Info: Processes 93 Uptime 44 min Memory 254.4/2016.4MB Runlevel 5 Client Shell inxi 1.4.9

ajeetsinghraina 05-05-2010 07:28 AM

I think inxi was Google Summer code project and that works only on Debian.
Am I correct?

craigevil 05-05-2010 03:09 PM

Inxi has been developed so that it should work reasonably well on most GNU/Linux distributions. The script comes pre-installed in Mint Linux and AntiX, as well as soon Arch Linux, and hopefully soon more distributions as maintainers / users discover it and find it's a nice tool.

It was developed by h2 (the smxi maintainer) and trash80, from the infobash script that comes with sidux.

dv502 05-05-2010 05:22 PM

@ ajeetsinghraina

Code:

lspci -vv
The output will be long. Here is a sample output of my IDE controller.

Quote:

00:1f.1 IDE interface: Intel Corporation 82801EB/ER (ICH5/ICH5R) IDE Controller (rev 02) (prog-if 8a [Master SecP PriP])
Subsystem: Elitegroup Computer Systems Device 2315
Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx-
Status: Cap- 66MHz- UDF- FastB2B+ ParErr- DEVSEL=medium >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-
Latency: 0
Interrupt: pin A routed to IRQ 18
Region 0: I/O ports at 01f0 [size=8]
Region 1: I/O ports at 03f4 [size=1]
Region 2: I/O ports at 0170 [size=8]
Region 3: I/O ports at 0374 [size=1]
Region 4: I/O ports at f000 [size=16]
Region 5: Memory at 60000000 (32-bit, non-prefetchable) [size=1K]
Kernel driver in use: PIIX_IDE
Kernel modules: ata_piix
I highlighted the kernel info in red and the chipset in blue. You can see what driver and module is being used for that device. Also, you can use this info if you ever wish to compile a linux kernel.

The man page for the lspci command and the others mentioned above have additional options to use.

- Cheers


All times are GMT -5. The time now is 12:40 AM.