Installing NVIDIA Desktop Drivers on Debian
Debian 13 (Trixie)
To install the NVIDIA Drivers on Debian 13 you may refer to the official NVIDIA Documentation for Turing Architecture GPUs or newer.
This document is reference for older GPU types such as Pascal architecture GPUs
(GTX 1000 Series), which may produce problems on install, or be completely
unsupported by drivers after version 580.142
The .run method is not generally recommended, however, desperate times call
for desperate measures.
GPUs are expensive these days, and sometimes we don’t have the luxury of having the latest technologies.
Pascal Architecture
To install the drivers for the Pascal GTX1000 Series GPUs from NVIDIA you’ll need to:
- Download the
.rundrivers file from NVIDIA. - Install some dependencies.
- Pray to whatever god you believe in.
In this case we will use drivers 580.142, but you might need to vary the
filename and driver version based on your case.
Firstly ensure your system is up to date:
# Check if there are updates
apt update
# Upgrade the packages
apt upgrade --fix-broken --fix-missing -y
# Optional Cleanups
apt autoclean
apt autoremove
Enable i386 architecture.
dpkg --add-architecture i386
Install the following dependencies via apt:
pkg-configlibglvnd-devgccmake
apt install pkg-config libglvnd-dev gcc make -yDownload the desired drivers from NVIDIA (https://www.nvidia.com/en-us/drivers/details/265443/).
Change permissions for the
.runfile.chmod +x NVIDIA-Linux-x86_64-580.142.run
Execute the installation script.
./NVIDIA-Linux-x86_64-580.142.run
When prompted on whether to disable Nouveau, select YES.
When prompted on whether to install the 32-bit compatibility libraries, select YES.
When prompted on whether to make a backup of your Xorg configuration, select YES.
Once the installation is complete, add the following parameters to your modprobe directory:
# ~: nano /etc/modprobe.d/nvidia-graphics-drivers-dkms.conf # Modeset Fixes options nvidia-drm modeset=1 # Suspend fixes options nvidia-drm fbdev=1 options nvidia NVreg_PreserveVideoMemoryAllocations=1 options nvidia NVreg_TemporaryFilePath=/var/tmpEnsure the following services are enabled:
systemctl enable nvidia-hibernate.service systemctl enable nvidia-persistenced.service systemctl enable nvidia-resume.service systemctl enable nvidia-suspend.serviceFinally do:
update-initramfs -u update-grub reboot
Hopefully, you should now reboot into a fully functional system with the latest drivers for your EoL Pascal GPU.
Sources
- https://docs.nvidia.com/datacenter/tesla/driver-installation-guide/debian.html#compute-only-headless-and-desktop-only-no-compute-installation
- https://docs.nvidia.com/datacenter/tesla/driver-installation-guide/post-installation-actions.html#post-installation-actions
- https://github.com/nulls0x0/debian-setup/blob/master/debian-13-nvidia-gaming-setup-guide.md
- https://gist.github.com/bmcbm/375f14eaa17f88756b4bdbbebbcfd029
- https://forum.garudalinux.org/t/kde-wayland-session-will-not-use-nvidia-gpu/32734/3
- https://forums.developer.nvidia.com/t/installing-nvidia-driver-need-libglvnd-dev/190156/2