Here are the instructions for recovering from an Nvidia driver nightmare if you cannot roll back via Snapper or don’t have a btrfs root filesystem.
Step 1 - follow the detailed instructions below to purge
Blockquote
the system of nvidia drivers.
Step 2 - follow the instructions here to reinstall the proprietary NVDIA drivers after the reboot - SDB:NVIDIA drivers - openSUSE Wiki. Follow as far as “zypper install-new-recommends”. This command should pick up the correct proprietary drivers from the Nvidia repository.
Step 3 - some laptops may be need to be configured for prime. If so then follow the steps here: SDB:NVIDIA SUSE Prime - openSUSE Wiki
How do I uninstall all nvidia drivers on open suse leap 15.6. Need something like “purge” on ubuntu"
DETAILED INSTRUCTIONS
To completely uninstall all NVIDIA drivers on openSUSE Leap 15.6 (the rough equivalent of “apt
purge nvidia*” on Ubuntu), use the following steps in a terminal: [1] [2] [3]
- List and Remove All NVIDIA Packages
First, list installed NVIDIA packages:
zypper se --installed-only nvidia
Uninstall all NVIDIA driver and related packages (replace package names with those returned
by the command above):
sudo zypper remove x11-video-nvidiaG06 nvidia-glG06 nvidia-computeG06 nvidia-compute-util
You may have different NVIDIA package versions, such as G05 or legacy; include them as
shown by your system. [4] [3] - Remove Any Manually Installed Drivers
If you installed the drivers from the NVIDIA .run installer, run:
sudo nvidia-installer --uninstall
Or, if not available, run the .run file you originally used, but with --uninstall. [5] [1] - Remove NVIDIA Repositories
Remove the NVIDIA repository if present:
sudo zypper rr NVIDIA - Restore the Open Source Nouveau Driver
Remove any mention of blacklist nouveau in /etc/modprobe.d/blacklist.conf.
Edit /etc/default/grub and remove any rd.driver.blacklist=nouveau from
GRUB_CMDLINE_LINUX_DEFAULT.
Update grub and initramfs:
sudo grub2-mkconfig -o /boot/grub2/grub.cfg
sudo dracut -f - Reinstall Mesa and Xorg
This ensures all necessary open-source graphics components are restored:
sudo zypper in -f $(rpm -qa | grep -i ‘xorg-|mesa-|libglvnd’) - Reboot
This will reload all modules and apply changes:
sudo reboot
After reboot, check with:
lsmod | grep nvidia
lsmod | grep nouveau
No nvidia modules should be loaded, and nouveau should be present if you have an NVIDIA
card.
This approach ensures a clean removal of all NVIDIA proprietary drivers and a return to the
default open-source driver setup on openSUSE Leap 15.6. [3] [1]
⁂ - https://www.if-not-true-then-false.com/2022/opensuse-nvidia-guide/3/
- Reddit - The heart of the internet
- Getting started - openSUSE User Documentation Project
- How do I remove nvidia and go back to nouveau driver?
- SDB:NVIDIA the hard way - openSUSE Wiki
- Reddit - The heart of the internet
s/ - Installation of NVIDIA drivers on openSUSE and SLE | Stefan’s openSUSE Blog
- Unable to remove opensuse nvidia driver
- openSUSE Leap 15.5 NVIDIA Repository fails - Linux - NVIDIA Developer Forums
- https://www.youtube.com/watch?v=LmIHjE1BfVI
- Remove Nvidia proprietary driver
- Installing and removing software with Zypper reference
- https://www.if-not-true-then-false.com/2022/opensuse-nvidia-guide/
- How to uninstall Nvidia drivers?
- 1. Introduction — NVIDIA Driver Installation Guide r580 documentation
- How do i completly remove an Nvidia driver by hand? - Linux - NVIDIA Developer Forums
- SDB:NVIDIA drivers - openSUSE Wiki
- Reddit - The heart of the internet
- SDB:NVIDIA troubleshooting - openSUSE Wiki
- Remove nvidia.service