NVIDIA Driver Recovery
Table of Contents
- Step 01 – Log out
- Step 02 – Log in to a failsafe terminal session
- Step 03 – Uninstall the NVIDIA driver
- Step 04 – Copy the safe xorg.conf backup over the current one
- Step 05 – Log out of the failsafe terminal session
- Step 06 – Log in to the operating system
- Step 07 – Copy linux-restricted-modules-common back into place
- Step 08 – Copy linux-restricted-modules back into place
- Step 09 – Reinstall nvidia-glx and nvidia-glx-new
- Step 10 – Uninstall some packages
- Step 11 – Copy .nvidia_new_installed back into place
- Step 12 – Copy nvidia-kernel back into place
- Step 13 – Copy nvidia-glx back into place
- Step 14 – Copy original xorg.conf backup over the current one
- Step 15 – Restart X
If worse comes to worst, restore your machine to its previous state.
| IMPORTANT | |
|---|---|
| Follow only the steps that pertain to your system.
If any of these steps refer to files or packages you didn’t have on your If any of these steps refer to files or packages you didn’t install as a |
|
- Kubuntu users:
- Open the K menu.
- Select Log Out…. from the menu.
- Left-click the Log out icon.
- You will be at the login screen.
- Ubuntu users:
- Open the Main Menu
- Select Quit… from the menu.
- Left-click the Log Out icon.
- You will be at the login screen.
Step 02 – Log in to a failsafe terminal session
- Kubuntu users:
- Left-click the white icon in the bottom right corner of the window.
- Select Session Type from the menu.
- Select Failsafe from the menu.
- Enter your password into the password box and press the Enter key.
- Place your mouse pointer anywhere inside the small terminal window that opens in the upper left corner of the window. There is no need to click the mouse in the window, but the mouse must be hovering within its borders while you work in the terminal.
- Type this command to change to the Desktop directory:
- Ubuntu users:
- Left-click Options on the bottom left corner of the window.
- Left-click Select Session…
- Left-click the radio button next to Failsafe Terminal.
- Left-click the Change Session button.
- Type in your username and press the Enter key.
- Type in your password and press the Enter key.
- Left-click the OK button on the informational window that pops up.
- Place your mouse pointer anywhere inside the small terminal window that opens in the bottom right corner of the window. There is no need to click the mouse in the window, but the mouse must be hovering within its borders while you work in the terminal.
- Type this command to change to the Desktop directory:
cd ~/Desktop
Press the Enter key.
cd ~/Desktop
Press the Enter key.
Step 03 – Uninstall the NVIDIA driver
- Type this command:
nvidia-installer --uninstall
Press the Enter key.
Step 04 – Copy the safe xorg.conf backup over the current one
- Type this command:
sudo cp ~/mynvidiabackups/xorg.conf.safegraphics /etc/X11/xorg.conf
Press the Enter key.
Step 05 – Log out of the failsafe terminal session
- Type this command:
exit
Press the Enter key.
You’ll be back at the login screen.
Step 06 – Log in to the operating system
- Kubuntu users:
- Left-click the white icon in the bottom right corner of the window.
- Select Session Type from the menu.
- Select Default from the menu.
- Enter your password into the password box.
- Ubuntu users:
- Left-click Options on the bottom left corner of the window.
- Left-click Select Session…
- Left-click the radio button next to Last session.
- Left-click the Change Session button.
- Type in your username.
- Type in your password.
Press the Enter key.
Press the Enter key.
Press the Enter key.
You’ll be on your Desktop using the vesa video driver.
Step 07 – Copy linux-restricted-modules-common back into place
- Type this command in a terminal window:
sudo cp ~/mynvidiabackups/linux-restricted-modules-common /etc/default/linux-restricted-modules-common
Press the Enter key.
Step 08 – Copy linux-restricted-modules back into place
- Type this command in a terminal window:
sudo cp ~/mynvidiabackups/linux-restricted-modules /etc/default/linux-restricted-modules
Press the Enter key.
Step 09 – Reinstall nvidia-glx and nvidia-glx-new
Use the package manager to reinstall the nvidia-glx and/or the nvidia-glx-new package.
Step 10 – Uninstall some packages
Use the package manager to uninstall any of the packages you installed in Step 04 on the NvidiaDriver page.
Step 11 – Copy .nvidia_new_installed back into place
- Type this command in a terminal window:
sudo cp ~/mynvidiabackups/.nvidia_new_installed /lib/linux-restricted-modules/.nvidia_new_installed
Press the Enter key.
Step 12 – Copy nvidia-kernel back into place
- Type this command in a terminal window:
sudo cp ~/mynvidiabackups/nvidia-kernel /etc/init.d/nvidia-kernel
Press the Enter key.
Step 13 – Copy nvidia-glx back into place
- Type this command in a terminal window:
sudo cp ~/mynvidiabackups/nvidia-glx /etc/init.d/nvidia-glx
Press the Enter key.
Step 14 – Copy original xorg.conf backup over the current one
- Type this command:
sudo cp ~/mynvidiabackups/xorg.conf /etc/X11/xorg.conf
Press the Enter key.
Now that you’ve returned all your settings to how they were before you began, restart X to use the original video driver. Make sure you don’t have any applications running, since restarting X will close them and you may lose data. Then choose one of these:
- From within the GUI, press these three keys at the same time:
<Ctrl><Alt><Backspace>
Or:
- Open a terminal window and type this command:
sudo /etc/init.d/?dm restart
Press the Enter key.
Obligatory Happy Ending
And they all lived happily ever after. The end.
