Problem with configuring X.org

Problem configuring X.org

Colleagues, please tell me what the problem is.

I am using a computer with an MSI MS-7D22 v.1.2 motherboard and an Intel Pentium Gold G6405 (Intel UHD Graphics 610) processor.
I installed FreeBSD on the computer, then Xorg, Slim and Xfce4.

When booting the computer and issuing the startx command, the following appears in the logs:
Code:
[ 22.251] (EE) intel(0): No modes.
[ 22.251] (II) UnloadModule: "intel"
[ 22.251] (EE) Screen(s) found, but none have a usable configuration.
[ 22.251] (EE)
Fatal server error:
[ 22.251] (EE) no screens found(EE)
[ 22.251] (EE)
Please consult the X.Org Foundation support
at http://wiki.x.org
for help.
[ 22.251] (EE) Please also check the log file at "/var/log/Xorg.0.log" for additional information.
[ 22.251] (EE)
[ 22.357] (EE) Server terminated with error (1). Closing log file.

What am I doing wrong? How can I solve my problem?

Thank you for your advice,
Ogogon.
 
Hi,

Are you loading the DRM video driver before starting xorg?
I installed these packages:
Code:
ogogon@test# pkg info | grep drm
drm-510-kmod-5.10.163.1304000_10 DRM drivers modules
drm-kmod-20220907_3            Metaport of DRM modules for the linuxkpi-based KMS components
gpu-firmware-kmod-20241114,1   Firmware modules for the drm-kmod drivers
libdrm-2.4.123,1               Direct Rendering Manager library and headers
ogogon@test# pkg info | grep video-intel
xf86-video-intel-2.99.917.923_1,1 X.Org legacy driver for Intel integrated graphics chipsets
ogogon@test#

Do I need to explicitly load anything into in loader.conf, rc.conf, etc?
 
Yes if you want to load DRM modules everytime then you need a line in rc.conf but I wouldn't recommend doing it before trying if it works fine.

Code:
kld_list="i915kms"

For now, just run kldload i915kms as root and see if you can start xorg.
 
Yes if you want to load DRM modules everytime then you need a line in rc.conf but I wouldn't recommend doing it before trying if it works fine.

Code:
kld_list="i915kms"

For now, just run kldload i915kms as root and see if you can start xorg.

I believe it is already loaded automatically:
Code:
ogogon@test# kldload i915kms
kldload: can't load i915kms: module already loaded or in kernel
ogogon@test# kldstat
Id Refs Address                Size Name
 1   49 0xffffffff80200000  2344de0 kernel
 2    1 0xffffffff82545000   596060 zfs.ko
 3    1 0xffffffff82adc000     a4e8 cryptodev.ko
 4    1 0xffffffff82f20000     3378 acpi_wmi.ko
 5    1 0xffffffff82f24000     3250 ichsmb.ko
 6    1 0xffffffff82f28000     2180 smbus.ko
 7    1 0xffffffff82f2b000     2a08 mac_ntpd.ko
 8    1 0xffffffff82f2e000   17e8b8 i915kms.ko
 9    1 0xffffffff830ad000    71bd8 drm.ko
10    1 0xffffffff8311f000     22b0 iic.ko
11    2 0xffffffff83122000     30fc linuxkpi_gplv2.ko
12    3 0xffffffff83126000     6318 dmabuf.ko
ogogon@test#

But, Xorg is not runned...
 
Is your user a member of video group? You can check by running groups username. Also maybe try removing legacy Intel driver and/or remove xorg configurations if you have any.
 
Is your user a member of video group? You can check by running groups username. Also maybe try removing legacy Intel driver and/or remove xorg configurations if you have any.
I add user 'root' into 'video' group. I remove legacy driver and /usr/local/etc/X11/xorg.conf.

Code:
[    45.732]
X.Org X Server 1.21.1.14
X Protocol Version 11, Revision 0
[    45.732] Current Operating System: FreeBSD backup.stepanov.biz 13.4-RELEASE FreeBSD 13.4-RELEASE releng/13.4-n258257-58066db597be GENERIC amd64
[    45.732]
[    45.732] Current version of pixman: 0.44.2
[    45.732]    Before reporting problems, check http://wiki.x.org
        to make sure that you have the latest version.
[    45.732] Markers: (--) probed, (**) from config file, (==) default setting,
        (++) from command line, (!!) notice, (II) informational,
        (WW) warning, (EE) error, (NI) not implemented, (??) unknown.
[    45.733] (==) Log file: "/var/log/Xorg.0.log", Time: Thu Feb 20 04:25:56 2025
[    45.733] (==) Using system config directory "/usr/local/share/X11/xorg.conf.d"
[    45.733] (==) No Layout section.  Using the first Screen section.
[    45.733] (==) No screen section available. Using defaults.
[    45.733] (**) |-->Screen "Default Screen Section" (0)
[    45.733] (**) |   |-->Monitor "<default monitor>"
[    45.733] (==) No monitor specified for screen "Default Screen Section".
        Using a default monitor configuration.
[    45.733] (**) Allowing byte-swapped clients
[    45.733] (==) Automatically adding devices
[    45.733] (==) Automatically enabling devices
[    45.733] (==) Automatically adding GPU devices
[    45.733] (==) Automatically binding GPU devices
[    45.733] (==) Max clients allowed: 256, resource mask: 0x1fffff
[    45.733] (==) 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
[    45.733] (==) ModulePath set to "/usr/local/lib/xorg/modules"
[    45.733] (II) The server relies on udev to provide the list of input devices.
        If no devices become available, reconfigure udev or disable AutoAddDevices.
[    45.733] (II) Module ABI versions:
[    45.733]    X.Org ANSI C Emulation: 0.4
[    45.733]    X.Org Video Driver: 25.2
[    45.733]    X.Org XInput driver : 24.4
[    45.733]    X.Org Server Extension : 10.0
[    45.737] (--) PCI:*(0@0:2:0) 8086:9ba8:1462:7d22 rev 3, Mem @ 0xa0000000/16777216, 0x90000000/268435456, I/O @ 0x00003000/64, BIOS @ 0x????????/65536
[    45.737] (II) LoadModule: "glx"
[    45.737] (II) Loading /usr/local/lib/xorg/modules/extensions/libglx.so
[    45.738] (II) Module glx: vendor="X.Org Foundation"
[    45.738]    compiled for 1.21.1.14, module version = 1.0.0
[    45.738]    ABI class: X.Org Server Extension, version 10.0
[    45.738] (==) Matched intel as autoconfigured driver 0
[    45.738] (==) Matched modesetting as autoconfigured driver 1
[    45.738] (==) Matched scfb as autoconfigured driver 2
[    45.738] (==) Matched vesa as autoconfigured driver 3
[    45.738] (==) Assigned the driver to the xf86ConfigLayout
[    45.738] (II) LoadModule: "intel"
[    45.738] (EE) Failed to load module "intel" (module does not exist, 0)
[    45.738] (II) LoadModule: "modesetting"
[    45.738] (II) Loading /usr/local/lib/xorg/modules/drivers/modesetting_drv.so
[    45.738] (II) Module modesetting: vendor="X.Org Foundation"
[    45.738]    compiled for 1.21.1.14, module version = 1.21.1
[    45.738]    Module class: X.Org Video Driver
[    45.738]    ABI class: X.Org Video Driver, version 25.2
[    45.738] (II) LoadModule: "scfb"
[    45.738] (II) Loading /usr/local/lib/xorg/modules/drivers/scfb_drv.so
[    45.738] (II) Module scfb: vendor="X.Org Foundation"
[    45.738]    compiled for 1.21.1.14, module version = 0.0.5
[    45.738]    ABI class: X.Org Video Driver, version 25.2
[    45.738] (II) LoadModule: "vesa"
[    45.738] (II) Loading /usr/local/lib/xorg/modules/drivers/vesa_drv.so
[    45.738] (II) Module vesa: vendor="X.Org Foundation"
[    45.738]    compiled for 1.21.1.14, module version = 2.5.0
[    45.738]    Module class: X.Org Video Driver
[    45.738]    ABI class: X.Org Video Driver, version 25.2
[    45.738] (II) modesetting: Driver for Modesetting Kernel Drivers: kms
[    45.738] (II) scfb: driver for wsdisplay framebuffer: scfb
[    45.738] (II) VESA: driver for VESA chipsets: vesa
[    45.739] (--) Using syscons driver with X support (version 2.0)
[    45.739] (--) using VT number 9

[    45.844] (EE) open /dev/dri/card0: No such file or directory
[    45.844] (WW) Falling back to old probe method for modesetting
[    45.844] (EE) open /dev/dri/card0: No such file or directory
[    45.844] (WW) Falling back to old probe method for scfb
[    45.844] scfb trace: probe start
[    45.844] scfb trace: probe done
[    45.844] (WW) VGA arbiter: cannot open kernel arbiter, no multi-card support
[    45.844] (EE) Screen 0 deleted because of no matching config section.
[    45.844] (II) UnloadModule: "modesetting"
[    45.844] (II) Loading sub module "vbe"
[    45.844] (II) LoadModule: "vbe"
[    45.844] (II) Loading /usr/local/lib/xorg/modules/libint10.so
[    45.844] (II) Module int10: vendor="X.Org Foundation"
[    45.844]    compiled for 1.21.1.14, module version = 1.0.0
[    45.844]    ABI class: X.Org Video Driver, version 25.2
[    45.844] (II) Loading sub module "int10"
[    45.844] (II) LoadModule: "int10"
[    45.844] (II) Loading /usr/local/lib/xorg/modules/libint10.so
[    45.844] (II) Module int10: vendor="X.Org Foundation"
[    45.844]    compiled for 1.21.1.14, module version = 1.0.0
[    45.844]    ABI class: X.Org Video Driver, version 25.2
[    45.844] (II) VESA(0): initializing int10
[    45.844] (EE) VESA(0): V_BIOS address 0x0 out of range
[    45.844] (II) UnloadModule: "vesa"
[    45.844] (II) UnloadSubModule: "int10"
[    45.844] (II) Unloading int10
[    45.844] (II) UnloadSubModule: "int10"
[    45.844] (II) Unloading int10
[    45.844] (EE) Screen(s) found, but none have a usable configuration.
[    45.844] (EE)
Fatal server error:
[    45.844] (EE) no screens found(EE)
[    45.844] (EE)
Please consult the The X.Org Foundation support
         at http://wiki.x.org
 for help.
[    45.844] (EE) Please also check the log file at "/var/log/Xorg.0.log" for additional information.
[    45.844] (EE)
[    45.949] (EE) Server terminated with error (1). Closing log file.
 
Hmm, maybe you need xf86-video-intel package after removing all xorg configurations. Also I didn't mean to add root to video group but normal user if it hasn't added already.
 
Hmm, maybe you need xf86-video-intel package after removing all xorg configurations. Also I didn't mean to add root to video group but normal user if it hasn't added already.
I believe that 'slim' is run as root user. But I add user 'ogogon' into 'video' group.

Code:
[    18.709] (EE) intel(0): No modes.
[    18.709] (II) UnloadModule: "intel"
[    18.709] (EE) Screen(s) found, but none have a usable configuration.
[    18.709] (EE)
Fatal server error:
[    18.709] (EE) no screens found(EE)
[    18.709] (EE)
Please consult the The X.Org Foundation support
         at http://wiki.x.org
 for help.
[    18.709] (EE) Please also check the log file at "/var/log/Xorg.0.log" for additional information.
[    18.709] (EE)
[    18.815] (EE) Server terminated with error (1). Closing log file.
 
You're not running X as root, are you? What is the output of the command
Bash:
pciconf -vl | grep -A3 vga
?
How many video cards are in your computer? If there is more than one, which one is used ? Have you set the BusID correctly in X configuration ?
i.e. :
Code:
Section "Device"
    Identifier     "Device0"
    Driver         "modesetting"
    BusID          "PCI:x:y:z"
EndSection
 
You're not running X as root, are you? What is the output of the command
Bash:
pciconf -vl | grep -A3 vga
?
Code:
ogogon@test# pciconf -vl | grep -A3 vga
vgapci0@pci0:0:2:0:    class=0x030000 rev=0x03 hdr=0x00 vendor=0x8086 device=0x9ba8 subvendor=0x1462 subdevice=0x7d22
    vendor     = 'Intel Corporation'
    device     = 'CometLake-S GT1 [UHD Graphics 610]'
    class      = display
ogogon@test#

How many video cards are in your computer? If there is more than one, which one is used ? Have you set the BusID correctly in X configuration ?
i.e. :
Code:
Section "Device"
    Identifier     "Device0"
    Driver         "modesetting"
    BusID          "PCI:x:y:z"
EndSection
There is only one video card.
Here is a section from the config:
Code:
Section "Device"
        ### Available Driver options are:-
        ### Values: <i>: integer, <f>: float, <bool>: "True"/"False",
        ### <string>: "String", <freq>: "<f> Hz/kHz/MHz",
        ### <percent>: "<f>%"
        ### [arg]: arg optional
        #Option     "Accel"                     # [<bool>]
        #Option     "AccelMethod"               # <str>
        #Option     "Backlight"                 # <str>
        #Option     "CustomEDID"                # <str>
        #Option     "DRI"                       # <str>
        #Option     "Present"                   # [<bool>]
        #Option     "ColorKey"                  # <i>
        #Option     "VideoKey"                  # <i>
        #Option     "Tiling"                    # [<bool>]
        #Option     "LinearFramebuffer"         # [<bool>]
        #Option     "HWRotation"                # [<bool>]
        #Option     "VSync"                     # [<bool>]
        #Option     "PageFlip"                  # [<bool>]
        #Option     "SwapbuffersWait"           # [<bool>]
        #Option     "TripleBuffer"              # [<bool>]
        #Option     "XvPreferOverlay"           # [<bool>]
        #Option     "HotPlug"                   # [<bool>]
        #Option     "ReprobeOutputs"            # [<bool>]
        #Option     "XvMC"                      # [<bool>]
        #Option     "ZaphodHeads"               # <str>
        #Option     "VirtualHeads"              # <i>
        #Option     "TearFree"                  # [<bool>]
        #Option     "PerCrtcPixmaps"            # [<bool>]
        #Option     "FallbackDebug"             # [<bool>]
        #Option     "DebugFlushBatches"         # [<bool>]
        #Option     "DebugFlushCaches"          # [<bool>]
        #Option     "DebugWait"                 # [<bool>]
        #Option     "BufferCache"               # [<bool>]
        Identifier  "Card0"
        Driver      "intel"
        BusID       "PCI:0:2:0"
EndSection
 
Have you tried replacing
Code:
Driver "intel"
with
Code:
Driver "modesetting"
?
Code:
[    17.397] (**) ModulePath set to "/usr/local/lib/xorg/modules"
[    17.397] (WW) Hotplugging is on, devices using drivers 'kbd', 'mouse' or 'vmmouse' will be disabled.
[    17.397] (WW) Disabling Mouse0
[    17.397] (WW) Disabling Keyboard0
[    17.397] (II) Module ABI versions:
[    17.397]    X.Org ANSI C Emulation: 0.4
[    17.397]    X.Org Video Driver: 25.2
[    17.397]    X.Org XInput driver : 24.4
[    17.397]    X.Org Server Extension : 10.0
[    17.401] (--) PCI:*(0@0:2:0) 8086:9ba8:1462:7d22 rev 3, Mem @ 0xa0000000/16777216, 0x90000000/268435456, I/O @ 0x00003000/64, BIOS @ 0x????????/65536
[    17.401] (II) "glx" will be loaded. This was enabled by default and also specified in the config file.
[    17.401] (II) LoadModule: "glx"
[    17.402] (II) Loading /usr/local/lib/xorg/modules/extensions/libglx.so
[    17.408] (II) Module glx: vendor="X.Org Foundation"
[    17.408]    compiled for 1.21.1.14, module version = 1.0.0
[    17.408]    ABI class: X.Org Server Extension, version 10.0
[    17.408] (II) LoadModule: "modesetting"
[    17.408] (II) Loading /usr/local/lib/xorg/modules/drivers/modesetting_drv.so
[    17.410] (II) Module modesetting: vendor="X.Org Foundation"
[    17.410]    compiled for 1.21.1.14, module version = 1.21.1
[    17.410]    Module class: X.Org Video Driver
[    17.410]    ABI class: X.Org Video Driver, version 25.2
[    17.410] (II) modesetting: Driver for Modesetting Kernel Drivers: kms
[    17.410] (--) Using syscons driver with X support (version 2.0)
[    17.410] (++) using VT number 9

[    17.516] (EE) open /dev/dri/card0: No such file or directory
[    17.516] (WW) Falling back to old probe method for modesetting
[    17.516] (EE) open /dev/dri/card0: No such file or directory
[    17.516] (WW) VGA arbiter: cannot open kernel arbiter, no multi-card support
[    17.516] (EE) Screen 0 deleted because of no matching config section.
[    17.516] (II) UnloadModule: "modesetting"
[    17.516] (EE) Device(s) detected, but none match those in the config file.
[    17.516] (EE)
Fatal server error:
[    17.516] (EE) no screens found(EE)
[    17.516] (EE)
Please consult the The X.Org Foundation support
         at http://wiki.x.org
 for help.
[    17.516] (EE) Please also check the log file at "/var/log/Xorg.0.log" for additional information.
[    17.516] (EE)
[    17.620] (EE) Server terminated with error (1). Closing log file.
 
a quick search yields this:

255040 – Xorg sever terminates with error on 13.0-RELEASE

 
Problem configuring X.org

Colleagues, please tell me what the problem is.

I am using a computer with an MSI MS-7D22 v.1.2 motherboard and an Intel Pentium Gold G6405 (Intel UHD Graphics 610) processor.
I installed FreeBSD on the computer, then Xorg, Slim and Xfce4.

When booting the computer and issuing the startx command, the following appears in the logs:

[ 22.251] (EE) intel(0): No modes.
[ 22.251] (II) UnloadModule: "intel"
[ 22.251] (EE) Screen(s) found, but none have a usable configuration.
[ 22.251] (EE)
Fatal server error:
[ 22.251] (EE) no screens found(EE)
[ 22.251] (EE)
Please consult the X.Org Foundation support
at http://wiki.x.org
for help.
[ 22.251] (EE) Please also check the log file at "/var/log/Xorg.0.log" for additional information.
[ 22.251] (EE)
[ 22.357] (EE) Server terminated with error (1). Closing log file.


What am I doing wrong? How can I solve my problem?

Thank you for your advice,
Ogogon.
hi , ogogon :
you don't need confiure x.org first.
drm-515-kmod-5.15.160.1401000_2 DRM drivers modules
drm-61-kmod-6.1.92.1401000_3 DRM drivers modules
try to install 515,61 kmod for your intel graphic. your card was new .
 
[ 45.844] (EE) open /dev/dri/card0: No such file or directory
If drm driver is actually running (not only simply loaded), this cannot be happen. Are you sure /dev/dri/card0 (would be a symlink to /dev/drm/[something]) actually exist and dated the time AFTER you started your computer?

And
drm-510-kmod-5.10.163.1304000_10 DRM drivers modules
suggests graphics/drm-510-kmod is built for 13.4-Release.
Are you sure you're running 13.4, not 13.3 or before, and not 14.x?

If you're running 13.3 or before, possibly any of prerequisite codes are missing or not updated on your base, thus, drm driver cannot work correctly. As 13.3 is already EoL'ed, if you installed 13.3 or older, update it at least to 13.4 (or to 14.2) first.

Note that 14.2 defaults drm-61-kmod (but some person states drm-515-kmod works better) and 14.1 reaches its EoL soon (Mar.31, 2025).
 
hi , ogogon :
you don't need confiure x.org first.
drm-515-kmod-5.15.160.1401000_2 DRM drivers modules
drm-61-kmod-6.1.92.1401000_3 DRM drivers modules
try to install 515,61 kmod for your intel graphic. your card was new .
Code:
ogogon@test:/usr/ports/graphics/drm-515-kmod# make
===>  drm-515-kmod-5.15.160.1304000_2 not supported on older than 14.0, no
kernel support.
*** Error code 1

Stop.
make: stopped in /usr/ports/graphics/drm-515-kmod

ogogon@test:/usr/ports/graphics/drm-515-kmod#
Code:
ogogon@test:/usr/ports/graphics/drm-61-kmod# make
===>  drm-61-kmod-6.1.92.1304000_3 not supported on older than 14-STABLE
1400508, no kernel support.
*** Error code 1

Stop.
make: stopped in /usr/ports/graphics/drm-61-kmod
ogogon@test:/usr/ports/graphics/drm-61-kmod#
 
IAre you sure /dev/dri/card0 (would be a symlink to /dev/drm/[something]) actually exist and dated the time AFTER you started your computer?
Unfortunately, I sure what dev/dri/card0 actually not exist.
Code:
ogogon@test:~ % ls /dev/dri
ls: /dev/dri: No such file or directory
ogogon@test:~ % ls /dev/drm
ls: /dev/drm: No such file or directory
ogogon@test:~ %

Are you sure you're running 13.4, not 13.3 or before, and not 14.x?
Code:
ogogon@test:~ % uname -a
FreeBSD test 13.4-RELEASE FreeBSD 13.4-RELEASE releng/13.4-n258257-58066db597be GENERIC amd64
ogogon@test:~ %
 
I believed that the FreeBSD, when loading, launches X.org and Slim from the root.
I believe that slim runs as service by root and it launches xorg with your normal user.

How do you load the drm module? is there anything relevant in loader.conf? what do you have in rc.conf?
Indeed, # dmesg | grep drm should show something to make sure drm module is loaded successfully.
 
Back
Top