Skip to content

cpu: prefer the exact hwmon input over prefix matches - #2204

Open
JROtto5 wants to merge 1 commit into
flightlessmango:masterfrom
JROtto5:fix/custom-temp-sensor-exact
Open

JROtto5 wants to merge 1 commit into
flightlessmango:masterfrom
JROtto5:fix/custom-temp-sensor-exact

Conversation

@JROtto5

@JROtto5 JROtto5 commented Nov 6, 2026

Copy link
Copy Markdown
Contributor

Closes #2202.

cpu_custom_temp_sensor=coretemp,temp1 read temp10_input (Core 8 on an i9-14900KF) instead of temp1_input, because ls() matches by prefix and temp10_input sorts first. Prefer the exact <prefix>_input.

Checked with MANGOHUD_LOG_LEVEL=debug: temp1 now picks temp1_input, and full names like temp1_input resolve as before. The built-in temp1 lookups for cpuss0_* and cpu*_thermal go through the same function.

find_fallback_input() lists files by prefix, so cpu_custom_temp_sensor=coretemp,temp1
picked temp10_input (sorted first) instead of temp1_input. The built-in temp1
lookups for cpuss0_* and cpu*_thermal go through the same function.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug] cpu_custom_temp_sensor input without _input picks temp10_input for temp1

1 participant