-
Notifications
You must be signed in to change notification settings - Fork 3
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
[Suggestion] Use hwmon name instead of the hwmon path #15
Comments
could you provide the fake hddcleint or is it in any repository ? |
It’s litteraly just this: #!/bin/bash
cat /sys/devices/pci0000:00/0000:00:01.3/0000:03:00.1/ata?/host?/target?:0:0/?:0:0:0/hwmon/hwmon?/temp1_input I made it executable, in [daemon]
hddtemp = /usr/local/bin/hddtemp-client
[temp:hdd]
type = hdd
path = whatever
min = 40000
max = 50000
panic = 50000 Since afancontrol is using the highest value hddtemp return when you’re using the hdd temp type, you just have to return all the drive you want to check, one by line. I didn’t bother dividing the results by 1000 since it was easier to just add some zeros in the config file. If you want separate control (if they depends on different fans), you can just change the path in the script (or add a condition so you can return something different depending on the parameter you’ve set instead of |
i have created an script with the help of copilot that is a drop in replacement for hddtemp and it si working with the drivetemp kernel module |
Hello,
I’m using the drivetemp kernel module since hddclient is deprecated, but sometimes the numbers of the hwmon interfaces change.
So my CPU is normally hwmon6 while my disks are hwmon1 to hwmon5, but sometimes 6 is a disk and 5 the CPU, and it mess up with my configuration.
It could be interesting to have a way to select the name of the hwmon interface instead of a path (
/sys/class/hwmon/hwmon?/name
, here I haveamdgpu
,zenpower
,drivetemp
and others).For now I’m trying to use predictable paths, if anyone have the same problem, it looks like this (you can obtain it using
realpath
on/sys/class/hwmon
entries):It seems to work (and I have a fake hddclient that use
/sys/devices/pci0000:00/0000:00:01.3/0000:03:00.1/ata?/host?/target?:0:0/?:0:0:0/hwmon/hwmon?/temp1_input
for the disks).The text was updated successfully, but these errors were encountered: