You are not logged in.

#1 2022-07-09 13:11:31

Hubro
Member
Registered: 2019-03-09
Posts: 32

[Solved] My modprobe.d folder doesn't appear to have any effect

I have two files in my /etc/modprobe.d directory:

10_bbswitch.conf:

options bbswitch load_state=0

50_blacklist.conf:

blacklist nouveau
blacklist nvidia

However, bbswitch makes no attempt to power off my discrete GPU, nor does it produce any output in dmesg ("sudo dmesg | grep bbswitch").

Additionally, neither nouveau or nvidia is actually blacklisted, so Linux the nvidia driver when I boot. Adding "modprobe.blacklist=nouveau,nvidia" to the linux command line arguments instead works as expected. It just seems like files in "/etc/modprobe.d" have absolutely on effect.

Am I wrong in assuming this should work? Have I misunderstood anything?

Last edited by Hubro (2022-07-09 16:21:14)

Offline

#2 2022-07-09 14:18:44

giannis-arch
Member
Registered: 2017-09-20
Posts: 20

Re: [Solved] My modprobe.d folder doesn't appear to have any effect

Have you regenerate the initramfs ?

Offline

#3 2022-07-09 16:16:10

Hubro
Member
Registered: 2019-03-09
Posts: 32

Re: [Solved] My modprobe.d folder doesn't appear to have any effect

giannis-arch wrote:

Have you regenerate the initramfs ?

Do I have to do that every time I change a file in /etc/modprobe.d? :S

Offline

#4 2022-07-09 16:17:03

giannis-arch
Member
Registered: 2017-09-20
Posts: 20

Re: [Solved] My modprobe.d folder doesn't appear to have any effect

yes, of course...

Offline

#5 2022-07-09 16:20:44

Hubro
Member
Registered: 2019-03-09
Posts: 32

Re: [Solved] My modprobe.d folder doesn't appear to have any effect

giannis-arch wrote:

yes, of course...

That's why they call it newbie corner. Thanks!

(It's not obvious for a newbie which files under /etc require a rebuild of something. I checked several Arch wiki articles, plus "man modprobe" and "man modprobe.d", and I never got the impression I needed to rebuild anything.)

Offline

#6 2022-07-09 16:42:47

seth
Member
From: Don't DM me only for attention
Registered: 2012-09-03
Posts: 74,257

Re: [Solved] My modprobe.d folder doesn't appear to have any effect

To be more precise, you need to do that to impact modules that you added (ex- or implicitly) to the initramfs.
For testing purposes, you can blacklist and provide module parameters as kernel parameter.
https://wiki.archlinux.org/title/Kernel_parameters
https://wiki.archlinux.org/title/Kernel … mmand_line
https://wiki.archlinux.org/title/Kernel … and_line_2

Offline

Board footer

Powered by FluxBB