* Passing options to modules via modprobe.d
@ 2022-05-16 18:51 Simon Streit
2022-12-12 1:18 ` Mekeor Melire
0 siblings, 1 reply; 2+ messages in thread
From: Simon Streit @ 2022-05-16 18:51 UTC (permalink / raw)
To: help-guix
Hello!,
I've been trying to pass options to certain modules at boot like this:
--8<---------------cut here---------------start------------->8---
(simple-service 'thinkpad-acpi etc-service-type
(list `("modprobe.d/thinkpad.conf"
,(plain-file "thinkpad.conf"
"options thinkpad_acpi fan_control=1\n"))))
--8<---------------cut here---------------end--------------->8---
This seems all okay and the store item is properly linked to
/etc/modprobe.d. The only problem though is that this parameter is not
passed to the module. Thus fan_control is not enabled. Manually
passing this parameter via modprobe in the command line is fine.
Consing "thinkpad_acpi.fan_control=1" to kernel-arguments works too.
I'm not so sure now wether I've done something wrong. There is no error
when booting, and modprobe seems to be silently ignoring the files
located in /etc/modprobe.d.
Any ideas? How do you pass your parameters to modprobe?
Kind regards
Simon
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Passing options to modules via modprobe.d
2022-05-16 18:51 Passing options to modules via modprobe.d Simon Streit
@ 2022-12-12 1:18 ` Mekeor Melire
0 siblings, 0 replies; 2+ messages in thread
From: Mekeor Melire @ 2022-12-12 1:18 UTC (permalink / raw)
To: Simon Streit; +Cc: help-guix
2022-05-16 20:51 simon@netpanic.org:
> I've been trying to pass options to certain modules at boot like
> this:
>
> --8<---------------cut
> here---------------start------------->8---
> (simple-service 'thinkpad-acpi etc-service-type
> (list `("modprobe.d/thinkpad.conf"
> ,(plain-file "thinkpad.conf"
> "options thinkpad_acpi
> fan_control=1\n"))))
> --8<---------------cut
> here---------------end--------------->8---
>
> This seems all okay and the store item is properly linked to
> /etc/modprobe.d. The only problem though is that this parameter
> is not passed to the module. Thus fan_control is not enabled.
I'm running into the same problem! I guess we should report this
as bug?
> Manually passing this parameter via modprobe in the command line
> is fine.
>
> Consing "thinkpad_acpi.fan_control=1" to kernel-arguments works
> too.
Thanks for this workaround :)
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2022-12-12 1:23 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-05-16 18:51 Passing options to modules via modprobe.d Simon Streit
2022-12-12 1:18 ` Mekeor Melire
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).