Solved FreeBSD 12.2 startx failed '(EE) open /dev/dri/card0: No such file or directory'

Dear All,

I have one ThinkPad X1 Carbon 5th, and last week the FreeBSD 12.2 has been installed on the Laptop. After the compilation of the x11/xorg, and added the user in the video group # pw groupmod video -m USER, at last I executed the #startx. But failed.
Error Message
Code:
[   126.525] (EE) open /dev/dri/card0: No such file or directory
[   126.525] (WW) Falling back to old probe method for modesetting
I have searched my methods, but doesn't work, including this thread.
Thread i915kms-package-breaks-on-12-2-release-workaround-build-from-ports.77501/

Can you guys support me on this issue?


Hardware Information
CPU:
Info: Quad Core model: Intel Core i7-7600U bits: 64 type: MCP arch: N/A
L2 cache: N/A
features: avx avx2 lm nx pae sse sse2 sse3 ssse3 vmx
Speed: 2904 MHz min/max: 400/2801 MHz
Core speeds (MHz): No speed data found for 4 cores.
Graphics:
Device-1: Intel HD Graphics 620 driver: vgapci bus ID: 0:0:2.0
Display: server: X.org 1.20.9 driver: vesa unloaded: modesetting
tty: 80x30
Message: Advanced graphics data unavailable in console for root.

Code:
#kldstat
Id Refs Address                Size Name
 1   62 0xffffffff80200000  227ad00 kernel
 2    1 0xffffffff8283d000   12ccb0 i915kms.ko
 3    1 0xffffffff8296a000    76570 drm.ko
 4    4 0xffffffff829e1000    12d30 linuxkpi.ko
 5    3 0xffffffff829f4000    12f30 linuxkpi_gplv2.ko
 6    2 0xffffffff82a07000      6d0 debugfs.ko
 7    1 0xffffffff82a08000    16bf0 if_iwm.ko
 8    1 0xffffffff82a1f000     44b4 ig4.ko
 9    1 0xffffffff82a24000     3754 iicbus.ko
10    1 0xffffffff82a28000   1ba77f iwm8265fw.ko
11    1 0xffffffff82be3000     4260 ng_ubt.ko
12    3 0xffffffff82be8000     9bd0 netgraph.ko
13    2 0xffffffff82bf2000     9128 ng_hci.ko
14    1 0xffffffff82bfc000      9b0 ng_bluetooth.ko
15    1 0xffffffff82bfd000      acf mac_ntpd.ko
16    1 0xffffffff82bfe000   24ca08 zfs.ko
17    1 0xffffffff82e4b000     75a8 opensolaris.ko

/var/log/Xorg.0.log
Code:
[   126.505] X.Org X Server 1.20.9 X Protocol Version 11, Revision 0
[   126.505] Build Operating System: FreeBSD 12.2-RELEASE amd64
[   126.505] Current Operating System: FreeBSD hanson.laptop 12.2-RELEASE FreeBSD 12.2-RELEASE r366954 GENERIC amd64
[   126.505] Build Date: 20 December 2020  09:27:23AM
[   126.505]
[   126.505] Current version of pixman: 0.40.0
[   126.505]     Before reporting problems, check http://wiki.x.org
    to make sure that you have the latest version.
[   126.505] Markers: (--) probed, (**) from config file, (==) default setting,
    (++) from command line, (!!) notice, (II) informational,
    (WW) warning, (EE) error, (NI) not implemented, (??) unknown.
[   126.505] (==) Log file: "/var/log/Xorg.0.log", Time: Mon Dec 21 23:34:49 2020
[   126.509] (==) Using system config directory "/usr/local/share/X11/xorg.conf.d"
[   126.509] (==) No Layout section.  Using the first Screen section.
[   126.510] (==) No screen section available. Using defaults.
[   126.510] (**) |-->Screen "Default Screen Section" (0)
[   126.510] (**) |   |-->Monitor "<default monitor>"
[   126.510] (==) No monitor specified for screen "Default Screen Section".
    Using a default monitor configuration.
[   126.510] (==) Automatically adding devices
[   126.510] (==) Automatically enabling devices
[   126.510] (==) Not automatically adding GPU devices
[   126.510] (==) Max clients allowed: 256, resource mask: 0x1fffff
[   126.514] (==) 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
[   126.514] (==) ModulePath set to "/usr/local/lib/xorg/modules"
[   126.514] (II) The server relies on udev to provide the list of input devices.
    If no devices become available, reconfigure udev or disable AutoAddDevices.
[   126.514] (II) Loader magic: 0x434a80
[   126.514] (II) Module ABI versions:
[   126.514]     X.Org ANSI C Emulation: 0.4
[   126.514]     X.Org Video Driver: 24.1
[   126.514]     X.Org XInput driver : 24.1
[   126.514]     X.Org Server Extension : 10.0
[   126.514] (--) PCI:*(0@0:2:0) 8086:5916:17aa:224f rev 2, Mem @ 0xeb000000/16777216, 0x60000000/268435456, I/O @ 0x0000e000/64, BIOS @ 0x????????/65536
[   126.514] (II) LoadModule: "glx"
[   126.515] (II) Loading /usr/local/lib/xorg/modules/extensions/libglx.so
[   126.522] (II) Module glx: vendor="X.Org Foundation"
[   126.522]     compiled for 1.20.9, module version = 1.0.0
[   126.522]     ABI class: X.Org Server Extension, version 10.0
[   126.523] (==) Matched intel as autoconfigured driver 0
[   126.523] (==) Matched modesetting as autoconfigured driver 1
[   126.523] (==) Matched scfb as autoconfigured driver 2
[   126.523] (==) Matched vesa as autoconfigured driver 3
[   126.523] (==) Assigned the driver to the xf86ConfigLayout
[   126.523] (II) LoadModule: "intel"
[   126.523] (WW) Warning, couldn't open module intel
[   126.523] (EE) Failed to load module "intel" (module does not exist, 0)
[   126.523] (II) LoadModule: "modesetting"
[   126.523] (II) Loading /usr/local/lib/xorg/modules/drivers/modesetting_drv.so
[   126.524] (II) Module modesetting: vendor="X.Org Foundation"
[   126.524]     compiled for 1.20.9, module version = 1.20.9
[   126.524]     Module class: X.Org Video Driver
[   126.524]     ABI class: X.Org Video Driver, version 24.1
[   126.524] (II) LoadModule: "scfb"
[   126.524] (II) Loading /usr/local/lib/xorg/modules/drivers/scfb_drv.so
[   126.524] (II) Module scfb: vendor="X.Org Foundation"
[   126.524]     compiled for 1.20.9, module version = 0.0.5
[   126.524]     ABI class: X.Org Video Driver, version 24.1
[   126.524] (II) LoadModule: "vesa"
[   126.524] (II) Loading /usr/local/lib/xorg/modules/drivers/vesa_drv.so
[   126.524] (II) Module vesa: vendor="X.Org Foundation"
[   126.524]     compiled for 1.20.9, module version = 2.5.0
[   126.524]     Module class: X.Org Video Driver
[   126.524]     ABI class: X.Org Video Driver, version 24.1
[   126.524] (II) modesetting: Driver for Modesetting Kernel Drivers: kms
[   126.524] (II) scfb: driver for wsdisplay framebuffer: scfb
[   126.524] (II) VESA: driver for VESA chipsets: vesa
[   126.525] (--) Using syscons driver with X support (version 2.0)
[   126.525] (--) using VT number 9

[   126.525] (EE) open /dev/dri/card0: No such file or directory
[   126.525] (WW) Falling back to old probe method for modesetting
[   126.525] (EE) open /dev/dri/card0: No such file or directory
[   126.525] (WW) Falling back to old probe method for scfb
[   126.525] scfb trace: probe start
[   126.525] (II) scfb(1): using default device
[   126.525] scfb trace: probe done
[   126.525] (WW) VGA arbiter: cannot open kernel arbiter, no multi-card support
[   126.525] (EE) Screen 0 deleted because of no matching config section.
[   126.525] (II) UnloadModule: "modesetting"
[   126.525] (EE)
Fatal server error:
[   126.525] (EE) Cannot run in framebuffer mode. Please specify busIDs        for all framebuffer devices
[   126.525] (EE)
[   126.525] (EE)
Please consult the The X.Org Foundation support
     at http://wiki.x.org
for help.
[   126.525] (EE) Please also check the log file at "/var/log/Xorg.0.log" for additional information.
[   126.525] (EE)
[   126.526] (EE) Server terminated with error (1). Closing log file.
Best Regards!
 
Dear this is the /etc/rc.conf, Thank you in advance.
Code:
hostname="hanson.laptop"
create_args_wlan0="regdomain FCC"
sshd_enable="YES"
ntpd_enable="YES"
# Set dumpdev to "AUTO" to enable crash dumps, "NO" to disable
dumpdev="AUTO"
wlans_iwm0="wlan0"
ifconfig_wlan0="WPA SYNCDHCP"
kld_list="/boot/modules/i915kms.ko"
sound_load="YES"
snd_hda_load="YES"
 
Dear All,

I have one ThinkPad X1 Carbon 5th, and last week the FreeBSD 12.2 has been installed on the Laptop. After the compilation of the x11/xorg, and added the user in the video group # pw groupmod video -m USER, at last I executed the #startx. But failed.
Error Message
Code:
[   126.525] (EE) open /dev/dri/card0: No such file or directory
[   126.525] (WW) Falling back to old probe method for modesetting
I have searched my methods, but doesn't work, including this thread.
Thread i915kms-package-breaks-on-12-2-release-workaround-build-from-ports.77501/

Can you guys support me on this issue?


Hardware Information
CPU:
Info: Quad Core model: Intel Core i7-7600U bits: 64 type: MCP arch: N/A
L2 cache: N/A
features: avx avx2 lm nx pae sse sse2 sse3 ssse3 vmx
Speed: 2904 MHz min/max: 400/2801 MHz
Core speeds (MHz): No speed data found for 4 cores.
Graphics:
Device-1: Intel HD Graphics 620 driver: vgapci bus ID: 0:0:2.0
Display: server: X.org 1.20.9 driver: vesa unloaded: modesetting
tty: 80x30
Message: Advanced graphics data unavailable in console for root.

Code:
#kldstat
Id Refs Address                Size Name
1   62 0xffffffff80200000  227ad00 kernel
2    1 0xffffffff8283d000   12ccb0 i915kms.ko
3    1 0xffffffff8296a000    76570 drm.ko
4    4 0xffffffff829e1000    12d30 linuxkpi.ko
5    3 0xffffffff829f4000    12f30 linuxkpi_gplv2.ko
6    2 0xffffffff82a07000      6d0 debugfs.ko
7    1 0xffffffff82a08000    16bf0 if_iwm.ko
8    1 0xffffffff82a1f000     44b4 ig4.ko
9    1 0xffffffff82a24000     3754 iicbus.ko
10    1 0xffffffff82a28000   1ba77f iwm8265fw.ko
11    1 0xffffffff82be3000     4260 ng_ubt.ko
12    3 0xffffffff82be8000     9bd0 netgraph.ko
13    2 0xffffffff82bf2000     9128 ng_hci.ko
14    1 0xffffffff82bfc000      9b0 ng_bluetooth.ko
15    1 0xffffffff82bfd000      acf mac_ntpd.ko
16    1 0xffffffff82bfe000   24ca08 zfs.ko
17    1 0xffffffff82e4b000     75a8 opensolaris.ko

/var/log/Xorg.0.log
Code:
[   126.505] X.Org X Server 1.20.9 X Protocol Version 11, Revision 0
[   126.505] Build Operating System: FreeBSD 12.2-RELEASE amd64
[   126.505] Current Operating System: FreeBSD hanson.laptop 12.2-RELEASE FreeBSD 12.2-RELEASE r366954 GENERIC amd64
[   126.505] Build Date: 20 December 2020  09:27:23AM
[   126.505]
[   126.505] Current version of pixman: 0.40.0
[   126.505]     Before reporting problems, check http://wiki.x.org
    to make sure that you have the latest version.
[   126.505] Markers: (--) probed, (**) from config file, (==) default setting,
    (++) from command line, (!!) notice, (II) informational,
    (WW) warning, (EE) error, (NI) not implemented, (??) unknown.
[   126.505] (==) Log file: "/var/log/Xorg.0.log", Time: Mon Dec 21 23:34:49 2020
[   126.509] (==) Using system config directory "/usr/local/share/X11/xorg.conf.d"
[   126.509] (==) No Layout section.  Using the first Screen section.
[   126.510] (==) No screen section available. Using defaults.
[   126.510] (**) |-->Screen "Default Screen Section" (0)
[   126.510] (**) |   |-->Monitor "<default monitor>"
[   126.510] (==) No monitor specified for screen "Default Screen Section".
    Using a default monitor configuration.
[   126.510] (==) Automatically adding devices
[   126.510] (==) Automatically enabling devices
[   126.510] (==) Not automatically adding GPU devices
[   126.510] (==) Max clients allowed: 256, resource mask: 0x1fffff
[   126.514] (==) 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
[   126.514] (==) ModulePath set to "/usr/local/lib/xorg/modules"
[   126.514] (II) The server relies on udev to provide the list of input devices.
    If no devices become available, reconfigure udev or disable AutoAddDevices.
[   126.514] (II) Loader magic: 0x434a80
[   126.514] (II) Module ABI versions:
[   126.514]     X.Org ANSI C Emulation: 0.4
[   126.514]     X.Org Video Driver: 24.1
[   126.514]     X.Org XInput driver : 24.1
[   126.514]     X.Org Server Extension : 10.0
[   126.514] (--) PCI:*(0@0:2:0) 8086:5916:17aa:224f rev 2, Mem @ 0xeb000000/16777216, 0x60000000/268435456, I/O @ 0x0000e000/64, BIOS @ 0x????????/65536
[   126.514] (II) LoadModule: "glx"
[   126.515] (II) Loading /usr/local/lib/xorg/modules/extensions/libglx.so
[   126.522] (II) Module glx: vendor="X.Org Foundation"
[   126.522]     compiled for 1.20.9, module version = 1.0.0
[   126.522]     ABI class: X.Org Server Extension, version 10.0
[   126.523] (==) Matched intel as autoconfigured driver 0
[   126.523] (==) Matched modesetting as autoconfigured driver 1
[   126.523] (==) Matched scfb as autoconfigured driver 2
[   126.523] (==) Matched vesa as autoconfigured driver 3
[   126.523] (==) Assigned the driver to the xf86ConfigLayout
[   126.523] (II) LoadModule: "intel"
[   126.523] (WW) Warning, couldn't open module intel
[   126.523] (EE) Failed to load module "intel" (module does not exist, 0)
[   126.523] (II) LoadModule: "modesetting"
[   126.523] (II) Loading /usr/local/lib/xorg/modules/drivers/modesetting_drv.so
[   126.524] (II) Module modesetting: vendor="X.Org Foundation"
[   126.524]     compiled for 1.20.9, module version = 1.20.9
[   126.524]     Module class: X.Org Video Driver
[   126.524]     ABI class: X.Org Video Driver, version 24.1
[   126.524] (II) LoadModule: "scfb"
[   126.524] (II) Loading /usr/local/lib/xorg/modules/drivers/scfb_drv.so
[   126.524] (II) Module scfb: vendor="X.Org Foundation"
[   126.524]     compiled for 1.20.9, module version = 0.0.5
[   126.524]     ABI class: X.Org Video Driver, version 24.1
[   126.524] (II) LoadModule: "vesa"
[   126.524] (II) Loading /usr/local/lib/xorg/modules/drivers/vesa_drv.so
[   126.524] (II) Module vesa: vendor="X.Org Foundation"
[   126.524]     compiled for 1.20.9, module version = 2.5.0
[   126.524]     Module class: X.Org Video Driver
[   126.524]     ABI class: X.Org Video Driver, version 24.1
[   126.524] (II) modesetting: Driver for Modesetting Kernel Drivers: kms
[   126.524] (II) scfb: driver for wsdisplay framebuffer: scfb
[   126.524] (II) VESA: driver for VESA chipsets: vesa
[   126.525] (--) Using syscons driver with X support (version 2.0)
[   126.525] (--) using VT number 9

[   126.525] (EE) open /dev/dri/card0: No such file or directory
[   126.525] (WW) Falling back to old probe method for modesetting
[   126.525] (EE) open /dev/dri/card0: No such file or directory
[   126.525] (WW) Falling back to old probe method for scfb
[   126.525] scfb trace: probe start
[   126.525] (II) scfb(1): using default device
[   126.525] scfb trace: probe done
[   126.525] (WW) VGA arbiter: cannot open kernel arbiter, no multi-card support
[   126.525] (EE) Screen 0 deleted because of no matching config section.
[   126.525] (II) UnloadModule: "modesetting"
[   126.525] (EE)
Fatal server error:
[   126.525] (EE) Cannot run in framebuffer mode. Please specify busIDs        for all framebuffer devices
[   126.525] (EE)
[   126.525] (EE)
Please consult the The X.Org Foundation support
     at http://wiki.x.org
for help.
[   126.525] (EE) Please also check the log file at "/var/log/Xorg.0.log" for additional information.
[   126.525] (EE)
[   126.526] (EE) Server terminated with error (1). Closing log file.
Best Regards!
I had this same error today after an upgrade from 12.1 to 12.2. Building /graphics/drm-fbsd12.0-kmod from the 12.2 source fixed this for me after updating packages on the box, which didn't previously have /usr/src installed, failed to remedy the issue.
 
I had this same error today after an upgrade from 12.1 to 12.2. Building /graphics/drm-fbsd12.0-kmod from the 12.2 source fixed this for me after updating packages on the box, which didn't previously have /usr/src installed, failed to remedy the issue.
 
Today the issue has been solved.
Solution:
Step1: Reinstall OS from FreeBSD 12.2 to FreeBSD 12.1.
Step2: Install the ports
portsnap fetch extract
Step3: Checkout the FreeBSD 12.1 Source Code
svn checkout https://svn.freebsd.org/base/releng/12.1 /usr/src
Step4: Read the UPDATING, search 'DRM'
cat /usr/src/UPDATING |more
20181015:
Code:
 Generally, anybody using the drm*-kmod packages should add WITHOUT_DRM_MODULE=t and WITHOUT_DRM2_MODULE=t to avoid nasty cross-threading surprises, especially with automatic driver loading from X11 startup. These will become the defaults in 13-current shortly.
Step5: Compile the DRM Module
cd /usr/ports/graphics/drm-fbsd12.0-kmod/
make install clean WITHOUT_DRM_MODULE=t WITHOUT_DRM2_MODULE=t
Step6: Load the DRM module
vi /etc/rc.conf
Code:
kld_list="/boot/modules/i915kms.ko"
Step7: reboot OS and startX (remember to add the user in the VIDEO group in advance)
shutdown -r now
startx
Done! Best Regards!
 
I'm a noobie. I have successfully installed FreeBSD 13.0. Trying to startx, I get the same errors as Hanson

Code:
(EE) open /dev/dri/card0: No such file or directory
...
(EE) No devices detected
(EE) no screens found

In Hanson's workaround, he received the message:
These will become the defaults in 13-current shortly.
Did the defaults make it to 13?

I am reluctant to try Hanson's fix. Reinstalling the OS to 12.1 seems a bit drastic. Any other suggestions?

Hardware is a Lenovo T420. I do not know what the video card is.

Best regards,
Aardre
 
Did the defaults make it to 13?
Yes.

Did you install graphics/drm-kmod and followed the instruction on adding the module to kld_list?

Can you post the whole output from /var/log/Xorg.0.log, we need to see what's being detected (or not). You can easily do this from the command line using; cat /var/log/Xorg.0.log | nc termbin.com 9999, then post the URL here.
 
Back
Top