Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 13 Dec 2015 00:39:08 +0200
From:      Volodymyr Kostyrko <arcade@b1t.name>
To:        freebsd-x11@freebsd.org, freebsd questions list <freebsd-questions@freebsd.org>
Subject:   Re: problems running OpenGL code
Message-ID:  <566CA20C.4050307@b1t.name>
In-Reply-To: <566C94A6.1090703@hiwaay.net>
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>

next in thread | previous in thread | raw e-mail | index | archive | help
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: <i>: integer, <f>: float, <bool>: "True"/"False",
>          ### <string>: "String", <freq>: "<f> Hz/kHz/MHz"
>          ### [arg]: arg optional
>          #Option     "ShadowFB"                  # [<bool>]
>          #Option     "DefaultRefresh"            # [<bool>]
>          #Option     "ModeSetClearScreen"        # [<bool>]
>          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: <i>: integer, <f>: float, <bool>: "True"/"False",
>          ### <string>: "String", <freq>: "<f> 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.
	
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. :)

-- 
Sphinx of black quartz judge my vow.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?566CA20C.4050307>