Closed a-crate closed 10 months ago
You may need to go check that your configuration match's what your system actually reports.
ls /sys/class/drm/
it could be trying to find card0 or card1 etc depending on what you set in the config.
card0 is my Intel iGPU and card1 is an amd gpu. I tried setting card1 only in the config and got the same results.
I've found the root cause: the conditional on line 107 never triggers because the HWMON_REGEX on line 91 assumes that all hwmon IDs will be single digits. Mine is not, it's hwmon12. I likely have unusual hwmon IDs because I have an eGPU setup. Changing line 91 of amdfan.py
from HWMON_REGEX: str = r"^hwmon\d$"
to HWMON_REGEX: str = r"^hwmon\d+$"
is the fix.
Cool, sounds good I'll fire up a patch when I have a chance, glad you got it working.
I'm running on gentoo built with python3.11 but could reproduce this on latest Arch. Full stack trace: