MeowIce / nvidia-legacy

This repository includes patched legacy nVIDIA drivers for newer Linux kernels (5.8 - 6.8). Works on all Linux distros.
118 stars 38 forks source link
driver drivers gpu graphics-driver linux meowice nvidia nvidia-340 nvidia-390 nvidia-418 nvidia-435 nvidia-driver nvidia-driver-packages nvidia-gpu nvidia-gpus nvidia-legacy nvidia-patch patches

Patched legacy nVIDIA drivers to work with newer Linux kernels.

This repository includes patched legacy/dropped support nVIDIA drivers for newer Linux kernels.

If you found this repo helpful and saved you on a rainy day then give it a ⭐.

Downloads: SourceForge | Github Releases

Which versions and kernels are supported ?

Bold: latest patch for that kernel

^: Removed, you may want to look at forked to see previous versions.

How to use:

  1. Select your driver version from the branch menu: For example, I'll use 340.108:

image

  1. Browse for your current kernel: In this case, I'm running 5.17 kernel:

image

  1. Download the blacklist file and the patched .run file then install it:

image

Press Ctrl + Alt + F1 (any from 1 - 6).

Login with your account.

cd to your patched nVIDIA driver.

$ sudo su
# systemctl stop lightdm
# chmod +x blacklist.sh && ./blacklist.sh
# chmod +x <nvidia_filename>
# ./<nvidia_filename>

Reboot after installation.

Replace lightdm with your window manager (GDM, LightDM, etc.).

Don't know if your GPU is out of date ?

See nVIDIA Legacy GPU/Drivers list

Known issues

Kernel panic during installation

For Ubuntu 22.04+:

# apt update && apt upgrade -y

Reboot and re-install. If not working, try the Low Resolution method and replace gdm with lightdm.

Low resolution:

No TTY

After installing the driver. The screen will turn off and you won't be able to see anything in TTY mode, thus TTY still working and recognizes keyboard input. (login with username and password in blind then you will see HDD light blinking). To fix this:

Graphics issues after suspend (sleep)