I want to block the loading of the nouveau kernel module but in my /usr/lib/modprobe.d directory I have 2 blacklist.conf files:



It seems these 2 conf files correspond to different linux-raspi kernel versions.

My current linux-raspi kernel version is 5.15.0-1024-raspi

So to prevent the automatic loading of the module nouveau, I will add the line

blacklist nouveau

In which blacklist.conf files should I add the line? Does it matter?

  • your question is about Linux, not about Raspberry Pi ... it belongs at unix.stackexchange.com/questions
    – jsotola
    Feb 15, 2023 at 19:54
  • What OS? What have you done before? Under normal conditions you will not have multiple kernels.
    – Milliways
    Feb 15, 2023 at 20:43
  • I use Linux RasPi 5.15.0-1024-raspi. Feb 15, 2023 at 22:19
  • That is a kernel. What OS? NOTE edit your Question DO NOT put detail in coments
    – Milliways
    Feb 15, 2023 at 22:52
  • 2
    It doesn't matter. The Linux kernel will read all *.conf files in alphabetical order.
    – Dougie
    Feb 16, 2023 at 8:28

1 Answer 1


It would probably be a good idea to find out why the nouveau module is being loaded, since it cannot be used for anything. Anyway:

It seems these 2 conf files correspond to different linux-raspi kernel versions.

Nope. From man modprobe.d:

All files underneath the /etc/modprobe.d directory which end with the .conf extension specify those options as required.

Ie., all the files in that directory ending in .conf will be processed. So just add your own whatever.conf and:

blacklist nouveau

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.