Skip to content

Keep the selected graphics driver when reopening the profile type menu - #4884

Open
devreddy1015 wants to merge 1 commit into
archlinux:masterfrom
devreddy1015:fix/keep-gfx-driver-on-profile-reselect
Open

devreddy1015 wants to merge 1 commit into
archlinux:masterfrom
devreddy1015:fix/keep-gfx-driver-on-profile-reselect

Conversation

@devreddy1015

Copy link
Copy Markdown

Fixes #4455

Picking a desktop profile, choosing an NVIDIA driver, then opening "Type" again and leaving with Esc silently resets the graphics driver to "All open-source". select_profile() returns the current profile on skip, and _select_profile() always overwrote the driver with GfxDriver.AllOpenSource. That matches the package list in the report (xf86-video-amdgpu xf86-video-ati vulkan-radeon xf86-video-nouveau vulkan-nouveau).

The default is now only applied when no driver is set yet. Switching from a non-graphical profile still gets the default, since the driver is cleared there.

Side effect: changing an existing selection to Sway now keeps an NVIDIA driver without showing the Sway warning, which only appears when picking the driver. Happy to re-run that check on profile change if you prefer.

Added two tests: the driver survives reopening Type, and a new graphical profile still defaults to all open-source.

AI disclosure: I used Claude Code to trace the cause, write the change and tests, and draft this text. I reviewed and tested the change myself.

…e menu

Leaving the profile type menu with Esc returns the current profile, and _select_profile() always reset the graphics driver to all open-source, silently dropping an NVIDIA selection. Only apply the default when no driver is set yet.
@devreddy1015
devreddy1015 requested a review from Torxed as a code owner November 24, 2026 10:26

This branch has not been deployed

No deployments
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 Open driver, nvidia-utils and headers for linux-lts and linux are not installed

1 participant