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
/etc/sysctl.conf
/etc/rc.conf
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"