Public bug reported:
SUMMARY:
On Ubuntu 24.04.4 LTS with HWE kernel 6.17, the package
linux-modules-nvidia-580-6.17.0-22-generic ships pre-built NVIDIA kernel
modules compiled against driver version 580.142, while the userspace libraries
(libnvidia-gl-580, nvidia-utils-580, etc.) are upgraded to version 580.159.03.
This version mismatch causes:
1. nvidia-smi fails with "Driver/library version mismatch. NVML library
version: 580.159"
2. Xorg sessions (GNOME on Xorg, KDE Plasma X11) fail to start - login leads to
black screen and returns to GDM
3. dmesg shows: "NVRM: API mismatch: the client 'Xorg' has the version
580.159.03, but this kernel module has the version 580.142"
4. Wayland sessions appear to work, but only because hybrid graphics (on-demand
prime) renders on Intel iGPU instead of NVIDIA
STEPS TO REPRODUCE:
1. Install Ubuntu 24.04 on a system with NVIDIA Optimus hybrid graphics (Intel
iGPU + NVIDIA dGPU)
2. Install nvidia-driver-580 via ubuntu-drivers
3. Allow HWE kernel upgrade to 6.17.0-22 (or 6.17.0-29)
4. Run apt full-upgrade when nvidia-graphics-drivers-580 update 580.142 →
580.159.03 is available
5. The userspace libraries upgrade to 580.159.03, but
linux-modules-nvidia-580-6.17.0-22-generic ships pre-built modules built
against 580.142 source
6. Reboot and try to log into Xorg session
EXPECTED BEHAVIOR:
The pre-built kernel module in linux-modules-nvidia-580-* should match the
userspace library version in libnvidia-*-580 packages, both being 580.159.03.
ACTUAL BEHAVIOR:
Pre-built kernel module is 580.142 while userspace is 580.159.03 → API mismatch
→ Xorg unusable.
WORKAROUND TRIED:
- Installing nvidia-dkms-580 to force local compilation works for the current
kernel but creates conflict with pre-built modules
- Purging linux-modules-nvidia-580-* and using only DKMS causes other
unpredictable issues
- Eventually had to downgrade to nvidia-driver-535 to get a working system
HARDWARE:
- HP Pavilion Laptop 15-eg0xxx
- Intel Tiger Lake-LP GT2 [Iris Xe Graphics] (iGPU)
- NVIDIA GP107M [GeForce MX350] (dGPU, Optimus/muxless)
- BIOS version: F.22
- Hybrid graphics mode: on-demand
SOFTWARE:
- Ubuntu 24.04.4 LTS
- Kernel: 6.17.0-22-generic (HWE)
- Affected packages:
- linux-modules-nvidia-580-6.17.0-22-generic 6.17.0-22.22~24.04.1+1 (ships
580.142 pre-built)
- linux-modules-nvidia-580-6.17.0-29-generic 6.17.0-29.29~24.04.1+1
- libnvidia-gl-580 580.159.03-0ubuntu0.24.04.1 (mismatched)
- nvidia-utils-580 580.159.03-0ubuntu0.24.04.1 (mismatched)
ADDITIONAL OBSERVATIONS:
- Kernel 6.17.0-29-generic fails to boot at all on this hardware (hangs at HP
logo, then powers off). This may or may not be related to the NVIDIA mismatch
but warrants investigation.
- The apt history shows this issue spans multiple driver versions; the system
has been forcibly downgraded back to nvidia-driver-535 to maintain usability.
- Multiple unused 32-bit libnvidia-*-550 i386 packages remain after various
upgrade/downgrade cycles, suggesting orphan handling is also broken.
LAUNCHPAD/PACKAGING QUESTION:
Why does linux-modules-nvidia-580-6.17.0-22-generic in noble-updates ship a
pre-built module from driver version 580.142 instead of being rebuilt against
580.159.03 when that became the current driver version? This appears to be a
packaging coordination issue between the linux-modules-nvidia-580-* and
nvidia-graphics-drivers-580 source packages.
ProblemType: Bug
DistroRelease: Ubuntu 24.04
Package: linux-modules-nvidia-580-generic-hwe-24.04 (not installed)
ProcVersionSignature: Ubuntu 6.17.0-22.22~24.04.1-generic 6.17.13
Uname: Linux 6.17.0-22-generic x86_64
ApportVersion: 2.28.1-0ubuntu3.8
Architecture: amd64
AudioDevicesInUse:
USER PID ACCESS COMMAND
/dev/snd/controlC1: npetrov 3716 F.... wireplumber
/dev/snd/controlC0: npetrov 3710 F.... pipewire
npetrov 3716 F.... wireplumber
/dev/snd/seq: npetrov 3710 F.... pipewire
CRDA: N/A
CasperMD5CheckResult: pass
CurrentDesktop: ubuntu:GNOME
Date: Sun May 24 01:44:35 2026
InstallationDate: Installed on 2024-10-31 (569 days ago)
InstallationMedia: Ubuntu 24.04.1 LTS "Noble Numbat" - Release amd64
(20240827.1)
MachineType: HP HP Pavilion Laptop 15-eg0xxx
ProcEnviron:
LANG=en_US.UTF-8
PATH=(custom, no user)
SHELL=/bin/bash
TERM=xterm-256color
XDG_RUNTIME_DIR=<set>
ProcFB: 0 i915drmfb
ProcKernelCmdLine: BOOT_IMAGE=/boot/vmlinuz-6.17.0-22-generic
root=UUID=cfecccd2-ca56-4dfa-a460-a88e44bb8763 ro quiet splash vt.handoff=7
RelatedPackageVersions:
linux-restricted-modules-6.17.0-22-generic N/A
linux-backports-modules-6.17.0-22-generic N/A
linux-firmware 20240318.git3b128b60-0ubuntu2.27
SourcePackage: linux-restricted-modules-hwe-6.17
UpgradeStatus: No upgrade log present (probably fresh install)
dmi.bios.date: 10/07/2021
dmi.bios.release: 15.22
dmi.bios.vendor: Insyde
dmi.bios.version: F.22
dmi.board.asset.tag: Type2 - Board Asset Tag
dmi.board.name: 87CC
dmi.board.vendor: HP
dmi.board.version: 34.29
dmi.chassis.asset.tag: Chassis Asset Tag
dmi.chassis.type: 10
dmi.chassis.vendor: HP
dmi.chassis.version: Chassis Version
dmi.ec.firmware.release: 34.29
dmi.modalias:
dmi:bvnInsyde:bvrF.22:bd10/07/2021:br15.22:efr34.29:svnHP:pnHPPavilionLaptop15-eg0xxx:pvrType1ProductConfigId:rvnHP:rn87CC:rvr34.29:cvnHP:ct10:cvrChassisVersion:sku2X1B5EA#AKS:
dmi.product.family: 103C_5335KV HP Pavilion
dmi.product.name: HP Pavilion Laptop 15-eg0xxx
dmi.product.sku: 2X1B5EA#AKS
dmi.product.version: Type1ProductConfigId
dmi.sys.vendor: HP
** Affects: linux-restricted-modules-hwe-6.17 (Ubuntu)
Importance: Undecided
Status: New
** Tags: amd64 apport-bug noble wayland-session
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2154093
Title:
linux-modules-nvidia-580 contains pre-built kernel module version
580.142 while userspace libnvidia-* packages are version 580.159.03,
causing API mismatch and broken Xorg sessions
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/linux-restricted-modules-hwe-6.17/+bug/2154093/+subscriptions
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs