Repository navigation
sysmon: hide passtrough gpus and fix small visual bugs - #4124
Merged
Merged
Conversation
A card on vfio-pci or pci-stub belongs to a VM and the host has nothing to read from it, but it still took a row in the system monitor and could be picked in the bar and desktop widgets. Filter these cards out of availableGpus when the data arrives. The System page reads the new detectedGpus list, so it keeps listing them with name and driver. The filter goes by driver because dgop only sets state for monitored GPUs. The GPU temperature widget saves an index into availableGpus, which a shorter list shifts, so widgetGpu resolves it by the saved PCI ID and only uses the index to tell identical cards apart.
The VRAM size below the GPU name only appeared once monitoring had been on, which moved the monitoring toggle. Reading it for an unmonitored card could wake it, and the VRAM row already shows the total, so drop the line. Label the driver name that stays there.
Member
|
/claude review |
Contributor
Claude reviewNo issues found. |
dux-ci Bot
pushed a commit
that referenced
this pull request
Nov 4, 2026
port 2.1 (cherry picked from commit d94665e)
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.
Description
Back from vacation so lets get the fixes rolling 🚀
GPUs bound to
vfio-pciorpci-stubbelong to a VM, so the host has nothing to read from them.This removes them from the GPU list entirely, so they no longer show up in the system monitor's performance page or any widget and GPU picker. The System page still lists them with their name and driver for information, but no data.
The GPU temperature bar widget saved its GPU as an index into that list, which would point at the wrong card once the list gets shorter. It now goes by the saved PCI ID and only uses the index to tell identical cards apart.
This also removes the recent change that marked those cards as unavailable. It didn't provide much value, since it lets people toggle monitoring on and off only to be shown the string "Unavailable" (and a little graphical bug shows the empty overview for a split second before the text replaces it).
I also removed the VRAM size below the GPU name. It only appeared once monitoring had been on and moved the monitoring toggle when it did, and the VRAM row already shows the total. The driver name that's left there now has a label, since a bare driver name could be confusing to some people. The string was used before so no new translations needed.
One limit: dgop only scans drivers once, so a card that starts on
vfio-pciand gets rebound to a host driver later stays hidden until DMS restarts, unless it's monitored. I don't think its a very common use case but I can do the fix there too if wanted.Type of change
Related issues
Screenshots / video
Checklist
I18n.tr()with translator context, reusing existing terms where possiblemake fmt, added/updated tests,make testpasses, andgo mod tidyis cleanmake lint-qmlwith no new warnings