all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: ludo@gnu.org (Ludovic Courtès)
To: Adam Bolte <abolte@systemsaviour.com>
Cc: help-guix@gnu.org
Subject: Re: Kernel module arguments and custom /proc settings
Date: Mon, 25 Jul 2016 22:47:36 +0200	[thread overview]
Message-ID: <87oa5lh2c7.fsf@gnu.org> (raw)
In-Reply-To: <20160724040528.GA19942@dragon> (Adam Bolte's message of "Sun, 24 Jul 2016 14:05:28 +1000")

Hi,

Adam Bolte <abolte@systemsaviour.com> skribis:

> I have a machine that always overheats running GuixSD, and I would
> like the fans to constantly run at maximum until I can find a better
> solution.
>
> The kernel module that enables fan control is thinkpad_acpi (which is
> always loaded automatically), howerver manual fan control only works
> if I set the module fan_control=1 argument when it loads. So I'm
> looking for the equivalent of /etc/modprobe.d/ on Debian.
>
> The module creates /proc/acpi/ibm/fan, which I can then write to (if
> fan_control=1 was set) with the appropriate fan speed. I want to run
> the equivalent of the following on boot:
>
> # echo level full-speed > /proc/acpi/ibm/fan
>
> In Debian this can be done by dropping the configuration into
> /etc/sysctl.d/.
>
> Is there a way to edit my config.scm file to make the above changes?

Not really.

Looking at libkmod, it seems that /run/modprobe.d is automatically
scanned, like /etc/modprobe.d on Debian.  Could you try writing the
following in /run/modprobe.d/fan.conf:

--8<---------------cut here---------------start------------->8---
options thinkpad_acpi fan_control=1
--8<---------------cut here---------------end--------------->8---

and then rebooting?

If everything goes well, this .conf file will be taken into account when
udev asks to load ‘thinkpad_acpi’.

Eventually we should provide a way to specify /run/modprobe.d entries
via the ‘operating-system’ config, though.

HTH!

Ludo’.

  reply	other threads:[~2016-07-25 20:47 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-07-24  4:05 Kernel module arguments and custom /proc settings Adam Bolte
2016-07-25 20:47 ` Ludovic Courtès [this message]
2016-07-28 13:09   ` Adam Bolte
2016-07-28 15:24     ` Ludovic Courtès
2016-07-25 21:09 ` Andreas Enge
2016-07-28 13:13   ` Adam Bolte

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87oa5lh2c7.fsf@gnu.org \
    --to=ludo@gnu.org \
    --cc=abolte@systemsaviour.com \
    --cc=help-guix@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/guix.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.