I'm back and I need some help ;-)

Hello forum, long time no see.
Glad to be back.

I got a T490 recently that have a nvidia MX250. Installation went fine beside a bug that I will cover in another post, because it is not related to this problem.
After install the base OS I installed X, xfce, lightdm and the kernel modules for the intel and nvdia gpu's. that also worked just fine.

When everything that I need was installed, I started to change the config files according to my backups. Long story short, I did something wrong and now my DE is broke. nothing happens after boot, just a black screen with moused in the middle. lightdm don't appear anymore and I can't start X in a TTY.

My config file:

/boot/loader.conf

Code:
aesni_load="YES"
geom_eli_load="YES"
security.bsd.allow_destructive_dtrace=0
kern.geom.label.disk_ident.enable="0"
kern.geom.label.gptid.enable="0"
zfs_load="YES"
###########################################
# Boot
#hw.nvidiadrm.modeset="1"
nvidia-modeset_load="YES"
boot_mute="YES"
autoboot_delay="5"
#vesa_load="YES"
kern.vty="vt"
# Resolution
efi_max_resolution="1920x1080"
# Add colors to vt(4)
kern.vt.color.0.rgb="#000000"
kern.vt.color.1.rgb="#e67e80"
kern.vt.color.2.rgb="#a7c080"
kern.vt.color.3.rgb="#dbbc7f"
kern.vt.color.4.rgb="#7fbbb3"
kern.vt.color.5.rgb="#d699b6"
kern.vt.color.6.rgb="#83c092"
kern.vt.color.7.rgb="#ff0000"
kern.vt.color.8.rgb="#4b565c"
kern.vt.color.9.rgb="#e67e80"
kern.vt.color.10.rgb="#a7c080"
kern.vt.color.11.rgb="#dbbc7f"
kern.vt.color.12.rgb="#7fbbb3"
kern.vt.color.13.rgb="#d699b6"
kern.vt.color.14.rgb="#83c092"
kern.vt.color.15.rgb="#ff0000"
##########################################
# Security
## Meltdown mitigation
vm.pmap.pti=1
hw.ibrs_disable=0
###########################################
# Webcamd
cuse_load="YES"
###########################################
# Enhance shared memory X11 interface and
# other stuffs
kern.ipc.shmmax=67108864
kern.ipc.shmall=32768
kern.ipc.shmseg=1024
kern.ipc.shmmni=1024
kern.maxproc=1000000
##########################################
# Sysctl
sysctlinfo_load="YES"
sysctlbyname_improved_load="YES"
##########################################
# Misc
libiconv_load="YES"
libmchain_load="YES"
##########################################
# Jails + Linux
fdescfs_load="YES"
linprocfs_load="YES"
linsysfs_load="YES"
#tmpfs_load="YES"
#########################################
# New stuff
kern.racct.enable=1
#########################################
# Microcode Update
cpu_microcode_load="YES"
cpu_microcode_name="/boot/firmware/intel-ucode.bin"

/etc/sysctl.conf

Code:
#
#  This file is read when going to multi-user and its contents piped thru
#  ``sysctl'' to adjust kernel values.  ``man 5 sysctl.conf'' for details.
#

# Uncomment this to prevent users from seeing information about processes that
# are being run under another UID.
#security.bsd.see_other_uids=0
security.bsd.see_other_uids=0
security.bsd.see_other_gids=0
security.bsd.see_jail_proc=0
security.bsd.unprivileged_read_msgbuf=0
security.bsd.unprivileged_proc_debug=0
kern.randompid=1
vfs.zfs.vdev.min_auto_ashift=12
kern.elf32.aslr.enable=1
kern.elf32.aslr.pie_enable=1
kern.elf32.aslr.honor_sbrk=0
kern.elf64.aslr.enable=1
kern.elf64.aslr.pie_enable=1
kern.elf64.aslr.honor_sbrk=0
# Tuning
kern.maxfiles=400000
kern.sched.preempt_thresh=224
kern.ipc.shm_allow_removed=1
kern.ipc.shmmax=67108864
kern.ipc.shmall=32768
kern.threads.max_threads_per_proc=4096
#kern.sched.slice=5
kern.coredump=0
###############################################
# Network
net.local.stream.recvspace=65536
net.local.stream.sendspace=65536
net.inet.ip.forwarding=1
net.inet.ip.random_id=1
net.link.tap.up_on_open=1
###############################################
# Suspend on lid close
hw.acpi.lid_switch_state=S3
vfs.usermount=1

/etc/rc.conf

Code:
# Auto
clear_tmp_enable="YES"
syslogd_flags="-ss"
sendmail_enable="NONE"
sshd_enable="YES"
moused_enable="YES"
ntpd_enable="YES"
ntpd_sync_on_start="YES"
powerd_enable="YES"
# Set dumpdev to "AUTO" to enable crash dumps, "NO" to disable
dumpdev="AUTO"
zfs_enable="YES"
kld_list="i915kms nvidia nvidia-modeset linux linux64 fusefs coretemp sysctlinfo mac_priority if_bridge acpi_video nmdm cuse"

# Boot
rc_info="NO"
rc_startmsgs="NO"

# Network
ifconfig_em0="DHCP"
wlans_iwm0="wlan0"
ifconfig_wlan0="WPA DHCP"
ifconfig_wlan0_ipv6="inet6 accept_rtadv"
hostname="BattleStar-T490"

# XFCE
dbus_enable="YES"
lightdm_enable="YES"

# Webcamd
webcamd_enable="YES"
webcamd_0_flags="-d ugen0.3"

# Enabling drive monitoring
smartd_enable="YES"

# Enabling Microcode updates
microcode_update_enable="YES"

# mixertui, sound and mic stuff
mixer_enable="YES"
sysctlinfo_load="YES"
sysctlbyname_improved_load="YES"

# Loading /etc/devfs.rules
devfs_system_ruleset="system"

# NFS Client
nfs_client_enable="YES" # This host is an NFS client.
#nfs_client_flags="-n 4" # Flags to nfsiod (if enabled).

#monerod_enable="YES"

# Tailscale
#tailscaled_enable="YES"

avahi_daemon_enable="YES"
 
Try to keep /boot/loader.conf as short a possible.

pkg info | grep nvidia
Code:
nvidia-driver-580.119.02_1     NVidia graphics card binary drivers for hardware OpenGL rendering
nvidia-drm-66-kmod-580.119.02.1500068_2 NVIDIA DRM Kernel Module
nvidia-drm-kmod-580.119.02     NVIDIA DRM Kernel Module
nvidia-kmod-580.119.02.1500068_1 kmod part of NVidia graphics card binary drivers for hardware OpenGL rendering
nvidia-settings-580.119.02     Display Control Panel for X NVidia driver

pkg info | grep drm
Code:
drm-66-kmod-6.6.25.1500068_8   Direct Rendering Manager GPU drivers
libdrm-2.4.131,1               Direct Rendering Manager library and headers
nvidia-drm-66-kmod-580.119.02.1500068_2 NVIDIA DRM Kernel Module
nvidia-drm-kmod-580.119.02     NVIDIA DRM Kernel Module
 
Try to keep /boot/loader.conf as short a possible.

pkg info | grep nvidia
Code:
nvidia-driver-580.119.02_1     NVidia graphics card binary drivers for hardware OpenGL rendering
nvidia-drm-66-kmod-580.119.02.1500068_2 NVIDIA DRM Kernel Module
nvidia-drm-kmod-580.119.02     NVIDIA DRM Kernel Module
nvidia-kmod-580.119.02.1500068_1 kmod part of NVidia graphics card binary drivers for hardware OpenGL rendering
nvidia-settings-580.119.02     Display Control Panel for X NVidia driver
1774016817156.png
 
pkg info | grep kmod | grep drm ,
Code:
drm-66-kmod-6.6.25.1500068_8   Direct Rendering Manager GPU drivers
nvidia-drm-66-kmod-580.119.02.1500068_2 NVIDIA DRM Kernel Module
nvidia-drm-kmod-580.119.02     NVIDIA DRM Kernel Module

Note , 3 lines.
 
out of ideas here. Have a look at /var/log/Xorg.0.log

kldstat | grep -i drm
20 1 0xffffffff89aa9000 8a190 drm.ko
kldstat | grep -i nvidia
5 1 0xffffffff83848000 1652f8 nvidia-modeset.ko
6 1 0xffffffff83a00000 6068378 nvidia.ko
 
out of ideas here. Have a look at /var/log/Xorg.0.log

kldstat | grep -i drm
20 1 0xffffffff89aa9000 8a190 drm.ko
kldstat | grep -i nvidia
5 1 0xffffffff83848000 1652f8 nvidia-modeset.ko
6 1 0xffffffff83a00000 6068378 nvidia.ko
I founded the issue thanks to you.
There was nothing helpful in /var/log/Xorg.0.log. But this reminded me that I ran nvidia-xconfig at some point. So I just renamed /etc/X11/xorg.conf to /etc/X11/xorg.conf.bkp and everything is working now.

Now, the reason I ran it, it because the NVIDIA Settings app is not showing the configuration options:
1774018621555.png


IDK how it is supposed to behave in FBSD, but this only happens in Linux when I got the wrong driver.
What else can we find that I did it wrong?
 
Perphaps I'm missing it, but did you mention what version you installed? How about UFS/ZFS?
The questions sound like "not directly helpful" but for me the ZFS question would then let me ask "did you create a new BE BEFORE you changed anything?"
Which would then lead me to ask "Have you booted into the working BE and then using bectl mounted the broken one to see what is different and work through them?"
 
Perphaps I'm missing it, but did you mention what version you installed? How about UFS/ZFS?
The questions sound like "not directly helpful" but for me the ZFS question would then let me ask "did you create a new BE BEFORE you changed anything?"
Which would then lead me to ask "Have you booted into the working BE and then using bectl mounted the broken one to see what is different and work through them?"
out of ideas here. Have a look at /var/log/Xorg.0.log

kldstat | grep -i drm
20 1 0xffffffff89aa9000 8a190 drm.ko
kldstat | grep -i nvidia
5 1 0xffffffff83848000 1652f8 nvidia-modeset.ko
6 1 0xffffffff83a00000 6068378 nvidia.ko

Already solved this issue, thank you.

The second issue is the Nvidia settings not showing my config options like I'm used to. IDK is it is different on FBSD.

If you can share a screenshot of you NVIDIA settings app it would be very helpful.
 
Yes, something is definitely wrong with my setup.

Mine it is very different:
I founded the issue thanks to you.
There was nothing helpful in /var/log/Xorg.0.log. But this reminded me that I ran nvidia-xconfig at some point. So I just renamed /etc/X11/xorg.conf to /etc/X11/xorg.conf.bkp and everything is working now.

Now, the reason I ran it, it because the NVIDIA Settings app is not showing the configuration options:
View attachment 25710

IDK how it is supposed to behave in FBSD, but this only happens in Linux when I got the wrong driver.
What else can we find that I did it wrong?

How do I look for what it is missing?
 
Back
Top