Solved Thinkpad x1 carbon gen9 failed to start x server using intel driver

Hi guys, I'm new to the BSD system. But I have experience with arch and dabien-based Linux before.
I was trying to get DWM running on my x1 carbon gen 9 (i5 version) machine. I've tried both 13.1 release 13.2 release and 13.2 stable. And by following the official document on graphic settings.

I installed drm-kmod and set kld_list=“i915kms”.
Set xorg.conf.d/20-intel.conf to driver intel.

And what I get as result is could not open module intel and no drivers available plus no screen found.
But if I change the driver to scfb it worked. Slowly but worked.
Anyone is kind enough to tell me what's going wrong here?

Code:
#/var/log/Xorg.0.log
[  1812.776]
X.Org X Server 1.21.1.8
X Protocol Version 11, Revision 0
[  1812.776] Current Operating System: FreeBSD Winson 13.2-STABLE FreeBSD 13.2-STABLE stable/13-n254954-d94a88d249b0 GENERIC amd64
[  1812.776]
[  1812.776] Current version of pixman: 0.42.2
[  1812.776]     Before reporting problems, check http://wiki.x.org
    to make sure that you have the latest version.
[  1812.776] Markers: (--) probed, (**) from config file, (==) default setting,
    (++) from command line, (!!) notice, (II) informational,
    (WW) warning, (EE) error, (NI) not implemented, (??) unknown.
[  1812.776] (==) Log file: "/var/log/Xorg.0.log", Time: Wed Apr 12 22:29:30 2023
[  1812.776] (==) Using config directory: "/usr/local/etc/X11/xorg.conf.d"
[  1812.776] (==) Using system config directory "/usr/local/share/X11/xorg.conf.d"
[  1812.776] (==) No Layout section.  Using the first Screen section.
[  1812.776] (==) No screen section available. Using defaults.
[  1812.776] (**) |-->Screen "Default Screen Section" (0)
[  1812.776] (**) |   |-->Monitor "<default monitor>"
[  1812.776] (==) No device specified for screen "Default Screen Section".
    Using the first device section listed.
[  1812.776] (**) |   |-->Device "Card0"
[  1812.776] (==) No monitor specified for screen "Default Screen Section".
    Using a default monitor configuration.
[  1812.776] (==) Automatically adding devices
[  1812.776] (==) Automatically enabling devices
[  1812.776] (==) Not automatically adding GPU devices
[  1812.776] (==) Automatically binding GPU devices
[  1812.776] (==) Max clients allowed: 256, resource mask: 0x1fffff
[  1812.776] (==) 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
[  1812.776] (==) ModulePath set to "/usr/local/lib/xorg/modules"
[  1812.776] (II) The server relies on udev to provide the list of input devices.
    If no devices become available, reconfigure udev or disable AutoAddDevices.
[  1812.776] (II) Module ABI versions:
[  1812.776]     X.Org ANSI C Emulation: 0.4
[  1812.776]     X.Org Video Driver: 25.2
[  1812.776]     X.Org XInput driver : 24.4
[  1812.776]     X.Org Server Extension : 10.0
[  1812.776] (--) PCI:*(0@0:2:0) 8086:9a49:17aa:22d5 rev 1, Mem @ 0x603c000000/16777216, 0x4000000000/268435456, I/O @ 0x00003000/64, BIOS @ 0x????????/65536
[  1812.776] (II) LoadModule: "glx"
[  1812.776] (II) Loading /usr/local/lib/xorg/modules/extensions/libglx.so
[  1812.777] (II) Module glx: vendor="X.Org Foundation"
[  1812.777]     compiled for 1.21.1.8, module version = 1.0.0
[  1812.777]     ABI class: X.Org Server Extension, version 10.0
[  1812.777] (II) LoadModule: "intel"
[  1812.777] (WW) Warning, couldn't open module intel
[  1812.777] (EE) Failed to load module "intel" (module does not exist, 0)
[  1812.777] (EE) No drivers available.
[  1812.777] (EE)
Fatal server error:
[  1812.777] (EE) no screens found(EE)
[  1812.777] (EE)
Please consult the The X.Org Foundation support
     at http://wiki.x.org
 for help.
[  1812.777] (EE) Please also check the log file at "/var/log/Xorg.0.log" for additional information.
[  1812.777] (EE)
[  1812.777] (EE) Server terminated with error (1). Closing log file.

Code:
#/etc/rc.conf
sendmail_enable="NONE"
hostname="Winson"
keymap="colemak.acc.kbd"
local_unbound_enable="YES"
sshd_enable="YES"
moused_enable="YES"
ntpdate_enable="YES"
ntpd_enable="YES"
powerd_enable="YES"
# Set dumpdev to "AUTO" to enable crash dumps, "NO" to disable
dumpdev="AUTO"
zfs_enable="YES"
kld_list="i915kms fusefs if_iwlwifi"

wlans_iwlwifi0="wlan0"
wlandebug_wlan0="+state +crypto +node +auth +assoc +dot1xsm +wpa"
ifconfig_wlan0="WPA SYNCDHCP"

Code:
#/usr/local/etc/X11/xorg.conf.d/20-intel.conf
Section "Device"
    Identifier "Card0"
    Driver "intel"
    BusID "pci0:0:2:0"
EndSection
 
Set xorg.conf.d/20-intel.conf to driver intel.
This actually uses the driver from x11-drivers/xf86-video-intel, which you probably don't need. Just remove it completely, it should default to the modesetting(4) driver if the DRM kernel module is loaded (and working).

But if I change the driver to scfb it worked. Slowly but worked.
Yeah, scfb(4) is a non-accelerated driver, it almost always works but it's slow as hell. Use this if you can't get any of the hardware accelerated drivers working.
 
This actually uses the driver from x11-drivers/xf86-video-intel, which you probably don't need. Just remove it completely, it should default to the modesetting(4) driver if the DRM kernel module is loaded (and working).


Yeah, scfb(4) is a non-accelerated driver, it almost always works but it's slow as hell. Use this if you can't get any of the hardware accelerated drivers working.

Thank you Dice! I try what you suggested, by removing the 20-intel.conf file, it cannot start

Code:
[  2777.669] (EE) open /dev/dri/card0: No such file or directory
[  2777.669] (WW) Falling back to old probe method for modesetting
[  2777.669] (EE) open /dev/dri/card0: No such file or directory
[  2777.669] (WW) Falling back to old probe method for scfb
[  2777.669] scfb trace: probe start
[  2777.669] (II) scfb(1): using default device
[  2777.669] scfb trace: probe done
[  2777.669] (WW) VGA arbiter: cannot open kernel arbiter, no multi-card support
[  2777.669] (EE) Screen 0 deleted because of no matching config section.
[  2777.669] (II) UnloadModule: "modesetting"
[  2777.669] (EE)
Fatal server error:
[  2777.669] (EE) Cannot run in framebuffer mode. Please specify busIDs        for all framebuffer devices
[  2777.669] (EE)
[  2777.669] (EE)
Please consult the The X.Org Foundation support
     at http://wiki.x.org
 for help.
[  2777.669] (EE) Please also check the log file at "/var/log/Xorg.0.log" for additional information.
[  2777.669] (EE)
[  2777.670] (EE) Server terminated with error (1). Closing log file.

I then guess what you mean is remove the line specify driver, so I tried that as well, this is my log

Code:
[  2812.573]
X.Org X Server 1.21.1.8
X Protocol Version 11, Revision 0
[  2812.573] Current Operating System: FreeBSD Winson 13.2-STABLE FreeBSD 13.2-STABLE stable/13-n254954-d94a88d249b0 GENERIC amd64
[  2812.573]
[  2812.573] Current version of pixman: 0.42.2
[  2812.574]     Before reporting problems, check http://wiki.x.org
    to make sure that you have the latest version.
[  2812.574] Markers: (--) probed, (**) from config file, (==) default setting,
    (++) from command line, (!!) notice, (II) informational,
    (WW) warning, (EE) error, (NI) not implemented, (??) unknown.
[  2812.574] (==) Log file: "/var/log/Xorg.0.log", Time: Wed Apr 12 23:54:08 2023
[  2812.574] (==) Using config directory: "/usr/local/etc/X11/xorg.conf.d"
[  2812.574] (==) Using system config directory "/usr/local/share/X11/xorg.conf.d"
[  2812.574] (==) No Layout section.  Using the first Screen section.
[  2812.574] (==) No screen section available. Using defaults.
[  2812.574] (**) |-->Screen "Default Screen Section" (0)
[  2812.574] (**) |   |-->Monitor "<default monitor>"
[  2812.575] (==) No device specified for screen "Default Screen Section".
    Using the first device section listed.
[  2812.575] (**) |   |-->Device "Card0"
[  2812.575] (==) No monitor specified for screen "Default Screen Section".
    Using a default monitor configuration.
[  2812.575] (==) Automatically adding devices
[  2812.575] (==) Automatically enabling devices
[  2812.575] (==) Not automatically adding GPU devices
[  2812.575] (==) Automatically binding GPU devices
[  2812.575] (==) Max clients allowed: 256, resource mask: 0x1fffff
[  2812.575] (==) 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
[  2812.575] (==) ModulePath set to "/usr/local/lib/xorg/modules"
[  2812.575] (II) The server relies on udev to provide the list of input devices.
    If no devices become available, reconfigure udev or disable AutoAddDevices.
[  2812.575] (II) Module ABI versions:
[  2812.575]     X.Org ANSI C Emulation: 0.4
[  2812.575]     X.Org Video Driver: 25.2
[  2812.575]     X.Org XInput driver : 24.4
[  2812.575]     X.Org Server Extension : 10.0
[  2812.575] (--) PCI:*(0@0:2:0) 8086:9a49:17aa:22d5 rev 1, Mem @ 0x603c000000/16777216, 0x4000000000/268435456, I/O @ 0x00003000/64, BIOS @ 0x????????/65536
[  2812.575] (II) LoadModule: "glx"
[  2812.575] (II) Loading /usr/local/lib/xorg/modules/extensions/libglx.so
[  2812.576] (II) Module glx: vendor="X.Org Foundation"
[  2812.576]     compiled for 1.21.1.8, module version = 1.0.0
[  2812.576]     ABI class: X.Org Server Extension, version 10.0
[  2812.576] (==) Matched intel as autoconfigured driver 0
[  2812.576] (==) Matched modesetting as autoconfigured driver 1
[  2812.576] (==) Matched scfb as autoconfigured driver 2
[  2812.576] (==) Matched vesa as autoconfigured driver 3
[  2812.576] (==) Assigned the driver to the xf86ConfigLayout
[  2812.576] (II) LoadModule: "intel"
[  2812.576] (WW) Warning, couldn't open module intel
[  2812.576] (EE) Failed to load module "intel" (module does not exist, 0)
[  2812.576] (II) LoadModule: "modesetting"
[  2812.576] (II) Loading /usr/local/lib/xorg/modules/drivers/modesetting_drv.so
[  2812.577] (II) Module modesetting: vendor="X.Org Foundation"
[  2812.577]     compiled for 1.21.1.8, module version = 1.21.1
[  2812.577]     Module class: X.Org Video Driver
[  2812.577]     ABI class: X.Org Video Driver, version 25.2
[  2812.577] (II) LoadModule: "scfb"
[  2812.577] (II) Loading /usr/local/lib/xorg/modules/drivers/scfb_drv.so
[  2812.577] (II) Module scfb: vendor="X.Org Foundation"
[  2812.577]     compiled for 1.21.1.8, module version = 0.0.5
[  2812.577]     ABI class: X.Org Video Driver, version 25.2
[  2812.577] (II) LoadModule: "vesa"
[  2812.577] (II) Loading /usr/local/lib/xorg/modules/drivers/vesa_drv.so
[  2812.577] (II) Module vesa: vendor="X.Org Foundation"
[  2812.577]     compiled for 1.21.1.8, module version = 2.5.0
[  2812.577]     Module class: X.Org Video Driver
[  2812.577]     ABI class: X.Org Video Driver, version 25.2
[  2812.577] (II) modesetting: Driver for Modesetting Kernel Drivers: kms
[  2812.577] (II) scfb: driver for wsdisplay framebuffer: scfb
[  2812.577] (II) VESA: driver for VESA chipsets: vesa
[  2812.577] (--) Using syscons driver with X support (version 2.0)
[  2812.577] (--) using VT number 9

[  2812.578] (WW) Falling back to old probe method for modesetting
[  2812.578] (EE) open /dev/dri/card0: No such file or directory
[  2812.578] (WW) Falling back to old probe method for scfb
[  2812.578] scfb trace: probe start
[  2812.578] (II) scfb(0): using default device
[  2812.578] scfb trace: probe done
[  2812.578] (WW) VGA arbiter: cannot open kernel arbiter, no multi-card support
[  2812.578] scfb: PreInit 0
[  2812.578] (II) scfb(0): Using: depth (32),    width (3840),     height (2400)
[  2812.578] (II) scfb(0): Creating default Display subsection in Screen section
    "Default Screen Section" for depth/fbbpp 24/32
[  2812.578] (==) scfb(0): Depth 24, (==) framebuffer bpp 32
[  2812.578] (==) scfb(0): RGB weight 888
[  2812.578] (==) scfb(0): Default visual is TrueColor
[  2812.578] (==) scfb(0): Using gamma correction (1.0, 1.0, 1.0)
[  2812.578] (II) scfb(0): Vidmem: 36000k
[  2812.578] (==) scfb(0): DPI set to (96, 96)
[  2812.578] (**) scfb(0): Using "Shadow Framebuffer"
[  2812.578] (II) Loading sub module "shadow"
[  2812.578] (II) LoadModule: "shadow"
[  2812.578] (II) Loading /usr/local/lib/xorg/modules/libshadow.so
[  2812.578] (II) Module shadow: vendor="X.Org Foundation"
[  2812.578]     compiled for 1.21.1.8, module version = 1.1.0
[  2812.578]     ABI class: X.Org ANSI C Emulation, version 0.4
[  2812.578] (II) Loading sub module "fb"
[  2812.578] (II) LoadModule: "fb"
[  2812.578] (II) Module "fb" already built-in
[  2812.578] scfb: PreInit done
[  2812.578] (II) UnloadModule: "modesetting"
[  2812.578] (II) Unloading modesetting
[  2812.578] (II) UnloadModule: "vesa"
[  2812.578] (II) Unloading vesa
[  2812.578] scfb: ScfbScreenInit 0
[  2812.578]     bitsPerPixel=32, depth=24, defaultVisual=TrueColor
    mask: ff0000,ff00,ff, offset: 16,8,0
[  2812.579] mmap returns: addr 0x83fc00000 len 0x2328000, fd 11, off 0
[  2812.579] scfb: ScfbSave 0
[  2812.579] scfb: ScfbSave done
[  2812.579] (==) scfb(0): Backing store enabled
[  2812.579] scfb: ScfbScreenInit done
[  2812.579] (II) Initializing extension Generic Event Extension
[  2812.579] (II) Initializing extension SHAPE
[  2812.579] (II) Initializing extension MIT-SHM
[  2812.579] (II) Initializing extension XInputExtension
[  2812.579] (II) Initializing extension XTEST
[  2812.580] (II) Initializing extension BIG-REQUESTS
[  2812.580] (II) Initializing extension SYNC
[  2812.580] (II) Initializing extension XKEYBOARD
[  2812.580] (II) Initializing extension XC-MISC
[  2812.580] (II) Initializing extension SECURITY
[  2812.580] (II) Initializing extension XFIXES
[  2812.581] (II) Initializing extension RENDER
[  2812.581] (II) Initializing extension RANDR
[  2812.581] (II) Initializing extension COMPOSITE
[  2812.581] (II) Initializing extension DAMAGE
[  2812.581] (II) Initializing extension MIT-SCREEN-SAVER
[  2812.581] (II) Initializing extension DOUBLE-BUFFER
[  2812.581] (II) Initializing extension RECORD
[  2812.582] (II) Initializing extension DPMS
[  2812.582] (II) Initializing extension Present
[  2812.582] (II) Initializing extension DRI3
[  2812.582] (II) Initializing extension X-Resource
[  2812.582] (II) Initializing extension XVideo
[  2812.582] (II) Initializing extension XVideo-MotionCompensation
[  2812.582] (II) Initializing extension GLX
[  2812.582] (II) AIGLX: Screen 0 is not DRI2 capable
[  2812.601] (II) IGLX: Loaded and initialized swrast
[  2812.601] (II) GLX: Initialized DRISWRAST GL provider for screen 0
[  2812.601] (II) Initializing extension XFree86-VidModeExtension
[  2812.601] (II) Initializing extension XFree86-DGA
[  2812.601] (II) Initializing extension XFree86-DRI
[  2812.601] (II) Initializing extension DRI2
[  2812.672] (II) config/udev: Adding input device System mouse (/dev/input/event0)
[  2812.672] (**) System mouse: Applying InputClass "libinput pointer catchall"
[  2812.672] (II) LoadModule: "libinput"
[  2812.672] (II) Loading /usr/local/lib/xorg/modules/input/libinput_drv.so
[  2812.673] (II) Module libinput: vendor="X.Org Foundation"
[  2812.673]     compiled for 1.21.1.8, module version = 1.3.0
[  2812.673]     Module class: X.Org XInput Driver
[  2812.673]     ABI class: X.Org XInput driver, version 24.4
[  2812.673] (II) Using input driver 'libinput' for 'System mouse'
[  2812.673] (**) System mouse: always reports core events
[  2812.673] (**) Option "Device" "/dev/input/event0"
[  2812.675] (II) event0  - System mouse: is tagged by udev as: Mouse
[  2812.675] (II) event0  - System mouse: device is a pointer
[  2812.676] (II) event0  - System mouse: device removed
[  2812.676] (II) libinput: System mouse: Step value 0 was provided, libinput Fallback acceleration function is used.
[  2812.676] (II) libinput: System mouse: Step value 0 was provided, libinput Fallback acceleration function is used.
[  2812.676] (II) libinput: System mouse: Step value 0 was provided, libinput Fallback acceleration function is used.
[  2812.676] (**) Option "config_info" "udev:/dev/input/event0"
[  2812.676] (II) XINPUT: Adding extended input device "System mouse" (type: MOUSE, id 6)
[  2812.676] (**) Option "AccelerationScheme" "none"
[  2812.676] (**) System mouse: (accel) selected scheme none/0
[  2812.676] (**) System mouse: (accel) acceleration factor: 2.000
[  2812.676] (**) System mouse: (accel) acceleration threshold: 4
[  2812.676] (II) event0  - System mouse: is tagged by udev as: Mouse
[  2812.677] (II) event0  - System mouse: device is a pointer
[  2812.677] (II) config/udev: Adding input device System keyboard multiplexer (/dev/input/event1)
[  2812.677] (**) System keyboard multiplexer: Applying InputClass "Evdev keyboard"
[  2812.677] (**) System keyboard multiplexer: Applying InputClass "libinput keyboard catchall"
[  2812.677] (**) System keyboard multiplexer: Applying InputClass "system-keyboard"
[  2812.677] (II) Using input driver 'libinput' for 'System keyboard multiplexer'
[  2812.677] (**) System keyboard multiplexer: always reports core events
[  2812.677] (**) Option "Device" "/dev/input/event1"
[  2812.678] (II) event1  - System keyboard multiplexer: is tagged by udev as: Keyboard
[  2812.678] (II) event1  - System keyboard multiplexer: device is a keyboard
[  2812.679] (II) event1  - System keyboard multiplexer: device removed
[  2812.679] (**) Option "config_info" "udev:/dev/input/event1"
[  2812.679] (II) XINPUT: Adding extended input device "System keyboard multiplexer" (type: KEYBOARD, id 7)
[  2812.679] (**) Option "xkb_rules" "evdev"
[  2812.679] (**) Option "xkb_layout" "us"
[  2812.679] (**) Option "xkb_variant" "colemak"
[  2812.679] (**) Option "xkb_options" "caps:swapescape"
[  2812.728] (II) event1  - System keyboard multiplexer: is tagged by udev as: Keyboard
[  2812.728] (II) event1  - System keyboard multiplexer: device is a keyboard
[  2812.729] (II) config/udev: Adding input device Sleep Button (/dev/input/event2)
[  2812.729] (**) Sleep Button: Applying InputClass "Evdev keyboard"
[  2812.729] (**) Sleep Button: Applying InputClass "libinput keyboard catchall"
[  2812.729] (**) Sleep Button: Applying InputClass "system-keyboard"
[  2812.729] (II) Using input driver 'libinput' for 'Sleep Button'
[  2812.729] (**) Sleep Button: always reports core events
[  2812.729] (**) Option "Device" "/dev/input/event2"
[  2812.730] (II) event2  - Sleep Button: is tagged by udev as: Keyboard
[  2812.730] (II) event2  - Sleep Button: device is a keyboard
[  2812.730] (II) event2  - Sleep Button: device removed
[  2812.730] (**) Option "config_info" "udev:/dev/input/event2"
[  2812.730] (II) XINPUT: Adding extended input device "Sleep Button" (type: KEYBOARD, id 8)
[  2812.730] (**) Option "xkb_rules" "evdev"
[  2812.730] (**) Option "xkb_layout" "us"
[  2812.730] (**) Option "xkb_variant" "colemak"
[  2812.730] (**) Option "xkb_options" "caps:swapescape"
[  2812.731] (II) event2  - Sleep Button: is tagged by udev as: Keyboard
[  2812.731] (II) event2  - Sleep Button: device is a keyboard
[  2812.732] (II) config/udev: Adding input device Control Method Lid Switch (/dev/input/event3)
[  2812.732] (II) No input driver specified, ignoring this device.
[  2812.732] (II) This device may have been added with another device file.
[  2812.732] (II) config/udev: Adding input device Power Button (/dev/input/event4)
[  2812.732] (**) Power Button: Applying InputClass "Evdev keyboard"
[  2812.732] (**) Power Button: Applying InputClass "libinput keyboard catchall"
[  2812.732] (**) Power Button: Applying InputClass "system-keyboard"
[  2812.732] (II) Using input driver 'libinput' for 'Power Button'
[  2812.732] (**) Power Button: always reports core events
[  2812.732] (**) Option "Device" "/dev/input/event4"
[  2812.732] (II) event4  - Power Button: is tagged by udev as: Keyboard
[  2812.733] (II) event4  - Power Button: device is a keyboard
[  2812.733] (II) event4  - Power Button: device removed
[  2812.733] (**) Option "config_info" "udev:/dev/input/event4"
[  2812.733] (II) XINPUT: Adding extended input device "Power Button" (type: KEYBOARD, id 9)
[  2812.733] (**) Option "xkb_rules" "evdev"
[  2812.733] (**) Option "xkb_layout" "us"
[  2812.733] (**) Option "xkb_variant" "colemak"
[  2812.733] (**) Option "xkb_options" "caps:swapescape"
[  2812.734] (II) event4  - Power Button: is tagged by udev as: Keyboard
[  2812.734] (II) event4  - Power Button: device is a keyboard
[  2812.734] (II) config/udev: Adding input device AT keyboard (/dev/input/event5)
[  2812.734] (**) AT keyboard: Applying InputClass "Evdev keyboard"
[  2812.734] (**) AT keyboard: Applying InputClass "libinput keyboard catchall"
[  2812.734] (**) AT keyboard: Applying InputClass "system-keyboard"
[  2812.734] (II) Using input driver 'libinput' for 'AT keyboard'
[  2812.734] (**) AT keyboard: always reports core events
[  2812.734] (**) Option "Device" "/dev/input/event5"
[  2812.735] (II) event5  - AT keyboard: is tagged by udev as: Keyboard
[  2812.735] (II) event5  - AT keyboard: device is a keyboard
[  2812.737] (II) event5  - AT keyboard: device removed
[  2812.737] (**) Option "config_info" "udev:/dev/input/event5"
[  2812.737] (II) XINPUT: Adding extended input device "AT keyboard" (type: KEYBOARD, id 10)
[  2812.737] (**) Option "xkb_rules" "evdev"
[  2812.737] (**) Option "xkb_layout" "us"
[  2812.737] (**) Option "xkb_variant" "colemak"
[  2812.737] (**) Option "xkb_options" "caps:swapescape"
[  2812.737] (II) event5  - AT keyboard: is tagged by udev as: Keyboard
[  2812.738] (II) event5  - AT keyboard: device is a keyboard
[  2812.739] (II) config/udev: Adding input device Generic PS/2 mouse (/dev/input/event6)
[  2812.739] (**) Generic PS/2 mouse: Applying InputClass "libinput pointer catchall"
[  2812.739] (II) Using input driver 'libinput' for 'Generic PS/2 mouse'
[  2812.739] (**) Generic PS/2 mouse: always reports core events
[  2812.739] (**) Option "Device" "/dev/input/event6"
[  2812.740] (II) event6  - Generic PS/2 mouse: is tagged by udev as: Mouse
[  2812.740] (II) event6  - Generic PS/2 mouse: device is a pointer
[  2812.741] (II) event6  - Generic PS/2 mouse: device removed
[  2812.741] (II) libinput: Generic PS/2 mouse: Step value 0 was provided, libinput Fallback acceleration function is used.
[  2812.741] (II) libinput: Generic PS/2 mouse: Step value 0 was provided, libinput Fallback acceleration function is used.
[  2812.741] (II) libinput: Generic PS/2 mouse: Step value 0 was provided, libinput Fallback acceleration function is used.
[  2812.741] (**) Option "config_info" "udev:/dev/input/event6"
[  2812.741] (II) XINPUT: Adding extended input device "Generic PS/2 mouse" (type: MOUSE, id 11)
[  2812.741] (**) Option "AccelerationScheme" "none"
[  2812.741] (**) Generic PS/2 mouse: (accel) selected scheme none/0
[  2812.741] (**) Generic PS/2 mouse: (accel) acceleration factor: 2.000
[  2812.741] (**) Generic PS/2 mouse: (accel) acceleration threshold: 4
[  2812.742] (II) event6  - Generic PS/2 mouse: is tagged by udev as: Mouse
[  2812.742] (II) event6  - Generic PS/2 mouse: device is a pointer
[  2812.743] (II) config/udev: Adding input device ELAN0672:00 04F3:3187 Mouse (/dev/input/event7)
[  2812.743] (**) ELAN0672:00 04F3:3187 Mouse: Applying InputClass "libinput pointer catchall"
[  2812.743] (II) Using input driver 'libinput' for 'ELAN0672:00 04F3:3187 Mouse'
[  2812.743] (**) ELAN0672:00 04F3:3187 Mouse: always reports core events
[  2812.743] (**) Option "Device" "/dev/input/event7"
[  2812.744] (II) event7  - ELAN0672:00 04F3:3187 Mouse: is tagged by udev as: Mouse
[  2812.744] (II) event7  - ELAN0672:00 04F3:3187 Mouse: device is a pointer
[  2812.745] (II) event7  - ELAN0672:00 04F3:3187 Mouse: device removed
[  2812.745] (II) libinput: ELAN0672:00 04F3:3187 Mouse: Step value 0 was provided, libinput Fallback acceleration function is used.
[  2812.745] (II) libinput: ELAN0672:00 04F3:3187 Mouse: Step value 0 was provided, libinput Fallback acceleration function is used.
[  2812.745] (II) libinput: ELAN0672:00 04F3:3187 Mouse: Step value 0 was provided, libinput Fallback acceleration function is used.
[  2812.745] (**) Option "config_info" "udev:/dev/input/event7"
[  2812.745] (II) XINPUT: Adding extended input device "ELAN0672:00 04F3:3187 Mouse" (type: MOUSE, id 12)
[  2812.745] (**) Option "AccelerationScheme" "none"
[  2812.745] (**) ELAN0672:00 04F3:3187 Mouse: (accel) selected scheme none/0
[  2812.745] (**) ELAN0672:00 04F3:3187 Mouse: (accel) acceleration factor: 2.000
[  2812.745] (**) ELAN0672:00 04F3:3187 Mouse: (accel) acceleration threshold: 4
[  2812.746] (II) event7  - ELAN0672:00 04F3:3187 Mouse: is tagged by udev as: Mouse
[  2812.747] (II) event7  - ELAN0672:00 04F3:3187 Mouse: device is a pointer
[  2812.748] (II) config/udev: Adding input device ELAN0672:00 04F3:3187 TouchPad (/dev/input/event8)
[  2812.748] (**) ELAN0672:00 04F3:3187 TouchPad: Applying InputClass "libinput pointer catchall"
[  2812.748] (**) ELAN0672:00 04F3:3187 TouchPad: Applying InputClass "libinput touchpad catchall"
[  2812.748] (II) Using input driver 'libinput' for 'ELAN0672:00 04F3:3187 TouchPad'
[  2812.748] (**) ELAN0672:00 04F3:3187 TouchPad: always reports core events
[  2812.748] (**) Option "Device" "/dev/input/event8"
[  2812.748] (II) event8  - ELAN0672:00 04F3:3187 TouchPad: is tagged by udev as: Mouse Touchpad
[  2812.752] (II) event8  - ELAN0672:00 04F3:3187 TouchPad: device is a touchpad
[  2812.752] (II) event8  - ELAN0672:00 04F3:3187 TouchPad: device removed
[  2812.752] (II) libinput: ELAN0672:00 04F3:3187 TouchPad: Step value 0 was provided, libinput Fallback acceleration function is used.
[  2812.752] (II) libinput: ELAN0672:00 04F3:3187 TouchPad: Step value 0 was provided, libinput Fallback acceleration function is used.
[  2812.752] (II) libinput: ELAN0672:00 04F3:3187 TouchPad: Step value 0 was provided, libinput Fallback acceleration function is used.
[  2812.753] (**) Option "config_info" "udev:/dev/input/event8"
[  2812.753] (II) XINPUT: Adding extended input device "ELAN0672:00 04F3:3187 TouchPad" (type: TOUCHPAD, id 13)
[  2812.757] (**) Option "AccelerationScheme" "none"
[  2812.757] (**) ELAN0672:00 04F3:3187 TouchPad: (accel) selected scheme none/0
[  2812.757] (**) ELAN0672:00 04F3:3187 TouchPad: (accel) acceleration factor: 2.000
[  2812.757] (**) ELAN0672:00 04F3:3187 TouchPad: (accel) acceleration threshold: 4
[  2812.758] (II) event8  - ELAN0672:00 04F3:3187 TouchPad: is tagged by udev as: Mouse Touchpad
[  2812.762] (II) event8  - ELAN0672:00 04F3:3187 TouchPad: device is a touchpad
[  2812.763] scfb: SaveScreen 0
[  2812.763] scfb: SaveScreen done
[  3018.961] (EE) event8  - ELAN0672:00 04F3:3187 TouchPad: client bug: event processing lagging behind by 23ms, your system is too slow
[  3019.425] (EE) event8  - ELAN0672:00 04F3:3187 TouchPad: client bug: event processing lagging behind by 26ms, your system is too slow
[  3019.740] (EE) event8  - ELAN0672:00 04F3:3187 TouchPad: client bug: event processing lagging behind by 26ms, your system is too slow
[  3019.789] (EE) event8  - ELAN0672:00 04F3:3187 TouchPad: client bug: event processing lagging behind by 26ms, your system is too slow
[  3020.313] (EE) event8  - ELAN0672:00 04F3:3187 TouchPad: client bug: event processing lagging behind by 26ms, your system is too slow
[  3020.313] (EE) event8  - ELAN0672:00 04F3:3187 TouchPad: WARNING: log rate limit exceeded (5 msgs per 60min). Discarding future messages.

which seems still using scfb? as it said "[ 2812.578] (II) UnloadModule: "modesetting"" any chance that's my driver not working here?
 
Is there more than one graphics card in this system? If there's more than one you usually have to provide the BusID. But if there's only one the BusID isn't needed.

Did you add your user account to the video group? And did the i915kms kernel module load correctly? Check kldstat(8), dmesg(8) and/or /var/log/messages, it may have failed to load correctly.
 
just for the check make sure ~/.xinit has exec 'window manger executable name' at the bottom of that file so when it does kick in you'll get your desktop/WM to start.

then if you decide to add a login manager like lightdm it doesn't use that file but your desktop files in
Code:
/usr/local/share/xsessions
which is where you would go to edit or add a desktop file for your WM/DT if need be for it to show up in the login manager listings of DT/WM to use.
 
I have a Lenovo ThinkPad X1 Gen9 for over a year now and graphics/X work well out of the box for me.
The only think you need to do is installing graphics/drm-510-kmod and loading the i915kms driver/module (eg. add it to your kld_list in /etc/rc.conf).
From there, X should start without any manual configuration needed.
 
Is there more than one graphics card in this system? If there's more than one you usually have to provide the BusID. But if there's only one the BusID isn't needed. Did you add your user account to the video group? And did the i915kms kernel module load correctly? Check kldstat(8), dmesg(8) and/or /var/log/messages, it may have failed to load correctly.
Thank you Dice I locate the problem. D mesh shows that i915kmod.ko is a unsupported file type. How should I fix that?
 
I have a Lenovo ThinkPad X1 Gen9 for over a year now and graphics/X work well out of the box for me.
The only think you need to do is installing graphics/drm-510-kmod and loading the i915kms driver/module (eg. add it to your kld_list in /etc/rc.conf).
From there, X should start without any manual configuration needed.
what he said because he has that same item but too don't forget as mentioned to be user user has the video group added to his groups.

add groups to user without losing what it already has

Code:
sudo pw group mod  {group name(s)}  -m {user name}
 
D mesh shows that i915kmod.ko is a unsupported file type. How should I fix that?
I suspected that might be the case. You're running 13-STABLE, kernel modules have to be specifically compiled and build for the exact version of the kernel and 13-STABLE is a constantly moving target. The package is probably built for a slightly different kernel version, thus it fails to load.

Build graphics/drm-510-kmod from ports, so it lines up with your kernel.
 
just curious , how many times have you rebooted it to see if x works? even now , sometimes when I boot up x fails , I just reboot it then it works. 13.1 and 13.2 Release on a laptop. ( because it's funny like that, and not haha funny. )
 
I suspected that might be the case. You're running 13-STABLE, kernel modules have to be specifically compiled and build for the exact version of the kernel and 13-STABLE is a constantly moving target. The package is probably built for a slightly different kernel version, thus it fails to load.

Build graphics/drm-510-kmod from ports, so it lines up with your kernel.
Thanks again! I'll give that a try tomorrow. And will keep you updated.
Btw for a reliable experience (for coding and note taking.) is Stable the right choice?
 
Nothing wrong with using a -STABLE. But you might want to reconsider and go for 13.2-RELEASE instead. The -RELEASE versions can be easily updated using freebsd-update(8) (for security patches and minor/major version upgrades). The -STABLE branches can only be updated by building from source (build(7)) and are constantly moving (they're more like a rolling release kind of thing). Depending on your hardware building "world" from source might take a couple of hours to finish. And you always have to keep those dreaded kernel modules in check.

The majority of my systems typically run on the latest -RELEASE version. Less fuss, only a few updates every now and then. Easier to maintain. I do have three systems running -STABLE because I like to keep up with all the changes that are happening. I update those -STABLE machines once every week or two. Sometimes more often, it depends on what I'm testing or trying.
 
A major reason for running -STABLE on the X1 Carbgon Gen9 would be to frequently get the latest efforts of iwlwifi(4) as it is far from complete. At least that is what floats my boat.
 
Yes, -STABLE gets frequent updates, you could build a new version every day if you're so inclined. Updates, fixes and new features get added pretty much constantly. All those changes will eventually be included in the next minor release. A new minor release is always branched off from the -STABLE branches. So in a way -STABLE is the alpha version of the next minor release of that major version branch. Just keep in mind that -STABLE is in fact a development branch, so it might break. Although, in the past 25 or so years I've been using a FreeBSD -STABLE version, that only happened a few times. And it was always quickly resolved by updating the source again and rebuilding everything.
 
So if I want to change to use release instead. How should I do that build wi without reinstall? So many files on my drive I don't want to copy to a moveable disk and get them back later.
 
Technically not supported as you are basically 'downgrading' (13.2-STABLE is newer than 13.2-RELEASE). But as it hasn't diverged that much right now, you could probably do this fairly safely.

If you want to switch to 13.2-RELEASE then you need to make sure the source code in /usr/src/ is set to the releng/13.2 branch, 13.2-STABLE is on the stable/13 branch. The easiest way to switch the source code is by using git(1). So make sure you have devel/git installed. If the installer already added the source code to /usr/src then that needs to be removed first (that source tree isn't compatible with git).

So, from the top of my head, run everything as root:
Code:
###Empty the source tree:
# rm -rf /usr/src/* /usr/src/.[^.]*

### Clone the source tree and switch it to the releng/13.2 branch:
# git clone -b releng/13.2 https://git.freebsd.org/src.git /usr/src

# cd /usr/src
# make -j 8 buildworld buildkernel
# Sit back and watch the magic happen, staring at it is quite mesmerizing but it's going to take a while
# Change the -j # to the number of cores you have to maximize the process

# Hopefully this all completed without errors. 
# Then actually install it:
#
# make installkernel
# make installworld
# etcupdate -B
# make -DBATCH_DELETE_OLD_FILES delete-old
# make -DBATCH_DELETE_OLD_FILES delete-old-libs
# shutdown -r now
#
# If everything worked out the system should now boot as 13.2-RELEASE.

Once you've successfully switched to 13.2-RELEASE you can use freebsd-update(8) to keep it updated.
 
Hi Dice, I have managed to get my drivers loaded and x server started with acceleration After I get my OS set to release version.
All your suggestions worked out without even a error.
Big thanks!
 
Back
Top