Menu ▾ ▴

#33 NVIDIA 580 driver for pre-Turing GPUs, plus kriss-vm Limine and kriss-welcome page fixes

open
nobody
None
2026-11-16
2026-11-16
Anonymous
No

Originally created by: idiazraz

Offers NVIDIA's 580 driver as an optional, online extra for GPUs older than Turing (Maxwell, Pascal, Volta, such as the GeForce MX150). Also fixes two bugs found on the same laptop. Each is its own commit.

The 580 driver

  • Packages: pinned builds of the AUR's nvidia-580xx-utils (which also builds nvidia-580xx-dkms and opencl-nvidia-580xx) and lib32-nvidia-580xx-utils, at 580.196.07-1.
  • AUR commits, credits, licences and bump steps are in pkgs/nvidia-580xx-utils/SOURCES.md.
  • The .run checksum was checked against a fresh download.
  • The only change from the AUR: lib32's licence symlink pointed at itself.
  • CI size: pkgs.yml skips winboat and these packages when their exact version is already in [kriss]. The ~400 MB driver is rebuilt and uploaded only on a bump, not on every push to main.
  • Which GPUs: kriss hwcheck reports nvidia_legacy for device ids 0x1340 ≤ id < 0x1e00. That range comes from the driver's own supported-gpus.json: its pre-Turing GPUs run from 0x1340 to 0x1df6, and no 470-or-older GPU falls inside it.
  • pkexec kriss nvidia setup:
  • Installs the driver, the running kernel's headers and, when multilib is on, the lib32 package.
  • Drops the kms hook, as installer/lib/configure does for nvidia-utils, and adds nvidia_drm.modeset=1.
  • Rebuilds the initramfs and the Limine menu.
  • On hybrid laptops it also installs nvidia-prime (for prime-run), sets COSMIC_RENDER_DEVICE to the iGPU in /etc/environment (ARCHITECTURE §5) and adds NVIDIA's runtime PM udev rule and NVreg_DynamicPowerManagement=0x02.
  • kriss nvidia check is read-only.
  • kriss-welcome:
  • The Drivers and extras page shows the card only on such PCs.
  • It says the driver is in long-term maintenance, that nouveau stays if you skip it, and how prime-run works.
  • Every extra now shows "Needs internet" while offline (via Qt's NetworkManager reachability) instead of failing.
  • Bahasa Melayu strings are included.
  • The installer is unchanged. The offline install never needs this driver.

Known limit: NVIDIA's README supports runtime D3 only on Turing and newer. With this driver, a Pascal laptop GPU may stay powered, where nouveau lets it suspend. The card text says so plainly. This will be measured on the MX150 before merging.

Fixes

  • kriss-vm: a Limine system with /etc/kernel/cmdline (KrissOS) was reported as sdboot-uki. Limine is now detected first, and its menu is regenerated with kriss-limine-update. --self-test covers both cases, and passes on the X510UNR (boot ok: limine-cmdline).
  • kriss-welcome: Kirigami's PageRow creates a pushed Component with a QtObject parent. That caused the "not placed in the graphics scene" warning on every page, and clear() destroyed the page on each switch. ExtrasPage's dialog binding then ran against a null backend (ExtrasPage.qml:51), and an install in progress lost its state.
  • Pages now come from a Kirigami.PagePool, and Backend is a child of the engine.
  • The smoke test no longer ignores the warning. It now picks an install, switches pages and tears down normally. On main the same test prints the null-backend TypeErrors; with this fix it is clean on the laptop's Kirigami 6.32 / PySide6 6.12.

Tests

  • tools/ci/nvidia-test.sh (new, in CI): checks the GPU range and that the config edits are right on a second run.
  • test_welcome.py, smoke_qml.py, tune-test.sh and kriss-vm --self-test pass on the laptop. shellcheck is clean.

Overlap with open PRs

  • #27 turns the build loop in pkgs.yml into tools/ci/build-pkgs.sh. Whichever lands second moves the skip-if-published case block into that script.
  • #28 bumps kriss-tools to 0.6.0 (this PR: 0.5.1) and edits tools/kriss and pkgs.yml's lint line. Expect small textual conflicts there.
  • #30 edits installer/lib/configure. This PR leaves it alone and copies its kms rule.
  • ARCHITECTURE.md: [#27]–#30 also touch it. This PR changes one bullet in the installer section.

Not done yet

  • Hardware test: installing on the X510UNR waits for the owner's go-ahead. The plan is to check nvidia-smi, MX150 runtime suspend, cosmic-comp on the Intel GPU, and prime-run glxinfo / vulkaninfo.
  • Package availability: the packages reach [kriss] only after merge, because PRs build but do not publish.

Related

Tickets: #27

Discussion


Log in to post a comment.