I guess my problem is precisely what the patch solves. Can anyone explain how to apply and compile? The instructions @rdahlgren gave below are a bit too concise for me
Search Criteria
Package Details: nvidia-390xx-utils 390.157-13
Package Actions
Git Clone URL: | https://aur.archlinux.org/nvidia-390xx-utils.git (read-only, click to copy) |
---|---|
Package Base: | nvidia-390xx-utils |
Description: | NVIDIA drivers utilities |
Upstream URL: | https://www.nvidia.com/ |
Licenses: | custom |
Conflicts: | nvidia-390xx-libgl, nvidia-libgl, nvidia-utils |
Provides: | nvidia-390xx-libgl, nvidia-libgl, nvidia-utils, opengl-driver, vulkan-driver |
Submitter: | svenstaro |
Maintainer: | jonathon (vnctdj) |
Last Packager: | vnctdj |
Votes: | 61 |
Popularity: | 2.20 |
First Submitted: | 2020-03-11 17:29 (UTC) |
Last Updated: | 2024-11-25 23:34 (UTC) |
Dependencies (6)
- egl-wayland (egl-wayland-gitAUR)
- libglvnd (libglvnd-gitAUR)
- xorg-server (xorg-server-gitAUR, xorg-server-bug865-issue1578AUR, xorg-server-bug865AUR)
- nvidia-390xx-settingsAUR (optional) – configuration tool
- opencl-nvidia-390xxAUR (optional) – OpenCL support
- xorg-server-devel (xorg-server-devel-gitAUR) (optional) – nvidia-xconfig
Required by (303)
- adaptivecpp (requires nvidia-utils)
- adaptivecpp-git (requires nvidia-utils)
- agisoft-metashape (requires nvidia-utils) (optional)
- agisoft-metashape-pro (requires nvidia-utils) (optional)
- airshipper (requires vulkan-driver) (optional)
- alchemy-viewer-git (requires nvidia-utils) (optional)
- alchemy-viewer-git (requires nvidia-libgl) (optional)
- aquamarine-git (requires opengl-driver)
- ares-emu (requires vulkan-driver)
- ares-emu-avx-git (requires vulkan-driver)
- ares-emu-git (requires vulkan-driver)
- armorpaint (requires opengl-driver)
- arrayfire-git (requires nvidia-utils) (optional)
- aurorafw-git (requires opengl-driver)
- autokey-git (requires nvidia-utils) (optional)
- blackmagic-raw-sdk (requires nvidia-utils) (optional)
- btop-git (requires nvidia-utils) (optional)
- btop-gpu-git (requires nvidia-utils) (optional)
- ccdc-mercury (requires opengl-driver)
- ccminer (requires nvidia-utils)
- Show 283 more...
Sources (16)
- gcc-14.patch
- https://us.download.nvidia.com/XFree86/Linux-x86_64/390.157/NVIDIA-Linux-x86_64-390.157.run
- kernel-4.16+-memory-encryption.patch
- kernel-6.10.patch
- kernel-6.12.patch
- kernel-6.2.patch
- kernel-6.3.patch
- kernel-6.4.patch
- kernel-6.5.patch
- kernel-6.6.patch
- kernel-6.8.patch
- nvidia-390xx-utils.sysusers
- nvidia-390xx.rules
- nvidia-drm-outputclass.conf
- systemd-homed-override.conf
- systemd-suspend-override.conf
Latest Comments
« First ‹ Previous 1 .. 8 9 10 11 12 13 14 15 16 17 18 .. 27 Next › Last »
sfranchi commented on 2023-07-04 13:52 (UTC)
sfranchi commented on 2023-07-04 13:18 (UTC)
The package no longer compiles on my Thinkpad W520. dkms installation fails with this error:
CC [M] /var/lib/dkms/nvidia/390.157/build/nvidia-drm/nvidia-drm-gem.o
/var/lib/dkms/nvidia/390.157/build/nvidia-drm/nvidia-drm-drv.c: In function ‘nv_drm_update_drm_driver_features’:
/var/lib/dkms/nvidia/390.157/build/nvidia-drm/nvidia-drm-drv.c:769:18: error: ‘struct drm_driver’ has no member named ‘dumb_destroy’
769 | nv_drm_driver.dumb_destroy = nv_drm_dumb_destroy;
| ^
make[2]: *** [scripts/Makefile.build:252: /var/lib/dkms/nvidia/390.157/build/nvidia-drm/nvidia-drm-drv.o] Error 1
make[2]: *** Waiting for unfinished jobs....
make[1]: *** [Makefile:2026: /var/lib/dkms/nvidia/390.157/build] Error 2
make: *** [Makefile:81: modules] Error 2
I wanted to try reverting to the previous version, but downgrade seems to think the next to last version of the package is 390.132. No other versions came out between 132 and 157?
duht commented on 2023-07-03 22:13 (UTC)
As 6.4.1 is now in core, could someone add this patch to PKGBUILD here in aur?
drankinatty commented on 2023-07-03 21:10 (UTC) (edited on 2023-07-03 21:12 (UTC) by drankinatty)
And thanks to @duht as well. The omission in thanking you wasn't intentional. Locating the 470 patch and posting here is greatly appreciated. I'll make a note to provide proper attribution to all next time, e.g.
(additions to PKGBUILD prepare())
# From Ike Devolder
patch -Np1 -i ../../kernel-6.3.patch
# From duht as modified by rdahlgren at AUR nvidia-390xx-utils page
patch -Np1 -i ../../kernel-6.4.patch
:)
... despite the "lazy" ... comment which I take was dry humor ...
duht commented on 2023-07-03 11:13 (UTC)
@rdahlgren as I said: patch is very simple and needs some minor modyfications to work with 390xx. You did it right and now all the rest of the lazy ones just waiting for the finished product are thanking only you;)
quivenda commented on 2023-07-03 09:47 (UTC) (edited on 2023-07-04 08:05 (UTC) by quivenda)
Yes, thanks @rdahlgren, for the patch!
Edit: Also thanks for @duht.
drankinatty commented on 2023-07-03 05:51 (UTC)
Yes, double Thank You @rdahlgren. Patch worked perfectly. Incremented pkgrel in PKGBUILD, added the kernel-6.4.patch and b2sum to the list of sources and b2sums, added the patch to prepare below the kernel-6.3.patch, e.g.
# From Ike Devolder
patch -Np1 -i ../../kernel-6.3.patch
# From rdahlgren at AUR nvidia-390xx-utils page
patch -Np1 -i ../../kernel-6.4.patch
Built and then upgraded the -dkms, -utils and opencl-nvidia (optional) packages, did the system upgrade and pulled in the 6.4 kernel and drivers rebuilt seamlessly.
Let's hope @rdahlgren is here for the 6.5 upgrade :)
friday13 commented on 2023-07-03 01:33 (UTC)
ty @rdahlgren
rdahlgren commented on 2023-07-02 19:57 (UTC) (edited on 2023-07-02 20:35 (UTC) by rdahlgren)
I followed @duht's clue but had some trouble installing the patch as-is. To get it working, I updated the patch to be simply
*** a/nvidia-drm/nvidia-drm-drv.c 2023-07-02 16:08:37.702462187 -0400
20 "https://us.download.nvidia.com/XFree86/Linux-x86_64/${pkgver}/${_pkg}.run"
--- b/nvidia-drm/nvidia-drm-drv.c 2023-07-02 16:23:58.040020274 -0400
*************** static void nv_drm_update_drm_driver_fea
*** 766,772 ****
--- 766,774 ----
nv_drm_driver.dumb_create = nv_drm_dumb_create;
nv_drm_driver.dumb_map_offset = nv_drm_dumb_map_offset;
+ #if LINUX_VERSION_CODE < KERNEL_VERSION(6, 4, 0)
nv_drm_driver.dumb_destroy = nv_drm_dumb_destroy;
+ #endif
#if defined(NV_DRM_DRIVER_HAS_GEM_PRIME_CALLBACKS)
nv_drm_driver.gem_vm_ops = &nv_drm_gem_vma_ops;
Then I added this file (named kernel-6.4.patch
) to the list of files in teh PKGBUILD and used b2sum
to generate the necessary b2sum value. From there it built and dkms was able to install without issue.
duht commented on 2023-07-02 02:00 (UTC)
6.4 require a patch. It's for NVIDIA 470.182.03 so it requires minor modyfications, but it's very simple. I tested it with linux-xanmod 6.4 and works fine.
Pinned Comments
jonathon commented on 2022-05-26 09:46 (UTC)
Please don't flag this package out-of-date unless a new version has been released by NVIDIA.
jonathon commented on 2021-12-26 22:44 (UTC) (edited on 2021-12-26 22:44 (UTC) by jonathon)
The DKMS package guidelines are explicit that
linux-headers
should not be a dependency of any DKMS package.As a concrete example of why including that as a hard dependency is a bad idea, what happens when
linux
is not an installed kernel?jonathon commented on 2020-10-19 12:41 (UTC) (edited on 2021-05-11 14:18 (UTC) by jonathon)
PACKAGE NEEDS LONG TERM MAINTAINER
I have adopted the 390xx packages to keep them secure. I do not run any 390xx hardware so will not notice any breakages and cannot test any changes.
Until such time as someone else steps up to maintain these packages - ideally someone who actually has 390xx hardware - I have to rely on you to tell me what changes are needed.
Don't expect a response if you post only "this doesn't work", and do not email me to complain about the package not working!
Use this forum thread for discussion: https://bbs.archlinux.org/viewtopic.php?pid=1946926
A binary package is also available in my kernel-lts unofficial user repository.