Closed sebastian-wien closed 2 years ago
Hi @sebastian-wien,
is it because the /sys/class/hwmon directory is completely scanned either way, or because i commented out the name for the CPU hwmon section in the config file? or the new AMD architecture?
Normally the search should terminate wherever a temp*_input
file is found. The error message you're getting may be a bit misleading. To find out what's going on, take a look at what you actually have in /sys/class/hwmon/hwmon0
, i.e. do
ls -la /sys/class/hwmon/hwmon0
That's where your temperature input files should normally be found. My guess is that the indices you specified in your config simply don't match what you have in there.
Incidentally, I'm currently rewriting this exact part of the config & search logic. I've just pushed the latest development snapshot to the current master branch. If you want to help out, you can go ahead and try it out. I'd be very interested to know whether the current master version gives you a more helpful error message ;-)
Oh and one general observation. You definitely won't ever find a coretemp
sensor on an AMD system. coretemp
is specific to Intel. Just look around in /sys/class/hwmon
or run sensors
as root to find out what sensors/fans you do have. However I'd still appreciate it very much if you could test your broken config with the current master version.
awesome, thanks for your reply!
it seems that it was all about the name: as soon as i changed it from coretemp
to thinkpad
the error vanished. +1
the tool seems to work, systemctl status is green, but i was wondering if it works correctly, because: when the first level of the fan is activated (>65° -> - [0, 0, 65]
) the fan instantly ramps up to 3600rpm (according to sensors
). is there something i can do about?
the tool seems to work, systemctl status is green, but i was wondering if it works correctly, because: when the first level of the fan is activated (>65° ->
- [0, 0, 65]
) the fan instantly ramps up to 3600rpm (according tosensors
). is there something i can do about?
If you want to observe thinkfan's operation, just follow the syslog:
systemctl -elf -u thinkfan
About the fan RPM, there's probably not much you can do. On all thinkpads I've seen, the embedded controller limits the number of available fan speeds to 7, even if you access it through hwmon/pwm which in theory ranges from 0 to 255. As far as I know, there's no way for the user to change the RPM of a given fan level. If level 1 already seems loud for you, the best you can do is to allow good passive cooling and quit programs that waste CPU power in the background. It might also help to let it cool down further than 58 °C, or you might even let level 2 reach down below 60°C if that gets temperatures down faster so the fan turns off sooner. Oh and sometimes, automatic fan control is a little more fine-grained than the manual levels, so you might also want to use that in certain temperature ranges, e.g. something like this:
levels:
- [0, 0, 64]
- ["level auto", 54, 80]
- [5, 75, 85]
- [6, 78, 90]
- [7, 88, 95]
- ["level full-speed", 93, 32767]
hey vmatare!
thinkfan is not starting on the new thinkpad P14s Gen2 with AMD Ryzen 5000 series CPU.
i came across your tool through https://blog.monosoul.dev/2021/10/17/how-to-control-thinkpad-p14s-fan-speed-in-linux/
my config:
leading to this error:
so i removed the name, which is leading to this error:
https://github.com/vmatare/thinkfan/blob/7ba83b93c48edaeb40ebf0086fc285af74f2eb90/src/hwmon.cpp#L230
is it because the /sys/class/hwmon directory is completely scanned either way, or because i commented out the name for the CPU hwmon section in the config file? or the new AMD architecture?
Anyway, thanks for your awesome work! <3