You are not logged in.

#1 2022-12-26 00:58:25

SupKurtJ
Member
Registered: 2015-07-18
Posts: 51

[SOLVED] How to make persistent hwmon to get cpu temperature

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 smile

Last edited by SupKurtJ (2022-12-26 01:13:19)

Offline

#2 2022-12-26 01:12:55

SupKurtJ
Member
Registered: 2015-07-18
Posts: 51

Re: [SOLVED] How to make persistent hwmon to get cpu temperature

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

#3 Yesterday 17:43:35

axeldewater
Member
Registered: Yesterday
Posts: 1

Re: [SOLVED] How to make persistent hwmon to get cpu temperature

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

#4 Yesterday 20:26:55

schard
Forum Moderator
From: Hannover
Registered: 2016-05-06
Posts: 2,549
Website

Re: [SOLVED] How to make persistent hwmon to get cpu temperature

Mod note: Please refrain from necro-bumping. Please re-read our rules in this regard [1]. Closing.

[1] https://wiki.archlinux.org/title/Genera … bumping%22


Inofficial first vice president of the Rust Evangelism Strike Force

Online

Board footer

Powered by FluxBB