Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 20 Mar 2017 11:20:22 -0700
From:      Pete Wright <pete@nomadlogic.org>
To:        Bob Willcox <bob@immure.com>
Cc:        freebsd-x11@freebsd.org
Subject:   Re: Xorg fails w/scfb: Cannot run in framebuffer mode. Please specify busIDs
Message-ID:  <f547b94c-3193-2dc3-eb95-e98259534039@nomadlogic.org>
In-Reply-To: <20170320181535.GA73408@rancor.immure.com>
References:  <20170320180426.GA73014@rancor.immure.com> <216cdbb4-9280-1104-1c2f-83668beffaf0@nomadlogic.org> <20170320181535.GA73408@rancor.immure.com>

next in thread | previous in thread | raw e-mail | index | archive | help


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@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@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@nomadlogic.org
@nomadlogicLA




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?f547b94c-3193-2dc3-eb95-e98259534039>