HELP! EXPERTS NEEDED! Xorg and any DE or related thing Hard crashes not just FreeBSD, but makes my PC fail to P.O.S.T and I have to turn off my PSU.

Specs before I explain the problem: Nvidia RTX 5070, Intel Ultra Core 7 265F, 32GB DDR5 RAM, and a 2TB M.2 SSD. So basically whenever I booted FreeBSD after I install sddm, it had a random black screen with the TTY cursor frozen in time, I can't go into another TTY using Ctrl+Alt+F2-8. When I turn it off, it just stays and doesn't turn off, when I force (hard) turn it off, it reboots itself and fails to P.O.S.T, which makes me turn off the PSU and boot into another OS, which is how I am even writing this. Everything was OK, nvidia-xconfig worked no errors, I grepped the log and nothing was wrong, just showcasing what (EE) (II) (WW) (??) etc. So nothing wrong with Xconfig, nor startX. I was thinking KDE plasma, but SDDM didn't work either, so not KDE plasma. Maybe Xorg? But nothing's wrong, and SDDM works fine; too. Im using 580 drivers cause that is the only thing that I was able to get, specifically nvidia-drm-61. I did everything right, and drivers were loaded, so what is the error? I don't get it. I haven't worked with FreeBSD, so I wanted it to be a daily driver and as a learning experience, but this is just beyond grep and basic troubleshoothing. It is messing with my ACTUAL hardware
 

Attachments

  • IMG_1297.jpg
    IMG_1297.jpg
    235.1 KB · Views: 18
1774063936810.png

So my Gpu IS supported.. So then What the **** is happening (yes ts is my EXACT Driver version which is)

580.142​


Mod: Swearwords in capital letters removed.
 
If you want to help people to help you, don't shout, but rather give sensible informations like:
- freebsd-version -kru
- dmesg
- kldstat

Of course, you need to disable the launch of sddm. You can select the single-user mode at the beastie menu and modify /etc/rc.conf. You will need to mount the system in RW mode. Ask, if you don't know how to do (give the gpart show output you get in single-user mode).
 
Torokia, check the linux drm mailing list (or the source code) for the pci id of your specific card (likewise for nvidia forum). It may require some kernel argument on boot to address some issue. It may also require loading newer firmware or a newer version of the software stack (mesa, wtv).
 
Do you have any of graphics/nvidia-drm-*-kmod installed?
The part "*" varies depending on the FreeBSD version if you installed it via graphics/nvidia-drm-kmod.

If yes, do you have
Code:
hw.nvidiadrm.modeset=1
hw.nvidia.registry.EnableGpuFirmware=1
lines in your /boot/loader.conf?

Basically,
Code:
hw.nvidia.registry.EnableGpuFirmware=1
line is not mandatory (defaulted to 0 to avoid suspend/resume issue), but RTX 5xxx series are known NOT to work without it set to 1 or 17 (17 is to allow fallback to 0 on any GPUs that don't have GSP in it).

Another possibility is that Intel iGPU is somehow avoiding NVIDIA dGPU (in your case, RTX 5070) to work sanely. So whenever possible, I recommend disabling iGPU via BIOS / UEFI firmware config.
 
Back
Top