You are not logged in.

#1 2022-08-29 18:13:40

diniamo
Member
Registered: 2022-06-15
Posts: 107

[SOLVED] Nvidia driver API mismatch

Hello there, I'm trying to install the nvidia driver using the packages from the repo. I'm pointing that out because previously, every time there was a kernel upate I insallted it manually from the website.

I uninstalled the driver using:

sudo ./nvidia-installer-filename --uninstall

Then I installed the following packages: nvidia-dkms (this installs dkms), nvidia-utils, nvidia-settings, opencl-nvidia

I ran

sudo nvidia-xconfig

as mentioned in the installion guide.

I don't really have a way of copy pasting the whole error, but its saying that there is a version mismatch between the client and the kernel. Its the two latest versions.

Last edited by diniamo (2022-09-03 08:22:26)

Offline

#2 2022-08-29 18:26:06

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 25,263

Re: [SOLVED] Nvidia driver API mismatch

don't run nvidia-xconfig and remove the config it generated. If the driver version between what you used to have installed and what you installed now differ, you need to reboot in order for the new module to take effect.

all versions of nvidia and nvidia-utils packages need to match and you need to be booted in the relevant kernel that has the modules. FWIW post

pacman -Qo /usr/lib/libGL*nvidia*
dkms status
pacman -Q linux linux-headers
uname -a

As for having no way to copy the error, if you have a working terminal and internet connection you can post the outputs of any command https://wiki.archlinux.org/title/List_o … n_services

Last edited by V1del (2022-08-29 18:26:38)

Offline

#3 2022-08-30 16:51:09

diniamo
Member
Registered: 2022-06-15
Posts: 107

Re: [SOLVED] Nvidia driver API mismatch

I hope you don't mind me just posting the link, but here is the output of those commands, separated by a line of -'s: http://0x0.st/opuo.txt

also, why shouldnt i run xconfig? thats what the wiki says

Last edited by diniamo (2022-08-30 16:51:33)

Offline

#4 2022-08-30 16:52:47

Scimmia
Fellow
Registered: 2012-09-01
Posts: 13,729

Re: [SOLVED] Nvidia driver API mismatch

Did you add the nvidia module to the initramfs? If so, did you regenerate it so it contains the new module?

Offline

#5 2022-08-30 17:00:37

diniamo
Member
Registered: 2022-06-15
Posts: 107

Re: [SOLVED] Nvidia driver API mismatch

I think I might have only regenerated it, while not having it added.

I also forgot to mention that there are a few files in /usr/lib that still have the older version in them. And there are also 3 files that dont belong to a packge, according to the -Qo command I ran.

Offline

#6 2022-08-30 19:31:08

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 25,263

Re: [SOLVED] Nvidia driver API mismatch

Which files did it list exactly, you might need the stderr if you upload that, i.e.

pacman -Qo /usr/lib/*nvidia* 2>&1 | curl -F 'file=@-' 0x0.st #Yes I decided to expand the glob a bit so we can see the full extent of the issue

Also maybe post your /var/log/X11/Xorg.0.log or the one in .local/share/X11 if user started xorg.

As for nvidia-xconfig the wiki has a note at the very beginning of that section mentioning that a configuration file is not necessary and to just try to start xorg. nvidia-xconfig does a lot of legacy setup that's not really required or necessary anymore on modern versions of xorg. It can not fix a situation that the autodetection fails on (unless you have multiple GPUs and it isn't clear which should be the primary, but even that case is solved with better configurations than what nvidia-xconfig would generate by default)

Last edited by V1del (2022-08-30 23:14:56)

Offline

#7 2022-08-30 20:16:30

diniamo
Member
Registered: 2022-06-15
Posts: 107

Re: [SOLVED] Nvidia driver API mismatch

This is weird, zsh is giving me a permission denied error:

zsh: permission denied: 1

But here is my xorg log (/var/log/Xorg.0.log): http://0x0.st/opSv.0.log

To be clear, I'm not trying to use nouveau or anything like that, just the normal nvidia driver.

Offline

#8 2022-08-30 20:34:01

Slithery
Administrator
From: Norfolk, UK
Registered: 2013-12-01
Posts: 5,776

Re: [SOLVED] Nvidia driver API mismatch

diniamo wrote:

I'm pointing that out because previously, every time there was a kernel upate I insallted it manually from the website.

Usually always a terrible idea.
Whenever Arch updates it's kernel the nvidia packages in the repos are also updated at the same time to the correct version. See the big red warning at the top of the wiki page.


No, it didn't "fix" anything. It just shifted the brokeness one space to the right. - jasonwryan
Closing -- for deletion; Banning -- for muppetry. - jasonwryan

aur - dotfiles

Offline

#9 2022-08-30 21:18:17

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 76,491

Re: [SOLVED] Nvidia driver API mismatch

zsh is giving me a permission denied error:

typo or stray blank?

[   138.444] (EE) open /dev/dri/card0: No such file or directory

sudo journalctl -b | curl -F 'file=@-' 0x0.st

Offline

#10 2022-08-30 23:16:40

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 25,263

Re: [SOLVED] Nvidia driver API mismatch

seth wrote:

typo or stray blank?

Yes, but mine I flubbed the 2>&1 by swapping the > and &, @diniamo try again with the new command

Offline

#11 2022-08-31 06:53:48

diniamo
Member
Registered: 2022-06-15
Posts: 107

Re: [SOLVED] Nvidia driver API mismatch

pacman -Qo with the fix (I'm not quite familiar with the piping stuff, so I couldn't have known either): http://0x0.st/opj5.txt

journalctl -b: http://0x0.st/opj7.txt

Slithery wrote:

Usually always a terrible idea.
Whenever Arch updates it's kernel the nvidia packages in the repos are also updated at the same time to the correct version. See the big red warning at the top of the wiki page.

Yes, my bad on this whole thing, I didn't read the wiki page carefully enough the first time around.

Offline

#12 2022-08-31 07:17:38

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 76,491

Re: [SOLVED] Nvidia driver API mismatch

The error has changed, the drm is there but a bunch of 515.57 libraries are in the way.
Get rid of the stale files and post the output of

pacman -Qikk nvidia nvidia-utils lib32-nvidia-utils |& curl -F 'file=@-' 0x0.st # |& is a zshism around V1del's typo ;-)

Offline

#13 2022-08-31 07:27:45

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 25,263

Re: [SOLVED] Nvidia driver API mismatch

Yep, your kernel module loads fine it's your userspace that's fucked. Remove all of the ones mentioned as not being owned by a package (respectively the ones ending in 515.57). I'm also expecting some broken symlinks you'll have to fix/remove not sure on the best way to dig those out

find /usr/lib -lname '*nvidia*' -ls 

maybe? See https://stackoverflow.com/a/21438684 as well. Your goal is to get rid of all links resolving a 5.15.57 variant of the driver and reinstalling {lib32-}nvidia-utils

Edit: Fuck... I was fucking around too much with possible find variations, but a -kk would probably list at least wrong timestamps on the links

Last edited by V1del (2022-08-31 07:29:31)

Offline

#14 2022-08-31 08:59:35

diniamo
Member
Registered: 2022-06-15
Posts: 107

Re: [SOLVED] Nvidia driver API mismatch

I deleted the stale files and there seems to be nothing wrong with the symlinks.

And here is the output of the said command: http://0x0.st/opeY.txt
I removed lib32-nvidia-utils as I dont have that installed.

Offline

#15 2022-08-31 09:04:22

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 76,491

Re: [SOLVED] Nvidia driver API mismatch

Re-install nvidia-utils and re-check the package integrity afterwards.

Offline

#16 2022-08-31 10:07:56

diniamo
Member
Registered: 2022-06-15
Posts: 107

Re: [SOLVED] Nvidia driver API mismatch

I reinstalled all 3 nvidia packages, and I can now start xorg.

Although my Davinci Resolve is broken now, hopefully it's fine if I don't make a separate issue for it.
nvidia-settings still seg faults, but that was also the case with my old driver.

Offline

#17 2022-08-31 12:11:18

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 25,263

Re: [SOLVED] Nvidia driver API mismatch

You'll likely need to do the same/want to reinstall opencl-nvidia  as well as lib32-nvidia-utils. Other than that post the outputs of the failures you are getting. Output of nvidia-smi/updated xorg.log?

Last edited by V1del (2022-08-31 12:12:02)

Offline

#18 2022-08-31 12:48:09

diniamo
Member
Registered: 2022-06-15
Posts: 107

Re: [SOLVED] Nvidia driver API mismatch

Again, I don't have lib32-nvidia-utils, and I never had it.

Is there any way to reinstall the opencl-nvidia package without reinstalling davinci as well?

Offline

#19 2022-08-31 13:01:42

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 25,263

Re: [SOLVED] Nvidia driver API mismatch

yeah should've added a "if applicable..." for the lib32 variant FWIW since you used the nvidia driver installer, chances are you actually did have the 32bit libs available and if something fails now due to that this is something to check as well (I doubt it will matter for davinci that should/would likely be 64bit already)

Just reinstalling the package with -S should not lead to a reevaluation of dependencies/conflicts. But again you need to post terminal outputs, or if things crash outright coredumps if you need further help: https://wiki.archlinux.org/title/Core_d … _core_dump

Last edited by V1del (2022-08-31 13:05:12)

Offline

#20 2022-08-31 15:51:18

diniamo
Member
Registered: 2022-06-15
Posts: 107

Re: [SOLVED] Nvidia driver API mismatch

Nope, I never had 32 libs, I selected no in the installer every time it asked me.
Davinci works after reinstall.

And here is the nvidia-settings dump: http://0x0.st/opLw.txt

Offline

#21 2022-08-31 15:58:03

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 25,263

Re: [SOLVED] Nvidia driver API mismatch

if you're running on wayland I'd assume that to be normal, as many things nvidia-settings does/tries to do require access to Xorg specific features that aren't going to be emulated on Wayland.

Offline

#22 2022-08-31 16:03:27

diniamo
Member
Registered: 2022-06-15
Posts: 107

Re: [SOLVED] Nvidia driver API mismatch

I'm pretty sure I'm running xorg, how could I check that?

Offline

#23 2022-08-31 16:08:50

diniamo
Member
Registered: 2022-06-15
Posts: 107

Re: [SOLVED] Nvidia driver API mismatch

❯ echo $XDG_SESSION_TYPE 
x11

Offline

#24 2022-08-31 16:14:12

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 76,491

Re: [SOLVED] Nvidia driver API mismatch

pacman -Qikk libglvnd

Offline

#25 2022-08-31 16:21:29

diniamo
Member
Registered: 2022-06-15
Posts: 107

Re: [SOLVED] Nvidia driver API mismatch

❯ pacman -Qikk libglvnd                                      
Name            : libglvnd
Version         : 1.4.0-3
Description     : The GL Vendor-Neutral Dispatch library
Architecture    : x86_64
URL             : https://gitlab.freedesktop.org/glvnd/libglvnd
Licenses        : custom:BSD-like
Groups          : None
Provides        : libgl  libegl  libgles  libEGL.so=1-64  libGL.so=1-64
                  libGLESv2.so=2-64  libGLX.so=0-64  libGLdispatch.so=0-64
                  libOpenGL.so=0-64
Depends On      : libxext  mesa  opengl-driver
Optional Deps   : None
Required By     : eglexternalplatform  freeglut  glew  glfw-wayland  glu
                  gnome-session  gst-plugins-base-libs  gtk4  kitty
                  kitty-shell-integration  libplacebo  libva  mesa  mesa-demos
                  mesa-utils  mpv  nvidia-dkms  nvidia-utils  qt5-base  sdl2
                  simplescreenrecorder  webkit2gtk  webkit2gtk-4.1
                  wpebackend-fdo  xorg-server
Optional For    : None
Conflicts With  : None
Replaces        : None
Installed Size  : 3,68 MiB
Packager        : Laurent Carlier <lordheavym@archlinux.org>
Build Date      : 2022. aug. 11., csütörtök, 05:51:21 CEST
Install Date    : 2022. aug. 14., vasárnap, 21:46:44 CEST
Install Reason  : Installed as a dependency for another package
Install Script  : No
Validated By    : Signature

libglvnd: 58 total files, 0 altered files

Offline

Board footer

Powered by FluxBB