Solved Cannot get the X Window System (xorg) working with drm-kmod and Intel graphic card

Previously I had FreeBSD 13.2 working and upgraded to 14 no problem, last week I wanted to make some changes to my config so I decided to reinstall
my system and now I cannot get xorg working with drm-kmod like before, it works only with VESA or SCFB.

The i915kms module is being loaded

I have tried different boot methods

In UEFI boot method
Code:
Fatal server error:
(EE) no screens found(EE)


In BIOS boot method
Code:
Fatal server error:
(EE) Caught signal 6 (Abort trap). Server aborting

I followed the instruction in the docs The X Window System

01 # pkg install xorg
02 # pkg install drm-kmod
03 # sysrc kld_list+=i915kms
04 Reboot

Also tried with # pkg install libva-intel-driver mesa-libs mesa-dri and it's the same.

Thanks in advanced.
 
I have tried different boot methods
That has very little to do with the graphics drivers.

Make sure the kernel module properly loads, and post your Xorg.0.log: cat /var/log/Xorg.0.log | nc termbin.com 9999
 
The kernel module appears to be loading fine...
Code:
Id Refs Address                Size Name
 1   61 0xffffffff80200000  1d345d8 kernel
 2    1 0xffffffff81f35000   5d5958 zfs.ko
 3    1 0xffffffff8250b000     7718 cryptodev.ko
 4    1 0xffffffff83218000   1b3920 i915kms.ko
 5    2 0xffffffff833cc000    7c050 drm.ko
 6    1 0xffffffff83449000     22b8 iic.ko
 7    3 0xffffffff8344c000     3080 linuxkpi_hdmi.ko
 8    3 0xffffffff83450000     6350 dmabuf.ko
 9    3 0xffffffff83457000     3378 lindebugfs.ko
10    1 0xffffffff8345b000     b360 ttm.ko
11    1 0xffffffff83467000     3390 acpi_wmi.ko
12    1 0xffffffff8346b000     3250 ichsmb.ko
13    1 0xffffffff8346f000     2178 smbus.ko
14    1 0xffffffff83472000    93260 if_iwlwifi.ko
15    1 0xffffffff83506000    17314 if_iwm.ko
16    1 0xffffffff8351e000   1023e0 iwm7260fw.ko
The log...
Code:
[   433.388] 
X.Org X Server 1.21.1.9
X Protocol Version 11, Revision 0
[   433.388] Current Operating System: FreeBSD freebsd 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
[   433.388]  
[   433.388] Current version of pixman: 0.42.2
[   433.388]     Before reporting problems, check http://wiki.x.org
    to make sure that you have the latest version.
[   433.388] Markers: (--) probed, (**) from config file, (==) default setting,
    (++) from command line, (!!) notice, (II) informational,
    (WW) warning, (EE) error, (NI) not implemented, (??) unknown.
[   433.389] (==) Log file: "/var/log/Xorg.0.log", Time: Thu Jan  4 02:49:50 2024
[   433.389] (==) Using system config directory "/usr/local/share/X11/xorg.conf.d"
[   433.389] (==) No Layout section.  Using the first Screen section.
[   433.389] (==) No screen section available. Using defaults.
[   433.389] (**) |-->Screen "Default Screen Section" (0)
[   433.390] (**) |   |-->Monitor "<default monitor>"
[   433.390] (==) No monitor specified for screen "Default Screen Section".
    Using a default monitor configuration.
[   433.390] (==) Automatically adding devices
[   433.390] (==) Automatically enabling devices
[   433.390] (==) Automatically adding GPU devices
[   433.390] (==) Automatically binding GPU devices
[   433.391] (==) Max clients allowed: 256, resource mask: 0x1fffff
[   433.391] (WW) The directory "/usr/local/share/fonts/misc/" does not exist.
[   433.391]     Entry deleted from font path.
[   433.391] (WW) The directory "/usr/local/share/fonts/Type1/" does not exist.
[   433.391]     Entry deleted from font path.
[   433.391] (WW) The directory "/usr/local/share/fonts/100dpi/" does not exist.
[   433.391]     Entry deleted from font path.
[   433.391] (WW) The directory "/usr/local/share/fonts/75dpi/" does not exist.
[   433.391]     Entry deleted from font path.
[   433.391] (==) FontPath set to:
    /usr/local/share/fonts/TTF/,
    /usr/local/share/fonts/OTF/,
    catalogue:/usr/local/etc/X11/fontpath.d
[   433.391] (==) ModulePath set to "/usr/local/lib/xorg/modules"
[   433.391] (II) The server relies on udev to provide the list of input devices.
    If no devices become available, reconfigure udev or disable AutoAddDevices.
[   433.391] (II) Module ABI versions:
[   433.391]     X.Org ANSI C Emulation: 0.4
[   433.391]     X.Org Video Driver: 25.2
[   433.391]     X.Org XInput driver : 24.4
[   433.391]     X.Org Server Extension : 10.0
[   433.396] (II) xfree86: Adding drm device (/dev/dri/card0)
[   433.396] (II) Platform probe for /dev/dri/card0
[   433.403] (--) PCI:*(0@0:2:0) 8086:0f31:17aa:2224 rev 14, Mem @ 0x90000000/4194304, 0x80000000/268435456, I/O @ 0x00002050/8, BIOS @ 0x????????/65536
[   433.403] (II) LoadModule: "glx"
[   433.403] (II) Loading /usr/local/lib/xorg/modules/extensions/libglx.so
[   433.405] (II) Module glx: vendor="X.Org Foundation"
[   433.405]     compiled for 1.21.1.9, module version = 1.0.0
[   433.405]     ABI class: X.Org Server Extension, version 10.0
[   433.405] (==) Matched intel as autoconfigured driver 0
[   433.405] (==) Matched modesetting as autoconfigured driver 1
[   433.405] (==) Matched scfb as autoconfigured driver 2
[   433.405] (==) Matched vesa as autoconfigured driver 3
[   433.405] (==) Assigned the driver to the xf86ConfigLayout
[   433.405] (II) LoadModule: "intel"
[   433.406] (WW) Warning, couldn't open module intel
[   433.406] (EE) Failed to load module "intel" (module does not exist, 0)
[   433.406] (II) LoadModule: "modesetting"
[   433.406] (II) Loading /usr/local/lib/xorg/modules/drivers/modesetting_drv.so
[   433.407] (II) Module modesetting: vendor="X.Org Foundation"
[   433.407]     compiled for 1.21.1.9, module version = 1.21.1
[   433.407]     Module class: X.Org Video Driver
[   433.408]     ABI class: X.Org Video Driver, version 25.2
[   433.408] (II) LoadModule: "scfb"
[   433.408] (II) Loading /usr/local/lib/xorg/modules/drivers/scfb_drv.so
[   433.408] (II) Module scfb: vendor="X.Org Foundation"
[   433.408]     compiled for 1.21.1.9, module version = 0.0.5
[   433.408]     ABI class: X.Org Video Driver, version 25.2
[   433.408] (II) LoadModule: "vesa"
[   433.409] (II) Loading /usr/local/lib/xorg/modules/drivers/vesa_drv.so
[   433.409] (II) Module vesa: vendor="X.Org Foundation"
[   433.409]     compiled for 1.21.1.9, module version = 2.5.0
[   433.409]     Module class: X.Org Video Driver
[   433.409]     ABI class: X.Org Video Driver, version 25.2
[   433.409] (II) modesetting: Driver for Modesetting Kernel Drivers: kms
[   433.409] (II) scfb: driver for wsdisplay framebuffer: scfb
[   433.409] (II) VESA: driver for VESA chipsets: vesa
[   433.409] (--) Using syscons driver with X support (version 2.0)
[   433.410] (--) using VT number 9

[   433.436] (II) modeset(0): using drv /dev/dri/card0
[   433.436] (WW) Falling back to old probe method for scfb
[   433.436] scfb trace: probe start
[   433.436] scfb trace: probe done
[   433.436] (WW) VGA arbiter: cannot open kernel arbiter, no multi-card support
[   433.436] (II) modeset(0): Creating default Display subsection in Screen section
    "Default Screen Section" for depth/fbbpp 24/32
[   433.436] (==) modeset(0): Depth 24, (==) framebuffer bpp 32
[   433.436] (==) modeset(0): RGB weight 888
[   433.436] (==) modeset(0): Default visual is TrueColor
[   433.436] (II) Loading sub module "glamoregl"
[   433.436] (II) LoadModule: "glamoregl"
[   433.436] (II) Loading /usr/local/lib/xorg/modules/libglamoregl.so
[   433.455] (II) Module glamoregl: vendor="X.Org Foundation"
[   433.455]     compiled for 1.21.1.9, module version = 1.0.1
[   433.456]     ABI class: X.Org ANSI C Emulation, version 0.4
[   433.610] (II) modeset(0): glamor X acceleration enabled on Mesa Intel(R) HD Graphics (BYT)
[   433.610] (II) modeset(0): glamor initialized
[   433.610] (==) modeset(0): VariableRefresh: disabled
[   433.610] (==) modeset(0): AsyncFlipSecondaries: disabled
[   433.612] (II) modeset(0): Output eDP-1 has no monitor section
[   433.618] (II) modeset(0): Output VGA-1 has no monitor section
[   433.618] (II) modeset(0): Output DP-1 has no monitor section
[   433.622] (II) modeset(0): Output HDMI-1 has no monitor section
[   433.624] (II) modeset(0): EDID for output eDP-1
[   433.624] (II) modeset(0): Manufacturer: IVO  Model: 489  Serial#: 0
[   433.624] (II) modeset(0): Year: 2011  Week: 28
[   433.624] (II) modeset(0): EDID Version: 1.3
[   433.624] (II) modeset(0): Digital Display Input
[   433.624] (II) modeset(0): Max Image Size [cm]: horiz.: 26  vert.: 14
[   433.624] (II) modeset(0): Gamma: 2.20
[   433.624] (II) modeset(0): No DPMS capabilities specified
[   433.624] (II) modeset(0): Supported color encodings: RGB 4:4:4 YCrCb 4:4:4 
[   433.624] (II) modeset(0): First detailed timing is preferred mode
[   433.624] (II) modeset(0): redX: 0.566 redY: 0.337   greenX: 0.324 greenY: 0.572
[   433.624] (II) modeset(0): blueX: 0.156 blueY: 0.120   whiteX: 0.312 whiteY: 0.328
[   433.624] (II) modeset(0): Manufacturer's mask: 0
[   433.624] (II) modeset(0): Supported detailed timing:
[   433.624] (II) modeset(0): clock: 69.7 MHz   Image Size:  256 x 144 mm
[   433.624] (II) modeset(0): h_active: 1366  h_sync: 1386  h_sync_end 1406 h_blank_end 1478 h_border: 0
[   433.624] (II) modeset(0): v_active: 768  v_sync: 770  v_sync_end 774 v_blanking: 786 v_border: 0
[   433.624] (II) modeset(0):  InfoVision
[   433.624] (II) modeset(0):  M116NWR1 R3
[   433.624] (II) modeset(0): EDID (in hex):
[   433.624] (II) modeset(0):     00ffffffffffff0026cf890400000000
[   433.624] (II) modeset(0):     1c150103801a0e780a12309156539228
[   433.624] (II) modeset(0):     1e505400000001010101010101010101
[   433.624] (II) modeset(0):     0101010101013a1b5670500012301414
[   433.624] (II) modeset(0):     24000090100000190000000000000000
[   433.625] (II) modeset(0):     00000000000000000000000000fe0049
[   433.625] (II) modeset(0):     6e666f566973696f6e0a2020000000fe
[   433.625] (II) modeset(0):     004d3131364e575231205233200a0045
[   433.625] (II) modeset(0): Printing probed modes for output eDP-1
[   433.625] (II) modeset(0): Modeline "1366x768"x60.0   69.70  1366 1386 1406 1478  768 770 774 786 -hsync -vsync (47.2 kHz eP)
[   433.625] (II) modeset(0): Modeline "1280x720"x120.0  156.12  1280 1376 1512 1744  720 721 724 746 doublescan -hsync +vsync (89.5 kHz d)
[   433.625] (II) modeset(0): Modeline "1280x720"x120.0  120.75  1280 1304 1320 1360  720 721 724 740 doublescan +hsync -vsync (88.8 kHz d)
[   433.625] (II) modeset(0): Modeline "1280x720"x59.9   74.50  1280 1344 1472 1664  720 723 728 748 -hsync +vsync (44.8 kHz d)
[   433.625] (II) modeset(0): Modeline "1280x720"x59.7   63.75  1280 1328 1360 1440  720 723 728 741 +hsync -vsync (44.3 kHz d)
[   433.625] (II) modeset(0): Modeline "1024x768"x120.1  133.47  1024 1100 1212 1400  768 768 770 794 doublescan -hsync +vsync (95.3 kHz d)
[   433.625] (II) modeset(0): Modeline "1024x768"x60.0   65.00  1024 1048 1184 1344  768 771 777 806 -hsync -vsync (48.4 kHz d)
[   433.626] (II) modeset(0): Modeline "960x720"x120.0  117.00  960 1024 1128 1300  720 720 722 750 doublescan -hsync +vsync (90.0 kHz d)
[   433.626] (II) modeset(0): Modeline "928x696"x120.1  109.15  928 976 1088 1264  696 696 698 719 doublescan -hsync +vsync (86.4 kHz d)
[   433.626] (II) modeset(0): Modeline "896x672"x120.0  102.40  896 960 1060 1224  672 672 674 697 doublescan -hsync +vsync (83.7 kHz d)
[   433.626] (II) modeset(0): Modeline "1024x576"x119.9   98.50  1024 1092 1200 1376  576 577 580 597 doublescan -hsync +vsync (71.6 kHz d)
[   433.626] (II) modeset(0): Modeline "1024x576"x119.9   78.38  1024 1048 1064 1104  576 577 580 592 doublescan +hsync -vsync (71.0 kHz d)
[   433.626] (II) modeset(0): Modeline "1024x576"x59.9   46.50  1024 1064 1160 1296  576 579 584 599 -hsync +vsync (35.9 kHz d)
[   433.626] (II) modeset(0): Modeline "1024x576"x59.8   42.00  1024 1072 1104 1184  576 579 584 593 +hsync -vsync (35.5 kHz d)
[   433.626] (II) modeset(0): Modeline "960x600"x119.9   96.62  960 1028 1128 1296  600 601 604 622 doublescan -hsync +vsync (74.6 kHz d)
[   433.626] (II) modeset(0): Modeline "960x600"x120.0   77.00  960 984 1000 1040  600 601 604 617 doublescan +hsync -vsync (74.0 kHz d)
[   433.626] (II) modeset(0): Modeline "960x540"x119.9   86.50  960 1024 1124 1288  540 541 544 560 doublescan -hsync +vsync (67.2 kHz d)
[   433.626] (II) modeset(0): Modeline "960x540"x120.0   69.25  960 984 1000 1040  540 541 544 555 doublescan +hsync -vsync (66.6 kHz d)
[   433.626] (II) modeset(0): Modeline "960x540"x59.6   40.75  960 992 1088 1216  540 543 548 562 -hsync +vsync (33.5 kHz d)
[   433.626] (II) modeset(0): Modeline "960x540"x59.8   37.25  960 1008 1040 1120  540 543 548 556 +hsync -vsync (33.3 kHz d)
[   433.626] (II) modeset(0): Modeline "800x600"x120.0   81.00  800 832 928 1080  600 600 602 625 doublescan +hsync +vsync (75.0 kHz d)
[   433.626] (II) modeset(0): Modeline "800x600"x60.3   40.00  800 840 968 1056  600 601 605 628 +hsync +vsync (37.9 kHz d)
[   433.626] (II) modeset(0): Modeline "800x600"x56.2   36.00  800 824 896 1024  600 601 603 625 +hsync +vsync (35.2 kHz d)
[   433.626] (II) modeset(0): Modeline "840x525"x120.0   73.12  840 892 980 1120  525 526 529 544 doublescan -hsync +vsync (65.3 kHz d)
[   433.626] (II) modeset(0): Modeline "840x525"x119.8   59.50  840 864 880 920  525 526 529 540 doublescan +hsync -vsync (64.7 kHz d)
[   433.626] (II) modeset(0): Modeline "864x486"x59.9   32.50  864 888 968 1072  486 489 494 506 -hsync +vsync (30.3 kHz d)
[   433.626] (II) modeset(0): Modeline "864x486"x59.6   30.50  864 912 944 1024  486 489 494 500 +hsync -vsync (29.8 kHz d)
[   433.627] (II) modeset(0): Modeline "700x525"x120.0   61.00  700 744 820 940  525 526 532 541 doublescan +hsync +vsync (64.9 kHz d)
[   433.627] (II) modeset(0): Modeline "800x450"x119.9   59.12  800 848 928 1056  450 451 454 467 doublescan -hsync +vsync (56.0 kHz d)
[   433.627] (II) modeset(0): Modeline "800x450"x119.6   48.75  800 824 840 880  450 451 454 463 doublescan +hsync -vsync (55.4 kHz d)
[   433.627] (II) modeset(0): Modeline "640x512"x120.0   54.00  640 664 720 844  512 512 514 533 doublescan +hsync +vsync (64.0 kHz d)
[   433.627] (II) modeset(0): Modeline "700x450"x119.9   51.75  700 740 812 924  450 451 456 467 doublescan -hsync +vsync (56.0 kHz d)
[   433.627] (II) modeset(0): Modeline "700x450"x119.8   43.25  700 724 740 780  450 451 456 463 doublescan +hsync -vsync (55.4 kHz d)
[   433.627] (II) modeset(0): Modeline "640x480"x120.0   54.00  640 688 744 900  480 480 482 500 doublescan +hsync +vsync (60.0 kHz d)
[   433.627] (II) modeset(0): Modeline "640x480"x59.9   25.18  640 656 752 800  480 490 492 525 -hsync -vsync (31.5 kHz d)
[   433.627] (II) modeset(0): Modeline "720x405"x59.5   22.50  720 744 808 896  405 408 413 422 -hsync +vsync (25.1 kHz d)
[   433.627] (II) modeset(0): Modeline "720x405"x59.0   21.75  720 768 800 880  405 408 413 419 +hsync -vsync (24.7 kHz d)
[   433.627] (II) modeset(0): Modeline "684x384"x119.8   42.62  684 720 788 892  384 385 390 399 doublescan -hsync +vsync (47.8 kHz d)
[   433.627] (II) modeset(0): Modeline "684x384"x119.7   36.12  684 708 724 764  384 385 390 395 doublescan +hsync -vsync (47.3 kHz d)
[   433.627] (II) modeset(0): Modeline "640x400"x119.8   41.75  640 676 740 840  400 401 404 415 doublescan -hsync +vsync (49.7 kHz d)
[   433.627] (II) modeset(0): Modeline "640x400"x120.0   35.50  640 664 680 720  400 401 404 411 doublescan +hsync -vsync (49.3 kHz d)
[   433.627] (II) modeset(0): Modeline "640x360"x119.7   37.25  640 672 736 832  360 361 364 374 doublescan -hsync +vsync (44.8 kHz d)
[   433.627] (II) modeset(0): Modeline "640x360"x119.7   31.88  640 664 680 720  360 361 364 370 doublescan +hsync -vsync (44.3 kHz d)
[   433.627] (II) modeset(0): Modeline "640x360"x59.8   18.00  640 664 720 800  360 363 368 376 -hsync +vsync (22.5 kHz d)
[   433.627] (II) modeset(0): Modeline "640x360"x59.3   17.75  640 688 720 800  360 363 368 374 +hsync -vsync (22.2 kHz d)
[   433.627] (II) modeset(0): Modeline "512x384"x120.0   32.50  512 524 592 672  384 385 388 403 doublescan -hsync -vsync (48.4 kHz d)
[   433.627] (II) modeset(0): Modeline "512x288"x120.0   23.25  512 532 580 648  288 289 292 299 doublescan -hsync +vsync (35.9 kHz d)
[   433.627] (II) modeset(0): Modeline "512x288"x119.8   21.00  512 536 552 592  288 289 292 296 doublescan +hsync -vsync (35.5 kHz d)
[   433.628] (II) modeset(0): Modeline "480x270"x119.3   20.38  480 496 544 608  270 271 274 281 doublescan -hsync +vsync (33.5 kHz d)
[   433.628] (II) modeset(0): Modeline "480x270"x119.6   18.62  480 504 520 560  270 271 274 278 doublescan +hsync -vsync (33.3 kHz d)
[   433.628] (II) modeset(0): Modeline "400x300"x120.6   20.00  400 420 484 528  300 300 302 314 doublescan +hsync +vsync (37.9 kHz d)
[   433.628] (II) modeset(0): Modeline "400x300"x112.7   18.00  400 412 448 512  300 300 301 312 doublescan +hsync +vsync (35.2 kHz d)
[   433.628] (II) modeset(0): Modeline "432x243"x119.8   16.25  432 444 484 536  243 244 247 253 doublescan -hsync +vsync (30.3 kHz d)
[   433.628] (II) modeset(0): Modeline "432x243"x119.1   15.25  432 456 472 512  243 244 247 250 doublescan +hsync -vsync (29.8 kHz d)
[   433.628] (II) modeset(0): Modeline "320x240"x120.1   12.59  320 328 376 400  240 245 246 262 doublescan -hsync -vsync (31.5 kHz d)
[   433.628] (II) modeset(0): Modeline "360x202"x119.0   11.25  360 372 404 448  202 204 206 211 doublescan -hsync +vsync (25.1 kHz d)
[   433.628] (II) modeset(0): Modeline "360x202"x118.3   10.88  360 384 400 440  202 204 206 209 doublescan +hsync -vsync (24.7 kHz d)
[   433.628] (II) modeset(0): Modeline "320x180"x119.7    9.00  320 332 360 400  180 181 184 188 doublescan -hsync +vsync (22.5 kHz d)
[   433.628] (II) modeset(0): Modeline "320x180"x118.6    8.88  320 344 360 400  180 181 184 187 doublescan +hsync -vsync (22.2 kHz d)
[   433.634] (II) modeset(0): EDID for output VGA-1
[   433.634] (II) modeset(0): EDID for output DP-1
[   433.638] (II) modeset(0): EDID for output HDMI-1
[   433.638] (II) modeset(0): Output eDP-1 connected
[   433.638] (II) modeset(0): Output VGA-1 disconnected
[   433.638] (II) modeset(0): Output DP-1 disconnected
[   433.638] (II) modeset(0): Output HDMI-1 disconnected
[   433.638] (II) modeset(0): Using exact sizes for initial modes
[   433.638] (II) modeset(0): Output eDP-1 using initial mode 1366x768 +0+0
[   433.638] (==) modeset(0): Using gamma correction (1.0, 1.0, 1.0)
[   433.638] (==) modeset(0): DPI set to (96, 96)
[   433.638] (II) Loading sub module "fb"
[   433.638] (II) LoadModule: "fb"
[   433.638] (II) Module "fb" already built-in
[   433.638] (II) UnloadModule: "scfb"
[   433.638] (II) Unloading scfb
[   433.639] (II) UnloadModule: "vesa"
[   433.639] (II) Unloading vesa
[   433.645] (EE) 
Fatal server error:
[   433.645] (EE) Caught signal 6 (Abort trap). Server aborting
[   433.645] (EE) 
[   433.645] (EE) 
Please consult the The X.Org Foundation support 
     at http://wiki.x.org
 for help. 
[   433.646] (EE) Please also check the log file at "/var/log/Xorg.0.log" for additional information.
[   433.646] (EE) 
[   433.647] (EE) Server terminated with error (1). Closing log file.

Thanks
 
I have the same issue on a Celeron N3450 Notebook with Intel HD Graphics. With FreeBSD 13.2 the kmod driver worked, with FreeBSD 14.0 x.org crashes. My workaround is to use the legacy xf86-intel-video driver. You have to install it first.
 
I have the same issue on a Celeron N3450 Notebook with Intel HD Graphics. With FreeBSD 13.2 the kmod driver worked, with FreeBSD 14.0 x.org crashes. My workaround is to use the legacy xf86-intel-video driver. You have to install it first.
Your N3450 is from launch date Q3'16, it seems nicely situated (not too new, not too old) and you mentioned that it worked on 13.2 without the legacy xf86-intel-video driver. Have you tried pkg upgrade -f ? After that, I'd suggest try specifying the Xorg modesetting driver in a xxx.conf file in /usr/local/etc/X11/xorg.conf.d/ like:
Code:
Section "Device"
	<...>
	Driver     "modesetting"
EndSection
and be sure that there isn't any other .conf file for Xorg present that specifies the intel legacy driver. If your Xorg at start still crashes, please post your Xorg.0.log: cat /var/log/Xorg.0.log | nc termbin.com 9999

I suggest you start a new thread if you still experience problems.
 
Your N3450 is from launch date Q3'16, it seems nicely situated (not too new, not too old) and you mentioned that it worked on 13.2 without the legacy xf86-intel-video driver. Have you tried pkg upgrade -f ? After that, I'd suggest try specifying the Xorg modesetting driver in a xxx.conf file in /usr/local/etc/X11/xorg.conf.d/ like:
Code:
Section "Device"
    <...>
    Driver     "modesetting"
EndSection
and be sure that there isn't any other .conf file for Xorg present that specifies the intel legacy driver. If your Xorg at start still crashes, please post your Xorg.0.log: cat /var/log/Xorg.0.log | nc termbin.com 9999

I suggest you start a new thread if you still experience problems.
I didn't upgrade from 13.2 to 14.0. I did a new installation of 14.0. First I tried it widh the drm-kmod driver. The driver was automatically loaded and used by Xorg but the Xorg.log ended with

(EE) Segmentation fault at address 0x871d3c1b8
(EE)
Fatal server error:
(EE) Caught signal 11 (Segmentation fault). Server aborting

I don't have a special .conf file. The directory /usr/local/etc/X11/xorg.conf.d/ is empty.

Then I installed the xf86-intel-video driver and Xorg loaded this driver automatically and used it. Xorg runs without any problems with this driver. Perhaps I will try the drm-kmod driver with FreeBSD 14.1 again. But it works well with the xf86-intel-video driver so this is a good workaround for me.

On FreeBSD 13.2 the drm-kmod driver was automatically loaded and used by Xorg and there were no errors and crashes.
 
I tried installing xf86-video-intel and it worked, I don't remember needing it on FreeBSD 13 :-/

Thanks everyone.

My hardware specs
Code:
Lenovo ThinkPad 11e
Celeron CPU N2940 @ 1.83GHz
Graphics card Atom Processor Z36xxx/Z37xxx Series Graphics & Display
 
So I did some more testing and removed drm-kmod and the legacy drivers xf86-video-intel, and only install drm-510-kmod and its working.
Also tried with drm-515-kmod and again...
Code:
Fatal server error:
(EE) Caught signal 6 (Abort trap). Server aborting
So I wonder, whats the difference between drm-kmod and drm-510-kmod? :-/
 
the difference between drm-kmod and drm-510-kmod? :-/

Note that graphics/drm-kmod installs a different driver on 14.0-RELEASE.

It's a meta port; not a driver in itself.

On 14.0-RELEASE, it defaults to automated installation of graphics/drm-515-kmod.

Mid-October last year:

 
graphics/drm-kmod is a metaport; it should pull in the most appropriate package for your OS version (for 14 that would be drm-515-kmod) and a bunch of appropriate firmware files for your GPU. graphics/drm-510-kmod or graphics/drm-515-kmod is not a metaport: it installs only the requested package version (precisely "510" or "515" respectively) for your OS; it does not install the firmwareware files, if I remember correctly. Firmware files are in graphics/gpu-firmware-kmod. You can get a list of files that an installed package has stored in your filesystem by using pkg-info(8); use pkg-which(8) for the reverse.
 
drm-515-kmod is broken for intel, …

Not entirely. Yours is probably an edge case.

We're probably more likely to find drm-kmod issues at <https://github.com/freebsd/drm-kmod/issues> than in Bugzilla. I did take a quick look earlier, couldn't find anything matching your case.



Looking ahead: the more people test FreeBSD-CURRENT, the greater the likelihood of issues being reported and fixed before RELEASE. pkgbase should greatly simplify things, for people who wish to test, but that's a separate topic.
 
What does this actually do?

In the FreeBSD Handbook, <https://docs.freebsd.org/en/books/handbook/book/#x-install> for x11/xorg states "The current user must be a member of the video group." without explaining why. The Handbook there is misleading; the current user is the root user.

<https://www.freshports.org/x11/xorg/#message> there's no package message, maybe because there's no need.

A FreshPorts search of package messages yields some interesting results.

Add the user who will run Xorg to the video group to enable 3D acceleration when available.

At a glance, that's consistent with relevant package messages; probably also consistent with <https://wiki.freebsd.org/Graphics>:
  • For access to /dev/drm/ devices, the user should be a member of the video group.
VladiBG please, is this part of the wiki correct?
 
What does this actually do? I've never used it. xorg works fine on 13.2, although I have 'cosmetic' issues with LXDE on 14.0.
As Micheal Lucas mentions in Absolute FreeBSD, 3rd Edition, table 9-1, p. 184 for the video group:
Group that can access DRM and DRI video devices
I think that, when not added to the video group, it is unlikely that you'll be able to use your graphics hardware acceleration features to its full potential, if at all.

When not added to the video group, you may want to verify that Xorg successfully loads a driver for KMS devices, such as modesetting (i.e. /usr/local/lib/xorg/modules/drivers/modesetting_drv.so; see modesetting(4)) or nvidia (i.e. /usr/local/lib/xorg/modules/drivers/nvidia_drv.so; see 5.4.3. Video Cards); as opposed to loading a driver not for KMS devices, for example the non-accelerated scfb(4) or the non-accelerated vesa(4) driver. Check your Xorg log file.
 
It's all about separation of the privileges. The access of the devices is done via devfs(5) where each device is exposed as file system with it's access permissions. This is valid not only for drm; cdrom; modems/serial etc. you can just take a look at group owner of the exposed devices inside /dev there's also some examples how this default access can be changed in devfs.conf devfs(8)

It's similar with the ability to write to CD-ROM. By default it's exposed as /dev/cd0 where only root can write to it and members of "operator" group can read it. That's why in many guides of how to burn a cd-rom as user there's a example of changing permissions and allowing operator group to have write access to it via devfs.conf

grahamperrin Yes the wiki is correct about /dev/drm/

If the user is not member of the "Video" group he won't be able to use hardware decoding.

Without access to drm

versus@versus-laptop:~/Downloads/serenity_hd_dvd-trailer % mpv --hwdec=vaapi Serenity\ -\ HD\ DVD\ Trailer.mp4
[ffmpeg/demuxer] mov,mp4,m4a,3gp,3g2,mj2: stream 0, timescale not set
(+) Video --vid=1 (*) (h264 1280x720 23.976fps)
Video --vid=2 [P] (mjpeg 1.000fps)
(+) Audio --aid=1 (*) (aac 2ch 48000Hz)
File tags:
Artist: Universal Pictures
Date: 2005
Genre: Trailer
Title: Serenity - HD DVD Trailer
[vaapi] libva: vaGetDriverNames() failed with unknown libva error
AO: [oss] 48000Hz stereo 2ch s32
VO: [gpu] 1280x720 yuv420p
AV: 00:00:04 / 00:02:19 (3%) A-V: 0.000

Exiting... (Quit)

With access to drm (member of Video group)

versus@versus-laptop:~/Downloads/serenity_hd_dvd-trailer % mpv --hwdec=vaapi Serenity\ -\ HD\ DVD\ Trailer.mp4
[ffmpeg/demuxer] mov,mp4,m4a,3gp,3g2,mj2: stream 0, timescale not set
(+) Video --vid=1 (*) (h264 1280x720 23.976fps)
Video --vid=2 [P] (mjpeg 1.000fps)
(+) Audio --aid=1 (*) (aac 2ch 48000Hz)
File tags:
Artist: Universal Pictures
Date: 2005
Genre: Trailer
Title: Serenity - HD DVD Trailer
/usr/local/lib/dri/hybrid_drv_video.so init failed
Not using hybrid_drv_video.so
[ffmpeg] AVHWFramesContext: Failed to create surface: 14 (the requested RT Format is not supported).
[ffmpeg] AVHWFramesContext: Unable to allocate a surface from internal buffer pool.
Using hardware decoding (vaapi).
AO: [oss] 48000Hz stereo 2ch s32
VO: [gpu] 1280x720 vaapi[nv12]
AV: 00:00:10 / 00:02:19 (7%) A-V: -0.000

Exiting... (Quit)

Without hardware decoding the CPU utilization is higher and more power consuming. Also if the video is high resolution it may start to drop frames.

Screenshot_2024-01-07_14-36-39.png
Screenshot_2024-01-07_14-40-22.png
 
Back
Top