Excluding kernel modules through /etc/modprobe.d/blacklist.conf does not work

I don’t want to load the kernel module nouveau on my debian box at startup, so I put the following in /etc/modprobe.d/blacklist.conf:

blacklist ttm
blacklist drm
blacklist nouveau

I even did a update-initramfs -u but nonetheless those three modules get loaded each time I boot.

Does anyone know why and how to fix this.

Answer

You can find the answer in the wiki: the idea is that one does not use /etc/modprobe.d/blacklist.conf.
Instead, say you want to blacklist pcspkr. You create a pcspkr.conf file in /etc/modprobe.d and put blacklist pcspkr inside. Then run

depmod -ae && update-initramfs -u

Attribution
Source : Link , Question Author : JohnnyFromBF , Answer Author : sourcejedi

Leave a Comment