Created
October 15, 2018 22:31
-
-
Save ivan-aksamentov/c6437d14468e6a34f54081fb6c019d89 to your computer and use it in GitHub Desktop.
Fix Ubuntu 18.04 fallback to llvmpipe software rendering when Nvidia driver is installed
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo rm -rf /usr/share/X11/xorg.conf.d/11-nvidia-prime.conf | |
sudo rm -rf /usr/lib/xorg/modules/drivers/nvidia_drv.so |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
nvidia_drv.so
forces X11 to attempt to load Nvidia extensions even if the driver was installed with--no-opengl-files
and we don't care about OpenGL on Nvidia GPU. This attempt fails, as there are no OpenGL libraries installed, and X11 for some reason falls back to software rendering, rather than trying Intel GPU.Deleting
nvidia_drv.so
allows X11 to ignore Nvidia and to use Intel graphics instead. CUDA and other non-rendering functionality, such as NVENC, stay intact in any case.