Page 1 of 1

debian 11, nvidia-driver issue

Posted: 2022-04-19 11:46
by tieum
Hi,
I've installed a fresh install of Debian 11 on my Dell Inspirion. It's a double boot (with a win11 aside) and I've used an lvm partitions.
I'm struggling to get the nvidia driver working.
I thought to make it simple I'd install everything from Debian packages... (nvidia-driver, nvidia-kernel-dkms, nvidia-detect, nvidia-settings, nvidia-cuda-toolkit...)
First issue apparently was due to the secure boot... Could someone explain me how I could sign the modules and load them?

I've disabled secure boot but still I don't manage to load the driver...
I'd like to use optimus to run things on the nvidia card, otherwise keep the integrated one.
Here is my config

Code: Select all

root@mbruelGT:/lib# uname -ar
Linux mbruelGT 5.10.0-10-amd64 #1 SMP Debian 5.10.84-1 (2021-12-08) x86_64 GNU/Linux

root@mbruelGT:/lib# lspci -nn | grep '\(VGA\|3D\)'
00:02.0 VGA compatible controller [0300]: Intel Corporation Device [8086:9a60] (rev 01)
01:00.0 3D controller [0302]: NVIDIA Corporation GA107 [10de:25a2] (rev a1)

root@mbruelGT:/lib# nvidia-detect 
Detected NVIDIA GPUs:
01:00.0 3D controller [0302]: NVIDIA Corporation GA107 [10de:25a2] (rev a1)

Checking card:  NVIDIA Corporation GA107 (rev a1)
Your card is supported by the default drivers.
Your card is also supported by the Tesla 460 drivers series.
It is recommended to install the
    nvidia-driver
package.
if I try to use modprobe, here is the error I get:

Code: Select all

root@mbruelGT:/lib# /sbin/modprobe nvidia
sh: 1: modprobe: not found
modprobe: ERROR: ../libkmod/libkmod-module.c:990 command_do() Error running install command 'modprobe -i nvidia-current ' for module nvidia: retcode 127
modprobe: ERROR: could not insert 'nvidia': Invalid argument
What should I do?
I'm nearly hesitating to reinstall Debian and for for nvidia proprietary driver...
Thanks in advance for your help ;)

Re: debian 11, nvidia-driver issue

Posted: 2022-04-21 02:44
by Kryten
Do you have firmware-misc-nonfree installed? Thats needed for most cards.
Once thats installed then its just:

Code: Select all

sudu apt install nvidia-driver
Im on the gnome desktop which defaults to wayland with nouveau drivers which i havent been able to get to work in linux for years(GTX 950 card).Only options are propriety driver on x11(xorg) or software renderer(LLVMPIPE) which is useless.

I always have secure boot off - because my card boots to a black screen when connected to my 4k TV via hdmi , both in windows and linux when secure boot is on.I have never found out the reason.

Re: debian 11, nvidia-driver issue

Posted: 2022-04-22 06:17
by mikhairu
In my case I had to install Nvidia drivers from their website - https://www.nvidia.com/Download/index.aspx?lang=en-us. (I have RTX 3050 card)
Then I had to disable the nouveau driver.

This guide might be useful - https://linuxconfig.org/how-to-install- ... mine-linux

Also, perhaps regenerating initramfs could help.

Code: Select all

sudo update-initramfs -u

Re: debian 11, nvidia-driver issue

Posted: 2022-04-23 10:20
by Ardouos
Have you tried this?
https://wiki.debian.org/NVIDIA%20Optimu ... %2FOptimus

Unless you really know what you are doing, installing the drivers from Nvidia's website can cause more problems.

Re: debian 11, nvidia-driver issue

Posted: 2022-04-23 19:39
by pythagorasmk
sh: 1: modprobe: not found
This is very suspicious, maybe broken system.
I have installed nvidia driver from backports without any problem. Read https://wiki.debian.org/NvidiaGraphicsDrivers