I suppose that was solved years ago
https://bumblebee-project.org/
https://wiki.debian.org/Bumblebee
Unfortunately, I have not used this software for several years. I can't say if it works at the moment.

Aivils

Aaron Plattner @ 2021-03-24 19:03 rakstīja:
Mesa lumps all of its drivers together under one vendor named "mesa"
so you are supposed to be able to do something like this:

DRI_PRIME=1 __GLX_VENDOR_LIBRARY_NAME=mesa glxinfo | grep vendor

Unfortunately, Mesa doesn't like something about the GLX fbconfigs the
NVIDIA driver provides, so it doesn't actually work:

libGL error: No matching fbConfigs or visuals found
libGL error: failed to load driver: swrast
X Error of failed request:  GLXBadContext
  Major opcode of failed request:  152 (GLX)
  Minor opcode of failed request:  6 (X_GLXIsDirect)
  Serial number of failed request:  62
  Current serial number in output stream:  61

-- Aaron

On 3/24/21 6:44 AM, Dan wrote:
On Wednesday, March 24, 2021 2:33 AM, Sérgio Basto <[email protected]> wrote:

We usually have the opposite problem. we want to enable discrete nvidia card by default, please try reverse these options [1]

[1]
https://nam11.safelinks.protection.outlook.com/?url=https%3A%2F%2Frpmfusion.org%2FHowto%2FOptimus%23Finer-Grained_Control_of_GLX_.2B-_OpenGL&amp;data=04%7C01%7Caplattner%40nvidia.com%7Cc5eb3f42dc9547fdba5208d8eecc5ff0%7C43083d15727340c1b7db39efd9ccc17a%7C0%7C1%7C637521908842807820%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000&amp;sdata=a0HaIV6LuWMatH2Vqc%2FWAYYekoKZjqXdVtYjvBn8DGE%3D&amp;reserved=0
I see. I tried the following:

~$ __NV_PRIME_RENDER_OFFLOAD=0 __GLX_VENDOR_LIBRARY_NAME=i965 glxinfo|grep vendor
server glx vendor string: NVIDIA Corporation
client glx vendor string: NVIDIA Corporation
OpenGL vendor string: NVIDIA Corporation

~$ __NV_PRIME_RENDER_OFFLOAD_PROVIDER=modesetting __GLX_VENDOR_LIBRARY_NAME=i965 glxinfo |grep vendor
server glx vendor string: NVIDIA Corporation
client glx vendor string: NVIDIA Corporation
OpenGL vendor string: NVIDIA Corporation

~$ __NV_PRIME_RENDER_OFFLOAD_PROVIDER=modesetting __GLX_VENDOR_LIBRARY_NAME=i965 vainfo
libva info: VA-API version 1.8.0
libva info: Trying to open /usr/xorg/lib64/dri/nvidia_drv_video.so
libva info: va_openDriver() returns -1
vaInitialize failed with error code -1 (unknown libva error),exit

No matter what I try, it always defaults to nvidia.

Maybe I'm doing something wrong?

Thanks!


_______________________________________________
[email protected]: X.Org support
Archives: https://nam11.safelinks.protection.outlook.com/?url=http%3A%2F%2Flists.freedesktop.org%2Farchives%2Fxorg&amp;data=04%7C01%7Caplattner%40nvidia.com%7Cc5eb3f42dc9547fdba5208d8eecc5ff0%7C43083d15727340c1b7db39efd9ccc17a%7C0%7C1%7C637521908842807820%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000&amp;sdata=k1VGnv%2BC18VQ0c9HooV28b3S6QMKbjCjkEuSq8wyn4Q%3D&amp;reserved=0 Info: https://nam11.safelinks.protection.outlook.com/?url=https%3A%2F%2Flists.x.org%2Fmailman%2Flistinfo%2Fxorg&amp;data=04%7C01%7Caplattner%40nvidia.com%7Cc5eb3f42dc9547fdba5208d8eecc5ff0%7C43083d15727340c1b7db39efd9ccc17a%7C0%7C1%7C637521908842807820%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000&amp;sdata=MxcxkXvt%2B%2B6PmS%2FEE3ddMP8xquOoEFRASfpWn0mFPrs%3D&amp;reserved=0
Your subscription address: %(user_address)s
_______________________________________________
[email protected]: X.Org support
Archives: http://lists.freedesktop.org/archives/xorg
Info: https://lists.x.org/mailman/listinfo/xorg
Your subscription address: %(user_address)s
_______________________________________________
[email protected]: X.Org support
Archives: http://lists.freedesktop.org/archives/xorg
Info: https://lists.x.org/mailman/listinfo/xorg
Your subscription address: %(user_address)s

Reply via email to