-
Notifications
You must be signed in to change notification settings - Fork 64
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
For an nvme device, thinkfan errors about device
not having sensors, despite hwmon*
directories being present
#157
Comments
I have also tried a workaround of using So for now I'm working around this with explicitly listing sensors for |
device
not having sensors, despite hwmon* directories being presentdevice
not having sensors, despite hwmon*
directories being present
Huh. Sorry, just got confused there because I overlooked some details. From looking at your directory listing, the way you configured it should actually work. I'll have to take another good look at the search logic. |
I have the same problem since updating to Ubuntu 21.10 (it worked on previous version)
leads to Which is a bit confusing, because there is one:
Also, specifying a name:
leads to
This works:
But the index for
|
@DanielWeigl if you want to help you can try out the - chip: CHIP-NAME
ids:
- FEATURE-ID0
- FEATURE-ID1
- ... You can find
So that would yield the config: - chip: nvme-pci-2500
ids:
- "Sensor 1" So far libsensors support is looking good, but we've been observing an issue where it breaks down after resuming from suspend. Would be interesting to know whether you're also seeing this issue or not. On my system it has been working fine for days across multiple suspend/resume cycles as of now. |
@DanielWeigl, the commit You can also test the fault-tolerant build (by building
|
Hi - thank you for the heads up and for the new feature - looks good. Im now running the latest
so far it works, ill install it as default and will report back |
just fyi, i have it now running with above version/config for a few days and some standbys and reboots - sofar it works and there are no errors logged to Only these messages:
|
I'm fairly certain that the new |
I have a system with two nvme drives, their temp_input paths are as follows:
but the indexing of the hwmon changes on boot in ways that I do not feel like finding about. I was hoping that the following config would catch these:
but it doesn't work:
It appears that the hwmon logic searches for directories that start with both
hwmon
anddevice
, but this is clearly incorrect in this case. For reference, the contents of/sys/devices/pci0000:00/0000:00:1d.0/0000:55:00.0/nvme/nvme1
are as follows:Note
hwmon1
is there, but the config parser decides to error out becausedevice
is not a hwmon directory, which is a faulty logic somewhere in the config parser.I can't use a workaround of setting
hwmon-name
tonvme
either, similarly to #156 , because there's symlinks identical todevice
withinng1n1
andnvme1n1
, which makes it error out (despite all of the paths it founds being the same file!).For the first problem, because I don't understand why thinkfan looks for
device
, I'd be happy with being able to explicitly tell it to not look atdevice
at all in the config file; I believe that that would solve my original issue.For the second problem, may I suggest that when you compile a list of hwmons, but before you check for the name being the same in multiple ones, you canonicalize the paths to remove any symlinks in the path elements, and then filter the list so that every canonical path is on the list only once? (This would be separate from #156, but even with the fix for the other issue, I think it'd still be beneficial, because on every poll, thinkfan would have to read less files, by not reading the same file multiple times.)
The text was updated successfully, but these errors were encountered: