So I tried debugging the issue by inserting some print statements into the script on every call to update-alternatives --set, but I seem to be missing the crucial calls in some way:
$ LC_ALL=C sudo prime-select nvidia
Info: the current GL alternatives in use are: ['nvidia-361-prime', None]
Info: the current EGL alternatives in use are: ['nvidia-361-prime', None]
Info: selecting nvidia-361 for the nvidia profile
('gl_alternative:', '/usr/lib/nvidia-361/ld.so.conf')
('In set_alternatives, path is:', '/usr/lib/nvidia-361/ld.so.conf')
update-alternatives: using /usr/lib/nvidia-361/ld.so.conf to provide /etc/ld.so.conf.d/i386-linux-gnu_GL.conf (i386-linux-gnu_gl_conf) in manual mode
update-alternatives: warning: skip creation of /usr/lib32/vdpau/libvdpau_nvidia.so.1 because associated file /usr/lib32/nvidia-361/vdpau/libvdpau_nvidia.so.1 (of link group i386-linux-gnu_gl_conf) doesn't exist
update-alternatives: warning: skip creation of /usr/lib32/libvdpau_nvidia.so because associated file /usr/lib32/nvidia-361/vdpau/libvdpau_nvidia.so (of link group i386-linux-gnu_gl_conf) doesn't exist
('egl_alternative:', '/usr/lib/nvidia-361/ld.so.conf')
('In set_alternatives, path is:', '/usr/lib/nvidia-361/ld.so.conf')
update-alternatives: using /usr/lib/nvidia-361/ld.so.conf to provide /etc/ld.so.conf.d/i386-linux-gnu_EGL.conf (i386-linux-gnu_egl_conf) in manual mode
Could it be that the issue isn't at all what I believe it to be. That the warnings update-alternatives give are not related to the issue?
So I tried debugging the issue by inserting some print statements into the script on every call to update-alternatives --set, but I seem to be missing the crucial calls in some way:
$ LC_ALL=C sudo prime-select nvidia 361-prime' , None] 361-prime' , None] nvidia- 361/ld. so.conf' ) nvidia- 361/ld. so.conf' ) alternatives: using /usr/lib/ nvidia- 361/ld. so.conf to provide /etc/ld. so.conf. d/i386- linux-gnu_ GL.conf (i386-linux- gnu_gl_ conf) in manual mode alternatives: warning: skip creation of /usr/lib32/ vdpau/libvdpau_ nvidia. so.1 because associated file /usr/lib32/ nvidia- 361/vdpau/ libvdpau_ nvidia. so.1 (of link group i386-linux- gnu_gl_ conf) doesn't exist alternatives: warning: skip creation of /usr/lib32/ libvdpau_ nvidia. so because associated file /usr/lib32/ nvidia- 361/vdpau/ libvdpau_ nvidia. so (of link group i386-linux- gnu_gl_ conf) doesn't exist ve:', '/usr/lib/ nvidia- 361/ld. so.conf' ) nvidia- 361/ld. so.conf' ) alternatives: using /usr/lib/ nvidia- 361/ld. so.conf to provide /etc/ld. so.conf. d/i386- linux-gnu_ EGL.conf (i386-linux- gnu_egl_ conf) in manual mode
Info: the current GL alternatives in use are: ['nvidia-
Info: the current EGL alternatives in use are: ['nvidia-
Info: selecting nvidia-361 for the nvidia profile
('gl_alternative:', '/usr/lib/
('In set_alternatives, path is:', '/usr/lib/
update-
update-
update-
('egl_alternati
('In set_alternatives, path is:', '/usr/lib/
update-
Could it be that the issue isn't at all what I believe it to be. That the warnings update-alternatives give are not related to the issue?