I recently got AMD Radeon RX 5700 XT card and I already had a GeForce RTX 2070 as my main GPU for sometime now. I was trying to run them together and managed to do that on manjaro after installing the AMD card as the main one and running applications on the NVIDA card with prime-run when needed, now I'm trying to move back to Ubuntu and I can't get the same configuration running.
- prime-run doesn't work at all even after installing
nvidia-prime
- Running anything with env vars
__NV_PRIME_RENDER_OFFLOAD=2 __GLX_VENDOR_LIBRARY_NAME=nvidia
doesn't work
root@my-pc:~#__NV_PRIME_RENDER_OFFLOAD=2 __GLX_VENDOR_LIBRARY_NAME=nvidia glxinfo | grep OpenGL
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 installed the proprietary drivers for both cards tried the answer here and nothing seem to work.