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

 

 

 

[Testing - Bookworm] [SOLVED] [Testing - Bookworm] Nvidia drivers installation bricked system (twice)

- - ALL UNSTABLE / TESTING THREADS SHOULD BE POSTED HERE - -
This sub-forum is the dedicated area for the ongoing Unstable/Testing releases of Debian. Advanced, or Experienced User support only. Use the software, give, and take advice with caution.
Post Reply
Message
Author
richfi
Posts: 16
Joined: 2023-03-27 00:12

[Testing - Bookworm] [SOLVED] [Testing - Bookworm] Nvidia drivers installation bricked system (twice)

#1 Post by richfi »

Hi,

Newbie to the forum but not Debian. I figure this has to be a FAQ but didn't see it when looking around prior to creating this topic.

I have a new machine - Z590, i7-11700K, RTX 3050 - and just installed the latest Alpha2 bits of Bookworm (2nd attempt). I followed the Nvidia drivers instructions from here - https://wiki.debian.org/NvidiaGraphicsD ... -525.89.02. I rebooted into grub, and regardless of what Debian 12 option I select all I get is an empty screen with a cursor that doesn't blink. The machine is still alive - hitting caps lock turns on the LED and ctrl-alt-del restarts it - but there's no forward motion in booting.

I've freshly installed Debian 12 on this machine twice now and I'll be doing a fresh install a third time. I did try backing out via editing in grub but that didn't yield a bootable system either.

I've never managed to get Nvidia drivers working on any version of Debian I've tried. The Debian wiki gave me hope that it would actually work with the 525.89 drivers on Debian 12, but nope.

I did get an error from the installation script that systemctl failed on line 145 of a perl script (I saved the actual output but can't get to it right now because I bricked the system! Forgot to copy to a USB stick.)

Is there some magic incantation that I need to invoke to get Nvidia drivers working with Bookworm? That's not outlined in the Wiki article?

I've recently been bouncing between Debian, Fedora, and Kubuntu on several different systems. I am a Debian aficionado but I've been gravitating towards Fedora because the rpmfusion drivers work. I've also got K/Ubuntu working with Nvidia drivers, but only certain versions. I intend to stick with Debian 12 but I really want to get the Nvidia drivers working.

Any help gladly received!

Thanks.
Last edited by richfi on 2023-03-27 03:45, edited 1 time in total.

User avatar
kent_dorfman766
Posts: 535
Joined: 2022-12-16 06:34
Location: socialist states of america
Has thanked: 57 times
Been thanked: 70 times

Re: [Testing - Bookworm] Nvidia drivers installation bricked system (twice)

#2 Post by kent_dorfman766 »

unfortunately all the info online I can find deals with blacklisting the nouveau driver, but in this case I think you would want to blacklist the nvidia driver and enter single user model from grub. the pseudo params would be something like

blacklist=nvidia 1

on the kernel command line, and maybe noinitrd for good measure, but ramdisk is so very over used these days that I have no clue if you can still boot a system without one.

found an old reference online that says

module_to_blacklist.blacklist=yes

should work, so may at least get you a text boot and avoid the brick.

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: [Testing - Bookworm] Nvidia drivers installation bricked system (twice)

#3 Post by sunrat »

The Debian nvidia-driver should create /etc/nvidia/nvidia-blacklists-nouveau.conf as part of the install routine, so that's unlikely the issue.

Did you follow that wiki how-to exactly? Those repo sections can be set up during install of the Debian system. You need all of contrib, non-free and non-free-firmware active in sources. You need the firmware-misc-nonfree package. For that CPU you also need the intel-microcode package.

I just installed Bookworm from the netinstall Apha2 image yesterday. There were a couple of glitches, particularly a nasty crash with nouveau, but subsequently the nvidia-driver install went smoothly and system is working well now. It didn't seem to like Wayland either so I switched to X11 at the login screen, lower left corner - try that.

GPU is GTX970, CPU i5 6500, and desktop is KDE Plasma added after installation with the minimal kde-plasma-desktop package. Everything except system utilities was deselected at the tasksel part of the install, logged in to initial console screen and installed KDE, firmware-misc-nonfree, and intel-microcode packages from there.
“ computer users can be divided into 2 categories:
Those who have lost data
...and those who have not lost data YET ”
Remember to BACKUP!

richfi
Posts: 16
Joined: 2023-03-27 00:12

Re: [Testing - Bookworm] Nvidia drivers installation bricked system (twice)

#4 Post by richfi »

Thanks!

I found out what the problem was: Secure Boot. It's a new system and I updated the BIOS a couple of times. The last one silently enabled Secure Boot. I disabled it and I can boot into the system now and the Nvidia drivers are loaded! Hallelujah. I'm writing this response from the machine in question. It'd be nice if there was an indication that boot failed because of an unsigned driver.

Sorry for the false alarm.

However, a couple of other issues arose: trying to login using default GNOME/Wayland via SDDM just returns me to the login screen ad infinitum. I can log into the system using KDE Plasma/X11. Plasma is my preference so that's OK. However, I would like to know why I can't log in with GNOME.

Once in the system is telling me that it can't find any audio input/output devices.

Anyway, those are separate issues I'll try to track down. Now how do I resolve my original post?

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: [Testing - Bookworm] Nvidia drivers installation bricked system (twice)

#5 Post by sunrat »

richfi wrote: 2023-03-27 03:26I found out what the problem was: Secure Boot.
Ah, that old chestnut. Disabling Secure Boot is the first thing I ever do on a new system. Glad you sorted it.
However, a couple of other issues arose: trying to login using default GNOME/Wayland via SDDM just returns me to the login screen ad infinitum. I can log into the system using KDE Plasma/X11. Plasma is my preference so that's OK. However, I would like to know why I can't log in with GNOME.
IIRC, there's another topic with that same issue somewhere in the forums. I don't have time to search atm. I also never us Gnome so no idea. Maybe they replaced SDDM with GDM?
Once in the system is telling me that it can't find any audio input/output devices.
Also a number of topics about audio issues in Bookworm or with 6.xx kernel.
Anyway, those are separate issues I'll try to track down. Now how do I resolve my original post?
Edit your first post and add prefix [Solved]. :wink:
“ computer users can be divided into 2 categories:
Those who have lost data
...and those who have not lost data YET ”
Remember to BACKUP!

richfi
Posts: 16
Joined: 2023-03-27 00:12

Re: [Testing - Bookworm] Nvidia drivers installation bricked system (twice)

#6 Post by richfi »

Hi @sunrat,

It was Secure Boot enabled in the BIOS that was the issue. It'd be helpful if the system gave an indication that unsigned drivers were an issue during boot.

I did indeed follow the instructions to the letter, and had updated /etc/apt/sources.list appropriately with contrib and non-free.

I'm experiencing the same or similar-sounding issue with Wayland since I installed the Nvidia drivers. With Nouveau after the initial install, I logged in using GNOME and I guess Wayland by default - didn't look at the time, just wanted to install the drivers. But now everything's installed and booting again, I just get dumped back at the SDDM login prompt when I try GNOME/Wayland. Plasma/X11 is working fine now. Maybe I should have selected GDM if I want to log in using GNOME? I'm guessing there are other Nvidia issues?

I always select GNOME, KDE, and Xfce DEs to install when installing any version of Debian (I used to install them all but only use those 3; my main DE on all Debian, and actually all Linux, distros is KDE)

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: [Testing - Bookworm] Nvidia drivers installation bricked system (twice)

#7 Post by sunrat »

richfi wrote: 2023-03-27 03:42I did indeed follow the instructions to the letter, and had updated /etc/apt/sources.list appropriately with contrib and non-free.
You also need non-free-firmware in Bookworm and later. The intel-microcode and firmware-misc-nonfree packages are from there.
“ computer users can be divided into 2 categories:
Those who have lost data
...and those who have not lost data YET ”
Remember to BACKUP!

richfi
Posts: 16
Joined: 2023-03-27 00:12

Re: [Testing - Bookworm] [SOLVED] [Testing - Bookworm] Nvidia drivers installation bricked system (twice)

#8 Post by richfi »

Edit your first post and add prefix [Solved]. :wink:
Done, thanks!
Disabling Secure Boot is the first thing I ever do on a new system.
Same here; the latest BIOS sneakily re-enabled it. I wasn't expecting it so didn't check, but then had a minor brainwave... I will figure out driver signing one of these days!
IIRC, there's another topic with that same issue somewhere in the forums.
Also a number of topics about audio issues in Bookworm or with 6.xx kernel.
Thanks again. I saw the latter when I was searching for my issue originally (no surprise now why I didn't find it!). I think Nvidia is implicated here because I installed Bookworm twice and before I tried installing Nvidia drivers I could play YouTube videos with sound. I'm using the same bits on a USB key although I suppose some bits downloaded from the Debian repo might have changed.

richfi
Posts: 16
Joined: 2023-03-27 00:12

Re: [Testing - Bookworm] [SOLVED] [Testing - Bookworm] Nvidia drivers installation bricked system (twice)

#9 Post by richfi »

You also need non-free-firmware in Bookworm and later. The intel-microcode and firmware-misc-nonfree packages are from there.
Right. It's there by default now (on recent builds). So you just have to add back contrib and non-free

richfi
Posts: 16
Joined: 2023-03-27 00:12

Re: [Testing - Bookworm] [SOLVED] [Testing - Bookworm] Nvidia drivers installation bricked system (twice)

#10 Post by richfi »

Well, that was weird: I checked journalctl for mentions of audio or realtek - the motherboard uses a Realtek ALC 4080 codec. There's quite a bit about bluez5 and LE and USB audio but none of that applies to my hardware (AFAIK). I decided to see if any output would go to the headphone jack. I plugged in headphones, started a sound track, and audio came out of the speakers! I removed the headphone jack and it seems that audio has been re-enabled on the system, but only via speakers. The control panel recognizes that headphones have been plugged in and it thinks audio is routed to them but only the speakers are playing. The machine dual-boots Windows 11 so I know the hardware is operating correctly.

richfi
Posts: 16
Joined: 2023-03-27 00:12

Re: [Testing - Bookworm] [SOLVED] [Testing - Bookworm] Nvidia drivers installation bricked system (twice)

#11 Post by richfi »

I think Nvidia is indeed potentially implicated: looks like the system thinks there's HiDef Audio via the graphics card. Output from dmesg:
$ sudo dmesg | grep -i sound
[    1.835028] input: HDA NVidia HDMI/DP,pcm=3 as /devices/pci0000:00/0000:00:01.0/0000:01:00.1/sound/card1/input5
[    1.835059] input: HDA NVidia HDMI/DP,pcm=7 as /devices/pci0000:00/0000:00:01.0/0000:01:00.1/sound/card1/input6
[    1.835088] input: HDA NVidia HDMI/DP,pcm=8 as /devices/pci0000:00/0000:00:01.0/0000:01:00.1/sound/card1/input7
[    1.835105] input: HDA NVidia HDMI/DP,pcm=9 as /devices/pci0000:00/0000:00:01.0/0000:01:00.1/sound/card1/input8
[    4.864942] input: HDA Intel PCH HDMI/DP,pcm=3 as /devices/pci0000:00/0000:00:1f.3/sound/card0/input9
[    4.865008] input: HDA Intel PCH HDMI/DP,pcm=7 as /devices/pci0000:00/0000:00:1f.3/sound/card0/input10
[    4.865084] input: HDA Intel PCH HDMI/DP,pcm=8 as /devices/pci0000:00/0000:00:1f.3/sound/card0/input11
[    4.865149] input: HDA Intel PCH HDMI/DP,pcm=9 as /devices/pci0000:00/0000:00:1f.3/sound/card0/input12

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: [Testing - Bookworm] [SOLVED] [Testing - Bookworm] Nvidia drivers installation bricked system (twice)

#12 Post by sunrat »

Nvidia HDMI sound used to set itself as default on my system and I'd always have to do a custom conf file in /etc/modprobe.d/ to make my M-Audio 2496 card the default. Didn't happen in Bookworm. I did have to install alsa-utils and use alsamixer to turn the volumes up, and also press F6 to choose the default card. Seems to have stuck.
Your post above shows Nvidia HDMI as card0 which is default. Try alsamixer, if that doesn't work we'll sort out a conf file.

Also please put terminal text output in code tags rather than preformatted text tags.
“ 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