Package Details: nvidia-550xx-utils 550.163.01-2

Git Clone URL: https://aur.archlinux.org/nvidia-550xx-dkms.git (read-only, click to copy)
Package Base: nvidia-550xx-dkms
Description: NVIDIA drivers utilities, 550 branch
Upstream URL: http://www.nvidia.com/
Keywords: 550 beta dkms drivers kernel nvidia panic utils whatever
Licenses: custom
Conflicts: egl-gbm, nvidia-libgl, nvidia-utils
Provides: egl-gbm, nvidia-libgl, nvidia-utils, opengl-driver, vulkan-driver
Submitter: Kimiblock
Maintainer: failsafe65
Last Packager: failsafe65
Votes: 9
Popularity: 1.87
First Submitted: 2024-08-03 13:43 (UTC)
Last Updated: 2025-05-15 22:18 (UTC)

Required by (332)

Sources (7)

Latest Comments

1 2 3 Next › Last »

Niluge_KiWi commented on 2025-07-21 22:06 (UTC)

I've followed instructions from @fl4tisjustice and @Philanche, and simplified packaging, here is the result: https://github.com/Niluge-KiWi/aur-nvidia-550xx-dkms/commit/531accd274b1d6f3f88e8f4ede0c1e2bc5eac656#diff-c13dbcca92f9ff12cd26ecce958be3f9ee8563baace04f7a463a6d2dd4252e0b

Subject: [PATCH] aggregate random patches to make it work on linux 6.15

- patches taken from https://aur.archlinux.org/packages/nvidia-550xx-dkms#comment-1028266
  - I don't know what they do
- more instructions from https://aur.archlinux.org/packages/nvidia-550xx-dkms#comment-1028583

packaging improvement:
- replaced broken 0003-Kbuild-Convert-EXTRA_CFLAGS-to-ccflags-y by a
  simple sed (no risk of future conflict, or patch of patch depending
  on previous patches)
- adjust patch path striping to patch kernel/ and not kernel-open/ in 0004-kernel-open-nvidia-Use-new-timer-functions-for-6.15.patch
- get patches from pinned commits from actual upstream
---

diff --git a/PKGBUILD b/PKGBUILD
index 7c66522..677669b 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -7,7 +7,7 @@
 pkgbase=nvidia-550xx-dkms
 pkgname=('nvidia-550xx-utils' 'opencl-nvidia-550xx' 'nvidia-550xx-dkms')
 pkgver=550.163.01
-pkgrel=2
+pkgrel=3
 pkgdesc="NVIDIA drivers for Linux, 550 branch"
 arch=('x86_64')
 url="http://www.nvidia.com/"
@@ -21,6 +21,8 @@ source=('nvidia-drm-outputclass.conf'
                'systemd-homed-override.conf'
                'systemd-suspend-override.conf'
                '0002-CFLAGS-Set-std-gnu17-for-all-compilation-flags.patch'
+               'https://github.com/CachyOS/CachyOS-PKGBUILDS/raw/0b700e574f7769e5db4b846b4e9d559f4e4f6b38/nvidia/nvidia-utils/0003-Workaround-nv_vm_flags_-calling-GPL-only-code.patch'
+               'https://github.com/CachyOS/CachyOS-PKGBUILDS/raw/0b700e574f7769e5db4b846b4e9d559f4e4f6b38/nvidia/nvidia-utils/0004-kernel-open-nvidia-Use-new-timer-functions-for-6.15.patch'
                "https://us.download.nvidia.com/XFree86/Linux-x86_64/${pkgver}/${_pkg}.run")
 sha512sums=('de7116c09f282a27920a1382df84aa86f559e537664bb30689605177ce37dc5067748acf9afd66a3269a6e323461356592fdfc624c86523bf105ff8fe47d3770'
                        '4b3ad73f5076ba90fe0b3a2e712ac9cde76f469cd8070280f960c3ce7dc502d1927f525ae18d008075c8f08ea432f7be0a6c3a7a6b49c361126dcf42f97ec499'
@@ -28,6 +30,8 @@ sha512sums=('de7116c09f282a27920a1382df84aa86f559e537664bb30689605177ce37dc50677
                        'a0183adce78e40853edf7e6b73867e7a8ea5dabac8e8164e42781f64d5232fbe869f850ab0697c3718ebced5cde760d0e807c05da50a982071dfe1157c31d6b8'
                        '55def6319f6abb1a4ccd28a89cd60f1933d155c10ba775b8dfa60a2dc5696b4b472c14b252dc0891f956e70264be87c3d5d4271e929a4fc4b1a68a6902814cee'
                        '6814990f8046759d35f724ac9114d7fa284710fd1ad8cca7e1a861ea54a72fe4f67b5614f157a911f5ecfa0c964fa989edc61c85b1cfef6428e0cd7cdeea856e'
+                       '21c964b4d0ceda23d543485cb285becf111849313da3ff9cc9c7bed241de83fd826d72f196d071e4f53790b8fd5d1e3dab9319c0ca08b37c9c841f45d3afd041'
+                       'eb5cfdb4ccaea5aee8626009b66c9024929fd921784080fb34b6db0f222c2908ea7c4932e492c24afb570de79c78489d67e4e07312dc67ce6415ad0b5f38e008'
                        '676b1de35d21e80091528a49080c114e0870ea90b3f3721265ae8071abbc2183c851e6f11ba96a332c743fedfaf4ec9a014ad6ceed586fdbb03d94d33405e356'
                        )

@@ -50,6 +54,11 @@ prepare() {
     # GCC 15
     patch -Np1 -i "${srcdir}/0002-CFLAGS-Set-std-gnu17-for-all-compilation-flags.patch" -d "${srcdir}/${_pkg}/kernel"

+    # linux 6.15, from https://aur.archlinux.org/packages/nvidia-550xx-dkms#comment-1028583 and https://aur.archlinux.org/packages/nvidia-550xx-dkms#comment-1028266
+    sed -i "s/EXTRA_CFLAGS/ccflags-y/" "${srcdir}/${_pkg}/kernel/Kbuild"
+    patch -Np1 -i "${srcdir}/0003-Workaround-nv_vm_flags_-calling-GPL-only-code.patch" -d "${srcdir}/${_pkg}/kernel"
+    patch -Np2 -i "${srcdir}/0004-kernel-open-nvidia-Use-new-timer-functions-for-6.15.patch" -d "${srcdir}/${_pkg}/kernel"
+
        cd kernel

        sed -i "s/__VERSION_STRING/${pkgver}/" dkms.conf
-- 
2.50.1

tested with linux 6.15.7.arch1-1

ww998 commented on 2025-06-27 08:56 (UTC) (edited on 2025-06-27 08:58 (UTC) by ww998)

As this driver does not build with the current kernel at the moment I was looking for alternatives. The AUR package for the 525 driver (https://aur.archlinux.org/packages/nvidia-525xx-dkms) has been updated recently and builds fine with kernel 6.15.3. This might be an option for people who are in need of an older NVIDIA driver, until this one gets updated.

jadespace commented on 2025-06-13 09:43 (UTC)

+1 to needing this package to stay maintained. I tried updating to 575 (nvidia-open) + 6.15.2 to see if my 3050 Mobile was finally stable yet with the newer drivers, but every version past 550 is still dysfunctional for me. Past 550, I can't keep the laptop in discrete graphics mode without the laptop constantly freezing from the GPU hard crashing:

kernel: NVRM: GPU at PCI:0000:01:00: GPU-1d3e636f-6ffd-9532-60af-bcc87b1a453d
kernel: NVRM: Xid (PCI:0000:01:00): 79, GPU has fallen off the bus.
kernel: NVRM: GPU 0000:01:00.0: GPU has fallen off the bus.

Pinning linux, etc. to 6.14 for now and hoping this package gets updated.

Philanche commented on 2025-06-13 09:36 (UTC) (edited on 2025-06-13 09:37 (UTC) by Philanche)

@fl4tisjustice: Thanks a lot, thanks to your comment I was able to get the drivers to work. If anyone else is struggling, here is exactly what I did:

  • Download all 3 patch files (including the workaround one, it was in fact necessary as dkms was complaining without it)

  • Add them to the PKGBUILD source, and add 'SKIP' in the sha512sums for each of them (as we will need to modify them)

  • For both 0003-Kbuild and 0004-kernel, search and replace kernel-open with kernel.

  • For 0003-Kbuild, we need to replace the line added by patch 0002-CFLAGS, by adding a line -EXTRA_CFLAGS += -std=gnu17 before the line -EXTRA_CFLAGS += -I$(src)/common/inc, and similarly adding a line +ccflags-y += -std=gnu17 before +ccflags-y += -I$(src)/common/inc. Then, on lines 96 and 97, we need to add -mno-altivec at the end, so line 96 should become - EXTRA_CFLAGS += -mlittle-endian -mno-strict-align -mno-altivec (this is after the line ifeq ($(ARCH),powerpc), so you can just search for powerpc to find it)

Normally, after these edits, and following the blacklist that @fl4tisjustice said, you should be able to build, reboot, and have your drivers working.

ww998 commented on 2025-06-12 12:58 (UTC)

@fl4tisjustice: Thank you very much. I guess applying these fixes manualy by myself is over my skill level. I'll wait for an updated package.

Sadly this driver package is the last one not affected by this bug, that makes every newer version unusable on systems with external screens: https://forums.developer.nvidia.com/t/external-monitor-freezes-when-using-dedicated-gpu/

fl4tisjustice commented on 2025-06-11 11:30 (UTC) (edited on 2025-06-11 11:40 (UTC) by fl4tisjustice)

After a while of scouring, I managed to get it to build and work after:

Then finally and most annoyingly you have to add:

blacklist nova_core

blacklist nova_drm

to /etc/modprobe.d/blacklist.conf or similar file, since apparently 6.15 comes with these new drivers, and they'll end up binding to the GPU before nvidia has a chance to

Then for it to take effect just regenerate initramfs either manually with mkinitcpio or by reinstalling the kernel.

(I also ended up applying https://github.com/CachyOS/CachyOS-PKGBUILDS/blob/feat/nvidia-575/nvidia/nvidia-utils/0003-Workaround-nv_vm_flags_-calling-GPL-only-code.patch while I was testing stuff but supposedly it shouldn't be needed since that's only for closed source, but I'll mention it since you never know)

ww998 commented on 2025-06-10 14:39 (UTC) (edited on 2025-06-10 14:43 (UTC) by ww998)

Building fails for me with the 2025-05-15 package.

nvidia/nv-cray.c:26:10: os-interface.h: file or directory not found 26 | #include "os-interface.h"

Full buildlog is here: https://voidbin.com/paste/46f3b414-c32a-4cf0-9dec-47d8a9f057a1

Any help to fix this is greatly appreciated.

EDIT: Found this here, probably related https://github.com/NVIDIA/open-gpu-kernel-modules/issues/866

Hope the package is not broken beyond repair.

jadespace commented on 2025-05-16 09:15 (UTC)

@failsafe65, thanks for the patch. It's a little hard to follow the changes with all the whitespace updates, but it does like the more generalized fix was more complicated than just updating the PKGBUILD. Everything's working here on my end, finally updating to GCC 15, with a 3050 Mobile in discrete graphics mode, 12 processes in nvidia-smi, and laptop suspend still working as normal :)

acuriouscrow commented on 2025-05-11 17:08 (UTC)

Is there a plan to incorporate these patch steps into the package as a whole? I'm trying to decide if I should do them or wait for the package to be updated.

BoringCat commented on 2025-05-07 02:31 (UTC)

@ww998: I got some idea and build succeed with gcc version 15.1.1 20250425 (GCC)

  1. download 0002-CFLAGS-Set-std-gnu17-for-all-compilation-flags.patch file and add into PKGBUILD
  2. add patch command in prepare function
  3. just make it

Here is diff for PKGBUILD file

diff --git a/PKGBUILD b/PKGBUILD
index 75f4214..9a4cd94 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -20,12 +20,14 @@ source=('nvidia-drm-outputclass.conf'
         'nvidia.rules'
         'systemd-homed-override.conf'
         'systemd-suspend-override.conf'
+        '0002-CFLAGS-Set-std-gnu17-for-all-compilation-flags.patch'
         "https://us.download.nvidia.com/XFree86/Linux-x86_64/${pkgver}/${_pkg}.run")
 sha512sums=('de7116c09f282a27920a1382df84aa86f559e537664bb30689605177ce37dc5067748acf9afd66a3269a6e323461356592fdfc624c86523bf105ff8fe47d3770'
             '4b3ad73f5076ba90fe0b3a2e712ac9cde76f469cd8070280f960c3ce7dc502d1927f525ae18d008075c8f08ea432f7be0a6c3a7a6b49c361126dcf42f97ec499'
             'f8f071f5a46c1a5ce5188e104b017808d752e61c0c20de1466feb5d693c0b55a5586314411e78cc2ab9c0e16e2c67afdd358da94c0c75df1f8233f54c280762c'
             'a0183adce78e40853edf7e6b73867e7a8ea5dabac8e8164e42781f64d5232fbe869f850ab0697c3718ebced5cde760d0e807c05da50a982071dfe1157c31d6b8'
             '55def6319f6abb1a4ccd28a89cd60f1933d155c10ba775b8dfa60a2dc5696b4b472c14b252dc0891f956e70264be87c3d5d4271e929a4fc4b1a68a6902814cee'
+            '6814990f8046759d35f724ac9114d7fa284710fd1ad8cca7e1a861ea54a72fe4f67b5614f157a911f5ecfa0c964fa989edc61c85b1cfef6428e0cd7cdeea856e'
             '676b1de35d21e80091528a49080c114e0870ea90b3f3721265ae8071abbc2183c851e6f11ba96a332c743fedfaf4ec9a014ad6ceed586fdbb03d94d33405e356')


@@ -40,6 +42,7 @@ create_links() {
 }

 prepare() {
+    local buildroot=$PWD
     sh "${_pkg}.run" --extract-only
     cd "${_pkg}"
     bsdtar -xf nvidia-persistenced-init.tar.bz2
@@ -62,6 +65,9 @@ DEST_MODULE_LOCATION[4]="/kernel/drivers/video"' dkms.conf

     # Gift for linux-rt guys
     sed -i 's/NV_EXCLUDE_BUILD_MODULES/IGNORE_PREEMPT_RT_PRESENCE=1 NV_EXCLUDE_BUILD_MODULES/' dkms.conf
+
+    # patch for gcc 15
+    patch -i ${buildroot}/0002-CFLAGS-Set-std-gnu17-for-all-compilation-flags.patch
 }

 package_opencl-nvidia-550xx() {