This was a neat little trick by edbian on the #ubuntu channel on freenode told to me. Thought I would pass it along.

Want to know what kernel drivers are being used by your hardware? Very useful information.

-k shows the kernel drivers handling each device.


lspci -k

produces output which looks like:

00:00.0 RAM memory: nVidia Corporation MCP61 Memory Controller (rev a1)
Subsystem: Hewlett-Packard Company Device 2a5b
00:01.0 ISA bridge: nVidia Corporation MCP61 LPC Bridge (rev a2)
Subsystem: Hewlett-Packard Company Device 2a5b
00:01.1 SMBus: nVidia Corporation MCP61 SMBus (rev a2)
Subsystem: Hewlett-Packard Company Device 2a5b
Kernel driver in use: nForce2_smbus
Kernel modules: i2c-nforce2
00:01.2 RAM memory: nVidia Corporation MCP61 Memory Controller (rev a2)
Subsystem: Hewlett-Packard Company Device 2a5b
00:02.0 USB Controller: nVidia Corporation MCP61 USB Controller (rev a3)
Subsystem: Hewlett-Packard Company Device 2a5b
Kernel driver in use: ohci_hcd
00:02.1 USB Controller: nVidia Corporation MCP61 USB Controller (rev a3)
Subsystem: Hewlett-Packard Company Device 2a5b
Kernel driver in use: ehci_hcd
00:04.0 PCI bridge: nVidia Corporation MCP61 PCI bridge (rev a1)
00:05.0 Audio device: nVidia Corporation MCP61 High Definition Audio (rev a2)
Subsystem: Hewlett-Packard Company Device 2a5b
Kernel driver in use: HDA Intel
Kernel modules: snd-hda-intel
00:06.0 IDE interface: nVidia Corporation MCP61 IDE (rev a2)
Subsystem: Hewlett-Packard Company Device 2a5b
Kernel driver in use: pata_amd
Kernel modules: pata_amd
00:07.0 Bridge: nVidia Corporation MCP61 Ethernet (rev a2)
Subsystem: Hewlett-Packard Company Device 2a5b
Kernel driver in use: forcedeth
Kernel modules: forcedeth
00:08.0 IDE interface: nVidia Corporation MCP61 SATA Controller (rev a2)
Subsystem: Hewlett-Packard Company Device 2a5b
Kernel driver in use: sata_nv
Kernel modules: sata_nv
00:09.0 PCI bridge: nVidia Corporation MCP61 PCI Express bridge (rev a2)
Kernel driver in use: pcieport
Kernel modules: shpchp
00:0b.0 PCI bridge: nVidia Corporation MCP61 PCI Express bridge (rev a2)
Kernel driver in use: pcieport
Kernel modules: shpchp
00:0d.0 VGA compatible controller: nVidia Corporation C61 [GeForce 6150SE nForce 430] (rev a2)
Subsystem: Hewlett-Packard Company Device 2a5b
Kernel driver in use: nvidia
Kernel modules: nvidia-173, nvidia-current, nouveau, nvidiafb
00:18.0 Host bridge: Advanced Micro Devices [AMD] K8 [Athlon64/Opteron] HyperTransport Technology Configuration
00:18.1 Host bridge: Advanced Micro Devices [AMD] K8 [Athlon64/Opteron] Address Map
00:18.2 Host bridge: Advanced Micro Devices [AMD] K8 [Athlon64/Opteron] DRAM Controller
Kernel modules: amd64_edac_mod
00:18.3 Host bridge: Advanced Micro Devices [AMD] K8 [Athlon64/Opteron] Miscellaneous Control
Kernel driver in use: k8temp
Kernel modules: k8temp
03:00.0 Communication controller: Conexant Systems, Inc. Device 2f81 (rev 01)
Subsystem: Conexant Systems, Inc. Device 0000
nwayno@Homer:~$

Thank you edbian (on #ubuntu)

Wayno