Temperature Notification

Asked by SabreWolfy

What dependencies are required for byobu to show the temperature notification? I have nothing under /proc/acpi/thermal_zone.

Question information

Language:
English Edit question
Status:
Answered
For:
byobu Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Dustin Kirkland  (kirkland) said :
#1

Hmm, do you have libsensors3 installed? If not, please install that, and see if that fixes it. If so, I'll add a package dependency.

Also, is there any output from these commands:
  $ find /proc /sys 2>/dev/null | grep therm
  $ find /proc /sys 2>/dev/null | grep therm

Revision history for this message
SabreWolfy (sabrewolfy) said :
#2

The two commands you provided were the same and have a long list of output in /sys, but only the (empty) thermal_zone folder under /proc.

I installed libsensors3, but this did not solve the problem and sensors-detect was not installed with it.

I installed libsensors4, ran sensors-detect, inserted the 'coretemp' module and started module-init-tools. Still nothing under /proc/acpi/thermal_zone, so I'm not sure what the requirements are for showing temperature. Maybe my hardware does not support a temperature reading, although 'sensors' does give temperature output.

Revision history for this message
Dustin Kirkland  (kirkland) said :
#3

If you can point me to the place in /proc or /sys where your
temperature is located, I will gladly add support to Byobu for it.

Thanks,
:-Dustin

Revision history for this message
SabreWolfy (sabrewolfy) said :
#4

I'm not sure where the temperature data is -- I'm looking for it now. I see from the man page that I can set a variable to point to the location. The output for reference was:

/proc/acpi/thermal_zone
/sys/devices/system/cpu/cpu0/thermal_throttle
/sys/devices/system/cpu/cpu0/thermal_throttle/count
/sys/devices/system/cpu/cpu1/thermal_throttle
/sys/devices/system/cpu/cpu1/thermal_throttle/count
/sys/devices/system/cpu/cpu2/thermal_throttle
/sys/devices/system/cpu/cpu2/thermal_throttle/count
/sys/devices/system/cpu/cpu3/thermal_throttle
/sys/devices/system/cpu/cpu3/thermal_throttle/count
/sys/devices/virtual/thermal
/sys/devices/virtual/thermal/cooling_device0
/sys/devices/virtual/thermal/cooling_device0/uevent
/sys/devices/virtual/thermal/cooling_device0/subsystem
/sys/devices/virtual/thermal/cooling_device0/power
/sys/devices/virtual/thermal/cooling_device0/power/wakeup
/sys/devices/virtual/thermal/cooling_device0/type
/sys/devices/virtual/thermal/cooling_device0/max_state
/sys/devices/virtual/thermal/cooling_device0/cur_state
/sys/devices/virtual/thermal/cooling_device0/device
/sys/devices/virtual/thermal/cooling_device1
/sys/devices/virtual/thermal/cooling_device1/uevent
/sys/devices/virtual/thermal/cooling_device1/subsystem
/sys/devices/virtual/thermal/cooling_device1/power
/sys/devices/virtual/thermal/cooling_device1/power/wakeup
/sys/devices/virtual/thermal/cooling_device1/type
/sys/devices/virtual/thermal/cooling_device1/max_state
/sys/devices/virtual/thermal/cooling_device1/cur_state
/sys/devices/virtual/thermal/cooling_device1/device
/sys/devices/virtual/thermal/cooling_device2
/sys/devices/virtual/thermal/cooling_device2/uevent
/sys/devices/virtual/thermal/cooling_device2/subsystem
/sys/devices/virtual/thermal/cooling_device2/power
/sys/devices/virtual/thermal/cooling_device2/power/wakeup
/sys/devices/virtual/thermal/cooling_device2/type
/sys/devices/virtual/thermal/cooling_device2/max_state
/sys/devices/virtual/thermal/cooling_device2/cur_state
/sys/devices/virtual/thermal/cooling_device2/device
/sys/devices/virtual/thermal/cooling_device3
/sys/devices/virtual/thermal/cooling_device3/uevent
/sys/devices/virtual/thermal/cooling_device3/subsystem
/sys/devices/virtual/thermal/cooling_device3/power
/sys/devices/virtual/thermal/cooling_device3/power/wakeup
/sys/devices/virtual/thermal/cooling_device3/type
/sys/devices/virtual/thermal/cooling_device3/max_state
/sys/devices/virtual/thermal/cooling_device3/cur_state
/sys/devices/virtual/thermal/cooling_device3/device
/sys/devices/LNXSYSTM:00/LNXCPU:00/thermal_cooling
/sys/devices/LNXSYSTM:00/LNXCPU:01/thermal_cooling
/sys/devices/LNXSYSTM:00/LNXCPU:02/thermal_cooling
/sys/devices/LNXSYSTM:00/LNXCPU:03/thermal_cooling
/sys/bus/acpi/drivers/thermal
/sys/bus/acpi/drivers/thermal/uevent
/sys/bus/acpi/drivers/thermal/unbind
/sys/bus/acpi/drivers/thermal/bind
/sys/class/thermal
/sys/class/thermal/cooling_device0
/sys/class/thermal/cooling_device1
/sys/class/thermal/cooling_device2
/sys/class/thermal/cooling_device3
/sys/module/thermal
/sys/module/thermal/parameters
/sys/module/thermal/parameters/psv
/sys/module/thermal/parameters/tzp
/sys/module/thermal/parameters/crt
/sys/module/thermal/parameters/act

Revision history for this message
SabreWolfy (sabrewolfy) said :
#5

What does the content of the file I am looking for look like?

Enabling "CPU temp" in byobu returns nothing because there is nothing in the /proc/acpi... path.

I've installed libsensors4 and run "sensors-detect". Running "sensors" gives me a nice output of the temperature of each CPU, etc (coretemp-isa).

Revision history for this message
Dustin Kirkland  (kirkland) said :
#6

Perhaps try:
 * find /sys /proc -name "temperature" 2>/dev/null

Revision history for this message
SabreWolfy (sabrewolfy) said :
#7

Thanks. I found a file containing the temperature for each core:

/sys/devices/platform/coretemp.0/temp1_input

contains "46000" and the temperature for core 0 is 46 according to "sensors".

So

$ cat /sys/devices/platform/coretemp.*/temp1_input

agrees with the output for all four cores from "sensors".

No idea how to parse/include this in byobu though :)

Revision history for this message
SabreWolfy (sabrewolfy) said :
#8

Further comments here for reference:

https://bugs.launchpad.net/byobu/+bug/676080

Can you help with this problem?

Provide an answer of your own, or ask SabreWolfy for more information if necessary.

To post a message you must log in.