SolDoesTech / HyprV3

V3 of Hyprland install script for arch
176 stars 44 forks source link

WayBar CPU temp not updating #17

Open S-Pika opened 1 year ago

S-Pika commented 1 year ago

After a recent system update (im not sure when) the CPU temp display in the waybar is not updating it is stuck at 20C but in BTOP the temp is properly updating. I took a look at the waybar config and the variables have not been changed from default. I am wondering if anyone else has this issue/ where are the "temperatureF" and "temperatureC" variables in the waybar config.jsonc being defined.

S-Pika commented 1 year ago

If the temperature is being pulled from BTOP i just went through the BTOP CPU temp sensors and found that thermal1/acpitz is only reciving 20C and acpitz/temp2 is also only reciving 20C. Could the waybar temp display be trying to pull the temp from these two sensors? Other sensors are varying around 30C

thanhquang1988 commented 1 year ago

You can find correct hwmon file by using following command bat /sys/class/hwmon/hwmon*/name

In my case it showing

      File: /sys/class/hwmon/hwmon3/name
      k10temp

Then edit "temperature" config in ~/.config/waybar/config.jsonc replace "thermal-zone" line with "hwmon-path": "/sys/class/hwmon/hwmon3/temp1_input"

restart waybar (pkill waybar && waybar & 2>&1 > /dev/null)