From owner-freebsd-x11@freebsd.org Mon Mar 20 18:20:42 2017 Return-Path: Delivered-To: freebsd-x11@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id A5427D14980 for ; Mon, 20 Mar 2017 18:20:42 +0000 (UTC) (envelope-from pete@nomadlogic.org) Received: from vps-mail.nomadlogic.org (unknown [IPv6:2607:f2f8:a098::2]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 8D2191D8E for ; Mon, 20 Mar 2017 18:20:42 +0000 (UTC) (envelope-from pete@nomadlogic.org) Received: from [IPv6:2605:e000:1313:b3:223:24ff:fea8:4fb5] (2605:e000:1313:b3:223:24ff:fea8:4fb5 [IPv6:2605:e000:1313:b3:223:24ff:fea8:4fb5]) by vps-mail.nomadlogic.org (OpenSMTPD) with ESMTPSA id 2fcf8d88 TLS version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128 verify=NO; Mon, 20 Mar 2017 11:20:41 -0700 (PDT) Subject: Re: Xorg fails w/scfb: Cannot run in framebuffer mode. Please specify busIDs To: Bob Willcox References: <20170320180426.GA73014@rancor.immure.com> <216cdbb4-9280-1104-1c2f-83668beffaf0@nomadlogic.org> <20170320181535.GA73408@rancor.immure.com> Cc: freebsd-x11@freebsd.org From: Pete Wright Message-ID: Date: Mon, 20 Mar 2017 11:20:22 -0700 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:45.0) Gecko/20100101 Thunderbird/45.8.0 MIME-Version: 1.0 In-Reply-To: <20170320181535.GA73408@rancor.immure.com> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-x11@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: X11 on FreeBSD -- maintaining and support List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 20 Mar 2017 18:20:42 -0000 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: : integer, : float, : "True"/"False", ### : "String", : " Hz/kHz/MHz", ### : "%" ### [arg]: arg optional #Option "NoAccel" # [] #Option "AccelMethod" # #Option "Backlight" # #Option "DRI" # #Option "ColorKey" # #Option "VideoKey" # #Option "Tiling" # [] #Option "LinearFramebuffer" # [] #Option "SwapbuffersWait" # [] #Option "TripleBuffer" # [] #Option "XvPreferOverlay" # [] #Option "HotPlug" # [] #Option "ReprobeOutputs" # [] #Option "XvMC" # [] #Option "ZaphodHeads" # #Option "TearFree" # [] #Option "PerCrtcPixmaps" # [] #Option "FallbackDebug" # [] #Option "DebugFlushBatches" # [] #Option "DebugFlushCaches" # [] #Option "DebugWait" # [] #Option "BufferCache" # [] 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