After installing both Bumblebee and Nvdia Prime like this, an error of:1Xlib: extension "GLX" missing on display ":8".
is got when attempting to run an gui program.
The most effective solution found is to follow this solution here given by sapjunior, but with slight modification.
Here’s the solution worked for me:
Still all the driver version numbers need to be replaced with yours!
Add the following to
/etc/modprobe.d/bumblebee.conf
1234alias nvidia-drm nvidia_364_drmalias nvidia-uvm nvidia_364_uvmalias nvidia-modeset nvidia_364_modesetremove nvidia rmmod nvidia-drm nvidia-modeset nvidia-uvm nvidiaPerform these two command and record the configuration file names currently used.
12sudo update-alternatives --config x86_64-linux-gnu_gl_confsudo update-alternatives --config i386-linux-gnu_gl_confMake sure the
x86_64
config contains all of the following123456/usr/lib/x86_64-linux-gnu/mesa/usr/lib/x86_64-linux-gnu/mesa-egl/usr/lib/i386-linux-gnu/mesa/usr/lib/i386-linux-gnu/mesa-egl/usr/lib/nvidia-387/usr/lib32/nvidia-387and the i386 config contains all of the following:
12/usr/lib/i386-linux-gnu/mesa/usr/lib32/nvidia-387Refresh shared libiary status with
sudo ldconfig
. (Maybe reboot just in case)
2018/1/10