I need some help with NVidia drivers. I can install drivers just fine, but they won’t work as desired. Prime render offload does not seem to work.
This is what I get when I try to test it:
prime-run glxinfo | grep “OpenGL renderer”
X Error of failed request: BadValue (integer parameter out of range for operation)
Major opcode of failed request: 152 (GLX)
Minor opcode of failed request: 24 (X_GLXCreateNewContext)
Value in failed request: 0x0
Serial number of failed request: 39
Current serial number in output stream: 40
I’ve followed Arch wiki and NVidia’s guides. I don’t know where to troubleshoot any more. Seems that I’ve tried everything.
@His_Turdness
I don’t know your hardware. I assume it’s Intel & Nvidia. Not sure what you are trying to accomplish but keep in mind that Bumblebee is not compatible with Prime Render from my understanding. Correct me if i’m wrong here. But if it’s prime render you seek then here is some info to help.
I’m not using bumblebee. I’ve tried optimus-manager and it sometimes works, but I can’t set it to boot with hybrid mode. I’m guessing that’s because I got vfio modules loading at start. I can disable those, but then my VM won’t start.
and if you want to use lts kernel and main kernel nvidia-dkms will work for both, as it will build modules for all installed kernels.
The other option is to install both nvidia and nvidia-lts plus linux-headers and linux-lts-headers.
So using nvidia-dkms is the more easy solution here.
Reinstalled. Took a while, got some errors, but I don’t think they should affect anything.
==> dkms remove nvidia -v 440.82 -k 5.4.46-1-lts
rmdir: failed to remove '': No such file or directory
rmdir: failed to remove '': No such file or directory
rmdir: failed to remove '': No such file or directory
==> dkms remove nvidia -v 440.82 -k 5.7.2-arch1-1
rmdir: failed to remove '': No such file or directory
rmdir: failed to remove '': No such file or directory
rmdir: failed to remove '': No such file or directory
:: Processing package changes...
(1/1) reinstalling nvidia-dkms [#########################################################################################] 100%
:: Running post-transaction hooks...
(1/3) Arming ConditionNeedsUpdate...
(2/3) Install DKMS modules
==> dkms install nvidia/440.82 -k 5.4.46-1-lts
==> dkms install nvidia/440.82 -k 5.7.2-arch1-1
==> Unable to install module nvidia/440.82 for kernel 5.7.2-zen1-1-zen: Missing kernel modules tree.
(3/3) Cleaning pacman cache...
==> no candidate packages found for pruning
I was trying to load different drivers. I read somewhere that nvidia-dkms is pretty much useless and shouldn’t be used. I installed nvidia and nvidia-lts. Got prime render offload to work again, if I load the nvidia-drm manually (edit: and restart SDDM)
nvidia-dkms is the package name only, modules will be rebuilded against installed kernels by this and then loaded automatically: what will look like this:
will be only removing may existing: sudo rm /etc/X11/xorg.conf.d/20-nvidia.conf
and then uninstall nvidia packages: sudo pacman -R lib32-nvidia-utils nvidia nvidia-dkms nvidia-installer nvidia-installer-db nvidia-prime nvidia-settings nvidia-utils
this may give you an error if one or more packages are not installed anymore, but then run again and remove packagename fom the command…
you can also search for all related installed nvidia packages with pacman: pacman -Qs nvidia