You are not logged in.

#1 2024-12-14 18:47:04

slug001
Member
Registered: 2024-12-13
Posts: 26

[SOLVED] Using older nouveau or nvidia driver on new kernel

nouveau 1.4.0 seems to be incompatible with my laptop. I've tried older releases and different distros and every time the screen doesn't go black is when nouveau 1.3.1 is loaded. I've tried nvidia-340xx (340.108) and had a lot of issues (including OpenGL not working), it worked once on version 107 on some old Manjaro release that had it prepackaged, but when i edited the version in PKGBUILD on a fresh Arch system, it wouldn't build, I can attach logs if anyone might know what's going on. I would like to know if it's possible to use older versions of either of the drivers on a receny system.

Last edited by slug001 (2024-12-18 15:50:09)

Offline

#2 2024-12-14 18:50:58

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

Re: [SOLVED] Using older nouveau or nvidia driver on new kernel

I have no idea what you're referring to with nouveau 1.4.0 or 1.3.1. Nouveau is part of the kernel tree and not versioned like that.

No idea what you're talking about with nvidia 137 either.

Last edited by Scimmia (2024-12-14 18:56:11)

Offline

#3 2024-12-14 19:08:40

slug001
Member
Registered: 2024-12-13
Posts: 26

Re: [SOLVED] Using older nouveau or nvidia driver on new kernel

Scimmia wrote:

I have no idea what you're referring to with nouveau 1.4.0 or 1.3.1. Nouveau is part of the kernel tree and not versioned like that.

No idea what you're talking about with nvidia 137 either.

hi!! i'm talking about what i see on dmesg. it looked like a version, so sorry for the mistake

[drm] Initialized nouveau 1.3.1 20120801

the nvidia version i mentioned is visible in nvidia-smi, i was wrong though, the versions are 340.108 and 340.107, not 138 and 137, sorry

Offline

#4 2024-12-14 20:24:00

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

Re: [SOLVED] Using older nouveau or nvidia driver on new kernel

nouveau … seems to be incompatible with my laptop… nvidia-340xx (340.108) … had a lot of issues (including OpenGL not working)

Please don't paraphrase, https://bbs.archlinux.org/viewtopic.php?id=57855
Ideally please post your complete system journal for the boot:

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

Online

#5 2024-12-14 20:49:58

slug001
Member
Registered: 2024-12-13
Posts: 26

Re: [SOLVED] Using older nouveau or nvidia driver on new kernel

seth wrote:

Ideally please post your complete system journal for the boot:

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

http://0x0.st/XFpZ.txt

Offline

#6 2024-12-14 21:45:27

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

Re: [SOLVED] Using older nouveau or nvidia driver on new kernel

That's on

Dec 14 21:45:43 archlinux kernel: NVRM: loading NVIDIA UNIX x86_64 Kernel Module  340.108  Wed Dec 11 11:06:58 PST 2019

which loads (w/ a warning, but fine)

including OpenGL not working

Please post your Xorg log, https://wiki.archlinux.org/title/Xorg#General and the output of

glxinfo -B

Online

#7 2024-12-14 23:16:25

slug001
Member
Registered: 2024-12-13
Posts: 26

Re: [SOLVED] Using older nouveau or nvidia driver on new kernel

seth wrote:

Please post your Xorg log, https://wiki.archlinux.org/title/Xorg#General and the output of

glxinfo -B

here's the xorg log: http://0x0.st/XFf0.txt
here's the output of

glxinfo -B

:

[main@archlinux ~]$ glxinfo -B
name of display: :0
X Error of failed request:  BadWindow (invalid Window parameter)
  Major opcode of failed request:  155 (NV-GLX)
  Minor opcode of failed request:  4 ()
  Resource id in failed request:  0x340000a
  Serial number of failed request:  59
  Current serial number in output stream:  59

i would also appreciate if you told me what the ABI is for, i had to ignore it to make X even start. it is mentioned once on the wiki entry for Xorg, but not explained. googling 'abi xorg' didn't tell me much either.

Offline

#8 2024-12-15 00:16:55

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

Re: [SOLVED] Using older nouveau or nvidia driver on new kernel

Get rid of your xorg.conf, the nvidia-340xx-dkms package from the AUR contains an override that should already do this properly... General sanity check, you did install the resulting {lib32-}nvidia-340xx-utils as well?

As for the ABI, that's technically a version that defines whether the xorg driver is compatible with the xorg server. Since that driver was last officially released before xorg 21 which was a major release, technically the driver hasn't been vetted against that xorg version, so in theory you shouldn't be surprised if something breaks "unexpectedly". In practice actual changes that would really break compatibility haven't been made to xorg in a while, so this Ignore is fairly safe for this case.

The xorg log also shows a simpledrm probe, try adding "initcall_blacklist=simpledrm_platform_driver_init" to your kernel parameters.

Last edited by V1del (2024-12-15 00:20:56)

Offline

#9 2024-12-15 07:45:07

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

Re: [SOLVED] Using older nouveau or nvidia driver on new kernel

The xorg log also shows a simpledrm probe, try adding "initcall_blacklist=simpledrm_platform_driver_init" to your kernel parameters.

From the 6.12.[0-2] experience that might not cut it, try "nvidia_drm.modeset=1" instead (nvidia_drm support being irrelevant)

The nvidia GL module doesn't get added - this *might* be because of the static server layout, but you do use https://aur.archlinux.org/packages/nvidia-340xx-dkms and https://aur.archlinux.org/packages/nvidia-340xx-utils, right? You didn't just try the installer from nvidia.com because that will not work for sure anymore.

Online

#10 2024-12-15 10:12:05

slug001
Member
Registered: 2024-12-13
Posts: 26

Re: [SOLVED] Using older nouveau or nvidia driver on new kernel

my xorg.conf is made by nvidia-xconfig. i just added the ignoreABI option. it wasn't there after installation and x wouldn't start. yes i have the dkms package. i haven't had the lib32 package installed, i installed it now, started with the drm kernel param and it seems like nothing changed. glxinfo still throws the same NV-GLX error sad


PS i just remembered i also added the NoLogo option but i don't think that's very relevant

Last edited by slug001 (2024-12-15 10:23:08)

Offline

#11 2024-12-15 12:11:09

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

Re: [SOLVED] Using older nouveau or nvidia driver on new kernel

Remove the xorg.conf, it just stashes the actual problem.
Add the "nvidia_drm.modeset=1" kernel parameter, reboot, try to start X11, post the resulting xorg log.
Also

pacman -Qikk nvidia-340xx-utils

Online

#12 2024-12-15 15:59:48

slug001
Member
Registered: 2024-12-13
Posts: 26

Re: [SOLVED] Using older nouveau or nvidia driver on new kernel

pacman query info:

Name            : nvidia-340xx-utils
Version         : 340.108-1
Description     : NVIDIA drivers utilities
Architecture    : x86_64
URL             : [url]http://www.nvidia.com/[/url]
Licenses        : custom
Groups          : None
Provides        : libgl  libgles  libegl  nvidia-utils  nvidia-340xx-libgl  nvidia-libgl
Depends On      : xorg-server
Optional Deps   : gtk2: nvidia-settings
                  xorg-server-devel: nvidia-xconfig [installed]
                  opencl-nvidia-340xx: OpenCL support
Required By     : ffmpeg  freeglut  gl2ps  glew  glu  gtk3  kitty  kitty-shell-integration  lib32-nvidia-340xx-utils  libva  mesa-utils  nvidia-340xx  qt5-base  qt6-base  sdl2  xorg-server  xorg-server-xephyr  xorg-server-xvfb  xorg-xdriinfo
Optional For    : ffmpeg  ffmpeg4.4  libvdpau
Conflicts With  : nvidia-utils  nvidia-340xx-libgl  nvidia-libgl
Replaces        : nvidia-340xx-libgl
Installed Size  : 133.69 MiB
Packager        : Unknown Packager
Build Date      : Wed 11 Dec 2024 10:39:53 PM CET
Install Date    : Sat 14 Dec 2024 08:03:31 PM CET
Install Reason  : Explicitly installed
Install Script  : Yes
Validated By    : None

nvidia-340xx-utils: 157 total files, 0 altered files

xorg log: http://0x0.st/XFvH.txt

Last edited by slug001 (2024-12-15 16:49:11)

Offline

#13 2024-12-15 16:34:48

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

Re: [SOLVED] Using older nouveau or nvidia driver on new kernel

Please use [code][/code] tags, not "quote" tags. Edit your post in this regard.

[    76.790] (II) NOUVEAU driver for NVIDIA chipset families :
[    77.463] (EE) open /dev/dri/card0: No such file or directory

Remove every xf86-video-* package.
Then post the outputs of

lsmod | grep nvidia
modprobe -c | grep -v alias | grep nvidia
sudo modprobe -v nvidia-drm

Online

#14 2024-12-15 17:01:47

slug001
Member
Registered: 2024-12-13
Posts: 26

Re: [SOLVED] Using older nouveau or nvidia driver on new kernel

lsmod:

nvidia              10600448  0

modprobe -c:

options nvidia_drm modeset=1

modprobe -v:

modprobe: FATAL: Module nvidia-drm not found in directory /lib/modules/6.12.4-arch1-1

Offline

#15 2024-12-15 19:59:00

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

Re: [SOLVED] Using older nouveau or nvidia driver on new kernel

https://aur.archlinux.org/cgit/aur.git/ … idia-340xx doesn't hinge on nvidia-drm, I'm not sure whether the 340xx drivers even had that.

cat /usr/share/nvidia-340xx/20-nvidia.conf

and try to add "nomodeset" to the kernel parameters as well (keep nvidia_drm.modeset=1 !)

Online

#16 2024-12-15 22:06:51

slug001
Member
Registered: 2024-12-13
Posts: 26

Re: [SOLVED] Using older nouveau or nvidia driver on new kernel

nvidia conf:

Section "Files"
  ModulePath   "/usr/lib64/nvidia/xorg"
  ModulePath   "/usr/lib64/xorg/modules"
EndSection

Section "Device"
  Identifier "Nvidia Card"
  Driver "nvidia"
  VendorName "NVIDIA Corporation"
EndSection

Section "ServerFlags"
  Option "IgnoreABI" "1"
EndSection

xorg log if you need it: http:0x0.st/XF3l.txt
this is all with no xorg.conf and the "nomodeset" param

Offline

#17 2024-12-15 22:24:30

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

Re: [SOLVED] Using older nouveau or nvidia driver on new kernel

That file seems to be completely ignored?

sudo cp …

Hold on. What's /usr/share/nvidia-340xx ?

sudo cp /usr/share/nvidia-340xx/20-nvidia.conf /etc/X11/xorg.conf.d/

Online

#18 2024-12-15 22:27:00

slug001
Member
Registered: 2024-12-13
Posts: 26

Re: [SOLVED] Using older nouveau or nvidia driver on new kernel

okay this is big, i moved the Files section into a new xorg config and i got kitty to successfully launch, but plasma system settings won't open. i'll investigate further

Offline

#19 2024-12-15 22:27:43

slug001
Member
Registered: 2024-12-13
Posts: 26

Re: [SOLVED] Using older nouveau or nvidia driver on new kernel

oop seems like you were faster. i'll check if stuff like tty switching and plasma opengl compositor stuff works later

Last edited by slug001 (2024-12-15 22:28:31)

Offline

#20 2024-12-16 12:50:06

slug001
Member
Registered: 2024-12-13
Posts: 26

Re: [SOLVED] Using older nouveau or nvidia driver on new kernel

hi i'm back!! things are looking better. i also switched to gnome. there are still some opengl issues. kicad won't start and throws a gtk error:

kicad: symbol lookup error: /usr/lib/libwx_gtk3u_gl-3.2.so.0: undefined symbol: eglCreatePlatformWindowSurface

there are more issues, but i don't know if they're related to the drivers. if you think they're not, i'll just make new posts: switching to a tty while x is runnig causes a black screen with the backlight disabled. this doesn't happen before i

startx

backlight control isn't working but that's fine. the big issue is that when i close and open the laptop lid, the whole system freezes and just gets stuck on the last rendered frame (i haven't searched for help on this one yet).

Last edited by slug001 (2024-12-16 12:51:37)

Offline

#21 2024-12-16 13:10:55

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

Re: [SOLVED] Using older nouveau or nvidia driver on new kernel

The 340xx modules won't allow you to run wayland - the symbol lookup error should™ not cause further problems, though.
To illustrate the status quo, please post your Xorg log, https://wiki.archlinux.org/title/Xorg#General and the output of "glxinfo -B"

when i close and open the laptop lid, the whole system freezes and just gets stuck on the last rendered frame

And would closing the lid otherwise suspend the system to RAM?
It's however a different issue and pot. gnome related.

Online

#22 2024-12-16 19:04:25

slug001
Member
Registered: 2024-12-13
Posts: 26

Re: [SOLVED] Using older nouveau or nvidia driver on new kernel

when x isn't running and i close the lid, the screen goes blank and when i lift the lid, it comes back with everything working. i don't think it's gnome related though, it happens on mate and plasma too.

xorg log: http://0x0.st/XFGU.txt
glxinfo:

name of display: :0
display: :0  screen: 0
direct rendering: Yes
Memory info (GL_NVX_gpu_memory_info):
    Dedicated video memory: 512 MB
    Total available memory: 512 MB
    Currently available dedicated video memory: 344 MB
OpenGL vendor string: NVIDIA Corporation
OpenGL renderer string: GeForce GT 230M/PCIe/SSE2
OpenGL core profile version string: 3.3.0 NVIDIA 340.108
OpenGL core profile shading language version string: 3.30 NVIDIA via Cg compiler
OpenGL core profile context flags: (none)
OpenGL core profile profile mask: core profile

OpenGL version string: 3.3.0 NVIDIA 340.108
OpenGL shading language version string: 3.30 NVIDIA via Cg compiler
OpenGL context flags: (none)
OpenGL profile mask: (none)

OpenGL ES profile version string: OpenGL ES 2.0 NVIDIA 340.108 340.108
OpenGL ES profile shading language version string: OpenGL ES GLSL ES 1.00

i don't get it. i can't open gtk apps because they complain about providers of a function, then they list the providers, one of them being "Desktop OpenGL 3.3", which i'm pretty sure i have?

Last edited by slug001 (2024-12-16 19:53:26)

Offline

#23 2024-12-16 21:26:35

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

Re: [SOLVED] Using older nouveau or nvidia driver on new kernel

You should probably remove the xorg.conf, having 20-nvidia.conf in /etc/X11/xorg.conf.d/ should™ absolutely do.
libwx_gtk3u_gl-3.2.so.0 isn't gtk but wxwidgets-gtk3 and this ha nothing to do w/ the GL version.

ldd /usr/lib/libwx_gtk3u_gl-3.2.so | grep -i egl
readelf -sW /usr/lib/libEGL.so.1 | grep eglCreatePlatformWindowSurface
pacman -Qo /usr/lib/libEGL.so.1

It's typically shipped w/ libglvnd, but the 340xx drivers predated that and you're probably resolving an older library provided by nvidia?
You'll have to run such thing w/ software emulation (or switch to nouveau)
https://wiki.archlinux.org/title/NVIDIA … oftware_GL

Online

#24 2024-12-16 21:33:13

slug001
Member
Registered: 2024-12-13
Posts: 26

Re: [SOLVED] Using older nouveau or nvidia driver on new kernel

i'd like to switch to nouveau but... black screen sad

Offline

#25 2024-12-16 21:53:10

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

Re: [SOLVED] Using older nouveau or nvidia driver on new kernel

We haven't see the results of those efforts, have we?
nouveau is not gonna work w/ the nvidia-settings generated xorg config.

Online

Board footer

Powered by FluxBB