From mboxrd@z Thu Jan 1 00:00:00 1970 From: ludo@gnu.org (Ludovic =?utf-8?Q?Court=C3=A8s?=) Subject: Re: Kernel module arguments and custom /proc settings Date: Mon, 25 Jul 2016 22:47:36 +0200 Message-ID: <87oa5lh2c7.fsf@gnu.org> References: <20160724040528.GA19942@dragon> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:59112) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bRmmu-0007eP-NN for help-guix@gnu.org; Mon, 25 Jul 2016 16:47:45 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bRmmq-0005Ob-PF for help-guix@gnu.org; Mon, 25 Jul 2016 16:47:44 -0400 In-Reply-To: <20160724040528.GA19942@dragon> (Adam Bolte's message of "Sun, 24 Jul 2016 14:05:28 +1000") List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-guix-bounces+gcggh-help-guix=m.gmane.org@gnu.org Sender: "Help-Guix" To: Adam Bolte Cc: help-guix@gnu.org Hi, Adam Bolte 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=3D1 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=3D1 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=3D1 --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 =E2=80=98thinkpad_acpi=E2=80=99. Eventually we should provide a way to specify /run/modprobe.d entries via the =E2=80=98operating-system=E2=80=99 config, though. HTH! Ludo=E2=80=99.