Xorg fails w/scfb: Cannot run in framebuffer mode. Please specify busIDs

Bob Willcox bob at immure.com
Tue Mar 21 15:34:29 UTC 2017


On Mon, Mar 20, 2017 at 02:13:57PM -0700, Chris H wrote:
> OK. These suggestions may just be shots in the dark; but...
> You might give Xorg -configure a try, to see if it might
> provide you with some hints as to what it *thinks* you have.
> 
> I notice in your Xorg.0.log that X barfs on AIGLX.
> You might just try adding the following to the
> Section "ServerLayout" block:
> 
> Option         "AIGLX" "false"
> 
> and see if that overcomes the problem.
> 
> 
> Hope this helps, and apologies for top posting.
> 
> --Chris

Thanks for the reply. I have tried running Xorg -configure a few times w/o
success. Indeed, I used it to create the xorg.conf file that I'm trying to use
currently with changes to the Device section ("scfb" vs "intel") and the
addtion of the BusID setting.

Also, turning off AIGLX did disable it but made no change to the segmentation
fault (identical stack trace).

Bob

> On Mon, 20 Mar 2017 13:59:16 -0500 Bob Willcox <bob at immure.com> wrote
> 
> > On Mon, Mar 20, 2017 at 11:20:22AM -0700, Pete Wright wrote:
> > > 
> > > 
> > > On 03/20/17 11:15, Bob Willcox wrote:
> > > > On Mon, Mar 20, 2017 at 11:07:15AM -0700, Pete Wright wrote:
> > > >>
> > > >> On 03/20/17 11:04, Bob Willcox wrote:
> > > >>> I had to reboot my system this morning (power outage over the weekend
> > > >>> forced it) and now X won't start, failing with these error msgs from
> > > >>> the Xorg.log: > >>>
> > > >>> [   143.327] (EE) open /dev/dri/card0: No such file or directory
> > > >>> [   143.327] (WW) Falling back to old probe method for modesetting
> > > >>> [   143.327] (EE) open /dev/dri/card0: No such file or directory
> > > >>> [   143.327] (WW) Falling back to old probe method for scfb
> > > >>> [   143.327] scfb trace: probe start
> > > >>> [   143.327] (II) scfb(1): using default device
> > > >>> [   143.327] scfb trace: probe done
> > > >>> [   143.327] (WW) VGA arbiter: cannot open kernel arbiter, no
> > > >>> multi-card support [   143.327] (EE) Screen 0 deleted because of no
> > > >>> matching config section. [   143.327] (II) UnloadModule: "modesetting"
> > > >>> [   143.327] (EE)
> > > >>>
> > > >>> Fatal server error:
> > > >>> [   143.327] (EE) Cannot run in framebuffer mode. Please specify busIDs
> > > >>>        for all framebuffer devices [   143.328] (EE)
> > > >>> [   143.328] (EE)
> > > >>>
> > > >>> This is on an Intel NUC system with a i7-5557U (Broadwell) CPU. The
> > > >>> uname -a output is:
> > > >>>
> > > >>> FreeBSD tavion.austin.ibm.com 10.3-STABLE FreeBSD 10.3-STABLE #3
> > > >>> r315638: Mon Mar 20 11:44:00 CDT 2017
> > > >>> root at tavion.austin.ibm.com:/usr/obj/usr/src/sys/TAVION  amd64 > >>>
> > > >>> This system has been running with the scfb frame buffer driver for a
> > > >>> couple of years now with X running fine (if a bit slow).
> > > >>>
> > > >>> I just updated my ports 3/14 to revision 436172. Hadn't rebooted till
> > > >>> today. > >>>
> > > >>> I updated the system this morning hoping that would help, but no such
> > > >>> luck as I still get the same failure.
> > > >>>
> > > >>> Note that I am loading the i915kms.ko module as instructed in the
> > > >>> /usr/ports/UPDATING file (have been doing that all along) so it would
> > > >>> seem that I've run into something else.
> > > >>>
> > > >>> Also, reading the FreeBSD wiki for SCFB I added this file in
> > > >>> /usr/local/bin/etc/xorg.conf.d/driver-scfb.conf:
> > > >>>
> > > >>> Section "Device"
> > > >>>       Identifier  "Card0"
> > > >>>       Driver      "scfb"
> > > >>> EndSection
> > > >>>
> > > >>> Without any descernable change.
> > > >> On my i7 skylake system I have inserted this like in my xorg.conf:
> > > >>
> > > >>           BusID       "PCI:0:2:0"
> > > >>
> > > >> This has allowed me to use modesetting, intel and scfb Xorg drivers
> > > >> without issue.  I am not sure why X isn't able to autodetect the
> > > >> appropriate BusID though...
> > > >>
> > > >> hope this helps,
> > > >> -pete
> > > >>
> > > >> -- 
> > > >> Pete Wright
> > > >> pete at nomadlogic.org
> > > >> @nomadlogicLA
> > > > Thanks for the reply Pete. Would you mind sending me all of your
> > > > xorg.conf file? For some reason this system had been running w/o one all
> > > > this time but I think it's time for me to create one for it. At this
> > > > point the closest thing I have to one is the driver-scfb.conf file I
> > > > showed above. > 
> > > sure thing - although to be clear i think the preferred method is to 
> > > *not* use a configuration file, so hopefully someone with more info than 
> > > me can help determine why BusID detection is failing on your system.
> > > 
> > > here is an example device section you can drop at 
> > > /usr/local/etc/xorg.conf.d/driver-scfb.conf or which ever location suits 
> > > you best:
> > > 
> > > Section "Device"
> > >      Identifier  "Card0"
> > >      Driver      "scfb"
> > >      BusID       "PCI:0:2:0"
> > > EndSection
> > > 
> > > 
> > > also, here is my full Xorg as well - although hopefully you won't need
> > > this: 
> > > 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/"
> > >          FontPath "/usr/local/share/fonts/bitstream-vera/"
> > > EndSection
> > > 
> > > Section "Module"
> > >      Load  "glx"
> > >          Load  "glamoregl"
> > >          Load  "freetype"
> > > 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     "NoAccel"                # [<bool>]
> > >          #Option     "AccelMethod"            # <str>
> > >          #Option     "Backlight"              # <str>
> > >          #Option     "DRI"                    # <str>
> > >          #Option     "ColorKey"               # <i>
> > >          #Option     "VideoKey"               # <i>
> > >          #Option     "Tiling"                 # [<bool>]
> > >          #Option     "LinearFramebuffer"      # [<bool>]
> > >          #Option     "SwapbuffersWait"        # [<bool>]
> > >          #Option     "TripleBuffer"           # [<bool>]
> > >          #Option     "XvPreferOverlay"        # [<bool>]
> > >          #Option     "HotPlug"                # [<bool>]
> > >          #Option     "ReprobeOutputs"         # [<bool>]
> > >          #Option     "XvMC"                   # [<bool>]
> > >          #Option     "ZaphodHeads"            # <str>
> > >          #Option     "TearFree"               # [<bool>]
> > >          #Option     "PerCrtcPixmaps"         # [<bool>]
> > >          #Option     "FallbackDebug"          # [<bool>]
> > >          #Option     "DebugFlushBatches"      # [<bool>]
> > >          #Option     "DebugFlushCaches"       # [<bool>]
> > >          #Option     "DebugWait"              # [<bool>]
> > >          #Option     "BufferCache"            # [<bool>]
> > >      Identifier  "Card0"
> > >      Driver      "scfb"
> > >      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
> > > 
> > > 
> > > Cheers,
> > > -pete
> > > 
> > > 
> > > -- 
> > > Pete Wright
> > > pete at nomadlogic.org
> > > @nomadlogicLA
> > 
> > Hmm, with the BusID "PCI:0:2:0" added to my config file I now get
> > sigmentation faults on startup. Below is the backtrace info from the
> > Xorg.0.log. I've also attached the full Xorg.0.log and xorg.conf files in
> > case that helps identify what's wrong.
> > 
> > 
> > [  7020.659] (EE) AIGLX: reverting to software rendering
> > [  7020.792] (EE) 
> > [  7020.792] (EE) Backtrace:
> > [  7020.795] (EE) 0: /usr/local/bin/X (OsInit+0x38a) [0x59d61a]
> > [  7020.798] (EE) 1: /lib/libthr.so.3 (_pthread_sigmask+0x506) [0x802b46e56]
> > [  7020.801] (EE) 2: /lib/libthr.so.3 (_pthread_getspecific+0xdfc)
> > [0x802b46ddc] [  7020.804] (EE) 3: ? (?+0xdfc) [0x7ffffffffdff]
> > [  7020.808] (EE) 4: /usr/local/llvm39/lib/libLLVM-3.9.so
> > (_ZN4llvm13StringMapImpl15LookupBucketForENS_9StringRefE+0x7d) [0x8098aee6d]
> > [  7020.811] (EE) 5: /usr/local/llvm39/lib/libLLVM-3.9.so
> > (_ZNSt3__16vectorIPN4llvm2cl14OptionCategoryENS_9allocatorIS4_EEE21__push_bac
> > k_slow_pathIS4_EEvOT_+0x22f) [0x8098823cf] [  7020.815] (EE) 6:
> > /usr/local/llvm39/lib/libLLVM-3.9.so (LLVMParseCommandLineOptions+0x1c2c)
> > [0x80988063c] [  7020.819] (EE) 7: /usr/local/llvm39/lib/libLLVM-3.9.so
> > (_ZN4llvm2cl6Option11addArgumentEv+0x7c) [0x80987434c] [  7020.822] (EE) 8:
> > /usr/local/llvm36/lib/libLLVM-3.6.so
> > (_ZN4llvm32createPPCTargetTransformInfoPassEPKNS_16PPCTargetMachineE+0xc12)
> > [0x80e7f7b64] [  7020.826] (EE) 9: /usr/local/llvm36/lib/libLLVM-3.6.so
> > (LLVMInitializeARMTargetInfo+0x112) [0x80e7fe9b4] [  7020.830] (EE) 10:
> > /usr/local/llvm36/lib/libLLVM-3.6.so (_init+0xe) [0x80d82313c] [  7020.832]
> > (EE) 11: ? (_rtld_is_dlopened+0x1ad7) [0x800809ec7] [  7020.835] (EE) 12: ?
> > (dlopen+0x190) [0x800805280] [  7020.838] (EE) 13:
> > /usr/local/lib/xorg/modules/extensions/libglx.so (_init+0x1e24b)
> > [0x804849edb] [  7020.841] (EE) 14:
> > /usr/local/lib/xorg/modules/extensions/libglx.so (_init+0x1d6ff)
> > [0x80484880f] [  7020.844] (EE) 15:
> > /usr/local/lib/xorg/modules/extensions/libglx.so (_init+0x1cd4e)
> > [0x8048473ee] [  7020.847] (EE) 16: /usr/local/bin/X (InitExtensions+0x61)
> > [0x4a7b91] [  7020.850] (EE) 17: /usr/local/bin/X (remove_fs_handlers+0x301)
> > [0x439dd1] [  7020.853] (EE) 18: /usr/local/bin/X (_start+0x16f) [0x42501f]
> > [  7020.856] (EE) 19: ? (?+0x16f) [0x80082456f]
> > [  7020.856] (EE) 
> > [  7020.856] (EE) Segmentation fault at address 0x0
> > [  7020.856] (EE) 
> > Fatal server error:
> > [  7020.856] (EE) Caught signal 11 (Segmentation fault). Server aborting
> > [  7020.856] (EE) 
> > [  7020.856] (EE) 
> > 
> > 
> > 
> > -- 
> > Bob Willcox    | You're dead, Jim.
> > bob at immure.com |       -- McCoy, "The Tholian Web", stardate unknown
> > Austin, TX     |
> 
> 
> _______________________________________________
> freebsd-x11 at freebsd.org mailing list
> https://lists.freebsd.org/mailman/listinfo/freebsd-x11
> To unsubscribe, send any mail to "freebsd-x11-unsubscribe at freebsd.org"

-- 
Bob Willcox    | You're dead, Jim.
bob at immure.com |       -- McCoy, "The Tholian Web", stardate unknown
Austin, TX     |


More information about the freebsd-x11 mailing list