Skip to content

Install lib32 graphics drivers before Steam - #12569

Merged
dhh merged 2 commits into
omacom:quattrofrom
selfcrypto:install-gpu-drivers-before-steam
Oct 4, 2026
Merged

dhh merged 2 commits into
omacom:quattrofrom
selfcrypto:install-gpu-drivers-before-steam

Conversation

@selfcrypto

@selfcrypto selfcrypto commented Sep 19, 2026 •

Copy link
Copy Markdown
Contributor

Installing Steam on a machine with no NVIDIA GPU downloads and installs nvidia-utils and lib32-nvidia-utils (~1.8 GB installed).

steam depends on the virtual package lib32-vulkan-driver. omarchy-pkg-add runs pacman with --noconfirm, so when nothing provides it yet pacman picks the first provider without prompting — that's lib32-nvidia-utils, which in turn pulls nvidia-utils. omarchy-install-gaming-gpu-lib32 already picks the right driver, it just ran too late to matter.

Swapping the two lines lets the correct driver satisfy the dependency first. Reproduced on an Intel UHD 620 laptop, no NVIDIA hardware present.

Fixes #8856

Steam depends on the virtual package lib32-vulkan-driver. omarchy-pkg-add
runs pacman with --noconfirm, which silently resolves that to the first
provider, lib32-nvidia-utils, pulling the NVIDIA stack onto machines with
no NVIDIA GPU. Running omarchy-install-gaming-gpu-lib32 first satisfies
the dependency with the driver that matches the detected GPU.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
@llstrk

llstrk commented Sep 25, 2026

Copy link
Copy Markdown

Automated AI review

Community review: Independent automated community review, unaffiliated with the Omarchy team, intended to help prepare PRs for their review.

Verified: The reorder fixes the reported problem on Intel-only and AMD-only systems. Under --noconfirm, pacman resolves an unsatisfied virtual dependency to its first provider. In current multilib, the first lib32-vulkan-driver provider is lib32-nvidia-utils, which requires nvidia-utils. Once omarchy-install-gaming-gpu-lib32 has installed lib32-vulkan-intel or lib32-vulkan-radeon, the dependency is already satisfied and the Steam transaction adds no NVIDIA packages. NVIDIA GSP, hybrid Intel plus NVIDIA, and Pascal (lib32-nvidia-580xx-utils) systems end with the same package set as before.

Simulated system Before (Steam first) This PR (lib32 driver first)
Intel UHD 620 nvidia-utils + lib32-nvidia-utils added, then lib32-vulkan-intel lib32-vulkan-intel only
AMD RDNA2 nvidia-utils + lib32-nvidia-utils added, then lib32-vulkan-radeon lib32-vulkan-radeon only
NVIDIA GSP, Intel + NVIDIA hybrid, Pascal 580xx unchanged unchanged

Steam is no longer installed when no GPU is detected

omarchy-install-gaming-gpu-lib32 ends with:

(( ${#PACKAGES[@]} > 0 )) && omarchy-pkg-add "${PACKAGES[@]}"

When nothing matches (for example a VM with a virtio, QXL or VMware GPU, or an NVIDIA GPU older than the supported GSP/580xx ranges), PACKAGES is empty. That last line then gives the helper exit status 1. omarchy-install-gaming-steam uses set -e and now calls the helper before omarchy-pkg-add steam:

Before: pkg-add steam (installs) -> gpu-lib32 exits 1 -> script stops, Steam installed but not launched
This PR: gpu-lib32 exits 1 -> script stops, Steam not installed

Impact: On those systems the menu's Steam install now fails before installing Steam. The only output is "Installing lib32 graphics drivers...". Before this PR, Steam was installed (with the NVIDIA packages) and only the automatic launch was skipped.

Suggested change: End bin/omarchy-install-gaming-gpu-lib32 with an if block, as install/hardware/vulkan.sh already does:

if (( ${#PACKAGES[@]} > 0 )); then
  omarchy-pkg-add "${PACKAGES[@]}"
fi

Steam then installs on undetected hardware as before, with pacman choosing the provider. The other gaming installers that call this helper no longer stop at that point either. Falling back to a generic provider such as lib32-vulkan-swrast, or lib32-vulkan-virtio for virtio GPUs, when nothing is detected would also keep NVIDIA packages off those systems.

Related, outside this PR: omarchy-install-gaming-lutris and omarchy-install-gaming-battlenet install umu-launcher before calling the lib32 helper. Current multilib umu-launcher also depends on lib32-vulkan-driver, so on Intel-only and AMD-only systems those installers pull in the same NVIDIA packages. The same reordering, together with the no-GPU fix above, would apply there. Heroic is not affected.

Comment wording: The new code comment names lib32-nvidia-utils as the provider pacman picks. That depends on the current alphabetical order of provider names, so saying "currently" would keep the comment accurate if the provider list changes.


Review information

Test scope: Source review of the changed script, the GPU detection helpers and pacman 7.x provider selection (resolvedep in lib/libalpm/deps.c, select_question in src/pacman/util.c). The real Omarchy scripts ran in an isolated sandbox against current Arch and Omarchy-stable repository databases, with real pacman -Sp resolution, synthetic installed-package databases and representative lspci/sysfs hardware data. Coverage: merge base, PR head and the current tip of the PR's base branch (quattro) with this change. No real hardware, real package installation or Vulkan runtime behavior was tested.

AI process: Opus 5.5 Medium coordination and synthesis, independent Opus 5.5 Xhigh and GPT 6 Sol Xhigh technical assessments, Opus 5.5 Medium editorial check.

Opt out: To stop receiving these reviews, reply to this comment saying so.

With an empty package list the trailing && left the helper with exit
status 1, which stopped the Steam installer before Steam was installed.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@selfcrypto

Copy link
Copy Markdown
Contributor Author

Confirmed. With no detected GPU the trailing && left the helper with exit status 1, and set -e in the Steam installer stopped before Steam was installed.

65883c3 ends the helper with the same if block as install/hardware/vulkan.sh, so the Lutris, Heroic and Battle.net installers get past that step too. The comment now says the provider is "currently" lib32-nvidia-utils.

The umu-launcher ordering in Lutris and Battle.net is the same problem but outside this PR, so I will leave it for a follow-up.

@llstrk

llstrk commented Sep 27, 2026

Copy link
Copy Markdown

Automated AI review

Community review: Independent automated community review, unaffiliated with the Omarchy team, intended to help prepare PRs for their review.

Follow-up to the earlier automated review and the author's reply. Checked revision: 65883c38.

Verified: The no-GPU exit status finding is resolved, and the comment wording note is resolved. The earlier Verified results still hold at this head and on the current quattro tip with this change applied. No regressions were found in the helper's callers or in the failure path.

Earlier item Status at 65883c38
Steam not installed when no GPU is detected Resolved
Code comment names the provider without "currently" Resolved
umu-launcher ordering in Lutris and Battle.net (outside this PR) Still present, deferred by the author

No-GPU exit status: resolved

bin/omarchy-install-gaming-gpu-lib32 now ends with the same if block as install/hardware/vulkan.sh, so an empty package list leaves the helper with exit status 0. On simulated systems with no detected GPU (virtio, QXL, VMware and an NVIDIA Kepler card), the helper exits 1 at 4c5f363d and 0 at 65883c38. The Steam installer on the virtio and Kepler systems:

4c5f363d:  gpu-lib32 exits 1 -> script stops, Steam not installed
65883c38:  gpu-lib32 exits 0 -> pkg-add steam -> launch step runs, installer exits 0

The author's claim about the other installers also holds: Lutris, Heroic and Battle.net now continue past the helper step on the virtio and Kepler systems and exit 0, where before they stopped with exit 1. With a GPU detected, the helper requests the same packages at every revision tested. When omarchy-pkg-add fails, the helper still returns that status and every caller stops right after it.

On undetected hardware, Steam still pulls in nvidia-utils and lib32-nvidia-utils, exactly as before this PR. The fallback provider mentioned earlier was optional and was not adopted, so this is not a regression.

Overlapping earlier PR #8875

Open PR #8875 ("Install lib32 GPU drivers before Steam", which says it fixes #8856), opened before this one, makes the same reorder in bin/omarchy-install-gaming-steam but does not change the helper. At its head 79c49c46, the Steam installer still exits 1 before installing Steam when no GPU is detected. The two PRs conflict in bin/omarchy-install-gaming-steam, so only one can merge as is.

Suggested change: Reference #8856 in this PR's description. Also mention there that omarchy-install-gaming-gpu-lib32 now exits 0 when no GPU is detected, which also lets Lutris, Heroic and Battle.net finish on such systems. The description currently covers only the line swap.


Review information

Test scope: Source review of the new commit, every caller of omarchy-install-gaming-gpu-lib32, and pacman 7.1.0 provider selection. The real Omarchy scripts ran in an isolated sandbox with package, sudo, hardware-probe and launch commands stubbed, against synthetic lspci/sysfs data, at the previous head, this head, the current quattro tip and quattro with this change. Package outcomes come from real pacman -Sp resolution against current Omarchy-stable and Arch repository databases with synthetic installed-package databases. PR #8875's head ran in the same sandbox. No real hardware, real package installation or Vulkan runtime behavior was tested.

AI process: Opus 5.5 Medium coordination and synthesis, Opus 5.5 Xhigh technical review and final fact check, GPT 6 Sol Xhigh search for related issues, Opus 5.5 Medium editorial check.

Opt out: To stop receiving these reviews, reply to this comment saying so.

@omarchybot omarchybot added bug Something isn't working verified Omarchy Triage has verified that this issue is ready for final review ready Good to merge labels Sep 27, 2026
@omarchybot

Copy link
Copy Markdown
Collaborator

Reviewed at 65883c38. Nothing found to change.

Reproduced on a disposable Omarchy worker. The worker ran the real omarchy-install-gaming-steam with lspci reporting an Intel UHD 620, and then an AMD Phoenix GPU. The Steam step resolved through real pacman -Sp --noconfirm against the current repositories, and the lib32 driver step really installed.

Revision Intel AMD
quattro (Steam first) nvidia-utils + lib32-nvidia-utils pulled in with Steam —
this PR no NVIDIA packages; lib32-vulkan-intel satisfies lib32-vulkan-driver no NVIDIA packages; lib32-vulkan-radeon satisfies it
this PR with the reorder reverted nvidia-utils + lib32-nvidia-utils again —

On the worker's own virtio GPU, where nothing is detected, the first commit alone stops with exit 1 before Steam is installed, and 65883c38 installs Steam and exits 0. Steam still pulls the NVIDIA packages there, exactly as before this PR. ./test/cli and the bin-style, battlenet and menu shell tests pass at this head on the worker. On current quattro, one CLI test (vscode generated theme references current theme file) fails with or without this change, so it is not this PR's.

Second opinion: Codex Medium reviewed the same head and found no defect. It checked every caller of omarchy-install-gaming-gpu-lib32 (Steam, Lutris, Heroic, Battle.net), the hybrid, NVIDIA GSP and 580xx paths, and confirmed that a real package failure still stops the callers. It saw this review's earlier reasoning, so its agreement is not guaranteed to be independent.

Competing fix: #8875 makes the same reorder without the helper change, so on a machine with no detected GPU it stops before installing Steam. Both reviews prefer this PR. #8875 stays open for the maintainer to close. This PR now says it fixes #8856.

Out of scope here: umu-launcher also depends on lib32-vulkan-driver, and omarchy-install-gaming-lutris and omarchy-install-gaming-battlenet install it before the helper, so those two installers can still pull the NVIDIA packages. The author has said that is for a follow-up.

This now waits on the maintainer.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working ready Good to merge verified Omarchy Triage has verified that this issue is ready for final review

Projects

None yet

Development

Successfully merging this pull request may close these issues.

omarchy-install-gaming-steam pulls nvidia-utils onto non-NVIDIA systems: --noconfirm picks lib32-nvidia-utils for steam's lib32-vulkan-driver dep

6 participants