Wednesday 12 March 2014

Linux Driver check commands

Drivers trouble shooting.

lspci: lspci -k % List the Device driver and kernal module which handles it %

eg:
---------------------------------------------------------------------------------------------------------------------------
root@dummy54:~# lspci -k
00:00.0 Host bridge: Intel Corporation Ivy Bridge DRAM Controller (rev 09)
    Subsystem: Toshiba America Info Systems Device ff1e
    Kernel driver in use: agpgart-intel
00:02.0 VGA compatible controller: Intel Corporation Ivy Bridge Graphics Controller (rev 09)
    Subsystem: Toshiba America Info Systems Device fb20
    Kernel driver in use: i915
    Kernel modules: i915
00:14.0 USB controller: Intel Corporation Panther Point USB xHCI Host Controller (rev 04)
    Subsystem: Toshiba America Info Systems Device ff1e
    Kernel driver in use: xhci_hcd
00:16.0 Communication controller: Intel Corporation Panther Point MEI Controller #1 (rev 04)
    Subsystem: Toshiba America Info Systems Device ff1e
    Kernel driver in use: mei
    Kernel modules: mei
00:1a.0 USB controller: Intel Corporation Panther Point USB Enhanced Host Controller #2 (rev 04)
    Subsystem: Toshiba America Info Systems Device ff1e
    Kernel driver in use: ehci_hcd
00:1b.0 Audio device: Intel Corporation Panther Point High Definition Audio Controller (rev 04)
    Subsystem: Toshiba America Info Systems Device ff1e
    Kernel driver in use: snd_hda_intel
    Kernel modules: snd-hda-intel
00:1c.0 PCI bridge: Intel Corporation Panther Point PCI Express Root Port 1 (rev c4)
    Kernel driver in use: pcieport
    Kernel modules: shpchp
00:1c.1 PCI bridge: Intel Corporation Panther Point PCI Express Root Port 2 (rev c4)
    Kernel driver in use: pcieport
    Kernel modules: shpchp
00:1d.0 USB controller: Intel Corporation Panther Point USB Enhanced Host Controller #1 (rev 04)
---------------------------------------------------------------------------------------------------------------------------


lsmod: lsmod % List the kernal modules loaded in the system %

eg:
-------------------------------------------------------------------------------------------------------------------------
root@dummy54:~# lsmod
Module                  Size  Used by
pci_stub               12622  1
vboxpci                23200  0
vboxnetadp             13382  0
snd_hda_codec_hdmi     32474  1
vboxnetflt             23441  0
parport_pc             32866  0
snd_hda_codec_realtek   223867  1
vboxdrv               287130  3 vboxpci,vboxnetadp,vboxnetflt
rfcomm                 47604  12
ppdev                  17113  0
bnep                   18281  2
btusb                  18288  2
bluetooth             180104  23 rfcomm,bnep,btusb
binfmt_misc            17540  1
arc4                   12529  2
rts5139               351143  0
uvcvideo               72627  0
videodev               98259  1 uvcvideo
v4l2_compat_ioctl32    17128  1 videodev
joydev                 17693  0
snd_hda_intel          33773  3
-------------------------------------------------------------------------------------------------------------------------

No comments:

Post a Comment