Xorg dies after package updates - unsupported device?

Running into this same issue, my card is Intel. It worked just fine until a recent re-install.

As for others, my errors begin with:
Code:
 Fatal server error:
(EE) no screens found(EE)
(EE)
The solution is working for nvidia but as far as intel is concerned it is giving a big blank black screen.

I guess as per https://svnweb.freebsd.org/ports/head/UPDATING?revision=434496&view=markup#l66
intel driver to be purged and modesetting to be installed and the necessary ammendment to the rc.conf

it is working on nvidia whose xorg is
Code:
Section "ServerLayout"
Identifier     "X.org Configured"
Screen      0  "Screen0" 0 0
Screen      1  "Screen1" RightOf "Screen0"
InputDevice    "Mouse0" "CorePointer"
InputDevice    "Keyboard0" "CoreKeyboard"
EndSection

Section "Files"
ModulePath   "/usr/local/lib/xorg/modules"
FontPath     "/usr/local/share/fonts/misc/"
FontPath     "/usr/local/share/fonts/TTF/"
FontPath     "/usr/local/share/fonts/OTF/"
FontPath     "/usr/local/share/fonts/Type1/"
FontPath     "/usr/local/share/fonts/100dpi/"
FontPath     "/usr/local/share/fonts/75dpi/"
EndSection

Section "Module"
Load  "fb"
EndSection

Section "InputDevice"
Identifier  "Keyboard0"
Driver      "kbd"
EndSection

Section "InputDevice"
Identifier  "Mouse0"
Driver      "mouse"
Option    "Protocol" "auto"
Option    "Device" "/dev/ums0"
Option    "ZAxisMapping" "4 5 6 7"
EndSection

Section "Monitor"
Identifier   "Monitor0"
VendorName   "Monitor Vendor"
ModelName    "Monitor Model"
EndSection

Section "Monitor"
Identifier   "Monitor1"
VendorName   "Monitor Vendor"
ModelName    "Monitor Model"
EndSection

Section "Device"
Identifier  "Card0"
Driver      "nvidia"
BusID       "PCI:1:0:0"
EndSection

Section "Device"
Identifier  "Card1"
Driver      "nvidia"
BusID       "PCI:8:0:0"
EndSection

Section "Screen"
Identifier "Screen0"
Device     "Card0"
Monitor    "Monitor0"
SubSection "Display"
Viewport   0 0
Depth     1
EndSubSection
SubSection "Display"
Viewport   0 0
Depth     4
EndSubSection
SubSection "Display"
Viewport   0 0
Depth     8
EndSubSection
SubSection "Display"
Viewport   0 0
Depth     15
EndSubSection
SubSection "Display"
Viewport   0 0
Depth     16
EndSubSection
SubSection "Display"
Viewport   0 0
Depth     24
EndSubSection
EndSection

Section "Screen"
Identifier "Screen1"
Device     "Card1"
Monitor    "Monitor1"
SubSection "Display"
Viewport   0 0
Depth     1
EndSubSection
SubSection "Display"
Viewport   0 0
Depth     4
EndSubSection
SubSection "Display"
Viewport   0 0
Depth     8
EndSubSection
SubSection "Display"
Viewport   0 0
Depth     15
EndSubSection
SubSection "Display"
Viewport   0 0
Depth     16
EndSubSection
SubSection "Display"
Viewport   0 0
Depth     24
EndSubSection
EndSection
But not working on intel. The Xorg.0.log file says modesetting, vesa and scfb modules unable to load.

The pkg are installed. When I try to build them from ports
Code:
make install
is exiting with error


Any suggestions please
 
Last edited:
The problem was not in the port. I was on FreeBSD-10.1-RELEASE. I had to upgrade and make using the synth process. Now it is working fine. Posted from
Code:
$ uname -r
11.0-RELEASE-p8
I guess more or less solved my issue.

Incase someone can suggest any tweaks to my xorg.conf file, you are welcome
Code:
Section "ServerLayout"
Identifier     "X.org Configured"
Screen      0  "Screen0" 0 0
InputDevice    "Mouse0" "CorePointer"
InputDevice    "Keyboard0" "CoreKeyboard"
EndSection

Section "Files"
ModulePath   "/usr/local/lib/xorg/modules"
FontPath     "/usr/local/share/fonts/misc/"
FontPath     "/usr/local/share/fonts/TTF/"
FontPath     "/usr/local/share/fonts/OTF/"
FontPath     "/usr/local/share/fonts/Type1/"
FontPath     "/usr/local/share/fonts/100dpi/"
FontPath     "/usr/local/share/fonts/75dpi/"
[CMD]FontPath     "/usr/local/share/fonts/dejavu/"[/CMD]
EndSection

Section "Module"
Load  "glx"
[CMD]Load  "freetype"[/CMD]
EndSection

Section "InputDevice"
Identifier  "Keyboard0"
Driver      "kbd"
EndSection

Section "InputDevice"
Identifier  "Mouse0"
Driver      "mouse"
Option    "Protocol" "auto"
Option    "Device" "/dev/sysmouse"
Option    "ZAxisMapping" "4 5 6 7"
EndSection

Section "Monitor"
Identifier   "Monitor0"
VendorName   "Monitor Vendor"
ModelName    "Monitor Model"
EndSection

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     "ShadowFB"           # [<bool>]
        #Option     "DefaultRefresh"     # [<bool>]
        #Option     "ModeSetClearScreen" # [<bool>]
Identifier  "Card0"
Driver      "vesa"
BusID       "PCI:0:2:0"
EndSection

Section "Screen"
Identifier "Screen0"
Device     "Card0"
Monitor    "Monitor0"
SubSection "Display"
Viewport   0 0
Depth     1
EndSubSection
SubSection "Display"
Viewport   0 0
Depth     4
EndSubSection
SubSection "Display"
Viewport   0 0
Depth     8
EndSubSection
SubSection "Display"
Viewport   0 0
Depth     15
EndSubSection
SubSection "Display"
Viewport   0 0
Depth     16
EndSubSection
SubSection "Display"
Viewport   0 0
Depth     24
EndSubSection
EndSection

The two highlighted lines I had to manually add as it was reported by synth. Then startx reported no desktop found. I installed xfce4 and now startxfce4 works but startx still shows no desktop found.
Code:
$ xrandr
xrandr: Failed to get size of gamma for output default
Screen 0: minimum 640 x 480, current 1280 x 1024, maximum 1280 x 1024
default connected 1280x1024+0+0 0mm x 0mm
   1280x1024      0.00*
   1024x768       0.00
   800x600        0.00
   640x480        0.00

Open to suggestions please.

Ok after going through few more documents I realised my card was supporting 1366x768 whereas I was only getting 1280x1024

So I followed the undermentioned steps

Install xf86-video-intel

Make a file /usr/local/etc/X11/xorg.conf.d/driver-intel.conf and edit as

Code:
Section "Device"
Identifier "Card0"
Driver     "intel"
# BusID    "PCI:1:0:0"
EndSection

enable the intel module in /etc/rc.conf as
Code:
kld_list="i915kms.ko"

reboot, login and startxfce4

There you can see


Code:
$ xrandr
Screen 0: minimum 320 x 200, current 1366 x 768, maximum 8192 x 8192
VGA1 connected 1366x768+0+0 (normal left inverted right x axis y axis) 408mm x 255mm
   1366x768      59.86*+
   1280x1024     75.02    60.02
   1152x864      75.00
   1024x768      75.08    70.07    60.00
   832x624       74.55
   800x600       72.19    75.00    60.32    56.25
   640x480       75.00    72.81    66.67    60.00
   720x400       70.08

Posted from
Code:
$ uname -r
11.0-RELEASE-p8

If any one finds this useful please feel free to comment
 
Last edited:
I ran into this problem too with my ASRock E3C226D21 system board and its built-in ASPEED AST2300 Graphics Controller. I found two was to fix it. The quick fix was to remove the

Code:
kern.vty="sc"
in my /boot/loader.conf file and let the default be "vt" (in FreeBSD 11).

The second way is to keep kern.vty="sc" in my /boot/loader.conf and then run Xorg -configure and update my xorg.conf file with proper entries for the display - they were missing before.

The link Eric provided to the UPDATING info was useful. I guess some graphic controllers need more in the xorg.conf than what the line says in updating: "This should minimize the need for xorg.conf files." :rolleyes:
 
I'm on 10.3 and have xf86-video-intel installed, I have Intel video card, before these packages updates, Xorg is running fine with no problems,
after update then Xorg couldn't startup, even add "kld_list" won't help, I have to upgrade to 11.0 and the problem is gone.
 
I have the same issue: first on 10.3, then after trying everything suggested above I upgraded to 11.0, and still have Xorg crashing when it starts.
May be more suggestions, please?
I have integrated intel
Code:
vgapci0@pci0:0:2:0:     class=0x030000 card=0x85341043 chip=0x041e8086 rev=0x06 hdr=0x00                                                                                                                                                        

    vendor     = 'Intel Corporation'                                                                                                                                                                                                            

    device     = '4th Generation Core Processor Family Integrated Graphics Controller'                                                                                                                                                          

    class      = display                                                                                                                                                                                                                        

    subclass   = VGA
modules are loaded
Code:
$ kldstat                                                                                                                                                                                                                                       

Id Refs Address            Size     Name                                                                                                                                                                                                        

 1   73 0xffffffff80200000 1fa8888  kernel                                                                                                                                                                                                      

 2    1 0xffffffff821aa000 9b748    linux.ko                                                                                                                                                                                                    

 3    4 0xffffffff82246000 de28     linux_common.ko                                                                                                                                                                                             

 4    2 0xffffffff82254000 7db28    vboxdrv.ko                                                                                                                                                                                                  

 5    1 0xffffffff822d2000 74a0     vboxnetflt.ko                                                                                                                                                                                               

 6    2 0xffffffff822da000 18b68    netgraph.ko
When I add a diver-intel.conf file as it is suggested here and in the manual it changes little: instead of the card-screen issue as shown below I have just 'no screens found' error.
Xorg.0.log:
Code:
X.Org X Server 1.18.4                                                                                                                                                                                                                           

Release Date: 2016-07-19                                                                                                                                                                                                                        

[    35.135] X Protocol Version 11, Revision 0                                                                                                                                                                                                  

[    35.135] Build Operating System: FreeBSD 11.0-RELEASE-p8 amd64                                                                                                                                                                              

[    35.135] Current Operating System: FreeBSD BSD-11 11.0-RELEASE-p8 FreeBSD 11.0-RELEASE-p8 #0: Wed Feb 22 06:12:04 UTC 2017     root@amd64-builder.daemonology.net:/usr/obj/usr/src/sys/GENERIC amd64                                        

[    35.135] Build Date: 04 April 2017  08:24:10AM                                                                                                                                                                                              

[    35.135]                                                                                                                                                                                                                                    

[    35.135] Current version of pixman: 0.34.0                                           
............................
[    35.358] (II) Loader magic: 0x813b70                                                                                                                                                                                                        

[    35.358] (II) Module ABI versions:                                                                                                                                                                                                          

[    35.358]    X.Org ANSI C Emulation: 0.4                                                                                                                                                                                                     

[    35.358]    X.Org Video Driver: 20.0                                                                                                                                                                                                        

[    35.358]    X.Org XInput driver : 22.1                                                                                                                                                                                                      

[    35.358]    X.Org Server Extension : 9.0                                                                                                                                                                                                    

[    35.358] (--) PCI:*(0:0:2:0) 8086:041e:1043:8534 rev 6, Mem @ 0xf7800000/4194304, 0xe0000000/268435456, I/O @ 0x0000f000/64, BIOS @ 0x????????/65536                                                                                        

[    35.358] (II) LoadModule: "glx"                                                                                                                                                                                               
[    35.812] scfb trace: probe start                                                                                                                                                                                                            

[    35.812] (II) scfb(1): using default device                                                                                                                                                                                                 

[    35.812] scfb trace: probe done                                                                                                                                                                                                             

[    35.812] (WW) VGA arbiter: cannot open kernel arbiter, no multi-card support                                                                                                                                                                

[    35.813] (EE) Screen 0 deleted because of no matching config section.                                                                                                                                                                       

[    35.813] (II) UnloadModule: "modesetting"                                                                                                                                                                                                   

[    35.813] (EE)                                                                                                                                                                                                                               

Fatal server error:
Thanks for any help
 
Sorry, modules list was not posted correctly
Code:
 Name                                      linux.ko                                  linux_common.ko                           vboxdrv.ko                                vboxnetflt.ko                             netgraph.ko                               fuse.ko                                   smbfs.ko                                 libmchain.ko                              libiconv.ko                              drm.ko                                   cuse4bsd.ko                              fdescfs.ko                               tmpfs.ko
 linprocfs.ko
i915kms.ko
 drm2.ko
 iicbus.ko
 iic.ko                                    ums.ko 
 linux64.ko
 
Finally it works but with vesa only, via vesa_driver.conf file. Intel driver does'nt works in similar way.
The thread was very useful.
 
Code:
kld_list="i915kms"
in /etc/rc.conf actually fixed it for me (I had more or less the same framebuffer error). Never had a use for it (that I'm aware of) until the latest X upgrade, but oh well.

You can also try
Code:
kld_list="i915kms drmn"
to see if the /dev/dri error goes away.

I just have to especially say, "Thank you!" to @DutchDaemon. I have almost 20 machines that rely on old Intel integrated graphics. The latest update to the Intel driver had 'maimed' one or two machines. Using the
Code:
kld_list="i915kms"
and sometimes
Code:
kld_list="i915 i915kms"
depending on which machines I was using has solved the issue. REAL big headache gone away! So many thanks, once again.
 
I have similar or same issue on a Thinkpad T43. After seeing "no screens found" I rebuilt x11/xorg with kld_list="i915kms" in /etc/rc.conf and kern.vty="sc" in /boot/loader.conf. I also tried unselecting any extraneous drivers.

There were references in /var/log/Xorg.0.log to undefined symbols "fbPolySegment" in the intel driver module and "shadowUpdatePacked" in the modesetting module. I found [FONT=verdana]PR 218153 and a solution that worked for me was to create /usr/local/share/X11/xorg.conf.d/mymodule.conf
Code:
Section "Module"
Load "fb"
Load "vgahw"
EndSection
I can startx now and things seem to work. The "fbPolySegment" undefined symbol error no longer appears in the log.

I'm still seeing the "shadowUpdatePacked" undefined symbol and the modesetting module unloads however.
[FONT=verdana]
Code:
[  6918.338] (II) LoadModule: "modesetting"
[  6918.339] (II) Loading /usr/local/lib/xorg/modules/drivers/modesetting_drv.so
[  6918.339] (EE) Failed to load /usr/local/lib/xorg/modules/drivers/modesetting_drv.so: /usr/local/lib/xorg/modules/drivers/modesetting_drv.so: Undefined symbol "shadowUpdatePacked"
[  6918.339] (II) UnloadModule: "modesetting"
[  6918.339] (II) Unloading modesetting
[  6918.339] (EE) Failed to load module "modesetting" (loader failed, 7)
[/FONT][/FONT]
 
Back
Top