Problem with prime-run

I am running Archlinux with a dual card configuration. Recently prime-run stopped working, with the following message:

zsh 1012 % prime-run glxinfo
name of display: :0
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: 50
Current serial number in output stream: 51

I’ve tried following the instructions given to people with a similar problem, but with no success. I am attaching the generated bug report. Thanks in advance!
nvidia-bug-report.log.gz (196.6 KB)

Is a Laptop with Intel/AMD and NVIDIA gpu?,If you have NVIDIA drivers 465 or below then sounds like you are in integrated mode (only using the iGPU without the NVIDIA).
What you can do is install optimus-manager and switch to hybrid to be able to use the NVIDIA card with prime-run again.

According to the ArchLinux documentation, optimus-manager and prime-run are mutually exclusive choices to get Optimus to work, prime-run being the officially Nvidia-supported method.

The nvidia driver loads too late (2.5s) so X is already started (2.0s) and doesn’t use it. Please embed the driver into the initrd.

1 Like

Thank you! That did the trick.

https://wiki.archlinux.org/title/Kernel_mode_setting#Early_KMS_start

I guess this just doesn’t apply to a Ubuntu distro 1:1?

Ubuntu procedure:
https://forums.developer.nvidia.com/t/linux-mint-nvidia-driver-loads-with-startx-but-not-on-initial-startup/168262/2?u=generix

1 Like

Thank you.

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.