[HowTo] Driver of Nvidia

Share your HowTo, Documentation, Tips and Tricks. Not for support questions!.
Locked
Message
Author
jebez
Posts: 127
Joined: 2024-07-01 15:21
Been thanked: 2 times

[HowTo] Driver of Nvidia

#1 Post by jebez »

nvidia-driver of Debian https://packages.debian.org/search?keyw ... ection=all is late, I even asked the question viewtopic.php?t=161410.

The solution:
nvidia-driver of Nvidia (565.57.01-1 at this time) https://docs.nvidia.com/datacenter/tesl ... tml#debian, in https://developer.download.nvidia.com/c ... 12/x86_64/
or
NVIDIA-Linux-x86_64-*.run (NVIDIA-Linux-x86_64-565.77.run at this time https://www.nvidia.com/en-us/drivers/details/237587/) from https://www.nvidia.com/en-us/drivers/.

When nvidia-driver 565.77 amd64 will be released & why is it not in the repo of Debian? & issue https://forums.developer.nvidia.com/t/w ... ian/318717.

Some issues:
viewtopic.php?t=161366
viewtopic.php?t=161354.
Last edited by jebez on 2025-01-15 13:43, edited 1 time in total.
Retired of Debian, I'm on Arch Linux btw

User avatar
wizard10000
Global Moderator
Global Moderator
Posts: 1315
Joined: 2019-04-16 23:15
Location: southeastern us
Has thanked: 134 times
Been thanked: 235 times

Re: [HowTo] Driver of Nvidia

#2 Post by wizard10000 »

I'm afraid Debian recommends against using GPU manufacturer install scripts. See https://wiki.debian.org/DontBreakDebian ... ll_scripts
Don't use GPU manufacturer install scripts

Debian includes free and open-source drivers that support most video cards. The free drivers provide the best integration with the rest of the Debian system and work quite well for most users.

If you absolutely must have the proprietary closed-source drivers, do not download them directly from the manufacturer's website! Installing drivers this way only works for the current kernel, and after the next kernel update, your video drivers will not work until they are manually reinstalled again.

Fortunately there is a Debian way to install video card drivers using packages in the repository. Installing the drivers the Debian way will make sure that the drivers continue to work after kernel updates.

AtiHowTo has instructions on setting up the recommended free and open-source drivers for ATI/AMD video cards.

NvidiaGraphicsDrivers has instructions for installing the proprietary NVIDIA drivers the Debian way.
we see things not as they are, but as we are.
-- anais nin

jebez
Posts: 127
Joined: 2024-07-01 15:21
Been thanked: 2 times

Re: [HowTo] Driver of Nvidia

#3 Post by jebez »

Well I'm on "see my signature", except https://forum.videolan.org/viewtopic.php?f=13&t=165724 &
Sleep: black screen & pointer stuck after resuming.
Hibernate: desktop messed up after resuming so:

Code: Select all

su -

Code: Select all

systemctl --user restart plasma-plasmashell
it's ok.

For Linux update, dkms does the job...

But nvidia-driver of Debian:
I had bad experiences using nvidia-driver 535.183.01-1: e.g. Black Mesa lags a lot, unplayable (move the look quickly to avoid lag...), Serious Sam Fusion 2017 (beta) & Counter-Strike 2 have screen tearing despite VSync on.
Also viewtopic.php?t=161565, viewtopic.php?t=161366, viewtopic.php?t=161354, maybe other issues.

The driver of Nvidia is now free & open source https://developer.nvidia.com/blog/nvidi ... l-modules/.
Retired of Debian, I'm on Arch Linux btw

User avatar
mcdaniels
Posts: 76
Joined: 2024-05-14 13:34
Has thanked: 16 times
Been thanked: 5 times

Re: [HowTo] Driver of Nvidia

#4 Post by mcdaniels »

wizard10000 wrote: 2025-01-15 12:48 I'm afraid Debian recommends against using GPU manufacturer install scripts. See https://wiki.debian.org/DontBreakDebian ... ll_scripts
Don't use GPU manufacturer install scripts

Debian includes free and open-source drivers that support most video cards. The free drivers provide the best integration with the rest of the Debian system and work quite well for most users.

If you absolutely must have the proprietary closed-source drivers, do not download them directly from the manufacturer's website! Installing drivers this way only works for the current kernel, and after the next kernel update, your video drivers will not work until they are manually reinstalled again.

Fortunately there is a Debian way to install video card drivers using packages in the repository. Installing the drivers the Debian way will make sure that the drivers continue to work after kernel updates.

AtiHowTo has instructions on setting up the recommended free and open-source drivers for ATI/AMD video cards.

NvidiaGraphicsDrivers has instructions for installing the proprietary NVIDIA drivers the Debian way.
Hi,
but what if you are in a situation you cannot use the nvidia drivers from the repository of debian.

Is "the Debian way" using the nvidia repos also? Cause beside of using the .run-installer this is the only way to get propriarity drivers (with unsupported GPUs) to work.

The Nvidia-Installer (.run) is using DKMS, so the modules used for "Nvidia" should be rebuilt, when switching kernels. (AFAIK)

User avatar
wizard10000
Global Moderator
Global Moderator
Posts: 1315
Joined: 2019-04-16 23:15
Location: southeastern us
Has thanked: 134 times
Been thanked: 235 times

Re: [HowTo] Driver of Nvidia

#5 Post by wizard10000 »

mcdaniels wrote: 2025-01-16 07:30Hi,
but what if you are in a situation you cannot use the nvidia drivers from the repository of debian.

Is "the Debian way" using the nvidia repos also? Cause beside of using the .run-installer this is the only way to get propriarity drivers (with unsupported GPUs) to work.

The Nvidia-Installer (.run) is using DKMS, so the modules used for "Nvidia" should be rebuilt, when switching kernels. (AFAIK)
You can do anything you like with your hardware; it is after all, your hardware and your choice. But - if you recommend something that contradicts Debian's official guidance somebody will probably call you out on it :)
we see things not as they are, but as we are.
-- anais nin

User avatar
mcdaniels
Posts: 76
Joined: 2024-05-14 13:34
Has thanked: 16 times
Been thanked: 5 times

Re: [HowTo] Driver of Nvidia

#6 Post by mcdaniels »

wizard10000 wrote: You can do anything you like with your hardware; it is after all, your hardware and your choice. But - if you recommend something that contradicts Debian's official guidance somebody will probably call you out on it :)
Yes I know and it is clear to me that it is not the "Debian-way".

It was no kind of offense! I really would like to know, what you can do if you have a nvidia-card, which the debian-package "nvidia-drivers" is not supporting (like in my case it is not supporting my rtx 4080 Super).

In this situation you have to use the .run - Installer or the nvidia-repo itself, cause otherwiese you do not have a chance of getting the most out of your graphicshardware.

I may be wrong. It is just a thing I think I know.

arzgi
Posts: 1775
Joined: 2008-02-21 17:03
Location: Finland
Has thanked: 1 time
Been thanked: 103 times

Re: [HowTo] Driver of Nvidia

#7 Post by arzgi »

If you can't get working driver from stable and nouveau (open source driver for nvidia gpus) don't feel right, there backports, and other options.

I think the last option is to use vendors firmware, that can lead to problem that you have to build the module each time kernel is updated.

User avatar
wizard10000
Global Moderator
Global Moderator
Posts: 1315
Joined: 2019-04-16 23:15
Location: southeastern us
Has thanked: 134 times
Been thanked: 235 times

Re: [HowTo] Driver of Nvidia

#8 Post by wizard10000 »

mcdaniels wrote: 2025-01-16 13:00Yes I know and it is clear to me that it is not the "Debian-way".

It was no kind of offense! I really would like to know, what you can do if you have a nvidia-card, which the debian-package "nvidia-drivers" is not supporting (like in my case it is not supporting my rtx 4080 Super).

In this situation you have to use the .run - Installer or the nvidia-repo itself, cause otherwiese you do not have a chance of getting the most out of your graphicshardware.

I may be wrong. It is just a thing I think I know.
You're not wrong and nobody is offended, honest.

My point is this forum is an official resource and so we need to officially support Debian's recommendations. If I had to choose I'd probably use nvidia-repo instead of running their install script but as mentioned, your hardware, your choice. If you've got hardware that's not supported by Debian yet then yes, you're going to need to bend a recommendation or two :)
we see things not as they are, but as we are.
-- anais nin

User avatar
mcdaniels
Posts: 76
Joined: 2024-05-14 13:34
Has thanked: 16 times
Been thanked: 5 times

Re: [HowTo] Driver of Nvidia

#9 Post by mcdaniels »

@wizard10000

Ok, all clear!
Best way for us "Penguinlovers" still is to use an AMD GPU. I really think of putting it back into my machine, but I am doing some debian-live-iso stuff so I have to be sure to do things right and support a lot of gpu-hardware (and there NVIDIA comes into the situation).

Especially with nvidia it is still frustrating sometimes (but getting better).

I am trying to build "the debian desktop gaming machine" (and ISO with installer and so on). Perhaps a little overenthusiastic, but I really love this linux-distribution and you really learn a lot when doing this kind of stuff.

jebez
Posts: 127
Joined: 2024-07-01 15:21
Been thanked: 2 times

Re: [HowTo] Driver of Nvidia

#10 Post by jebez »

Major update:
I finally installed Arch Linux https://bbs.archlinux.org/viewtopic.php?id=302645 https://archlinux.org/packages/extra/x86_64/nvidia/ like Valve, I believed Debian is the universal OS number 1, but Arch Linux seems better.

Good bye Debian.
Retired of Debian, I'm on Arch Linux btw

User avatar
mcdaniels
Posts: 76
Joined: 2024-05-14 13:34
Has thanked: 16 times
Been thanked: 5 times

Re: [HowTo] Driver of Nvidia

#11 Post by mcdaniels »

jebez wrote: 2025-01-16 17:43 Major update:
I finally installed Arch Linux https://bbs.archlinux.org/viewtopic.php?id=302645 https://archlinux.org/packages/extra/x86_64/nvidia/ like Valve, I believed Debian is the universal OS number 1, but Arch Linux seems better.

Good bye Debian.
Hi,
you are mixing up distros and the target of these distros. Debian itself is considered a stable release and is not rolling like arch (I am sure you are aware of this).

If you take packages from the debian stable repo, they are rockstable and solid, but older than in a distribution which aims to be bleeding edge. It is very clear that a stable-distribution, with older packages is not supporting modern hardware. Or lets say is not supporting that much "newer" hardware.

If you take packages out of arch, they are bleeding edge and very "new" and support the latest things, when it comes to hardware.

This is the point where I am saying: If you have top, latest, or very new hardware and are looking for some kind of a out-of-the-box experience look for a rolling release distribution.
As said cause of the latest packages, you may get support for the latest hardware without the hassle of fiddeling around a little bit. On the other handside, you can be hit by a arch-update which breaks a package you need. If this point is reached, you have to look for a solution and (if there is none) you have to wait for the package maintainer to fix the problem.

So it is not Debians "problem" it is a question of the philosophy of a distribution in my opinion and the decision of the user.

Debian is the universal os cause of support of:

x86 (32-Bit und 64-Bit)
ARM (armhf, arm64, armel)
PowerPC
RISC-V
IBM System z (s390x)
MIPS (64-Bit und 32-Bit variants)
SPARC (some ports exisst)

Arch on the other handside is officially providing "only":
x86 (64-Bit)
with some existing not official ports (e.g. ARM)

Do not get me wrong, Archlinux is a great distribution too!

User avatar
wizard10000
Global Moderator
Global Moderator
Posts: 1315
Joined: 2019-04-16 23:15
Location: southeastern us
Has thanked: 134 times
Been thanked: 235 times

Re: [HowTo] Driver of Nvidia

#12 Post by wizard10000 »

We've wandered pretty far off-topic here, I think it's probably time to close this thread.

Thanks to all -
we see things not as they are, but as we are.
-- anais nin

Locked