Skip to content

fix(about): deduplicate OpenGL GPU name variants in About page#1906

Merged
leviport merged 2 commits intopop-os:masterfrom
manascb1344:fix/about-gpu-dedupe-1814
Mar 24, 2026
Merged

fix(about): deduplicate OpenGL GPU name variants in About page#1906
leviport merged 2 commits intopop-os:masterfrom
manascb1344:fix/about-gpu-dedupe-1814

Conversation

@manascb1344
Copy link
Copy Markdown
Contributor

Fixes #1814

Problem

When a system has an NVIDIA GPU, wgpu enumerates it twice:

  • Via Vulkan backend: "NVIDIA GeForce RTX 3080 Ti Laptop GPU"
  • Via OpenGL backend: "NVIDIA GeForce RTX 3080 Ti Laptop GPU/PCIe/SSE2"

The OpenGL variant includes a renderer suffix (/PCIe/SSE2) which causes the name-based deduplication to fail, resulting in duplicate GPU entries in Settings -> System -> About.

Solution

Add normalize_gpu_name() helper that strips OpenGL renderer suffixes (everything after /) before comparing names for deduplication. This ensures both Vulkan and OpenGL representations of the same GPU are correctly identified as duplicates.

Changes

  • cosmic-settings/src/pages/system/info.rs:
    • Added normalize_gpu_name() function with doc comment
    • Modified wgpu_graphics() to use normalized names for seen_names HashSet

Testing

  • cargo fmt --check passes
  • cargo clippy --all-features passes (no new warnings)
  • cargo test --all-features passes (3/3 tests)
  • just check-features passes
  • Manual testing: Verified on system with NVIDIA GPU that duplicate entries no longer appear

Checklist

  • I have disclosed use of any AI generated code in my commit messages.
  • I understand these changes in full and will be able to respond to review comments.
  • My change is accurately described in the commit message.
  • My contribution is tested and working as described.
  • I have read the Developer Certificate of Origin and certify my contribution under its conditions.

Normalize GPU names before fallback name-based deduplication so OpenGL renderer suffixes like '/PCIe/SSE2' do not create duplicate NVIDIA entries in About.

Signed-off-by: manascb1344 <zephop76593@gmail.com>
@manascb1344
Copy link
Copy Markdown
Contributor Author

The commit 415e1d8 was merged to master without proper formatting, so the CI failure exists

@mmstick mmstick requested a review from a team March 24, 2026 15:30
Copy link
Copy Markdown
Member

@leviport leviport left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Seems to work as intended. Thanks!

Details Regression testing passed:

Network & Wireless

Wi-Fi

  • Able to disconnect from and connect to a network.

Bluetooth

  • Bluetooth device connects.
  • Paired device can be disconnected & reconnected.
  • Paired device can be forgotten & connecting again works.

Desktop

Wallpaper

  • Clicking a different wallpaper switches to it immediately
  • Leaving the page and coming back does not change the wallpaper

Appearance

  • Open a COSMIC app and a GNOME app. When switching between Dark and Light mode, the COSMIC app switches immediately, and the GNOME app switches after restarting.
  • Changing the accent color works.
  • Changing the roundness style works and does not affect other aspects of the theme (e.g. color mode).
  • Changing the interface density works.

Panel

  • Enable tiling. "Automatically hide panel" takes effect immediately.
  • Disable tiling; maximize a window. "Automatically hide panel" takes effect immediately.

Dock

  • Enable tiling. "Automatically hide dock" takes effect immediately.
  • Disable tiling; maximize a window. "Autommatically hide dock" takes effect immediately.
  • Changing position on screen works.
  • All Style settings take effect as expected.

Displays

  • Plug in a second display. Displays can be rearranged via dragging.

Sound

TBD after devices/profiles are fixed.

Power & Battery

  • Changing power mode takes effect and is reflected by top panel applet.

Input Devices

Touchpad

  • All click behavior settings work as expected.
  • All scrolling settings work as expected.

Applications

Default Applications

  • Changing the default terminal affects Super-T shortcut.

X11 Applications Compatibility

  • Global Shortcuts in X11 Applications works (in e.g. Discord).

Time & Language

Date & Time

  • Changing time zome works.
  • Toggling 24-hour time takes effect in Settings preview, on top panel, and on the lock screen.
  • Toggling seconds takes effect in Settings preview and on top panel.
  • Changing first day of week takes effect in Calendar applet.
  • Turning date on/off for applet works.

System & Accounts

About

  • Changing hostname works (check terminal prompt).

@leviport leviport merged commit 7dc9530 into pop-os:master Mar 24, 2026
14 checks passed
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.

NVIDIA card is listed twice in "About" dialog on ASUS laptop when in "Ultimate" discrete GPU mode

3 participants