Hello, I recently switched to nixos from Arch on my dell xps 15 9550. On Arch in AUR there was utility called dell-bios-fan-control that was used to disable control of fans by bios so that they can be controled by utilities like i8kutils so that they are not running all the time at low speeds producing unnecessary noise.
I packaged dell-bios-fan-control
for nix using this expression:
{ lib, stdenv, fetchFromGitHub }:
stdenv.mkDerivation {
pname = "dell-bios-fan-control";
name = "dell-bios-fan-control";
version = "unstable-2018-05-21";
src = fetchFromGitHub {
owner = "TomFreudenberg";
repo = "dell-bios-fan-control";
rev = "a2c81a2918b15b97bdb1c6bf41233e4c2786d416";
sha256 = "isd8dNgLJCTR405TcH0CaLf2uXd4luJYBSB9ZiRhLLQ=";
};
installPhase = ''
runHook preInstall
mkdir -p $out/bin
cp dell-bios-fan-control $out/bin/dell-bios-fan-control
chmod +rx $out/bin/dell-bios-fan-control
runHook postInstall
'';
meta = {
homepage = "https://github.com/TomFreudenberg/dell-bios-fan-control";
description = "Tool to enable or disable the SMBIOS fan control on Dell laptops";
# This seems to be based on https://github.com/clopez/dellfan, which is gpl2
license = lib.licenses.gpl2Plus;
platforms = [ "x86_64-linux" ];
maintainers = [];
};
}
But when i try to run it it does not work, sort of. I tried to boot into Arch live cd to check maybe my config on previous arch install were different and maybe it was working because of that, I booted into live cd, installed dell-bios-fan-control-git
from AUR on it, run it once and it worked fine on live cd. I thought I would just report it as a bug to nix, but after rebooting from live cd to nixos I tried to use it again on nixos and it worked just fine, but after shutting down my pc it stops working again (it does not stop working after rebooting).
So my questions are:
- Does anyone have any idea why this might be happening? The only possible difference that comes to my mind from my arch install is that i use disk encryption on nixos, otherwise i think it is mostly the same
- Are there maybe some alternatives to this program? I found nbfc that may work, but it is not packaged for nix and I cant package it myself