I have a laptop with both AMD Raven and Nvidia GTX 1050 video adapters. I wanted to test the new game mode in Ubuntu 20.04, and noticed that only the AMD Raven actually works. To do the test, I tried launching a terminal and running gxgears, both in a normal way, and then using the “start using dedicated video adapter” (or whatever it really is in English) option in gnome-shell.
Using the standard video adapter (probably the AMD Raven), it works, but slowly.
Using the dedicated video adapter, I get the following:
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: 3 (X_GLXCreateContext)
Value in failed request: 0x0
Serial number of failed request: 25
Current serial number in output stream: 26
NB: in both cases, I tried launching nvidia-settings and got the following:
ERROR: Unable to load info from any available system
(nvidia-settings:9213): GLib-GObject-CRITICAL **: 12:33:29.270: g_object_unref: assertion ‘G_IS_OBJECT (object)’ failed
** Message: 12:33:29.273: PRIME: No offloading required. Abort
** Message: 12:33:29.273: PRIME: is it supported? no
And then a blank window…
NB: I’m using nvidia-driver-440 installed through Ubuntu’s “additional drivers”.
PS: I also created a bug in Ubuntu’s own bug tracker: https://bugs.launchpad.net/ubuntu/+source/xorg/+bug/1875005