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: Thu, 28 Jul 2016 17:24:32 +0200 Message-ID: <87popxg4zz.fsf@gnu.org> References: <20160724040528.GA19942@dragon> <87oa5lh2c7.fsf@gnu.org> <20160728130831.GA32364@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]:51637) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bSnAs-0002HV-No for help-guix@gnu.org; Thu, 28 Jul 2016 11:24:39 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bSnAp-00026o-EP for help-guix@gnu.org; Thu, 28 Jul 2016 11:24:38 -0400 In-Reply-To: <20160728130831.GA32364@dragon> (Adam Bolte's message of "Thu, 28 Jul 2016 23:09:31 +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: > On Mon, Jul 25, 2016 at 10:47:36PM +0200, Ludovic Court=C3=A8s wrote: >> Could you try writing the following in /run/modprobe.d/fan.conf: >>=20 >> --8<---------------cut here---------------start------------->8--- >> options thinkpad_acpi fan_control=3D1 >> --8<---------------cut here---------------end--------------->8--- >>=20 >> and then rebooting? >>=20 >> If everything goes well, this .conf file will be taken into account when >> udev asks to load =E2=80=98thinkpad_acpi=E2=80=99. > > I can confirm that this worked fine. Thanks! Good! >> Eventually we should provide a way to specify /run/modprobe.d entries >> via the =E2=80=98operating-system=E2=80=99 config, though. > > Sounds good. As someone who comes from a background in configuration > management, I would much rather have the entire system configuration > defined in a state configuration file than do manual once-off edits > (which is a part of what has attracted me to the project). Agreed. > Now I just need to figure out how to set /proc entries on boot. I > guess I need to write a "service" for that, although I'm currently a > complete a noob at Scheme. Right, you need a service that extends =E2=80=98activation-service-type=E2= =80=99 with a snippet along the lines of: #~(call-with-output-file "/proc/something" (lambda (port) (display "whatever" port))) Hopefully people can provide more guidance on IRC or on this list. > Actually, that's why I purchased this X60 100% free > software-compatible laptop - so I could better experiment and learn > these technologies. > > Ultimately there are a number of programs I use under Debian which I > would like to create Guix packages for when I'm more comfortable with > how it all works. Then it's just a matter of finding the time to read > and experiment. :) Sounds good. :-) Thanks for your feedback, Ludo=E2=80=99.