Skip to content
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

Recursive symlink in hwmon path is followed #154

Open
ceaum opened this issue Sep 4, 2021 · 1 comment
Open

Recursive symlink in hwmon path is followed #154

ceaum opened this issue Sep 4, 2021 · 1 comment
Assignees
Milestone

Comments

@ceaum
Copy link

ceaum commented Sep 4, 2021

I am using a Lenovo ThinkPad T420. I wish to use the temp file at

/sys/devices/virtual/thermal/thermal_zone0/hwmonX/temp_1input

where hwmonX fluctuates between boots, which means I can not specify a full path.

A hwmon name file (containing acpitz) is present in hwmonX. However, /sys/devices/virtual/thermal/thermal_zone0 contains a symlink device, which contains a symlink (named thermal_zone) back to thermal_zone0.

Hence, specifying

sensors:
  - hwmon: /sys/devices/virtual/thermal/thermal_zone0
    name: acpitz

gives error

ERROR: /etc/thinkfan.yaml:7:
    name: acpitz
          ^
Found multiple hwmons with this name:  /sys/devices/virtual/thermal/thermal_zone0//hwmonX /sys/devices/virtual/thermal/thermal_zone0//device/thermal_zone/hwmonX.

Is there a way to specify my desired temp file?

@koutheir
Copy link
Collaborator

koutheir commented Sep 11, 2021

I also encountered this error with the same semantics, on a Thinkpad P15 Gen 1.

Here is my work around the issue: instead of using /sys/devices/virtual/thermal/thermal_zone0 as the hwmon value, I used /sys/class/hwmon instead.

@vmatare vmatare added this to the 2.0 milestone Mar 29, 2022
@vmatare vmatare self-assigned this Mar 29, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants