Skip to content

Instantly share code, notes, and snippets.

@ivan-aksamentov
Created October 15, 2018 22:31
Show Gist options
  • Save ivan-aksamentov/c6437d14468e6a34f54081fb6c019d89 to your computer and use it in GitHub Desktop.
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
sudo rm -rf /usr/share/X11/xorg.conf.d/11-nvidia-prime.conf
sudo rm -rf /usr/lib/xorg/modules/drivers/nvidia_drv.so
@ivan-aksamentov
Copy link
Author

ivan-aksamentov commented Oct 15, 2018

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment