File in /etc/modprobe.d don't behave as I initially expected. (PSA)
Linux 5.4 changed a kernel parameter I depend on from bool to int (now i915.enable_dpcd_backlight=1). So I went to update the wiki section about it I wrote.
I had always had the option added to my kernel commandline but had assumed that it would equivalent to a file /etc/modprobe.d/i915.conf with the line
options i915 enable_dpcd_backlight=1
because why wouldn't it? It seemed like everywhere on the wiki a kernel parameter is mentioned those two options are given. And when I initially created the section I copied the wording from somewhere else on the wiki because I didn't know the formatting fort it.
Well color me surprised when I tried it now before submitting my change and it didn't work.
Using the file I ran sudo systool -v -m i915 | grep dpcd and got
enable_dpcd_backlight= "0"
After some further testing I found that the culprit was having i915 in the mkinitcpio modules for early kms.
According to the wiki /etc/modprobe.d files are handled by -udev- modconf which I didn't know before. The text files in /etc/modprobe.d aren't magic after all.
This is just a reminder to not just copy stuff from other wiki pages without reading why they work.
Posted Dec 3, 2019, 12:52 PM UTC · edited
/{etc,usr/lib}/modprobe.d/*files are added by themodconfhook. You don't have that, you don't get them.Always assumed there was a systemd service for that anyway
I see. What I didn't do was add the conf file to the FILES array in mkinitcpio.conf...
You don't need to add any
FILESmanually, just addmodconfto yourHOOKSand it'll copy in all your modprobe.d configs. Also don't forget to regenerate the initrd.That explains why removing the i915 from MODULES helped, since I regenerated the initrd then.
Well this has been a succesful learning experiences. Thanks so much.