Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230

 

 

 

How to install Nvidia drivers on Debian 11 (Bullseye) guide???

Graphical Environments, Managers, Multimedia & Desktop questions.
Message
Author
User avatar
sunrat
Administrator
Administrator
Posts: 6412
Joined: 2006-08-29 09:12
Location: Melbourne, Australia
Has thanked: 116 times
Been thanked: 462 times

Re: How to install Nvidia drivers on Debian 11 (Bullseye) guide???

#21 Post by sunrat »

Something seems screwed up in your policy. Backports packages should not be installed automatically like that.
Show us the output from:

Code: Select all

apt policy linux-image-amd64
“ computer users can be divided into 2 categories:
Those who have lost data
...and those who have not lost data YET ”
Remember to BACKUP!

jscoys
Posts: 13
Joined: 2021-11-22 21:16
Has thanked: 2 times
Been thanked: 1 time

Re: How to install Nvidia drivers on Debian 11 (Bullseye) guide???

#22 Post by jscoys »

Code: Select all

 apt policy linux-image-amd64
linux-image-amd64:
  Installed: (none)
  Candidate: 5.14.9-2~bpo11+1
  Version table:
     5.14.9-2~bpo11+1 500
        100 http://httpredir.debian.org/debian bullseye-backports/main amd64 Packages
     5.10.84-1 500
        500 http://deb.debian.org/debian bullseye/main amd64 Packages
     5.10.46-5 500
        500 http://security.debian.org/debian-security bullseye-security/main amd64 Packages

User avatar
sunrat
Administrator
Administrator
Posts: 6412
Joined: 2006-08-29 09:12
Location: Melbourne, Australia
Has thanked: 116 times
Been thanked: 462 times

Re: How to install Nvidia drivers on Debian 11 (Bullseye) guide???

#23 Post by sunrat »

jscoys wrote: 2022-01-04 06:39

Code: Select all

 apt policy linux-image-amd64
linux-image-amd64:
  Installed: (none)
  Candidate: 5.14.9-2~bpo11+1
  Version table:
     5.14.9-2~bpo11+1 500
        100 http://httpredir.debian.org/debian bullseye-backports/main amd64 Packages
     5.10.84-1 500
        500 http://deb.debian.org/debian bullseye/main amd64 Packages
     5.10.46-5 500
        500 http://security.debian.org/debian-security bullseye-security/main amd64 Packages
The backports version should be showing priority of 100, not 500 as it shows. If it had correct priority, the stable version would be installed. Have you changed any apt pinning?
“ computer users can be divided into 2 categories:
Those who have lost data
...and those who have not lost data YET ”
Remember to BACKUP!

jscoys
Posts: 13
Joined: 2021-11-22 21:16
Has thanked: 2 times
Been thanked: 1 time

Re: How to install Nvidia drivers on Debian 11 (Bullseye) guide???

#24 Post by jscoys »

Hum i tried different things during the installation so yes it’s more than probable that I did change something there. Do you know how to change this?

jscoys
Posts: 13
Joined: 2021-11-22 21:16
Has thanked: 2 times
Been thanked: 1 time

Re: How to install Nvidia drivers on Debian 11 (Bullseye) guide???

#25 Post by jscoys »

@sunrat I guess there is a magical command to change the "Candidate" version and the "Version table" priorities? In the meanwhile here is my /etc/apt/sources.list

Code: Select all

# deb cdrom:[Debian GNU/Linux 11.1.0 _Bullseye_ - Official amd64 DVD Binary-1 20211009-10:08]/ bull>

# deb cdrom:[Debian GNU/Linux 11.1.0 _Bullseye_ - Official amd64 DVD Binary-1 20211009-10:08]/ bull>

deb http://deb.debian.org/debian/ bullseye main non-free contrib
deb-src http://deb.debian.org/debian/ bullseye main non-free contrib

# bullseye-updates, to get updates before a point release is made;
# see https://www.debian.org/doc/manuals/debian-reference/ch02.en.html#_updates_and_backports
deb http://deb.debian.org/debian/ bullseye-updates main non-free contrib
deb-src http://deb.debian.org/debian/ bullseye-updates main contrib non-free contrib

# Debian 11 "Bullseye"
#deb http://deb.debian.org/debian/ bullseye main contrib non-free
#deb https://developer.download.nvidia.com/compute/cuda/repos/debian11/x86_64/ /
# deb-src https://developer.download.nvidia.com/compute/cuda/repos/debian11/x86_64/ /

#deb http://deb.debian.org/debian unstable main contrib non-free
#deb-src http://deb.debian.org/debian unstable main contrib non-free

Lightday
Posts: 23
Joined: 2021-09-12 18:26

Re: How to install Nvidia drivers on Debian 11 (Bullseye) guide???

#26 Post by Lightday »

Hello good day. I've been since Debian 11 came out (I have the stable branch installed and it's the one I want to have), trying to get my Nvidia graphics card to work and I can't.
This topic is open in "Nouveau and Nvidia", and since I do not have a solution, I comment on it here.
quique@debian11:~$ neofetch
_,met$$$$$gg. quique@debian11
,g$$$$$$$$$$$$$$$P. ---------------
,g$$P" """Y$$.". OS: Debian GNU/Linux 11 (bullseye) i686
,$$P' `$$$. Kernel: 5.10.0-10-686
',$$P ,ggs. `$$b: Uptime: 22 mins
`d$$' ,$P"' . $$$ Packages: 2483 (dpkg)
$$P d$' , $$P Shell: bash 5.1.4
$$: $$. - ,d$$' Resolution: 1366x768
$$; Y$b._ _,d$P' DE: GNOME 3.38.6
Y$$. `.`"Y$$$$P"' WM: Mutter
`$$b "-.__ WM Theme: Adwaita
`Y$$ Theme: Adwaita [GTK2/3]
`Y$$. Icons: Adwaita [GTK2/3]
`$$b. Terminal: gnome-terminal
`Y$$b. CPU: AMD FX-8350 (8) @ 4.000GHz
`"Y$b._ GPU: NVIDIA GeForce GT 730
`""" Memory: 1715MiB / 3255MiB
As can be seen, the system is 32-bit, with the updated kernel from the stable branch and with Nvidia graphics.

quique@debian11:~$ dpkg --list | grep 5.10.0-10-686
ii linux-headers-5.10.0-10-686-pae 5.10.84-1 i386 Header files for Linux 5.10.0-10-686-pae ii linux-image-5.10.0-10-686 5.10.84-1 i386 Linux 5.10 for older PCs (signed)
Here it tells us that the linux header is "pae", that it is i386, that the linux image is 686, that the 5.10 kernel is for older computers and that it is signed.

sudo gedit /etc/apt/sources.list
# deb cdrom:[Official Debian GNU/Linux Live 11.0.0 gnome 2021-08-14T11:40]/ bullseye main
#deb cdrom:[Official Debian GNU/Linux Live 11.0.0 gnome 2021-08-14T11:40]/ bullseye main
deb http://deb.debian.org/debian/ bullseye main contrib non-free
deb-src http://deb.debian.org/debian/ bullseye main contrib non-free
deb http://security.debian.org/debian-security bullseye-security main contrib non-free
deb-src http://security.debian.org/debian-security bullseye-security main contrib non-free
deb http://deb.debian.org/debian/ bullseye-updates main contrib non-free
deb-src http://deb.debian.org/debian/ bullseye-updates main contrib non-free
It shows us that the sources are from the stable branch, with contrib and non-free.

When installing 64-bit multi-architecture, I get the following errors when starting Debian:
"Failed to start Load kernel modules" and "Failed to start nvidia persistence daemon".

On the other hand I have seen in https://es.linuxcapable.com/how-to-inst ... -bullseye/, since the kernel is 32 bits pae, yes I install the pae header and the corresponding image, is the corresponding driver installed and the card would work ?. Is that true, and if so, wouldn't you be making a FrankenDebian?
Thanks

User avatar
sunrat
Administrator
Administrator
Posts: 6412
Joined: 2006-08-29 09:12
Location: Melbourne, Australia
Has thanked: 116 times
Been thanked: 462 times

Re: How to install Nvidia drivers on Debian 11 (Bullseye) guide???

#27 Post by sunrat »

For those who waited patiently, (or for those who wrecked their systems trying workarounds :D ), backports now has nvidia-driver 470.94 which should build on up to 5.14 - 5.15 kernels.
For me it built fine on default 5.10 kernel and the latest 5.15 liquorix.
“ computer users can be divided into 2 categories:
Those who have lost data
...and those who have not lost data YET ”
Remember to BACKUP!

Lightday
Posts: 23
Joined: 2021-09-12 18:26

Re: How to install Nvidia drivers on Debian 11 (Bullseye) guide???

#28 Post by Lightday »

Installed multiarch, and kernel headers.
I install nvidia-detect: amd64 so that it detects my graphics card.
I run the script:
quique@debian11:~$ nvidia-detect
Detected NVIDIA GPUs:
01:00.0 VGA compatible controller [0300]: NVIDIA Corporation GK208B [GeForce GT 730] [10de:1287] (rev a1)
Checking card: NVIDIA Corporation GK208B [GeForce GT 730] (rev a1)
Your card is supported by all driver versions.
Your card is also supported by the Tesla 460 drivers series.
Your card is also supported by the Tesla 450 drivers series.
Your card is also supported by the Tesla 418 drivers series.
It is recommended to install the nvidia-driver package.
I install the appropriate driver
sudo apt install nvidia-tesla-460-driver:amd64
and install it.
And on debian boot these two errors appear:
"Failed to start Load kernel modules"
See "systemctl status nvidia-persistenced.service" for details.
"Failed to start nvidia persistence daemon"
See "systemctl status nvidia-persistenced.service" for details.
From what I deduce that the kernel modules are not loaded and the nvidia daemon is not started.
Some help?
Thanks

User avatar
sunrat
Administrator
Administrator
Posts: 6412
Joined: 2006-08-29 09:12
Location: Melbourne, Australia
Has thanked: 116 times
Been thanked: 462 times

Re: How to install Nvidia drivers on Debian 11 (Bullseye) guide???

#29 Post by sunrat »

Install firmware-misc-nonfree. It contains firmware required for Nvidia cards.
“ computer users can be divided into 2 categories:
Those who have lost data
...and those who have not lost data YET ”
Remember to BACKUP!

Lightday
Posts: 23
Joined: 2021-09-12 18:26

Re: How to install Nvidia drivers on Debian 11 (Bullseye) guide???

#30 Post by Lightday »

I already have that package installed.

Lightday
Posts: 23
Joined: 2021-09-12 18:26

Re: How to install Nvidia drivers on Debian 11 (Bullseye) guide???

#31 Post by Lightday »

I have installed the kernel and multi-arch headers and the card does not work.
quique@debian11:~$ sudo apt rdepends module-assistant
[sudo] password for quique:
module-assistant
Reverse Depends:
Depende: dahdi-source (>= 0.8.1)
|Recomienda: nvidia-legacy-390xx-kernel-source
Recomienda: broadcom-sta-source
Recomienda: broadcom-sta-common
Recomienda: xtables-addons-source
Recomienda: west-chamber-source
Depende: vpb-driver-source
Recomienda: v4l2loopback-source
|Depende: openafs-modules-source
Depende: leds-alix-source
Recomienda: bbswitch-source
According https://wiki.debian.org/NvidiaGraphicsDrivers, the controller 470.94.00 y 390.144 are compatible with, but with the core just the 390.144.

Lightday
Posts: 23
Joined: 2021-09-12 18:26

Re:(SOLVED) How to install Nvidia drivers on Debian 11 (Bullseye) guide???

#32 Post by Lightday »

"Failed to start Load kernel modules" See "systemctl status nvidia-persistenced.service" for details.
"Failed to start nvidia persistence daemon" See "systemctl status nvidia-persistenced.service" for details.
To know the available modules: sudo apt rdepends module-assistant
Show nvidia kernel module configuration: sudo modprobe -c | grep -w nvidia, There is a line that says: alias char_major_195* nvidia, We add the alias to: /etc/modules-load.d/modules.conf, /etc/modules.conf.
We install the package: nvidia-legacy-390xx-kernel-source
We remove: sudo dkms remove -m nvidia-legacy-390xx -v 390.144 --all || true
We add: sudo dkms add -m nvidia-legacy-390xx -v 390.144 --all || true
We build: sudo dkms build -m nvidia-legacy-390xx -v 390.144 || true
We install: sudo dkms install -m nvidia-legacy-390xx -v 390.144 || true
And finally: sudo reboot
https://wiki.debian.org/Modules

postcd
Posts: 133
Joined: 2022-01-08 18:33
Has thanked: 48 times
Been thanked: 2 times

Re: How to install Nvidia drivers on Debian 11 (Bullseye) guide???

#33 Post by postcd »

I have used this tool that detects needed firmware, i think it may detect nvidia one too.. reboot

jscoys
Posts: 13
Joined: 2021-11-22 21:16
Has thanked: 2 times
Been thanked: 1 time

Re: How to install Nvidia drivers on Debian 11 (Bullseye) guide???

#34 Post by jscoys »

sunrat wrote: 2022-02-01 06:05 Install firmware-misc-nonfree. It contains firmware required for Nvidia cards.
Thank you so much sunrat! Last question, I installed the 470 drivers with 5.15 kernel, everything went well, no errors.

How I can check if my nvidia drivers have been installed correctly now? I'm CLI only, no UI.

User avatar
sunrat
Administrator
Administrator
Posts: 6412
Joined: 2006-08-29 09:12
Location: Melbourne, Australia
Has thanked: 116 times
Been thanked: 462 times

Re: How to install Nvidia drivers on Debian 11 (Bullseye) guide???

#35 Post by sunrat »

jscoys wrote: 2022-03-05 21:48How I can check if my nvidia drivers have been installed correctly now? I'm CLI only, no UI.

Code: Select all

lspci -k | grep -A3 VGA
it should say something like this:

Code: Select all

01:00.0 VGA compatible controller: NVIDIA Corporation GM204 [GeForce GTX 970] (rev a1)
        Subsystem: ASUSTeK Computer Inc. GM204 [GeForce GTX 970]
        Kernel driver in use: nvidia
        Kernel modules: nvidia
“ computer users can be divided into 2 categories:
Those who have lost data
...and those who have not lost data YET ”
Remember to BACKUP!

Post Reply