-
Notifications
You must be signed in to change notification settings - Fork 1.8k
fix(nvidia): install legacy NVIDIA driver on older GPUs #3956
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
fix(nvidia): install legacy NVIDIA driver on older GPUs #3956
Conversation
| # Turing (16xx, 20xx), Ampere (30xx), Ada (40xx), and newer recommend the open-source kernel modules | ||
| # Pascal (10xx), Maxwell (9xx), Kepler (7xx) and older use legacy branch that can only be installed from AUR | ||
| if [ "$NVIDIA_DRIVER" = "$NVIDIA_DRIVER_CURRENT" ]; then | ||
| DRIVER_PACKAGES=(nvidia-open-dkms nvidia-utils lib32-nvidia-utils libva-nvidia-driver) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't know if it was always like this, but apparently Nvidia-utils is a dependency for Nvidia packages, meaning we don't need to install it separately.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fair it is a dependency, but I don't see a problem with being explicit here for the sake of clarity and in case dependencies change.
|
Should we inform users whether their graphics card is currently supported by NVIDIA or by the Arch team? Right now, the script assumes that if a user does not have a GPU newer than the Pascal architecture, it will get the 580xx driver, which is not supported by older cards, and users are likely going to be unaware of this. |
|
this should handle migration for mentioned cards echo "Migrate legacy NVIDIA GPUs to nvidia-580xx driver"
# Skip if no nvidia packages are installed
if ! pacman -Qq 2>/dev/null | grep -q '^nvidia'; then
exit 0
fi
# Skip if its a "modern" gpu
if lspci | grep -iE 'nvidia. *(RTX [2-9][0-9]|GTX 16)'; then
exit 0
fi
# Remove current nvidia driver packages
omarchy-pkg-drop nvidia nvidia-dkms nvidia-utils lib32-nvidia-utils
# Install 580xx driver from AUR
yay -S --needed --noconfirm nvidia-580xx-dkms nvidia-580xx-utils lib32-nvidia-580xx-utils
|
Thanks for taking the time to review my PR! Yeah it may be simplest to just inform the user if their GPU is legacy and unsupported based on this status table and direct them to the wiki if so. |
Fixes #3954
This PR updates the NVIDIA hardware install script to install the legacy NVIDIA driver for older GPUs (Pascal (10xx), Maxwell (9xx), Kepler (7xx)), as suggested in the recent Arch Linux announcement.