Find which Linux modules are used or needed

This is a wiki page. Be bold and improve it!

If you have any questions about the content on this page, don't hesitate to open a new ticket and we'll do our best to assist you.

Tools

With lspci

In the sample output below, see the kernel driver in use, and those available:

$ man lspci
# lspci -k
....
01:00.0 VGA compatible controller: NVIDIA Corporation GM107 [GeForce GTX 750 Ti] (rev a2)
        Subsystem: Gigabyte Technology Co., Ltd GM107 [GeForce GTX 750 Ti]
        Kernel driver in use: nouveau
        Kernel modules: nvidiafb, nouveau

With lsmod

See the "used by" field:

$ man lsmod
# lsmod
Module                  Size  Used by
cfg80211              552960  0
rfkill                 24576  3 cfg80211
snd_hda_codec_hdmi     53248  1
snd_hda_codec_realtek    86016  1
snd_hda_codec_generic    73728  1 snd_hda_codec_realtek
snd_hda_intel          36864  4
snd_hda_codec         126976  4 snd_hda_codec_realtek,snd_hda_codec_hdmi,snd_hda_codec_generic,snd_hda_intel
nouveau              1515520  8
kvm                   520192  0
snd_hda_core           65536  5 snd_hda_codec_realtek,snd_hda_codec_hdmi,snd_hda_codec_generic,snd_hda_codec,snd_hda_intel
snd_hwdep              16384  1 snd_hda_codec
snd_pcm               102400  4 snd_hda_codec_hdmi,snd_hda_codec,snd_hda_intel,snd_hda_core
snd_timer              32768  1 snd_pcm
...

With dmidecode

Check the output of dmidecode.

Online tools

Debian GNU/Linux device driver check page: http://kmuto.jp/debian/hcl/index.rhtml

LKDDb: Linux Kernel Driver DataBase https://cateee.net/lkddb/ The last news items dates back to 2007. It is unclear whether the database itself is still maintained.

[Unmaintained] Pre-made kernel seeds to help you get your Linux system up and running: http://kernel-seeds.bloodnoc.org/
Working with Kernel Seeds: http://kernel-seeds.bloodnoc.org/working.html

With a Live CD / within a chroot

When you are in a live CD chroot, do:

make localyesconfig
// or:
make localconfig

Logs

In /var/log/kern.log, Kernel module messages are prefixed by the name of the kernel module.

See also

http://linux.overshoot.tv/wiki/kernel_modules