Background:
I was playing Minecraft with some friends last night and found my FPS to be abnormally low, (8-24 vs 40 -70 odd), I’d done a regular update earlier and rebooted but nothing specific to graphics drivers.
Looking through the F3 and glxinfo | grep -i "OpenGL renderer", Open GL is using llvmpipe (LLVM 13.0.1, 256 bits)
Previously Minecraft would report using the installed NVIDIA GeForce GTX 1070 and I’d installed drivers using the Manjaro Settings panel’s MWHD interface. This has also changed in the “About” section of Gnome Settings
Recently signed up so image can’t be embedded imgur/a/pd9p2Gz.png
I’ve been trying to self-solve this issue, but feel a little out of my depth with Nvidia. prime-run crashes with the error:
$ prime-run glxspheres32
Polygons in scene: 62464 (61 spheres * 1024 polys/spheres)
GLX FB config ID of window: 0x2d1 (8/8/8/0)
Visual ID of window: 0x2d
Context is Direct
X Error of failed request: BadWindow (invalid Window parameter)
Major opcode of failed request: 156 (NV-GLX)
Minor opcode of failed request: 4 ()
Resource id in failed request: 0x2400002
Serial number of failed request: 47
Current serial number in output stream: 47
Apologies for another Nvidia thread, been using Linux for a decade and still can’t seem to make sense of their driver issues.
video-linux was installed but has been removed and I then went through the steps from your linked post, I hope:
I changed MODULES=(nvidia nvidia_modeset nvidia_uvm nvidia_drm) in /etc/mkinitcpio.conf
Ran sudo mkinitcpio -P
Appended GRUB_CMD_LINUX="nvidia-drm.modeset=1" to /etc/default/grub`
Ran sudo update-grub
Rebooted
$ mhwd -li Reports:
--------------------------------------------------------------------------------
NAME VERSION FREEDRIVER TYPE
--------------------------------------------------------------------------------
video-nvidia 2021.12.18 false PCI
Warning: No installed USB configs!
Still experiencing the same behavior after reboot, sorry for my slow reply to your prompt response
Following your link and command the configuration does not look off to me, but I may be missing something.
Here is the output of $ cat /etc/X11/mhwd.d/nvidia.conf:
My guess is that for some reason (and I saw it now the first time ever), xorg doesn’t load the submodule:
/usr/lib/nvidia/xorg/libglxserver_nvidia.so
Example from /var/log/Xorg.0.log:
[ 13.292] (II) Loading sub module "glxserver_nvidia"
[ 13.292] (II) LoadModule: "glxserver_nvidia"
[ 13.292] (II) Loading /usr/lib/nvidia/xorg/libglxserver_nvidia.so
[ 13.425] (II) Module glxserver_nvidia: vendor="NVIDIA Corporation"
[ 13.425] compiled for 1.6.99.901, module version = 1.0.0
[ 13.425] Module class: X.Org Server Extension
Reinstalling the driver should be the most simple solution.
I tried those steps, removing video-nvidia and reinstalling. But no change is found in performance.
However, I do find this in the logs you pointed towards:
[ 15.587] (**) NVIDIA(0): Enabling 2D acceleration
[ 15.587] (II) Loading sub module "glxserver_nvidia"
[ 15.587] (II) LoadModule: "glxserver_nvidia"
[ 15.587] (WW) Warning, couldn't open module glxserver_nvidia
[ 15.587] (EE) NVIDIA: Failed to load module "glxserver_nvidia" (module does not exist, 0)
[ 15.587] (EE) NVIDIA(0): Failed to initialize the GLX module; please check in your X
[ 15.587] (EE) NVIDIA(0): log file that the GLX module has been loaded in your X
[ 15.587] (EE) NVIDIA(0): server, and that the module is the NVIDIA GLX module. If
[ 15.587] (EE) NVIDIA(0): you continue to encounter problems, Please try
[ 15.587] (EE) NVIDIA(0): reinstalling the NVIDIA driver.
[ 15.587] (II) NVIDIA: The X server does not support PRIME Render Offload.
[ 16.425] (--) NVIDIA(0): Valid display device(s) on GPU-0 at PCI:1:0:0
[ 16.425] (--) NVIDIA(0): DFP-0
[ 16.425] (--) NVIDIA(0): DFP-1
[ 16.425] (--) NVIDIA(0): DFP-2
[ 16.425] (--) NVIDIA(0): DFP-3
[ 16.425] (--) NVIDIA(0): DFP-4
[ 16.425] (--) NVIDIA(0): DFP-5
[ 16.425] (--) NVIDIA(0): DFP-6 (boot)
[ 16.425] (--) NVIDIA(0): DFP-7
[ 16.425] (WW) NVIDIA: No DRM device: No direct render devices found.
[ 16.425] (II) NVIDIA(0): NVIDIA GPU NVIDIA GeForce GTX 1070 (GP104-A) at PCI:1:0:0
[ 16.425] (II) NVIDIA(0): (GPU-0)
Reinstalled nvidia-utils, Removed nvidia-dkms, rebooted. Still no change.
Sorry for the confusion with the dkms, think that was from when I was trying to figure out what was wrong. The 515 and 517 is due to having both kernels installed at present, but I’m running 5.17
$ ls -la /usr/lib/nvidia/xorg/
total 12388
drwxr-xr-x 2 root root 105 Mar 10 19:34 .
drwxr-xr-x 4 root root 30 Mar 10 19:03 ..
lrwxrwxrwx 1 root root 29 Feb 14 19:20 libglxserver_nvidia.so -> libglxserver_nvidia.so.510.54
lrwxrwxrwx 1 root root 29 Feb 14 19:20 libglxserver_nvidia.so.1 -> libglxserver_nvidia.so.510.54
-rwxr-xr-x 1 root root 12684968 Feb 14 19:20 libglxserver_nvidia.so.510.54```
I gave reinstalling a go, rebooted and no change… $ pamac list --installed | grep nvidia | awk '{print($1)}' > nvidia_list $ pamac reinstall (cat nvidia_list )Running fish, so this syntax is functionally correct
Don’t think I’ve ever rebooted this frequently in my life, thank you for your help though @megavolt
I appreciate your help, I’m lost too