Fix DRM GPU index mapping for UI groups#517
Open
Guilherme-Marquez wants to merge 1 commit intocorecoding:mainfrom
Open
Fix DRM GPU index mapping for UI groups#517Guilherme-Marquez wants to merge 1 commit intocorecoding:mainfrom
Guilherme-Marquez wants to merge 1 commit intocorecoding:mainfrom
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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)