unofficial mirror of 
 help / color / mirror / Atom feed
* Passing options to modules via modprobe.d
@ 2022-05-16 18:51 Simon Streit
  0 siblings, 0 replies; only message in thread
From: Simon Streit @ 2022-05-16 18:51 UTC (permalink / raw)
  To: help-guix


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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2022-05-16 18:52 UTC | newest]

Thread overview: (only message) (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

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).