Git Product home page Git Product logo

nvidia-legacy's Introduction

Patched legacy nVIDIA drivers to work with newer Linux kernels.

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

From December 7, 2022, I will start to remove non-LTS kernel drivers as my Git LFS is being limited. Please fork this repo to back it up.

If you found this repo helpful and saved you in a rainy day then give it a star ;)

Which versions and kernels are supported ?

  • 340.108 (5.8^, 5.10, 5.15, 5.17^, 5.18/5.19, 6.0, 6.2, 6.3, 6.5, 6.6.x)
  • 390.151 (5.18+)
  • 418.113 (5.8, 5.10, 5.11)
  • 435.21 (5.4, 5.11)^
  • 515.65.01 (6.0+)^

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

  • Newer kernels might spam kernel panic while installing Unified Memory Modules. This is alright and will not affect to the installation progress. If you could not see the message box content, try pressing arrow left/right keys and it will refresh :)

For Ubuntu 22.04+:

  • The default kernel must be 5.15.
  • Try with 5.15 patch first. If you booted into Oh no screen or at low resolution, continue reading.

Oh no screen:

# apt update && apt upgrade -y

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

Low resolution:

  • Install 5.18 patch although you're on 5.15 (it should work).
  • Delete the old xorg.conf and generate a new one with nvidia-xconfig.

No TTY

After installed the driver. The screen will turn off and you won't be able to see anythingin 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:

  • Open your grub file as root (/etc/default/grub). Remove the # in
#GRUB_TERMINAL=console
#GRUB_GFXMODE=640x480
  • You can change 640x480 to your screen resolution.
  • Save the file then update grub (sudo update-grub).

Graphics issues after suspend (sleep)

  • This is a well-known issue for nvidia drivers. You can try to suspend via power menu instead of closing the lid. If it does not fix, restart the desktop via the command r (Alt F2).

Folk + Star this repo cuz I will remove old kernels support as Git LFS storage is running out.

nvidia-legacy's People

Contributors

meowice avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.