Recovery from Nvidia Driver Nightmare On Open Suse Leap 15.6. Purge and reinstall [Solved]

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]

  1. 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]
  2. 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]
  3. Remove NVIDIA Repositories
    Remove the NVIDIA repository if present:
    sudo zypper rr NVIDIA
  4. 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
  5. 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’)
  6. 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]
  7. https://www.if-not-true-then-false.com/2022/opensuse-nvidia-guide/3/
  8. Reddit - The heart of the internet
  9. Getting started - openSUSE User Documentation Project
  10. How do I remove nvidia and go back to nouveau driver?
  11. SDB:NVIDIA the hard way - openSUSE Wiki
  12. Reddit - The heart of the internet
    s/
  13. Installation of NVIDIA drivers on openSUSE and SLE | Stefan’s openSUSE Blog
  14. Unable to remove opensuse nvidia driver
  15. openSUSE Leap 15.5 NVIDIA Repository fails - Linux - NVIDIA Developer Forums
  16. https://www.youtube.com/watch?v=LmIHjE1BfVI
  17. Remove Nvidia proprietary driver
  18. Installing and removing software with Zypper reference
  19. https://www.if-not-true-then-false.com/2022/opensuse-nvidia-guide/
  20. How to uninstall Nvidia drivers?
  21. 1. Introduction — NVIDIA Driver Installation Guide r580 documentation
  22. How do i completly remove an Nvidia driver by hand? - Linux - NVIDIA Developer Forums
  23. SDB:NVIDIA drivers - openSUSE Wiki
  24. Reddit - The heart of the internet
  25. SDB:NVIDIA troubleshooting - openSUSE Wiki
  26. Remove nvidia.service

I do not have problem with an NVIDIA problem with leap 15.6
I migrated to leap 16.0, and it would not allow me to use the G05 drivers that were already installed.
You saw the mess of posts I causes eh?

It should have worked ‘legacy’ card or not. Don’t know.

So I reinstalled leap 15.6, and the installer recognized it & I didn’t have to do anything.

@Bill_L Please keep your discussion in one place for a given topic.. The reason for your problem is due to legacy hardware. Until you can upgrade your graphics card, stay with using Leap 15.6.

I answered that other ‘response’ because of an email I received from that poster.

Again, my bad, sorry

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.