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
acpitz-virtual-0 is gone in newer kernel(s) such as 4.19-rc5 when compared to 4.18.9 #133
Comments
|
Hm, apparently "accessing attributes reached by a symlink pointing to another device, like the "device"-link, is a bug in the application": But lm_sensors already does that. I have a feeling that fixing this is going to be a lot of fun... Thanks for the report. |
|
Ok, I think I know how to fix this. I'll do that during the weekend probably. The key is the "Position of devices along device chain can change." bullet in that document. |
|
Problem is caused by commit f6b6b52ef7a5 ("thermal_hwmon: Pass the originating device down to hwmon_device_register_with_info") in the upstream thermal subsystem code. The thermal subsystem now passes the thermal device as parent to the hwmon subsystem. |
|
Right. I've hacked up a poc patch for this last week, but I haven't got around to refactor it yet. Sorry for not updating this issue with that. |
|
I have the same issue with Raspberry Pi (BCM2835_THERMAL module). |
|
@kukabu Sorry for the late reply. Did you use the whole branch or just the patch I linked? There's one more patch you need: 420c38f If you used that patch as well, can you please run the following script to find out what the underlying subsystem is? Change Btw, what kernel are you running? I don't get any hwmon chips exported on my RPi, even with older kernels (I do have |
I tried branch wip_fix_sysfs_access, it works for me. Thanks.
I uses the custom kernel based on rpi-4.19.y branch with workaround https://gist.github.com/kukabu/d2dc9eebd4133846f07fdc692fccec4c |
Good, I'll use the idea of that patch then. I'll just try to refactor it. |
|
The following branch contains the fix I'd like to use (the last two commits being most significant). I'd appreciate any testing or review. |
|
This branch works for me. |
Didn't look at the code, but tested it to work for me with kernel |
dmesg diff:
sensorsin 4.18.0-rc8:sensorsin 4.19-rc5 with the below patch:poc naive (but working) patch:
The text was updated successfully, but these errors were encountered: