How to make temperature module show "Package id 0: +40.0°C" parameter

There is config for temperature bar in tray:
type = internal/temperature
interval = 1
thermal-zone = 5
How to set: Package id 0: +39.0°C - parameter to show in polybar tray? It is most hot sensor in my pc(laptop).I can not find the right thermal-zone for it.

For those who want to help I think it would be useful to say what he says, the command: sensors

Here you can find other help, even if I believe you have already seen.

^ Start with this, run “sensors” in a terminal and post the output.

Have a look at this as well - polybar temperature module.

There are a couple commands there to determine the thermal zone and the hwmon path to the particular sensors you want to monitor.

Change the line thermal-zone = 0, for me 0 was package temps.


1 Like

My sensors are:
Every 2.0s: sensors alpc: Wed Jul 18 04:28:10 2018

Adapter: ISA adapter
Package id 0: +40.0°C (high = +100.0°C, crit = +100.0°C)
Core 0: +40.0°C (high = +100.0°C, crit = +100.0°C)
Core 1: +40.0°C (high = +100.0°C, crit = +100.0°C)

Adapter: Virtual device
temp1: +36.5°C

Adapter: Virtual device
temp1: +35.0°C

Adapter: Virtual device
temp1: +27.8°C (crit = +119.0°C)
temp2: +29.8°C (crit = +119.0°C)
temp3: +10.0°C

Did you follow that link to the polybar will? You can use the commands there to determine the thermalzone and hwmon-path for the sensor you want.

Plug those values into the module for temperature.

What I did is:
then sometimes I has to change it to
hwmon-path=/sys/devices/platform/coretemp.0/hwmon/hwmon3/temp1_input in modules.conf
Don`t know why. but works satisfying. Hard to find this pathes if need fast and manually

I think it’s kernel upgrades that can change the hwmon paths; so on a rolling release like Arch that can happen quite a lot. I have the same issue with Void.

1 Like