openSUSE 15.4/15.3/Tumbleweed Uninstall NVIDIA drivers and Enable Nouveau

5. openSUSE 15.4/15.3/Tumbleweed Uninstall NVIDIA drivers and Enable Nouveau

I assume here that you have used this guide install part to install your NVIDIA drivers. This whole process is good to run on runlevel 3. When there is no X running. So first boot to runlevel 3 using direct parameter (3) on Grub linux/linuxefi line or using “systemctl set-default multi-user.target”.

5.1 Change root user

su -
## OR ##
sudo -i

5.2 Start NVIDIA Uninstall Process

nvidia-installer --uninstall

5.3 Restore xorg.conf

You can restore xorg.conf backup or remove /etc/X11/xorg.conf if you don’t have any special configuration.

5.4 NVIDIA Uninstall Warning

You might see following warning if you have updated some packages since nvidia drivers installation. Just select “OK”.

5.5 NVIDIA Installer Uninstalling

5.6 Fedora NVIDIA Uninstall Complete

5.7 Remove blacklist nouveau

Remove ‘blacklist nouveau’ line from /etc/modprobe.d/blacklist.conf

5.8 Edit /etc/default/grub

Remove ‘rd.driver.blacklist=nouveau’ from end of ‘GRUB_CMDLINE_LINUX=”…”‘

## Example row(s) on openSUSE Linux ##
GRUB_CMDLINE_LINUX_DEFAULT="splash=silent mitigations=auto quiet rd.driver.blacklist=nouveau"

## OR ##

GRUB_CMDLINE_LINUX_DEFAULT="splash=silent systemd.show_status=yes mitigations=auto quiet lsm=apparmor rd.driver.blacklist=nouveau"

5.9 Update grub2 conf

## BIOS / UEFI ##
grub2-mkconfig -o /boot/grub2/grub.cfg

5.10 Generate initramfs

## Backup old initramfs nvidia image ##
mv /boot/initramfs-$(uname -r).img /boot/initramfs-$(uname -r)-nvidia.img
 
## Generate new initramfs image ##
mkinitrd /boot/initrd-$(uname -r) $(uname -r)

5.11 Reinstall xorg, mesa and libglvnd packages

## openSUSE 15.4/15.3/Tumbleweed ##
zypper in -f $(rpm -qa |grep -i 'xorg-\|mesa-*\|libglvnd')

5.12 Reboot

Run systemctl set-default graphical.target first or if you used direct grub parameter, then just:

reboot

5.14 NVIDIA Drivers Uninstall Complete and nouveau enabled

6 comments on “openSUSE 15.4/15.3/Tumbleweed Uninstall NVIDIA drivers and Enable Nouveau

Leave a Reply

Your email address will not be published.

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Exit mobile version
Close