Skip to content

Instantly share code, notes, and snippets.

@erikvip
Last active March 3, 2024 19:37
Show Gist options
  • Star 9 You must be signed in to star a gist
  • Fork 3 You must be signed in to fork a gist
  • Save erikvip/0e46a6d9ad742c81d148 to your computer and use it in GitHub Desktop.
Save erikvip/0e46a6d9ad742c81d148 to your computer and use it in GitHub Desktop.
Reinstall default graphics driver on Ubuntu

Remove installed nvidia driver & reset to default graphics driver

On Ubuntu 15.10, after installing the nvidia proprietary driver, it didn't quite work as expected...going down to older version made it work, but graphics were slow. Run the below to reset back to the original graphics setup.

sudo apt-get purge nvidia-*
sudo apt-get install --reinstall xserver-xorg-video-intel libgl1-mesa-glx libgl1-mesa-dri xserver-xorg-core
sudo dpkg-reconfigure xserver-xorg

# May not have any alternatives configured (ok to skip)
sudo update-alternatives --remove gl_conf /usr/lib/nvidia-current/ld.so.conf
@klidaras
Copy link

klidaras commented Jul 19, 2018

I had a terrible experience trying to reinstall the default drivers in ubuntu.
After applying (sudo apt-get purge nvidia-*
sudo apt-get install --reinstall xserver-xorg-video-intel libgl1-mesa-glx libgl1-mesa-dri xserver-xorg-core
sudo dpkg-reconfigure xserver-xorg)

I ended up with a not functioning graphical subsystem which means I had to re-install ubuntu from scratch and then apply backups.

There is an easier way to revert

Nvidia provides an application "Nvidia X Server settings", if you were to look at the options, it provides a way to revert back to default intel drivers. You select the option, then reboot and voila you are back to default settings.
Don't use the command line would be my advice.

@alex700
Copy link

alex700 commented Mar 15, 2019

Do not forget to move your settings before reinstallation:
sudo mv /etc/X11/xorg.conf /etc/X11/xorg.conf.bk
It crashed my system without moving as nvidia driver settings were there.

@flipoyo
Copy link

flipoyo commented Apr 23, 2022

Thx it worked for me on 20.04

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