Fan issues with System76 Oryx Pro

I’ve been fan issues on my Oryx Pro model since a recent update and I sometimes need to run in “battery” profile to keep the fan from running at a pretty high speed all the time.

I’m getting the following error output from the system76-power daemon:

● system76-power.service - System76 Power Daemon
     Loaded: loaded (/etc/systemd/system/system76-power.service; enabled; preset: enabled)
     Active: active (running) since Sat 2022-12-10 09:48:26 EST; 2min 14s ago
   Main PID: 1007 (system76-power)
         IP: 0B in, 0B out
         IO: 3.9M read, 0B written
      Tasks: 1 (limit: 76974)
     Memory: 4.9M
        CPU: 74ms
     CGroup: /system.slice/system76-power.service
             └─1007 /nix/store/6b9ji4lrymczhhda0p067z0h427lfi9b-system76-power-1.1.23/bin/system76-power daemon

Dec 10 09:48:26 nixos system76-power[1007]: [WARN] failed to iterate SCSI Host device: No such file or directory (os error 2)
Dec 10 09:48:26 nixos system76-power[1007]: setting powersave with max 4600000
Dec 10 09:48:26 nixos system76-power[1007]: [INFO] Registering dbus name com.system76.PowerDaemon
Dec 10 09:48:26 nixos system76-power[1007]: [INFO] Adding dbus path /com/system76/PowerDaemon with interface com.system76.PowerDaemon
Dec 10 09:48:26 nixos systemd[1]: Started System76 Power Daemon.
Dec 10 09:48:26 nixos system76-power[1007]: [ERROR] fan daemon: platform hwmon not found
Dec 10 09:48:26 nixos system76-power[1007]: [INFO] Handling dbus requests
Dec 10 09:48:26 nixos system76-power[1007]: thread '<unnamed>' panicked at 'called `Result::unwrap()` on an `Err` value: Os { code: 2, kind: NotFound, message: "No such file or directory" }', src/
Dec 10 09:48:26 nixos system76-power[1007]: note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
Dec 10 09:48:31 nixos system76-power[1007]: [INFO] Setting power management to auto

Here’s some other info:

> nix-shell -p nix-info --run "nix-info -m"
 - system: `"x86_64-linux"`
 - host os: `Linux 6.0.11, NixOS, 23.05 (Stoat), 23.05pre433539.2787fc7d1e5`
 - multi-user?: `yes`
 - sandbox: `yes`
 - version: `nix-env (Nix) 2.12.0`
 - channels(root): `"nixos"`
 - channels([my username]): `""`
 - nixpkgs: `/nix/var/nix/profiles/per-user/root/channels/nixos`

> nix-channel --list

I’d appreciate any help getting this sorted as it’s been quite annoying. Thanks in advance.

Hi, I have been using my Galago Pro with no issues (granted, I did not realize there was a power daemon). What version of the Oryx is it? Namely, is it CoreBoot or proprietary firmware?

EDIT: I do not see an option for this daemon at all, how have you enabled it?

This is the option: hardware.system76.power-daemon.enable

You probably want to include the system76 nixos-hardware module instead, though, in case additional settings are required in the future and added upstream, so you don’t have to think about that manually: nixos-hardware/default.nix at 9d87bc030a0bf3f00e953dbf095a7d8e852dab6b · NixOS/nixos-hardware · GitHub

Also see about adding the device-specific modules in the system76 directory, in case there’s one for your specific device.

That said, GNOME 40+ setups will cause the daemon to fail even if you configure this. I’ll see about submitting a PR to fix that at some point, likely forcibly disabling the GNOME power daemon if the system-76 one is enabled. I can’t test it though, so feel free to submit your own :slight_smile:

As for @curriedFunctions, could you share your configuration as well?

Given things work on the other thread, would be nice if you could try NixOS stable as well, just in case this is a regression. Makes it easier to track down the problem.

An lsmod and dmesg would be nice too, your logs indicate kernel issues.

1 Like

Probably means fan settings aren’t working at all, by the way, and you setting the battery mode just makes whatever default settings the motherboard has happy by making the CPU use no energy at all or something.