From owner-freebsd-questions@freebsd.org Sun Dec 13 05:17:43 2015 Return-Path: Delivered-To: freebsd-questions@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 B1828A41F80; Sun, 13 Dec 2015 05:17:43 +0000 (UTC) (envelope-from wam@hiwaay.net) Received: from fly.hiwaay.net (fly.hiwaay.net [216.180.54.1]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 83ED51483; Sun, 13 Dec 2015 05:17:43 +0000 (UTC) (envelope-from wam@hiwaay.net) Received: from kabini1.local (dynamic-216-186-213-32.knology.net [216.186.213.32] (may be forged)) (authenticated bits=0) by fly.hiwaay.net (8.13.8/8.13.8/fly) with ESMTP id tBD5HeKS018862 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES128-SHA bits=128 verify=NO); Sat, 12 Dec 2015 23:17:41 -0600 Subject: Re: problems running OpenGL code To: freebsd-x11@freebsd.org, freebsd questions list References: <566C3DAD.8090809@hiwaay.net> <20151212173509.fba928df.freebsd@edvax.de> <566C51CB.8040604@hiwaay.net> <566C536F.8080507@hiwaay.net> <566C5966.8020403@hiwaay.net> <566C75F3.1090801@b1t.name> <566C94A6.1090703@hiwaay.net> <566CA20C.4050307@b1t.name> From: "William A. Mahaffey III" Message-ID: <566CFF74.6000402@hiwaay.net> Date: Sat, 12 Dec 2015 23:23:10 -0553.75 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:38.0) Gecko/20100101 Thunderbird/38.3.0 MIME-Version: 1.0 In-Reply-To: <566CA20C.4050307@b1t.name> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 13 Dec 2015 05:17:43 -0000 On 12/12/15 16:45, Volodymyr Kostyrko wrote: > On 12.12.2015 23:40, William A. Mahaffey III wrote: >> xorg.conf was/is still using the VESA driver, do I need any changes >> there as well ? > > yep > >> Section "Files" >> ModulePath "/usr/local/lib/xorg/modules" >> FontPath "/usr/local/lib/X11/fonts/misc/" >> FontPath "/usr/local/lib/X11/fonts/TTF/" >> FontPath "/usr/local/lib/X11/fonts/OTF" >> FontPath "/usr/local/lib/X11/fonts/Type1/" >> FontPath "/usr/local/lib/X11/fonts/100dpi/" >> FontPath "/usr/local/lib/X11/fonts/75dpi/" >> EndSection > > This one is not needed mostly, you are specifying defaults. > >> Section "Module" >> Load "dbe" >> Load "dri" >> Load "dri2" >> Load "extmod" >> Load "record" >> Load "glx" >> EndSection > > Same here, server will try to load them anyway. > >> Section "InputDevice" >> Identifier "Mouse0" >> Driver "mouse" >> Option "Protocol" "auto" >> Option "Device" "/dev/sysmouse" >> Option "ZAxisMapping" "4 5 6 7" >> EndSection >> >> Section "InputDevice" >> Identifier "Mouse0" >> Driver "vboxmouse" >> EndSection > > You have two definitions for mouse, make `Identifier` different or... > actually I don't know which one would be selected. > >> Section "Device" >> ### Available Driver options are:- >> ### Values: : integer, : float, : "True"/"False", >> ### : "String", : " Hz/kHz/MHz" >> ### [arg]: arg optional >> #Option "ShadowFB" # [] >> #Option "DefaultRefresh" # [] >> #Option "ModeSetClearScreen" # [] >> Identifier "Card0" >> Driver "vesa" >> VendorName "Advanced Micro Devices, Inc. [AMD/ATI]" >> BoardName "Kabini [Radeon HD 8280 / R3 Series]" >> BusID "PCI:0:1:0" >> EndSection >> >> Section "Device" >> ### Available Driver options are:- >> ### Values: : integer, : float, : "True"/"False", >> ### : "String", : " Hz/kHz/MHz" >> ### [arg]: arg optional >> Identifier "Card0" >> Driver "vboxvideo" >> VendorName "InnoTek Systemberatung GmbH" >> BoardName "VirtualBox Graphics Adapter" >> BusID "PCI:0:2:0" >> EndSection > > Same here, you are defining one `Identifier` twice. Found this online somewhere, pursuant to (trying to) get vbox running, still dicey .... Ditto the above twice-Identified Mouse0 .... > > And yes, here you need to specify your driver. Mine looks like: > > Section "Device" > Identifier "Integrated" > Driver "ati" > EndSection > > My config also has this: > > Section "ServerFlags" > Option "AIGLX" "True" > Option "BlankTime" "0" > Option "StandByTime" "0" > Option "SuspendTime" "0" > Option "OffTime" "10" > Option "AutoAddDevices" "False" > Option "AllowEmptyInput" "False" > Option "Log" "Sync" > Option "DRI2" "On" > EndSection > > Section "DRI" > Mode 0666 > EndSection > > Section "Extensions" > Option "Composite" "On" > Option "RENDER" "on" > Option "DAMAGE" "on" > EndSection > > I'm not saying you need to put all of that in your config, I haven't > tested whether all of that is still needed today. You know, time > passes by and you have no time to fix those thing since everything is > still working fine. For example I think whole `Extensions` section > became useless... > > PS: Thanks man, made me review my own config so I'll go testing now. :) No problema, happy to oblige. Let me know what you find ;-) .... I think I am supposed to be radeon, but not sure. Is your hardware AMD APU gfx ? -- William A. Mahaffey III ---------------------------------------------------------------------- "The M1 Garand is without doubt the finest implement of war ever devised by man." -- Gen. George S. Patton Jr.