Package Details: nvidia-390xx-dkms 390.157-13

Git Clone URL: https://aur.archlinux.org/nvidia-390xx-utils.git (read-only, click to copy)
Package Base: nvidia-390xx-utils
Description: NVIDIA drivers - module sources
Upstream URL: https://www.nvidia.com/
Licenses: custom
Provides: NVIDIA-MODULE
Submitter: svenstaro
Maintainer: jonathon (vnctdj)
Last Packager: vnctdj
Votes: 60
Popularity: 2.69
First Submitted: 2020-03-11 17:29 (UTC)
Last Updated: 2024-11-25 23:34 (UTC)

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.

Latest Comments

« First ‹ Previous 1 .. 7 8 9 10 11 12 13 14 15 16 17 .. 26 Next › Last »

canolucas commented on 2023-07-05 00:02 (UTC) (edited on 2023-07-05 00:08 (UTC) by canolucas)

I just added the "herecura" repo to /etc/pacman.conf

[herecura]

Server = https://repo.herecura.eu/herecura/x86_64

After that, I run: pacman -Syu

both this package and the new kernel loaded just fine.

I think i get faster updates this way, the mantainer uses gitlab:

https://gitlab.com/herecura/packages/nvidia-390xx-dkms

It even allows branching and sending merge requests with new patches or PKGBUILD updates using the site, its very intuitive, I think that's why the package updates faster in this new repo.

sfranchi commented on 2023-07-04 13:52 (UTC)

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

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.