Skip to content

sysmon: hide passtrough gpus and fix small visual bugs - #4124

Merged
bbedward merged 2 commits into
duxlabs-dev:masterfrom
Conava:sysmon-hide-passthrough-gpus
Nov 4, 2026
Merged

bbedward merged 2 commits into
duxlabs-dev:masterfrom
Conava:sysmon-hide-passthrough-gpus

Conversation

@Conava

@Conava Conava commented Nov 4, 2026

Copy link
Copy Markdown
Contributor

Description

Back from vacation so lets get the fixes rolling 🚀

GPUs bound to vfio-pci or pci-stub belong 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-pci and 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

  • Bug fix (non-breaking change that fixes an issue)
  • New feature (non-breaking change that adds functionality)
  • Breaking change (fix or feature that changes existing behavior)
  • Refactor / internal cleanup
  • Documentation
  • Other

Related issues

Screenshots / video

Checklist

  • My code follows the conventions in CONTRIBUTING.md
  • I have tested my changes locally
  • New user-facing strings are wrapped in I18n.tr() with translator context, reusing existing terms where possible
  • Go changes: ran make fmt, added/updated tests, make test passes, and go mod tidy is clean
  • QML changes: ran make lint-qml with no new warnings
  • I have opened a corresponding pull request in dux-docs to document any new behaviors: https://github.com/duxlabs-dev/dux-docs

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.
@github-actions github-actions Bot added fix ui Quickshell UI under quickshell/ labels Nov 4, 2026
@bbedward

bbedward commented Nov 4, 2026

Copy link
Copy Markdown
Member

/claude review

@claude

claude Bot commented Nov 4, 2026

Copy link
Copy Markdown
Contributor

Claude review

No issues found.
Checked: vfio-pci/pci-stub filtering into availableGpus vs detectedGpus and every availableGpus consumer (bar gpuTemp widget, widget settings subtitle and picker, desktop monitor widget, performance and system views, sensor rows), widgetGpu index/pciId fallback including identical cards, removal of the passthrough state and VRAM subtitle, I18n reuse of the "Graphics driver" term, deprecated shims. Model: claude-opus-5-5.

@bbedward
bbedward merged commit d94665e into duxlabs-dev:master Nov 4, 2026
3 checks passed
dux-ci Bot pushed a commit that referenced this pull request Nov 4, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

fix ui Quickshell UI under quickshell/

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants