Solved Startx 'no screen found' EE

Hi guys,
I recently installed FreeBSD 12 in a Dell powerEdge T320 server with a Matrox 'G200eR2' integrated graphic card. everything works fine except i wasn't able to configure the graphic card.
I didn't create an xorg manual configuration files.
Here is the outoput of : pciconfig -lv | grep -B 4 VGA :

Code:
vgapci0@pci0:6:0:0:    class=0x030000 card=0x04fa1028 chip=0x0534102b rev=0x00 hdr=0x00
    vendor     = 'Matrox Electronics Systems Ltd.'
    device     = 'G200eR2'
    class      = display
    subclass   = VGA

  • drm-kmod installed
  • I set the Matrox card driver in a file /usr/local/etc/X11/xorg.conf.d/driver-mga.conf
Code:
Section "Device"
    Identifier "Card0"
    Driver "mga"
    BusID "PCI:0:6:0:0"
EndSection

- I set another one for the screen in different file:

Code:
Section "Screen"
        Identifier "Screen0"
        Device     "Card0"
        SubSection "Display"
        Modes      "1920x1080"
        EndSubSection
EndSection

After rebooting and running startx I get the following error (EE) no screens found(EE), following is the full xorg.log :

Code:
[    63.748]
X.Org X Server 1.18.4
Release Date: 2016-07-19
[    63.748] X Protocol Version 11, Revision 0
[    63.748] Build Operating System: FreeBSD 12.0-RELEASE-p3 amd64
[    63.748] Current Operating System: FreeBSD MECLAB 12.0-RELEASE FreeBSD 12.0-RELEASE r341666 GENERIC amd64
[    63.749] Build Date: 07 February 2019  09:16:52AM
[    63.749]
[    63.749] Current version of pixman: 0.34.0
[    63.749]     Before reporting problems, check http://wiki.x.org
    to make sure that you have the latest version.
[    63.749] Markers: (--) probed, (**) from config file, (==) default setting,
    (++) from command line, (!!) notice, (II) informational,
    (WW) warning, (EE) error, (NI) not implemented, (??) unknown.
[    63.749] (==) Log file: "/var/log/Xorg.0.log", Time: Fri Feb 15 12:37:40 2019
[    63.765] (==) Using config directory: "/usr/local/etc/X11/xorg.conf.d"
[    63.780] (==) No Layout section.  Using the first Screen section.
[    63.780] (**) |-->Screen "Screen0" (0)
[    63.780] (**) |   |-->Monitor "<default monitor>"
[    63.780] (**) |   |-->Device "Card0"
[    63.780] (==) No monitor specified for screen "Screen0".
    Using a default monitor configuration.
[    63.780] (==) Automatically adding devices
[    63.780] (==) Automatically enabling devices
[    63.780] (==) Not automatically adding GPU devices
[    63.781] (==) Max clients allowed: 256, resource mask: 0x1fffff
[    63.966] (==) 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/
[    63.966] (==) ModulePath set to "/usr/local/lib/xorg/modules"
[    63.966] (II) The server relies on devd to provide the list of input devices.
    If no devices become available, reconfigure devd or disable AutoAddDevices.
[    63.966] (II) Loader magic: 0x413020
[    63.966] (II) Module ABI versions:
[    63.966]     X.Org ANSI C Emulation: 0.4
[    63.966]     X.Org Video Driver: 20.0
[    63.966]     X.Org XInput driver : 22.1
[    63.966]     X.Org Server Extension : 9.0
[    63.967] (--) PCI:*(0:6:0:0) 102b:0534:1028:04fa rev 0, Mem @ 0xd8000000/16777216, 0xde7fc000/16384, 0xdd800000/8388608, BIOS @ 0x????????/65536
[    63.967] (II) LoadModule: "glx"
[    63.981] (II) Loading /usr/local/lib/xorg/modules/extensions/libglx.so
[    64.202] (II) Module glx: vendor="X.Org Foundation"
[    64.202]     compiled for 1.18.4, module version = 1.0.0
[    64.202]     ABI class: X.Org Server Extension, version 9.0
[    64.202] (==) AIGLX enabled
[    64.202] (II) LoadModule: "mga"
[    64.213] (II) Loading /usr/local/lib/xorg/modules/drivers/mga_drv.so
[    64.254] (II) Module mga: vendor="X.Org Foundation"
[    64.254]     compiled for 1.18.4, module version = 1.6.5
[    64.255]     Module class: X.Org Video Driver
[    64.255]     ABI class: X.Org Video Driver, version 20.0
[    64.255] (II) MGA: driver for Matrox chipsets: mga2064w, mga1064sg, mga2164w,
    mga2164w AGP, mgag100, mgag100 PCI, mgag200, mgag200 PCI,
    mgag200 SE A PCI, mgag200 SE B PCI, mgag200 EV Maxim,
    mgag200 ER SH7757, mgag200 eW Nuvoton, mgag200 eW3 Nuvoton,
    mgag200eH, mgag400, mgag550
[    64.256] (--) Using syscons driver with X support (version 2.0)
[    64.256] (--) using VT number 9

[    64.256] (EE) No devices detected.
[    64.256] (EE)
Fatal server error:
[    64.256] (EE) no screens found(EE)
[    64.256] (EE)
Please consult the The X.Org Foundation support
     at http://wiki.x.org
for help.
[    64.256] (EE) Please also check the log file at "/var/log/Xorg.0.log" for additional information.
[    64.256] (EE)
[    64.257] (EE) Server terminated with error (1). Closing log file.

I tried, tried so many solutions from forum, but couldn't get working display.
Any idea?

Thank you.
 
Last edited:
I haven't installed FreeBSD-12 so this is just a shot in the dark but you could try installing graphics/drm-legacy-kmod. If that doesn't work see if the drm1.ko is in the kernel. ls /boot/kernel/drm* I read something about the possible removal of the drm1 code from GENERIC but I don't know if that was implemented.
 
Thank you for you


I haven't installed FreeBSD-12 so this is just a shot in the dark but you could try installing graphics/drm-legacy-kmod. If that doesn't work see if the drm1.ko is in the kernel. ls /boot/kernel/drm* I read something about the possible removal of the drm1 code from GENERIC but I don't know if that was implemented.

Yes i installed drm-legacy-kmod and added kld_list="/boot/modules/mga.ko" to /etc/rc.conf, but it didn't fix the issue. i still getting the same error message.

Does it even support 1920x1080 resolution?

I am not sure about this, but added multiple resolutions, still same issue.

Thank you
 
Problem solved startx is working now.

I removed BusID "PCI:0:6:0:0" from the graphic card driver config file. it was my mistake because in the Handbook it says "If more than one video card is present", but i have only one video card. so that line caused an error, was unnecessary.

Matrox 'G200eR2' integrated graphic card works fine on Freebsd12 and i am using i3wm, without any issue.
 
Back
Top