You are not logged in.

#1 2021-08-17 17:22:51

Andy3153
Member
Registered: 2018-12-24
Posts: 89

[SOLVED] Load kernel module on boot with custom options

Hello!

So, I have an Asus laptop with an RGB keyboard. And for these laptops, in order to control the RGB backlight, you have to use Faustus. I have no problem with it, and it runs perfectly, even though my laptop isn't on the officially supported devices list. But, in order to use it on a device with no official support, I have to give it the option let_it_burn=1

Using modprobe I can easily do that with `modprobe faustus let_it_burn=1`, and looking through the wiki, following this, in order to make a module load at boot, I have to create a .conf file in /etc/modules-load.d which contains the module name. Nothing is specified about options for the modules. I've tried myself by making this file:

$ cat /etc/modules-load.d/faustus.conf
faustus let_it_burn=1

And it didn't seem to work. Dmesg doesn't show anything about the module actually getting loaded, and I can't use it.

I scrolled down more on the page to see if it is possible to use options, and got to this part, following it once again and making a new file:

$ cat /etc/modprobe.d/faustus.conf
# These are other things for Faustus to work properly
blacklist asus_wmi
blacklist asus_nb_wmi

options faustus let_it_burn=1

This didn't work either.


Am I doing anything wrong? And, well, I was thinking of making a systemd service file which just runs the modprobe command, but how good is that? I'd prefer getting it working the right way though

Last edited by Andy3153 (2021-08-18 08:40:34)

Offline

#2 2021-08-17 17:38:52

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 25,223

Re: [SOLVED] Load kernel module on boot with custom options

modules-load.d just takes the module to load and modprobe defines the parameter to apply. So keep the modprobe file and remove the parameter from the modules-load.d file and just list the module you want to load.

Last edited by V1del (2021-08-17 17:39:36)

Offline

#3 2021-08-18 08:24:19

Andy3153
Member
Registered: 2018-12-24
Posts: 89

Re: [SOLVED] Load kernel module on boot with custom options

V1del wrote:

modules-load.d just takes the module to load and modprobe defines the parameter to apply. So keep the modprobe file and remove the parameter from the modules-load.d file and just list the module you want to load.

You're telling me I should do it like this?

/etc/modules-load.d/faustus.conf
---------------------------------------------
faustus
/etc/modprobe.d/faustus.conf
---------------------------------------------
# These are other things for Faustus to work properly
blacklist asus_wmi
blacklist asus_nb_wmi

options faustus let_it_burn=1

Offline

#4 2021-08-18 08:26:35

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 25,223

Re: [SOLVED] Load kernel module on boot with custom options

yes

Offline

#5 2021-08-18 08:40:17

Andy3153
Member
Registered: 2018-12-24
Posts: 89

Re: [SOLVED] Load kernel module on boot with custom options

V1del wrote:

yes

Well, that seemed to work. I'll mark this as solved

Offline

Board footer

Powered by FluxBB