You are not logged in.
Pages: 1
Topic closed
Hi,
I've installed lm_sensors, and start one time "sudo sensors-detect".
I get the CPU temperature from /sys/class/hwmon/hwmon3/temp2_input (I use it in waybar to monitor CPU), but it change after reboot may be to the directory hwmon4.
So my question is how to make this directory persistent ?
Thanks ![]()
Last edited by SupKurtJ (2022-12-26 01:13:19)
Offline
I found the solution !!!! Just reading documentation : https://man.archlinux.org/man/waybar-temperature.5.en
Use the absolute path, in my case /sys/devices/platform/asus-ec-sensors/hwmon/ and add a field with the file name input, like this :
"temperature": {
"hwmon-path-abs": "/sys/devices/platform/asus-ec-sensors/hwmon",
"input-filename": "temp2_input",
...
}Last edited by SupKurtJ (2022-12-26 01:16:32)
Offline
Thank you, this solved my issue. Took me a while before I noticed the temperature was not always showing my CPU temperature and then discovered my thermal zones and hwmon paths were constantly changing. Completely overlooked the absolute hwmon path setting in the documentation.
Offline
Mod note: Please refrain from necro-bumping. Please re-read our rules in this regard [1]. Closing.
Inofficial first vice president of the Rust Evangelism Strike Force
Offline
Pages: 1
Topic closed