Skip to content

Fix DRM GPU index mapping for UI groups#517

Open
Guilherme-Marquez wants to merge 1 commit intocorecoding:mainfrom
Guilherme-Marquez:fix-drm-gpu-index
Open

Fix DRM GPU index mapping for UI groups#517
Guilherme-Marquez wants to merge 1 commit intocorecoding:mainfrom
Guilherme-Marquez:fix-drm-gpu-index

Conversation

@Guilherme-Marquez
Copy link

Issue: On some systems with non-contiguous DRM card indices, GPU data is reported as gpu#0 while the UI only creates groups gpu#1..N, so the Graphics tab shows No Data. Fix: map detected DRM cards to sequential gpu#1..N for UI types while still using the real DRM card index for file paths.

Note: On my AMD integrated GPU, Vitals detected the card but showed “No Data” in the Graphics tab. The data was being reported under gpu#0, but the UI only created GPU groups starting at gpu#1, so the updates never reached the visible group. This patch maps detected DRM cards to sequential gpu#1..N for UI display while still using the real DRM index for file paths.

Tested on:
OS: Debian GNU/Linux 13 (trixie) x86_64
Kernel: Linux 6.12.69+deb13-amd64
GNOME 48.7 Wayland
GPU: AMD Radeon 840M / 860M (Integrated)

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