Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

module request: smbios-thermal-ctl #439

Open
colemickens opened this issue Jul 30, 2022 · 1 comment
Open

module request: smbios-thermal-ctl #439

colemickens opened this issue Jul 30, 2022 · 1 comment

Comments

@colemickens
Copy link
Member

see: https://wiki.archlinux.org/title/Dell_XPS_13_(9370)#Thermal_Modes_/_Fan_profiles

It would be nice to have a little module that sets this on boot to a pre-set value. (I use a screen-less XPS 9370 as a battery-backup unifi+home-assistant "server" and would like to always go into performance mode.)

@sokai
Copy link

sokai commented Jan 15, 2024

@colemickens

FYI:, As long as there isn't such a module: I install libsmbios and create a systemd service:

[]
  environment.systemPackages = with pkgs; [
    libsmbios
  ];

  systemd = {
    services = {
      dell-thermal-mode = {
        after = [ "post-resume.target" ];
        serviceConfig = {
          Type = "oneshot";
          Restart = "no";
          ExecStart = "${pkgs.libsmbios}/bin/smbios-thermal-ctl --set-thermal-mode=quiet";
        };
        wantedBy = [ "multi-user.target" "post-resume.target" ];
      };
    };
  };
[]

All creds are going to: https://github.com/jpas/etc-nixos/blob/88abdbf34bc2dc57c92a8f6fe26501156d9bc04e/profiles/hardware/laptop-dell-xps-13-9300.nix#L83-L98

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants