Issue with prime-select

When I run the command :

prime-select nvidia

,

I received and issue with following text :

update-alternatives: --set needs <name> <path>


Use 'update-alternatives --help' for program usage information.
Driver configured: nvidia

How can I fix this issue?

I’d start with installing nvidia drivers.

I have already installed Nvidia driver with this guide :

https://en.opensuse.org/SDB:NVIDIA_drivers
```](https://en.opensuse.org/SDB:NVIDIA_drivers)

Show output of

LC_ALL=C update-alternatives --display libglx.so

The output of the follow command :

LC_ALL=C update-alternatives --display libglx.so

is :

libglx.so - manual mode  link best version is /usr/lib64/xorg/modules/extensions/xorg/xorg-libglx.so
  link currently points to /usr/lib64/xorg/modules/extensions/xorg/xorg-libglx.so
  link libglx.so is /usr/lib64/xorg/modules/extensions/libglx.so
/usr/lib64/xorg/modules/extensions/xorg/xorg-libglx.so - priority 50

You do not have complete nVidia driver. At least nvidia-glG0x package is missing (it provides nVidia GL/GLX implementation). Show output of

rpm -qa | grep -i nvidia

The output of follow command

rpm -qa | grep -i nvidia

is :

nvidia-computeG05-435.21-19.1.x86_64nvidia-gfxG05-kmp-default-435.21_k5.2.11_1-19.1.x86_64
kernel-firmware-nvidia-20190909-35.1.noarch
x11-video-nvidiaG05-435.21-19.1.x86_64
nvidia-glG05-435.21-19.1.x86_64

OK, this is suse-prime bug. Xorg in Tumbleweed supports server side GLVND and nVidia drivers do not use alternatives anymore. X server dynamically selects the correct implementation. I assume switching to nVidia actually works even though you got error message?

Bug is cosmetic as far as I can tell - switching alternatives is not needed so it does not matter that it fails. You may consider opening bug report so it is not forgotten.

Actually with current Xorg in TW and drivers 435 suse-prime is likely not needed anymore, at least in its current form.

Xorg changelog:

- added patches required for NVIDIA's PRIME render offload support,  which is available since release 435.xx:

nVidia 435 readme:

__NV_PRIME_RENDER_OFFLOAD=1 vkcube
__NV_PRIME_RENDER_OFFLOAD=1 __GLX_VENDOR_LIBRARY_NAME=nvidia glxinfo | grep vendor

http://us.download.nvidia.com/XFree86/Linux-x86_64/435.21/README/primerenderoffload.html