How to correctly downgrade Nvidia drivers?

Since the latest driver has a lot of issues for me (black screen when set over 120hz), I decided to downgrade it to 535xx or 550, but everytime I tried to install with dkms it has these error messages:

==> dkms install --no-depmod nvidia/535.183.01 -k 6.10.1-2-cachyos
Error! Bad return status for module build on kernel: 6.10.1-2-cachyos (x86_64)
Consult /var/lib/dkms/nvidia/535.183.01/build/make.log for more information.
==> WARNING: `dkms install --no-depmod nvidia/535.183.01 -k 6.10.1-2-cachyos' exited 10
( 6/11) Updating linux initcpios...
==> Building image from preset: /etc/mkinitcpio.d/linux-cachyos.preset: 'default'
==> Using default configuration file: '/etc/mkinitcpio.conf'
  -> -k /boot/vmlinuz-linux-cachyos -g /boot/initramfs-linux-cachyos.img
==> Using drop-in configuration file: '10-chwd.conf'
==> Starting build: '6.10.1-2-cachyos'
  -> Running build hook: [base]
  -> Running build hook: [udev]
  -> Running build hook: [autodetect]
  -> Running build hook: [microcode]
  -> Running build hook: [kms]
  -> Running build hook: [modconf]
  -> Running build hook: [block]
==> WARNING: Possibly missing firmware for module: 'xhci_pci'
  -> Running build hook: [keyboard]
  -> Running build hook: [keymap]
  -> Running build hook: [consolefont]
==> WARNING: consolefont: no font found in configuration
  -> Running build hook: [plymouth]
  -> Running build hook: [encrypt]
==> WARNING: Possibly missing firmware for module: 'qat_420xx'
  -> Running build hook: [filesystems]
==> ERROR: module not found: 'nvidia'
==> ERROR: module not found: 'nvidia_modeset'
==> ERROR: module not found: 'nvidia_uvm'
==> ERROR: module not found: 'nvidia_drm'

I have no idea how to fix it, would greatly appreciate some help!

sudo pacman -U /var/cache/pacman/pkg/<package>

What worked for me is:

yay -S downgrade
downgrade nvidia-utils lib32-nvidia-utils opencl-nvidia nvidia-dkms lib32-opencl-nvidia

downgrade will ask you which version to downgrade to for each package. What works for me is to select the 550.90.07 version for each package.

The 535 drivers are in our repository.
You can find them other name the “nvidia-535xx”.

Search here for 535xx to see, which packages you need:
https://build.cachyos.org/repo/x86_64/cachyos/

It worked for me! Thanks!

1 Like