You are not logged in.

#1 2023-01-15 05:34:20

woof
Member
Registered: 2015-10-01
Posts: 43

nvidia driver install problem

Hi, I have a new install of beryllium about a week ago I'm really liking it. Today I tried to install the nvidia driver following the debian wiki instructions.

First I installed kernel headers, then driver installed but when I reboot I see a message something like "nvidia persistence daemon failed to load".
There was no nvidia settings application like I would expect. I reboot again and it hung on the shutdown for about a minute with a few messages about nvme which is probably my m.2 ssd,

Im not a linux tech savvy user so my idea of a solution would be re-download the ISO reinstall and hope for a different result but hoping someone here can steer me to an easier fix. big_smile thanks

~$ inxi -Fxzr
System:
  Kernel: 5.10.0-20-amd64 x86_64 bits: 64 compiler: gcc v: 10.2.1 
  Desktop: Openbox 3.6.1 Distro: BunsenLabs GNU/Linux 11 (Beryllium) 
  base: Debian GNU/Linux 11 
Machine:
  Type: Desktop System: Gigabyte product: Z390 I AORUS PRO WIFI v: N/A 
  serial: <filter> 
  Mobo: Gigabyte model: Z390 I AORUS PRO WIFI-CF v: x.x serial: <filter> 
  UEFI: American Megatrends v: F8c date: 12/18/2019 
CPU:
  Info: 8-Core model: Intel Core i7-9700KF bits: 64 type: MCP 
  arch: Kaby Lake note: check rev: C L2 cache: 12 MiB 
  flags: avx avx2 lm nx pae sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx 
  bogomips: 57600 
  Speed: 800 MHz min/max: 800/4900 MHz Core speeds (MHz): 1: 800 2: 800 
  3: 800 4: 800 5: 800 6: 800 7: 800 8: 800 
Graphics:
  Device-1: NVIDIA TU106 [GeForce RTX 2070] vendor: Gigabyte driver: nouveau 
  v: kernel bus ID: 01:00.0 
  Display: x11 server: X.Org 1.20.11 driver: loaded: modesetting,nouveau 
  unloaded: fbdev,vesa resolution: 2560x1440~60Hz 
  OpenGL: renderer: NV166 v: 4.3 Mesa 20.3.5 direct render: Yes 
Audio:
  Device-1: Intel Cannon Lake PCH cAVS vendor: Gigabyte 
  driver: snd_hda_intel v: kernel bus ID: 00:1f.3 
  Device-2: NVIDIA TU106 High Definition Audio vendor: Gigabyte 
  driver: snd_hda_intel v: kernel bus ID: 01:00.1 
  Sound Server: ALSA v: k5.10.0-20-amd64 
Network:
  Device-1: Intel Ethernet I219-V vendor: Gigabyte driver: e1000e v: kernel 
  port: efa0 bus ID: 00:1f.6 
  IF: eno1 state: up speed: 100 Mbps duplex: full mac: <filter> 
Drives:
  Local Storage: total: 1.58 TiB used: 5.53 GiB (0.3%) 
  ID-1: /dev/nvme0n1 vendor: A-Data model: LEGEND 800 size: 931.51 GiB 
  ID-2: /dev/sda vendor: Samsung model: SSD 860 EVO 500GB size: 465.76 GiB 
  ID-3: /dev/sdb vendor: Crucial model: CT240M500SSD1 size: 223.57 GiB 
Partition:
  ID-1: / size: 9.25 GiB used: 4.76 GiB (51.4%) fs: ext4 dev: /dev/nvme0n1p5 
  ID-2: /boot/efi size: 96 MiB used: 32.3 MiB (33.7%) fs: vfat 
  dev: /dev/nvme0n1p1 
  ID-3: /home size: 37.2 GiB used: 760.8 MiB (2.0%) fs: ext4 
  dev: /dev/nvme0n1p6 
Swap:
  ID-1: swap-1 type: partition size: 1.12 GiB used: 0 KiB (0.0%) 
  dev: /dev/nvme0n1p7 
Sensors:
  System Temperatures: cpu: 50.0 C mobo: 27.8 C gpu: nouveau temp: 35.0 C 
  Fan Speeds (RPM): N/A gpu: nouveau fan: 1105 
Repos:
  Packages: 1403 
  Active apt repos in: /etc/apt/sources.list 
  1: deb https://deb.debian.org/debian bullseye main non-free contrib
  2: deb https://deb.debian.org/debian-security bullseye-security main contrib non-free
  3: deb https://deb.debian.org/debian bullseye-updates main contrib non-free
  Active apt repos in: /etc/apt/sources.list.d/bunsen.list 
  1: deb https://pkg.bunsenlabs.org/debian beryllium main
Info:
  Processes: 187 Uptime: 18m Memory: 15.57 GiB used: 1.21 GiB (7.8%) 
  Init: systemd runlevel: 5 Compilers: gcc: 10.2.1 Shell: Bash v: 5.1.4 
  inxi: 3.3.01

Offline

#2 2023-01-16 17:39:01

NightOwl
Member
From: Netherlands
Registered: 2018-03-12
Posts: 23
Website

Re: nvidia driver install problem

These are a bit of a pain to get working (jsyk), it took me forever to get it to work on my stationary desktop running Proxmox 7

Did the installation configure the drivers using the nvidia-kernel-dkms package?

Also, do you have secure boot enabled or not?

And finally, I see you still have the nouveau drivers enabled, if everything went okay with the installation you should have seen a prompt asking you to disable these drivers as they conflict with the NVIDIA drivers, did this happen for you? 

That is my guess where things went wrong for you, but I don't know, just making a guess based on the information I can see in your post.

Also, I don't know about any nvidia-settings application, I've only used the CLI since Proxmox in and of itself is headless, you can run nvidia-smi to check the nvidia settings

https://packages.debian.org/bullseye/nvidia-smi

Last edited by NightOwl (2023-01-16 17:51:03)

Offline

#3 2023-01-16 19:48:41

woof
Member
Registered: 2015-10-01
Posts: 43

Re: nvidia driver install problem

Thank you for the reply. I know they can be a pain I'll get them working in the end, the trouble is the time between a complete reinstall of a new bunsenlabs release means typically I'll forget everything

I dont know what the nvidia-kernel-dkms package is, I did save this from installing the kernel headers if it means anything:

sudo apt install linux-headers-amd64
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following additional packages will be installed:
  binutils binutils-common binutils-x86-64-linux-gnu gcc-10 libasan6
  libatomic1 libbinutils libcc1-0 libctf-nobfd0 libctf0 libgcc-10-dev libitm1
  liblsan0 libtsan0 libubsan1 linux-compiler-gcc-10-x86
  linux-headers-5.10.0-20-amd64 linux-headers-5.10.0-20-common
  linux-kbuild-5.10
Suggested packages:
  binutils-doc gcc-10-multilib gcc-10-doc gcc-10-locales
The following NEW packages will be installed:
  binutils binutils-common binutils-x86-64-linux-gnu gcc-10 libasan6
  libatomic1 libbinutils libcc1-0 libctf-nobfd0 libctf0 libgcc-10-dev libitm1
  liblsan0 libtsan0 libubsan1 linux-compiler-gcc-10-x86
  linux-headers-5.10.0-20-amd64 linux-headers-5.10.0-20-common
  linux-headers-amd64 linux-kbuild-5.10
0 upgraded, 20 newly installed, 0 to remove and 0 not upgraded.
Need to get 41.3 MB of archives.
After this operation, 180 MB of additional disk space will be used.
Do you want to continue? [Y/n]

Then I entered this:

apt install nvidia-driver firmware-misc-nonfree

I dont have secure boot enabled.
During the driver installation the prompt telling me about the conflicting nouveau driver appeared and that I should reboot after installing.

The nvidia setting/ nvidia-server? shows up in the applications folder its the GUI for information and changing graphics settings.

I have decided to abandon this installation and reinstall BL at the earliest opportunity its a little buggy so I will download the ISO again. Hoping things will go better next time.

Offline

#4 2023-04-19 11:35:45

NightOwl
Member
From: Netherlands
Registered: 2018-03-12
Posts: 23
Website

Re: nvidia driver install problem

Hello again, I ended up having to re-installing the nvidia drivers on my desktop running Proxmox and got it working there, I thought maybe it will work for you as well since they are both base Debian 11 but I don't know.

First make sure the Pre-installation actions are done, installing the correct headers (which you mentioned you did) is the most important since we already know you have an Nvidia GPU with CUDA support.

Afterwards go to Nvidia cuda installer page and follow the steps there for a network install, the process is basically automatic after running all the commands there and the process starts, don't forget to say 'Yes' to uninstall a previous driver if detected when asked.

If you get command not found for the 'sudo add-apt-repository contrib' command you need to install the 'software-properties-common' package.

You need to reboot afterwards to complete the installation but you can check if the card is detected with 'nvidia-smi' command or 'nvidia-detect' before doing that if you want or after the reboot. If you check before a reboot it will say the card is status is 'Off' and will change to 'On' after the reboot. 

All the steps and relevant information with context is explained in nvidia cuda documentation for linux installation, i'll link it below.

Nvidia docs - cuda installer

I hope it helps!

Last edited by NightOwl (2023-04-19 11:39:30)

Offline

#5 2023-04-19 12:46:27

DeepDayze
Like sands through an hourglass...
From: In Linux Land
Registered: 2017-05-28
Posts: 1,901

Re: nvidia driver install problem

For clarification the nvidia-kernel-dkms package provides the auto module rebuild via DKMS for the nvidia driver whenever you update your kernel.


Real Men Use Linux

Offline

Board footer

Powered by FluxBB