Byobu shows gpu temperature instead of cpu

Bug #1167176 reported by Ankur Sinha on 2013-04-10
This bug affects 1 person
Affects Status Importance Assigned to Milestone

Bug Description

On my workstation, byobu appears to show the GPU temperature rather than the CPU temperature:

My CPU is around 30, the GPU around 50, and byobu displays the GPU temp (50) in the status bar below. (Please see the attached screenshot)

It appears to work okay on my laptop though. I'll attach it's screenshot too.

The byobu version in Fedora isn't up to date. I'll request the maintainer to update. Launchpad didn't give me any similar bugs, so I'm simply assuming no one's hit this one yet.

The two machines are completely different hardware wise. Please let me know if you need their hardware infos.

Warm regards,

Dustin Kirkland  (kirkland) wrote :

Byobu attempts to autodetect your CPU's temperature using the following logic, where the first match wins:

        for i in $MONITORED_TEMP /sys/class/hwmon/hwmon*/temp*_input /sys/class/hwmon/hwmon*/device/temp*_input /proc/acpi/ibm/thermal /proc/acpi/thermal_zone/*/temperature; do

This means that you can in fact for the reading of your CPU temperature by setting the MONITORED_TEMP shell variable in your ~/.bybou/statusrc file.

Can you look through those locations in /sys and /proc and tell me which one is the correct temperature you want?

Changed in byobu:
status: New → Incomplete
importance: Undecided → Low
Ankur Sinha (sanjay-ankur) wrote :

[root@eng050194 ~]# sensors
Adapter: PCI adapter
temp1: +52.0°C

Adapter: ISA adapter
Physical id 0: +36.0°C (high = +80.0°C, crit = +99.0°C)
Core 0: +32.0°C (high = +80.0°C, crit = +99.0°C)
Core 1: +30.0°C (high = +80.0°C, crit = +99.0°C)
Core 2: +30.0°C (high = +80.0°C, crit = +99.0°C)
Core 3: +36.0°C (high = +80.0°C, crit = +99.0°C)

[root@eng050194 ~]# for i in $MONITORED_TEMP /sys/class/hwmon/hwmon*/temp*_input /sys/class/hwmon/hwmon*/device/temp*_input /proc/acpi/ibm/thermal /proc/acpi/thermal_zone/*/temperature; do if [ -a "$i" ] ; then echo "** $i **" ; cat "$i"; else echo "** $i does not exist **"; fi ; done
** /sys/class/hwmon/hwmon0/temp1_input **
** /sys/class/hwmon/hwmon1/device/temp1_input **
** /sys/class/hwmon/hwmon1/device/temp2_input **
** /sys/class/hwmon/hwmon1/device/temp3_input **
** /sys/class/hwmon/hwmon1/device/temp4_input **
** /sys/class/hwmon/hwmon1/device/temp5_input **
** /proc/acpi/ibm/thermal does not exist **
** /proc/acpi/thermal_zone/*/temperature does not exist **

I think the hwmon1 files are the ones needed here.

Warm regards,

Dustin Kirkland  (kirkland) wrote :

Committed revision 2199.

Changed in byobu:
status: Incomplete → Triaged
status: Triaged → In Progress
status: In Progress → Fix Committed
Changed in byobu:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers