cant install/use xfce

I tried to install it handbook method. didnt work https://docs.freebsd.org/en/books/handbook/x11/ and https://docs.freebsd.org/en/books/handbook/desktop/
two videos from youtube didnt work:
View: https://youtu.be/1VpVvsVbT-g?si=2fleQjttZh3c37Hz
and
I tried lots of suggestions by chatgpt. that did not work either.
now I am getting this on boot, and it never reboots. just stuck there.

Code:
real memory = 34359738368 (32768 MB) avail memory = 32896622592 (31372 MB) Event timer "LAPIC" quality 600
ACPI APIC Table: <DELL Dell Inc>
FreeBSD/SMP: Multiprocessor System Detected: 20 CPUs
FreeBSD/SMP: Non-uniform topology
random: registering fast source Intel Secure Key RNG
random: fast provider: "Intel Secure Key RNG"
random: unblocking device.
ioapice <Version 2.0> irqs 0-119
Launching APs: 1 10 16 19 5 18 9 14 12 15 8 11 3 4 13 17 2 76
random: entropy device external interface
kbd1 at kbdmux0
NVRM: rm_init_rm() failed!
nvidia-modeset: Loading NVIDIA Kernel Mode Setting Driver for UNIX platforms 578.169 Thu Jun 12
Fatal trap 12: page fault while in kernel mode
cpuid= 0; apic id = 00
fault virtual address fault code
instruction pointer
stack pointer
frame pointer
code segment
processor eflags
current process
= 0x458
= supervisor read data, page not present = 0x20:0xffffffff88b19949
= 0x28:0xffffffff8861dcb0 0x28:0xffffffff8861dd30
= base 0x0, limit 0xfffff, type 0x1b DPL 8, pres 1, long 1, def32 8, gran 1 interrupt enabled, resume, IOPL = 0
= 0 (swapper)
rdi: fffff80001f840d8 rsi: 0000000000000004 rdx: 0000000000000000 rcx: 0000000000000000 r8: 0000000000000001 r9: 0000000000000020 rax: 0000000000000000 rbx: ffffffff81b6eb20 rbp: ffffffff8861dd30 r10: 0000000000000000 r11: 0000000000bfbfbf r12: 0000000000000000 r13: ffffffff81b6eb20 r14: ffffffff8861dcd8 r15: fffff80001 f840d8 trap number = 12
panic: page fault
cpuid = 0
time = 1
KDB: stack backtrace:
#0 0xffffffff88b8b89d at kdb_backtrace+0x5d
#1 0xffffffff88b3dc81 at vpanic+0x131
#2 0xffffffff88b3dac3 at panic+0x43
#3 0xffffffff81025a8b at trap_fatal+0x40b
#4 0xffffffff81825a56 at trap_pfault+0x46
#5 0xffffffff88ffc398 at calltrap+0x8
#6 0xffffffff88eb5aa4 at keg fetch_free_slab+0x164
#7 0xffffffff88eb4b58 at zone_import+0xc8
#8 0xffffffff88eb6f56 at cache_alloc+0x316
#9 0xffffffff88eb19d5 at cache_alloc_retry+0x25
#10 0xffffffff8316a3df at nvidia_modeset_rm_ops_alloc_stack+0x1f
#11 0xffffffff8222628b at nvkms_call_rm+0x1b
#12 0xffffffff821a2412 at _nv803116kms+0x42
#13 0xffffffff82142ef9 at nvKmsModuleLoad+0x39
#14 0xffffffff82226f8d at nvidia_modeset_loader+0x41d
#15 0xffffffff88b18725 at module_register_init+0x85
#16 0xffffffff88ac5cd5 at mi_startup+0xb5
#17 0xffffffff8837d823 at btext+0x23
Uptime: 1s
Automatic reboot in 15 seconds Rebooting...
press a key on the console to abort

I have intel 12th gen processor and nvidia gtx 1650
in fresh installation what commands should I follow? i dont want lightdm. i want to use startx command.
 
What does freebsd-version -urk and pkg info -x nvidia output?

The issue isn't with XFCE, your NVidia driver appears to crash the system. We'll need to fix that first.
 
What does freebsd-version -urk and pkg info -x nvidia output?

The issue isn't with XFCE, your NVidia driver appears to crash the system. We'll need to fix that first.
Instead of fixing this, I want to go with clean installation. I cant boot the system anyway.
 
What does freebsd-version -urk and pkg info -x nvidia output?

The issue isn't with XFCE, your NVidia driver appears to crash the system. We'll need to fix that first.
And I think OP can check these outputs via entering single user mode through loader.
 
BTTB. Follow the handbook. Check if Xorg will start with the Intel driver first. Then check if Xorg will start with the NVidia driver. If both are individually working with XFCE continue your quest in hybrid graphics territory.
 
Instead of fixing this, I want to go with clean installation.
Your choice of course, but there's no need for it.

I cant boot the system anyway.
Does single user mode work? As long as you didn't add the driver to /boot/loader.conf it should be able to boot to single user mode without crashing. If you did add it, there are ways around this too.
 
Here is my
/usr/local/etc/X11/xorg.conf.d/20-nvidia.conf
Code:
Section "Device"
    Identifier "Card0"
   Driver "nvidia"
EndSection
A few hours ago, I made a fresh installation of 14.2 (the usb was created a few weeks ago) on my new ssd. I got the xfce working with steps from handbook, but the next step was updating the minor version to 14.3 - and that broke my xfce. I think I did not have the file /usr/local/etc/X11/xorg.conf.d/20-nvidia.conf. but later I tried to create it, but the handbook says
Code:
Driver     "nvidia-modeset"
(https://docs.freebsd.org/en/books/handbook/x11/#x-config-gpu). It looks fishy.
 
Instead of fixing this, I want to go with clean installation. I cant boot the system anyway.

I have intel 12th gen processor and nvidia gtx 1650
in fresh installation what commands should I follow? i dont want lightdm. i want to use startx command.

OP, in case you are going to perform a clean installation, after installing the base OS, use following commands (as root) in that particular order:
pkg install nvidia-drm-kmod
sysrc kld_list+=nvidia-drm
sysrc kld_list+=nvidia-modeset
echo 'proc /proc procfs rw 0 0' >> /etc/fstab
pw groupmod video -m <your_ordinary_user>
echo '. /usr/local/etc/xdg/xfce4/xinitrc' > ~/.xinitrc

(the last echo command needs to be run as ordinary user as well.)
then create nvidia.conf file like Alain De Vos described above. reboot.

I also have nvidia GTX 1650 (its 75W version though), and these steps worked for me. let us know what happens next.
 
That's an Optimus setup... Yippie lots of fun !!!
But I'd check first that FreeBSD-kmods repository is fine and if the driver works fine... I need in 14.3 to build from ports nvidia-drm-61-kmod and nvidia-driver for my RTX 2070 since NVIDIA stopped providing binaries.
linuxlover I can give you the steps if needed.

If you need more help, don't ask for a poor quality Youtube video and don't feed the big tech robots which will tell you sh**, just ask to some friendly humans here :)
 
Back
Top