Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
No video output w/ nvidia-drivers 570
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
jimbotronic
n00b
n00b


Joined: 26 Dec 2008
Posts: 3

PostPosted: Mon Mar 17, 2025 1:20 am    Post subject: No video output w/ nvidia-drivers 570 Reply with quote

Summary: No video output w/ nvidia-drivers-570.124.04 and kernel 6.12.16.

Details: I have an Nvidia GeForce RTX 3060, which I've been successfully using w/ kernel 6.12.16 and x11-drivers/nvidia-drivers-550.144.03. Normally I boot to console, then manually start a Wayland DE, e.g. KDE (dbus-run-session startplasma-wayland).

Today I upgraded to nvidia-drivers-570.124.04, then rebooted. I saw the normal first few messages in the console, but w/in a couple of seconds, the screen went black. Using the keyboard, could log in and start a Wayland DE, but still no video output. I SSH'd in, rebooted, and selected an older kernel in GRUB, 6.6.74. This kernel was still able to use the modules from the older nvidia-drivers-550.144.03, so I got normal console output and was able to start a DE. Of course, reverting to the older nvidia-drivers (550) fixes it.

I thought the changes to /etc/modprobe.d/nvidia.conf might have been the problem w/ 570:

Code:

# Kernel Mode Setting (notably needed for fbdev and wayland).
# Enabling may possibly cause issues with SLI and Reverse PRIME.
options nvidia-drm modeset=1

# If modeset=1 ^, NVIDIA will handle the console/tty display and
# allow overriding DRM devices such as simpledrm. This is a default
# since 570.x drivers but has been known to cause a variety of
# problems. Given efifb is more typically used on Gentoo at the moment,
# it is not *required* here and is safer to be disabled for now.
# Comment out the line if you need it. https://bugs.gentoo.org/949097
options nvidia-drm fbdev=0


The 1st option is correct; I pass that option to the kernel using /etc/default/grub:

Code:

GRUB_CMDLINE_LINUX="nvidia-drm.modeset=1"


I thought maybe the 2nd option was causing the issue, so I set fbdev=1 and rebooted, but that didn't change anything, still no video output.

dmesg output doesn't look super interesting:

Code:

[   12.477479] nvidia: loading out-of-tree module taints kernel.
[   12.477499] nvidia: module license 'NVIDIA' taints kernel.
[   12.477510] nvidia: module license taints kernel.
[   12.524025] nvidia-nvlink: Nvlink Core is being initialized, major device number 241
[   12.529034] nvidia 0000:03:00.0: vgaarb: VGA decodes changed: olddecodes=io+mem,decodes=none:owns=io+mem
[   12.580690] NVRM: loading NVIDIA UNIX x86_64 Kernel Module  570.124.04  Tue Feb 25 04:12:12 UTC 2025
[   12.596043] nvidia-modeset: Loading NVIDIA Kernel Mode Setting Driver for UNIX platforms  570.124.04  Tue Feb 25 03:39:21 UTC 2025
[   12.602373] [drm] [nvidia-drm] [GPU ID 0x00000300] Loading driver
[   12.602878] Loading firmware: nvidia/570.124.04/gsp_ga10x.bin
[   14.553437] [drm] Initialized nvidia-drm 0.0.0 for 0000:03:00.0 on minor 0
[   14.553801] nvidia 0000:03:00.0: vgaarb: deactivate vga console
[   14.640108] fbcon: nvidia-drmdrmfb (fb0) is primary device
[   14.735302] nvidia 0000:03:00.0: [drm] fb0: nvidia-drmdrmfb frame buffer device


The only difference between dmesg output for different nvidia-drivers versions is that version 570 has the line "Loading firmware: nvidia/570.124.04/gsp_ga10x.bin". Can get rid of that by uncommenting the "options nvidia NVreg_EnableGpuFirmware=0" line in /etc/modprobe.conf/nvidia.conf. I tried doing that, but still no video output.

I have the usual kernel options set. Here are some -- not sure which other ones might also be interesting:

Code:

CONFIG_SYSFB=y
CONFIG_SYSFB_SIMPLEFB=y
CONFIG_DRM_FBDEV_EMULATION=y
CONFIG_FB=y
CONFIG_FB_EFI=y
CONFIG_FB_SIMPLE=y
CONFIG_DRM=y
CONFIG_DRM_FBDEV_EMULATION=y


Anyone have any ideas?

Output of emerge --info:

Code:
Portage 3.0.67 (python 3.13.2-final-0, default/linux/amd64/23.0/split-usr/desktop/plasma, gcc-14, glibc-2.40-r8, 6.12.16-gentoo x86_64)
=================================================================
System uname: Linux-6.12.16-gentoo-x86_64-Intel-R-_Core-TM-_i7-5820K_CPU_@_3.30GHz-with-glibc2.40
KiB Mem:    32805020 total,  27994956 free
KiB Swap:          0 total,         0 free
Timestamp of repository gentoo: Sun, 16 Mar 2025 15:00:00 +0000
Head commit of repository gentoo: e8c99fd76fa331ce32fa0d2aaba1dd153554320c
sh bash 5.2_p37
ld GNU ld (Gentoo 2.43 p3) 2.43.1
app-misc/pax-utils:        1.3.8::gentoo
app-shells/bash:           5.2_p37::gentoo
dev-build/autoconf:        2.72-r1::gentoo
dev-build/automake:        1.16.5-r2::gentoo
dev-build/cmake:           3.31.5::gentoo
dev-build/libtool:         2.5.4::gentoo
dev-build/make:            4.4.1-r100::gentoo
dev-build/meson:           1.6.1::gentoo
dev-java/java-config:      2.3.4::gentoo
dev-lang/perl:             5.40.0-r1::gentoo
dev-lang/python:           3.11.11_p1::gentoo, 3.12.9::gentoo, 3.13.2::gentoo
dev-lang/rust-bin:         1.81.0-r101::gentoo, 1.82.0-r101::gentoo, 1.83.0-r2::gentoo, 1.84.1-r2::gentoo
llvm-core/clang:           19.1.7::gentoo
llvm-core/llvm:            18.1.8-r6::gentoo, 19.1.7::gentoo
sys-apps/baselayout:       2.17::gentoo
sys-apps/openrc:           0.55.1::gentoo
sys-apps/sandbox:          2.39::gentoo
sys-devel/binutils:        2.43-r2::gentoo
sys-devel/binutils-config: 5.5.2::gentoo
sys-devel/gcc:             13.3.1_p20241220::gentoo, 14.2.1_p20241221::gentoo
sys-devel/gcc-config:      2.12.1::gentoo
sys-kernel/linux-headers:  6.6-r1::gentoo (virtual/os-headers)
sys-libs/glibc:            2.40-r8::gentoo
Repositories:

gentoo
    location: /var/db/repos/gentoo
    sync-type: rsync
    sync-uri: rsync://rsync.gentoo.org/gentoo-portage
    priority: -1000
    volatile: False
    sync-rsync-extra-opts:
    sync-rsync-verify-jobs: 1
    sync-rsync-verify-metamanifest: yes
    sync-rsync-verify-max-age: 24

custom_repository
    location: /var/db/repos/custom_repository
    masters: gentoo
    volatile: False

ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="@FREE MakeMKV-EULA all-rights-reserved"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=native -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/signon-ui/ /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-march=native -O2 -pipe"
DISTDIR="/var/cache/distfiles"
ENV_UNSET="CARGO_HOME DBUS_SESSION_BUS_ADDRESS DISPLAY GDK_PIXBUF_MODULE_FILE GOBIN GOPATH PERL5LIB PERL5OPT PERLPREFIX PERL_CORE PERL_MB_OPT PERL_MM_OPT XAUTHORITY XDG_CACHE_HOME XDG_CONFIG_HOME XDG_DATA_HOME XDG_RUNTIME_DIR XDG_STATE_HOME"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs buildpkg-live config-protect-if-modified distlocks ebuild-locks fixlafiles ipc-sandbox merge-sync merge-wait multilib-strict network-sandbox news parallel-fetch pid-sandbox pkgdir-index-trusted preserve-libs protect-owned qa-unresolved-soname-deps sandbox splitdebug strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="https://mirrors.mit.edu/gentoo-distfiles/ http://distfiles.gentoo.org"
LANG="en_US.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed -Wl,-z,pack-relative-relocs"
LEX="flex"
LINGUAS="en"
MAKEOPTS="-j12"
PKGDIR="/var/cache/binpkgs"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --exclude=/.git"
PORTAGE_TMPDIR="/var/tmp"
SHELL="/bin/bash"
USE="X a52 aac acl acpi activities alsa amd64 branding bzip2 cairo cdda cdr cet crypt css cups dbus declarative dri dts dvd dvdr dvdread elogind encode exif ffmpeg flac gdbm gif gpm gui iconv icu ipv6 jpeg kde kf6compat kwallet lcms libnotify libtirpc lm_sensors mad mng mp3 mp4 mpeg multilib ncurses nls nptl nptlonly nvidia ogg opengl openmp pam pango pcre pdf pipewire plasma png policykit ppds pulseaudio qml qt5 qt6 readline scanner screencast sdl seccomp semantic-desktop sound spell split-usr sql ssl startup-notification svg test-rust threads truetype udev udisks unicode usb vdpau vim-syntax vorbis vulkan wayland widgets wxwidgets x264 xattr xcb xft xml xv xvid zlib" ABI_X86="64" ADA_TARGET="gcc_14" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_anon authn_dbm authn_file authz_dbm authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir env expires ext_filter file_cache filter headers include info log_config logio mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="karbon sheets words" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="abm aes avx avx2 bmi bmi2 cx16 f16c fma fma3 fsgsbase fxsr lzcnt mmx mmxext movbe pclmul popcnt rdrnd sahf sse sse2 sse3 sse4_1 sse4_2 ssse3 xsave xsaveopt" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock greis isync itrax navcom oceanserver oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 tsip tripmate tnt ublox" GRUB_PLATFORMS="efi-64" GUILE_SINGLE_TARGET="3-0" GUILE_TARGETS="3-0" INPUT_DEVICES="evdev" KERNEL="linux" L10N="en" LCD_DEVICES="bayrad cfontz glk hd44780 lb216 lcdm001 mtxorb text" LLVM_TARGETS="BPF NVPTX" LUA_SINGLE_TARGET="lua5-1" LUA_TARGETS="lua5-1" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php8-2" POSTGRES_TARGETS="postgres16" PYTHON_SINGLE_TARGET="python3_13" PYTHON_TARGETS="python3_12 python3_13" RUBY_TARGETS="ruby32" SANE_BACKENDS="genesys" VIDEO_CARDS="nvidia nouveau" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipp2p iface geoip fuzzy condition tarpit sysrq proto logmark ipmark dhcpmac delude chaos account"
Unset:  ADDR2LINE, AR, ARFLAGS, AS, ASFLAGS, CC, CCLD, CONFIG_SHELL, CPP, CPPFLAGS, CTARGET, CXX, CXXFILT, ELFEDIT, EMERGE_DEFAULT_OPTS, EXTRA_ECONF, F77FLAGS, FC, GCOV, GPROF, INSTALL_MASK, LC_ALL, LD, LFLAGS, LIBTOOL, MAKE, MAKEFLAGS, NM, OBJCOPY, OBJDUMP, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PYTHONPATH, RANLIB, READELF, RUSTFLAGS, SIZE, STRINGS, STRIP, YACC, YFLAGS
Back to top
View user's profile Send private message
Progman3K
l33t
l33t


Joined: 03 Jan 2004
Posts: 793

PostPosted: Sat Mar 29, 2025 7:26 pm    Post subject: Me too, added GPU functionality seems to cause it? Reply with quote

Hi jimbotronic!

Same problem as you; if I accept the suggested world update from

x11-drivers/nvidia-drivers-565.57.01-r2
to
x11-drivers/nvidia-drivers-570.124.04

Upon rebooting, I get a black screen when graphical mode starts.

I've also tried un-commenting the line
options nvidia NVreg_EnableGpuFirmware=0
in
/etc/modprobe.d/nvidia.conf
and like you, that didn't help.

More precise system info:
Quote:

Linux 6.12.16-gentoo #1 SMP PREEMPT_DYNAMIC x86_64 12th Gen Intel(R) Core(TM) i7-12700F GenuineIntel GNU/Linux

01:00.0 VGA compatible controller: NVIDIA Corporation GA106 [Geforce RTX 3050] (rev a1) (prog-if 00 [VGA controller])
Subsystem: ASUSTeK Computer Inc. Device 8872
Flags: bus master, fast devsel, latency 0, IRQ 171
Memory at 82000000 (32-bit, non-prefetchable) [size=16M]
Memory at 4000000000 (64-bit, prefetchable) [size=8G]
Memory at 4200000000 (64-bit, prefetchable) [size=32M]
I/O ports at 6000 [size=128]
Expansion ROM at 83000000 [virtual] [disabled] [size=512K]
Capabilities: [60] Power Management version 3
Capabilities: [68] MSI: Enable+ Count=1/1 Maskable- 64bit+
Capabilities: [78] Express Legacy Endpoint, IntMsgNum 0
Capabilities: [b4] Vendor Specific Information: Len=14 <?>
Capabilities: [100] Virtual Channel
Capabilities: [250] Latency Tolerance Reporting
Capabilities: [258] L1 PM Substates
Capabilities: [128] Power Budgeting <?>
Capabilities: [420] Advanced Error Reporting
Capabilities: [600] Vendor Specific Information: ID=0001 Rev=1 Len=024 <?>
Capabilities: [900] Secondary PCI Express
Capabilities: [bb0] Physical Resizable BAR
Capabilities: [c1c] Physical Layer 16.0 GT/s <?>
Capabilities: [d00] Lane Margining at the Receiver
Capabilities: [e00] Data Link Feature <?>
Kernel driver in use: nvidia
Kernel modules: nouveau, nvidia_drm, nvidia


I've looked in the bug database and can't find any item that would match.
Back to top
View user's profile Send private message
Kaitain
n00b
n00b


Joined: 31 Jan 2004
Posts: 57

PostPosted: Sat Mar 29, 2025 7:59 pm    Post subject: Re: No video output w/ nvidia-drivers 570 Reply with quote

jimbotronic wrote:

Code:

CONFIG_SYSFB=y
CONFIG_SYSFB_SIMPLEFB=y
CONFIG_DRM_FBDEV_EMULATION=y
CONFIG_FB=y
CONFIG_FB_EFI=y
CONFIG_FB_SIMPLE=y
CONFIG_DRM=y
CONFIG_DRM_FBDEV_EMULATION=y

I have x11-drivers/nvidia-drivers-570.124.04 working, with firmware loading using the unmodified distkernel sys-kernel/gentoo-kernel-6.12.16.

For comparison, the above in the distkernel are:
Code:

CONFIG_SYSFB=y
# CONFIG_SYSFB_SIMPLEFB is not set
CONFIG_DRM_FBDEV_EMULATION=y
CONFIG_FB=y
CONFIG_FB_EFI=y
# CONFIG_FB_SIMPLE is not set
CONFIG_DRM=y
CONFIG_DRM_FBDEV_EMULATION=y

_________________
然后呢?
Back to top
View user's profile Send private message
Progman3K
l33t
l33t


Joined: 03 Jan 2004
Posts: 793

PostPosted: Sat Mar 29, 2025 8:39 pm    Post subject: Reply with quote

Hi Kaitain,

My config values are the same as yours (for the keys you listed)

Quote:
CONFIG_SYSFB=y
# CONFIG_SYSFB_SIMPLEFB is not set
CONFIG_DRM_FBDEV_EMULATION=y
CONFIG_FB=y
CONFIG_FB_EFI=y
# CONFIG_FB_SIMPLE is not set
CONFIG_DRM=y
CONFIG_DRM_FBDEV_EMULATION=y


So it might be some other key that makes a difference?
Back to top
View user's profile Send private message
Kaitain
n00b
n00b


Joined: 31 Jan 2004
Posts: 57

PostPosted: Sat Mar 29, 2025 8:52 pm    Post subject: Reply with quote

Could be - here's the whole thing: https://pastebin.com/3iaiVRzu

Version is:
Linux version 6.12.16-gentoo-dist (portage@localhost) (x86_64-pc-linux-gnu-gcc (Gentoo 14.2.1_p20241221 p7) 14.2.1 20241221, GNU ld (Gentoo 2.44 p1) 2.44.0) #1 SMP PREEMPT_DYNAMIC Sun Mar 23 13:05:38 -00 2025

Device is:
Code:
01:00.0 VGA compatible controller: NVIDIA Corporation GA106M [GeForce RTX 3060 Mobile / Max-Q] (rev a1) (prog-if 00 [VGA controller])
        Subsystem: Lenovo Device 3a81
        Flags: bus master, fast devsel, latency 0, IRQ 93, IOMMU group 12
        Memory at d0000000 (32-bit, non-prefetchable) [size=16M]
        Memory at fa00000000 (64-bit, prefetchable) [size=8G]
        Memory at fc00000000 (64-bit, prefetchable) [size=32M]
        I/O ports at 3000 [size=128]
        Expansion ROM at d1080000 [virtual] [disabled] [size=512K]
        Capabilities: [60] Power Management version 3
        Capabilities: [68] MSI: Enable+ Count=1/1 Maskable- 64bit+
        Capabilities: [78] Express Legacy Endpoint, IntMsgNum 0
        Capabilities: [b4] Vendor Specific Information: Len=14 <?>
        Capabilities: [100] Virtual Channel
        Capabilities: [258] L1 PM Substates
        Capabilities: [128] Power Budgeting <?>
        Capabilities: [420] Advanced Error Reporting
        Capabilities: [600] Vendor Specific Information: ID=0001 Rev=1 Len=024 <?>
        Capabilities: [900] Secondary PCI Express
        Capabilities: [bb0] Physical Resizable BAR
        Capabilities: [c1c] Physical Layer 16.0 GT/s <?>
        Capabilities: [d00] Lane Margining at the Receiver
        Capabilities: [e00] Data Link Feature <?>
        Kernel driver in use: nvidia
        Kernel modules: nouveau, nvidia_drm, nvidia


Command line is:
Code:
BOOT_IMAGE=/boot/vmlinuz-6.12.16-gentoo-dist root=UUID=<numbers> ro nvidia_drm.modeset=1 nvidia_drm.fbdev=1

_________________
然后呢?
Back to top
View user's profile Send private message
Progman3K
l33t
l33t


Joined: 03 Jan 2004
Posts: 793

PostPosted: Sat Mar 29, 2025 9:48 pm    Post subject: Reply with quote

Kaitain,

Thank you for your efforts, but even adding the kernel boot options doesn't help:

Taken from dmesg:
Quote:
[ 0.000000] Linux version 6.12.16-gentoo (root@machine) (gcc (Gentoo 14.2.1_p20241221 p7) 14.2.1 20241221, GNU ld (Gentoo 2.44 p1) 2.44.0) #3 SMP PREEMPT_DYNAMIC Sat Mar 29 17:24:40 EDT 2025
[ 0.000000] Command line: BOOT_IMAGE=/boot/kernel-6.12.16-gentoo root=PARTUUID=<numbers> ro nvidia_drm.modeset=1 nvidia_drm.fbdev=1


I'll try comparing your kernel config to mine. Although we are using the same kernel version, I have manually configured mine, so there might be some differences there...
Back to top
View user's profile Send private message
Kaitain
n00b
n00b


Joined: 31 Jan 2004
Posts: 57

PostPosted: Sat Mar 29, 2025 10:07 pm    Post subject: Reply with quote

Do you have any better success with USE=“kernel-open” emerge nvidia-drivers ? Both worked for me, but the open driver seems to sit better with my laptop (slightly smoother desktop animation, and made screen recording artefacts a little less severe)
_________________
然后呢?
Back to top
View user's profile Send private message
Progman3K
l33t
l33t


Joined: 03 Jan 2004
Posts: 793

PostPosted: Sun Mar 30, 2025 12:58 pm    Post subject: Reply with quote

I've now tried enabling the kernel-open USE flag with the latest version of the nvidia driver, and it doesn't improve things, even with the NVreg_EnableGpuFirmware=0 set.
Back to top
View user's profile Send private message
Kaitain
n00b
n00b


Joined: 31 Jan 2004
Posts: 57

PostPosted: Sun Mar 30, 2025 2:35 pm    Post subject: Reply with quote

I suppose it's back to first principles, then - is there anything in the wiki that you've deviated from over the years: https://wiki.gentoo.org/wiki/NVIDIA/nvidia-drivers
If you're using an initramfs - any chance the old modules could have been pulled into it?
Maybe try emerging the dist-kernel and trying with that, then chop out the bits you don't want once it's working?
_________________
然后呢?
Back to top
View user's profile Send private message
Progman3K
l33t
l33t


Joined: 03 Jan 2004
Posts: 793

PostPosted: Sun Mar 30, 2025 5:57 pm    Post subject: Reply with quote

You're right about the principles of investigating, Kaitain.

Only I wonder if it isn't just better to try out the nouveau driver instead.

I have a machine running Gentoo with an nvidia GK107 [GeForce GT 740], which has long ago stopped being supported by nvidia, so I had to move it to nouveau. It has a different problem of having a bright green screen when it switches to graphics mode, which appeared sometime after kernel 6.6.74, but if I find that nouveau supports the GA106 [Geforce RTX 3050] properly, I'll just switch to that and be done with the hassle.

Ultimately, I just want a machine that works, and don't have a ton of time to figure out all these weird issues.
Back to top
View user's profile Send private message
jesnow
l33t
l33t


Joined: 26 Apr 2006
Posts: 899

PostPosted: Sat Apr 05, 2025 9:56 pm    Post subject: Reply with quote

I'm having the same issue. It's a 1030 card. But to recap:

WAS running 6.6.74 kernel with nvidia-drivers-570.133.

BUT needed to change the kernel config for <reasons>
So, configured 6.12.21 for the <reasons> and rebooted.

Mistake #1: never change two things at once.

Reboot into 6.12.21 console, all good (I use startx). Recompile nvidia-drivers - no bueno.
Now I'm stuck at the text console with no cut and paste trying to find what went wrong.
In fact what is missing is now CONFIG_DRM_TTM_HELPER this is where it gets interesting.

CONFIG_DRM_TTM_HELPER can't be enabled directly, it can *only* be enabled indirectly by selecting a kernel drm driver.
So I picked one: nouveau.

Mistake #2: Never use nouveau.

So I recompiled the kernel with nouveau and rebooted, recompiled nvidia-drivers, that worked and started X.
Black screen. Completely unresponsive. So. I have to find my laptop, but of course its battery is flat, find the charger <etc>
ssh in and reboot. Back to 6.6.74. where I can start X and do some research. Hey I could try ChatGPT,

Mistake #3: Don't blindly trust ChatGPT.

ChatGPT told me to turn on CONFIG_DRM_TTM_HELPER, which of course you can't without a kernel driver. But did helpfully give me a number of other config options to make sure I had turned on.:

Code:

CONFIG_DRM=y
CONFIG_DRM_KMS_HELPER=y
CONFIG_DRM_FBDEV_EMULATION=y
CONFIG_DRM_TTM=y
CONFIG_DRM_TTM_HELPER=y  # (this is auto-selected by DRM_TTM)
CONFIG_FB=y
CONFIG_FB_EFI=y          # optional, useful for EFI systems
CONFIG_FRAMEBUFFER_CONSOLE=y
CONFIG_MTRR=y            # recommended on x86 for NVIDIA


And confirmed my mistake above, don't ever mix nouveau and nvidia-drivers in any way. So ChatGPT suggested I turn on Bochs, which is also useful for QEMM:

Code:

CONFIG_DRM_BOCHS=m       # this pulls in DRM_TTM_HELPER safely


just tomake sure, blacklist both it and nouveau thusly:

Code:

# /etc/modprobe.d/blacklist-drivers.conf
blacklist nouveau
blacklist bochs_drm


(optional, I haven't done this yet) and make sure that the other kernel gpu drivers are not installed:

Code:

# CONFIG_DRM_NOUVEAU is not set
# CONFIG_DRM_RADEON is not set
# CONFIG_DRM_AMDGPU is not set
# CONFIG_DRM_I915 is not set


On recompilation I now got:

Code:

depmod: WARNING: /lib/modules/6.12.21-gentoo/video/nvidia-drm.ko needs unknown symbol drm_client_setup


This is correct: I'm recompiling kernel 6.12.21 using kernel 6.6.74, and that symbol doesn't exist in the running kernel when modules_install tries to DEPMOD the new modules. It's a good sign.

It wants me to reboot before compiling nvidia-drivers, but I've had my fill of compiling kernels from the console (with no google or AI available) for today. The target system and the running system don't have to match.

Recompile nvidia-drivers, reboot, everything works.

Now I can go back to what I was doing two hours ago. Lesson learned. This was going to be a dogs breakfast regardless. the combination of the 570 and 6.12 upgrade paths probably out a lot of nvidia owners into a kernel compile and crash loop with no obvious exit point. I wish I had had some kind of warning.

At least I'm out of it. Hooray! I hope this helps you guys.

Cheers,
Jon.
Back to top
View user's profile Send private message
Progman3K
l33t
l33t


Joined: 03 Jan 2004
Posts: 793

PostPosted: Sun Apr 06, 2025 1:08 pm    Post subject: Reply with quote

Hi jesnow,

Very interesting read. Thank you.

Two things:

Quote:
On recompilation I now got:

Code:

depmod: WARNING: /lib/modules/6.12.21-gentoo/video/nvidia-drm.ko needs unknown symbol drm_client_setup


Not sure about this, but I've had similar problems in the past and the solution was to do a make clean and then make

Sometimes when changing things back and forth, it can result in some objects getting linked that should not be there.

Also, were you eventually successful or not? Your post begins by saying you are having the same issue, but at the end it could be read that you solved the problem? Did you?

Thanks
Back to top
View user's profile Send private message
tki
n00b
n00b


Joined: 07 Apr 2025
Posts: 1

PostPosted: Mon Apr 07, 2025 8:12 pm    Post subject: Reply with quote

I had similar problems.

My solution: I installed gentoo-kernel-bin and after booting and confirming that this is indeed kernel config problem I made sure both .config files match in the "Device Drivers/Graphics Support" section.

Hope this helps.

My modeset and fbdev options are both set to 1 in modprobe and kernel command line config files.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum