NVIDIA 580 driver for pre-Turing GPUs, plus kriss-vm Limine and...
KrissOS: a Linux distribution by Kraze Tech, proudly Malaysian
Brought to you by:
krazetech
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.
nvidia-580xx-utils (which also builds nvidia-580xx-dkms and opencl-nvidia-580xx) and lib32-nvidia-580xx-utils, at 580.196.07-1.pkgs/nvidia-580xx-utils/SOURCES.md..run checksum was checked against a fresh download.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.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:kms hook, as installer/lib/configure does for nvidia-utils, and adds nvidia_drm.modeset=1.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.prime-run works.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.
/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).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.Kirigami.PagePool, and Backend is a child of the engine.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.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.pkgs.yml into tools/ci/build-pkgs.sh. Whichever lands second moves the skip-if-published case block into that script.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.installer/lib/configure. This PR leaves it alone and copies its kms rule.nvidia-smi, MX150 runtime suspend, cosmic-comp on the Intel GPU, and prime-run glxinfo / vulkaninfo.[kriss] only after merge, because PRs build but do not publish.