Byobu shows gpu temperature instead of cpu

Bug #1167176 reported by Ankur Sinha
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
byobu
Fix Released
Low
Unassigned

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.

Thanks,
Warm regards,
Ankur

Revision history for this message
Ankur Sinha (sanjay-ankur) wrote :
Revision history for this message
Ankur Sinha (sanjay-ankur) wrote :
Revision history for this message
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
Revision history for this message
Ankur Sinha (sanjay-ankur) wrote :

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

coretemp-isa-0000
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 **
52000
** /sys/class/hwmon/hwmon1/device/temp1_input **
36000
** /sys/class/hwmon/hwmon1/device/temp2_input **
32000
** /sys/class/hwmon/hwmon1/device/temp3_input **
32000
** /sys/class/hwmon/hwmon1/device/temp4_input **
30000
** /sys/class/hwmon/hwmon1/device/temp5_input **
37000
** /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.

Thanks,
Warm regards,
Ankur

Revision history for this message
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  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.