Skip to content

Fix GPU telemetry for multi-digit hwmon indices - #3817

Merged
nicolargo merged 2 commits into
nicolargo:developfrom
snowyukitty:fix/gpu-multi-digit-hwmon
Oct 25, 2026
Merged

nicolargo merged 2 commits into
nicolargo:developfrom
snowyukitty:fix/gpu-multi-digit-hwmon

Conversation

@snowyukitty

Copy link
Copy Markdown
Contributor

Description

The AMD and ARM GPU backends only match single-digit hwmon directories. With hwmon10 or higher, temperatures disappear; AMD APUs also miss the voltage sensor used to include GTT in their memory percentage.

Allow multi-digit hwmon directory indices in the three affected patterns. Temperature-channel selection and aggregation stay unchanged.

Regression coverage includes indices 0, 9, 10 and 123, AMD integrated/discrete memory accounting, and missing sensors. On the unchanged upstream base, six new cases fail for the reported defect and 12 controls pass.

Validation from the repository root on Linux, Python 3.12:

python -m pytest -q tests/test_gpu_hwmon.py tests/test_gpu_cards.py tests/test_plugin_gpu.py tests/test_plugin_gpu_render_curses.py

73 passed. These are filesystem-fixture tests; no live GPU or driver validation was performed.

Resume

@nicolargo
nicolargo merged commit caa0145 into nicolargo:develop Oct 25, 2026
2 of 3 checks passed
@nicolargo

Copy link
Copy Markdown
Owner

Thanks for the PR @snowyukitty

Merged into develop.

To be honest i never test Glances with more than 10 GPU :)

If you have an use case with screenshot, you will make my day :)

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.

GPU telemetry ignores hwmon devices with multi-digit indices

2 participants