debian 11, nvidia-driver issue

Ask for help with issues regarding the Installations of the Debian O/S.
Post Reply
Message
Author
tieum
Posts: 12
Joined: 2013-07-29 22:20

debian 11, nvidia-driver issue

#1 Post 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 ;)

Kryten
Posts: 36
Joined: 2015-11-05 01:32
Location: Scotland

Re: debian 11, nvidia-driver issue

#2 Post 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.

mikhairu
Posts: 17
Joined: 2021-09-28 06:51

Re: debian 11, nvidia-driver issue

#3 Post 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

User avatar
Ardouos
Posts: 1080
Joined: 2013-11-03 00:30
Location: Elicoor II
Has thanked: 1 time
Been thanked: 4 times

Re: debian 11, nvidia-driver issue

#4 Post 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.
There is only one Debian | Do not break Debian | Stability and Debian | Backports

⢀⣴⠾⠻⢶⣦⠀
⣾⠁⢠⠒⠀⣿⡁ Debian - The universal operating system
⢿⡄⠘⠷⠚⠋⠀ https://www.debian.org
⠈⠳⣄⠀

pythagorasmk
Posts: 148
Joined: 2015-01-18 03:40
Been thanked: 2 times

Re: debian 11, nvidia-driver issue

#5 Post 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

Post Reply