Skip to content

Fixes temperature widget showing blank/empty on modern Linux systems#271

Open
vm-wylbur wants to merge 1 commit into
xxxserxxx:masterfrom
vm-wylbur:fix-temperature-sensors
Open

Fixes temperature widget showing blank/empty on modern Linux systems#271
vm-wylbur wants to merge 1 commit into
xxxserxxx:masterfrom
vm-wylbur:fix-temperature-sensors

Conversation

@vm-wylbur

Copy link
Copy Markdown

Description

Fixes temperature widget showing blank/empty on modern Linux systems.

Problem

The temperature filtering logic was looking for sensors with "_input" suffix (legacy hwmon convention), but modern temperature sensors don't use this naming anymore. This caused the defs() function to return an empty list, preventing any temperatures from being displayed.

Solution

  • Updated defs() in temp_linux.go to include all detected sensors instead of filtering for "_input" suffix
  • Added safety check in temp_nix.go for empty sensor labels

Testing

Tested on Linux system with 28 temperature sensors (AMD CPU, ASUS motherboard, NVMe drives, etc.). Temperature widget now correctly displays all sensor readings.

Fixes issues where users see empty temperature widget despite having working sensors detected by gotop --list devices.

                                                                                                                         │ │
Modern temperature sensors don't use the "_input" suffix that the                                                        │ │
filtering logic expected. This caused the temperature widget to                                                          │ │
remain empty despite sensors being detected.                                                                             │ │
                                                                                                                         │ │
- Updated defs() to include all sensors instead of filtering                                                             │ │
- Added safety check for empty labels in temp collection                                                                 │ │
                                                                                                                         │ │
Fixes temperature display on systems with modern hwmon drivers
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant