xorg crashing

I have just installed FreeBSD 14, but can't get startx to run successfully. I have installed xorg, lightdm (and lightdm-gtk-greeter) and XFCE4.
I have tried various things that I discovered on the forum (and elsewhere), but I can't get startx to run.
The results are as follows:

Here is /var/log/Xorg.0.log:
Code:
[    41.065]
X.Org X Server 1.21.1.9
X Protocol Version 11, Revision 0
[    41.065] Current Operating System: FreeBSD feedback 14.0-RELEASE-p3 FreeBSD 14.0-RELEASE-p3 #0: Mon Dec 11 04:56:01 UTC 2023     root@amd64-builder.daemonology.net:/usr/obj/usr/src/amd64.amd64/sys/GENERIC amd64
[    41.065] 
[    41.065] Current version of pixman: 0.42.2
[    41.065]     Before reporting problems, check http://wiki.x.org
    to make sure that you have the latest version.
[    41.065] Markers: (--) probed, (**) from config file, (==) default setting,
    (++) from command line, (!!) notice, (II) informational,
    (WW) warning, (EE) error, (NI) not implemented, (??) unknown.
[    41.065] (==) Log file: "/var/log/Xorg.0.log", Time: Fri Dec 29 08:45:32 2023
[    41.135] (==) Using config directory: "/etc/X11/xorg.conf.d"
[    41.135] (==) Using system config directory "/usr/local/share/X11/xorg.conf.d"
[    41.175] (==) No Layout section.  Using the first Screen section.
[    41.175] (**) |-->Screen "ScreenLayout" (0)
[    41.175] (**) |   |-->Monitor "<default monitor>"
[    41.186] (**) |   |-->Device "Intel"
[    41.186] (==) No monitor specified for screen "ScreenLayout".
    Using a default monitor configuration.
[    41.186] (==) Automatically adding devices
[    41.186] (==) Automatically enabling devices
[    41.186] (==) Automatically adding GPU devices
[    41.186] (==) Automatically binding GPU devices
[    41.195] (==) Max clients allowed: 256, resource mask: 0x1fffff
[    41.311] (==) FontPath set to:
    /usr/local/share/fonts/misc/,
    /usr/local/share/fonts/TTF/,
    /usr/local/share/fonts/OTF/,
    /usr/local/share/fonts/Type1/,
    /usr/local/share/fonts/100dpi/,
    /usr/local/share/fonts/75dpi/,
    catalogue:/usr/local/etc/X11/fontpath.d
[    41.311] (==) ModulePath set to "/usr/local/lib/xorg/modules"
[    41.311] (II) The server relies on udev to provide the list of input devices.
    If no devices become available, reconfigure udev or disable AutoAddDevices.
[    41.311] (II) Module ABI versions:
[    41.311]     X.Org ANSI C Emulation: 0.4
[    41.311]     X.Org Video Driver: 25.2
[    41.311]     X.Org XInput driver : 24.4
[    41.311]     X.Org Server Extension : 10.0
[    41.314] (II) xfree86: Adding drm device (/dev/dri/card0)
[    41.314] (II) Platform probe for /dev/dri/card0
[    41.314] (!!) More than one possible primary device found
[    41.314] (--) PCI: (0@0:2:0) 8086:0416:103c:1942 rev 6, Mem @ 0xb0000000/4194304, 0xa0000000/268435456, I/O @ 0x00005000/64, BIOS @ 0x????????/65536
[    41.314] (--) PCI: (1@0:0:0) 1002:6600:103c:1947 rev 0, Mem @ 0x90000000/268435456, 0xb0900000/262144, I/O @ 0x00004000/256, BIOS @ 0x????????/65536
[    41.314] (II) LoadModule: "glx"
[    41.352] (II) Loading /usr/local/lib/xorg/modules/extensions/libglx.so
[    41.457] (II) Module glx: vendor="X.Org Foundation"
[    41.457]     compiled for 1.21.1.9, module version = 1.0.0
[    41.457]     ABI class: X.Org Server Extension, version 10.0
[    41.457] (II) LoadModule: "modesetting"
[    41.457] (II) Loading /usr/local/lib/xorg/modules/drivers/modesetting_drv.so
[    41.517] (II) Module modesetting: vendor="X.Org Foundation"
[    41.517]     compiled for 1.21.1.9, module version = 1.21.1
[    41.517]     Module class: X.Org Video Driver
[    41.517]     ABI class: X.Org Video Driver, version 25.2
[    41.517] (II) modesetting: Driver for Modesetting Kernel Drivers: kms
[    41.517] (--) Using syscons driver with X support (version 2.0)
[    41.517] (--) using VT number 9

[    41.527] (WW) Falling back to old probe method for modesetting
[    41.527] (II) modeset(0): using default device
[    41.527] (II) modeset(G0): using drv /dev/dri/card0
[    41.527] (WW) VGA arbiter: cannot open kernel arbiter, no multi-card support
[    41.527] (EE)
Fatal server error:
[    41.528] (EE) Cannot run in framebuffer mode. Please specify busIDs        for all framebuffer devices
[    41.528] (EE)
[    41.528] (EE)
Please consult the The X.Org Foundation support
     at http://wiki.x.org
 for help.
[    41.528] (EE) Please also check the log file at "/var/log/Xorg.0.log" for additional information.
[    41.528] (EE)
[    41.539] (EE) Server terminated with error (1). Closing log file.

And pciconf -lv | grep -B3 display:
Code:
vgapci1@pci0:0:2:0:    class=0x030000 rev=0x06 hdr=0x00 vendor=0x8086 device=0x0416 subvendor=0x103c subdevice=0x1942
    vendor     = 'Intel Corporation'
    device     = '4th Gen Core Processor Integrated Graphics Controller'
    class      = display
--
vgapci0@pci0:1:0:0:    class=0x030000 rev=0x00 hdr=0x00 vendor=0x1002 device=0x6600 subvendor=0x103c subdevice=0x1947
    vendor     = 'Advanced Micro Devices, Inc. [AMD/ATI]'
    device     = 'Mars [Radeon HD 8670A/8670M/8750M / R7 M370]'
    class      = display

/boot/loader.conf:
Code:
kern.geom.label.disk_ident.enable="0"
kern.geom.label.gptid.enable="0"
cryptodev_load="YES"
cpu_microcode_enable="YES"
cpu_microcode_name="/boot/firmware/intel-ucode.bin"
zfs_load="YES"
kern.vty=vt
i915kms_load="YES"

/etc/rc.d:
Code:
clear_tmp_enable="YES"
hostname="feedback"
wlans_ath0="wlan0"
ifconfig_wlan0="WPA DHCP"
ifconfig_wlan0_ipv6="inet6 accept_rtadv"
create_args_wlan0="country ZA"
sshd_enable="YES"
moused_nondefault_enable="NO"
# Set dumpdev to "AUTO" to enable crash dumps, "NO" to disable
dumpdev="AUTO"
zfs_enable="YES"
kld_list="i915kms"
kld_list="amdgpu"
dbus_enable="YES"
hald_enable="YES"
microcode_update_enable="YES"
# lightdm_enable="YES"

Can somebody help please? I don't remember battling like this with Release 13, but that was a few years ago.
Thanks!
 
I forgot to include /etc/X11/xorg.conf.d/10-display.conf:
Code:
Section "Device"
    Identifier "Intel"
#    Device "Card0"
    Driver "modesetting"
    Option "TearFree" "True"
    BusID "PCI:0:0:2:0"
EndSection

Section "Device"
    Identifier "AMD"
    Driver "amdgpu"
    Option "TearFree" "True"
    BusID "PCI:0:1:0:0"
EndSection

Section "Screen"
    Identifier "ScreenLayout"
    Device "Intel"
    GPUDevice "AMD"
EndSection
 
Unless I'm seeing a typo.. are all of those assignments in /etc/rc.d in rc.conf? If not, I'd check that file first and add them there. Then I'd check if your user account has been added to the video group. Add the amdgpu driver there while you're at with kld_list="/boot/modules/amdgpu" Restart, try again.
 
Thanks, but I'm pretty sure that I've already tried that. I have tried so many different things that I've decided to do a fresh install.
We'll see how that goes...
 
Whether you've tried it or not, it's the right way. You may have side effects otherwise. A fresh install won't save you from typos.
 
Reinstalled, and made the changes you suggested. No change. And I realise that my wifi is not working. This problem I remember from Release 13, and I never solved it. Oh well.
 
Reinstalled, and made the changes you suggested. No change. And I realise that my wifi is not working. This problem I remember from Release 13, and I never solved it. Oh well.
Are you using DRM? Provide the output of kldstat

Did you recompile / upgrade the DRM. This is kernel bound and should be upgraded in case of major version upgrade. Also, there is graphics/drm-515-kmod for FreeBSD 14.0. Personally I did remove the old graphics/drm-510-kmod.

You have to rebuild / install the graphics/gpu-firmware-kmod. This is also kernel bound. Depending on the GPU, your kernel modules should look like this after boot -

Code:
# kldstat|grep amd
10    1 0xffffffff83200000   502958 amdgpu.ko
17    1 0xffffffff831ba000     a0c0 amdgpu_polaris10_mc_bin.ko
18    1 0xffffffff831c5000     6378 amdgpu_polaris10_pfp_2_bin.ko
19    1 0xffffffff831cc000     6378 amdgpu_polaris10_me_2_bin.ko
20    1 0xffffffff831d3000     4378 amdgpu_polaris10_ce_2_bin.ko
21    1 0xffffffff831d8000     7ca0 amdgpu_polaris10_rlc_bin.ko
22    1 0xffffffff83703000    42388 amdgpu_polaris10_mec_2_bin.ko
23    1 0xffffffff83746000    42388 amdgpu_polaris10_mec2_2_bin.ko
24    1 0xffffffff831e0000     5278 amdgpu_polaris10_sdma_bin.ko
25    1 0xffffffff831e6000     5278 amdgpu_polaris10_sdma1_bin.ko
26    1 0xffffffff83789000    5db60 amdgpu_polaris10_uvd_bin.ko
27    1 0xffffffff837e7000    2ac80 amdgpu_polaris10_vce_bin.ko
28    1 0xffffffff83812000    21da8 amdgpu_polaris10_k_smc_bin.ko

I have 2 machines with different AMD GPU-s upgraded to the 14.0 and everything is good. Just reinstalled these 2 things from ports.
 
Back
Top