Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 31 Jul 2010 11:45:51 GMT
From:      Alexander Pyhalov <alp@rsu.ru>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   ports/149147: wine can't launch fullscreen DirectX applications
Message-ID:  <201007311145.o6VBjpHt084666@www.freebsd.org>
Resent-Message-ID: <201007311150.o6VBo2V8006173@freefall.freebsd.org>

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

>Number:         149147
>Category:       ports
>Synopsis:       wine can't launch fullscreen DirectX applications
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sat Jul 31 11:50:01 UTC 2010
>Closed-Date:
>Last-Modified:
>Originator:     Alexander Pyhalov
>Release:        8.1
>Organization:
>Environment:
FreeBSD freebsd 8.1-RELEASE FreeBSD 8.1-RELEASE #0: Mon Jul 19 02:55:53 UTC 2010     root@almeida.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC  i386

>Description:
When I launch most of my windows games with wine, I get the following error:
X Error of failed request:  BadMatch (invalid parameter attributes)
  Major opcode of failed request:  1 (X_CreateWindow)
  Serial number of failed request:  26414
  Current serial number in output stream:  26416
I tried to remove ~/.wine directory, but this didn't help.

> ls /var/db/pkg/|grep wine
wine-1.2,1

> cat /var/db/ports/wine/options
# This file is auto-generated by 'make config'.
# No user-servicable parts inside!
# Options for wine-1.2,1
_OPTIONS_READ=wine-1.2,1
WITHOUT_CUPS=true
WITHOUT_GNUTLS=true
WITHOUT_HAL=true
WITHOUT_LDAP=true
WITH_LIBXSLT=true
WITHOUT_WINEMAKER=true

> cat /etc/X11/xorg.conf
Section "ServerLayout"
        Identifier     "X.org Configured"
        Screen      0  "Screen0" 0 0
        InputDevice    "Mouse0" "CorePointer"
        InputDevice    "Keyboard0" "CoreKeyboard"
        Option          "AllowEmptyInput" "True"
EndSection

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/:unscaled"
        FontPath     "/usr/local/lib/X11/fonts/75dpi/:unscaled"
        FontPath     "/usr/local/lib/X11/fonts/bitstream-vera/"
        FontPath     "/usr/local/lib/X11/fonts/cyrillic/:unscaled"
        FontPath     "/usr/local/lib/X11/fonts/misc/"
        FontPath     "/usr/local/lib/X11/fonts/dejavu/"
        FontPath     "/usr/local/lib/X11/fonts/webfonts/"
EndSection

Section "Module"
        Load  "glx"
        Load  "GLcore"
        Load  "dbe"
        Load  "dri2"
        Load  "dri"
        Load  "record"
        Load  "extmod"
EndSection

Section "InputDevice"
        Identifier  "Keyboard0"
        Driver      "kbd"
        Option "XkbModel" "pc105"
        Option "XkbLayout" "us,ru(winkeys)"
        Option "XkbOptions" "grp:rwin_toggle,grp_led:scroll"
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"
        ### [arg]: arg optional
        #Option     "NoAccel"                   # [<bool>]
        #Option     "AccelMethod"               # [<str>]
        #Option     "offscreensize"             # [<str>]
        #Option     "SWcursor"                  # [<bool>]
        #Option     "ignoreconnector"           # [<str>]
        #Option     "forcereduced"              # [<bool>]
        #Option     "forcedpi"                  # <i>
        #Option     "useconfiguredmonitor"      # [<bool>]
        #Option     "HPD"                       # <str>
        #Option     "NoRandr"                   # [<bool>]
        #Option     "RROutputOrder"             # [<str>]
        #Option     "DRI"                       # [<bool>]
        #Option     "TVMode"                    # [<str>]
        #Option     "ScaleType"                 # [<str>]
        #Option     "UseAtomBIOS"               # [<bool>]
        #Option     "AtomBIOS"                  # [<str>]
        #Option     "UnverifiedFeatures"        # [<bool>]
        #Option     "Audio"                     # [<bool>]
        #Option     "AudioStreamSilence"        # [<str>]
        #Option     "HDMI"                      # [<str>]
        #Option     "COHERENT"                  # [<str>]
        #Option     "ForceLowPowerMode"         # [<bool>]
        #Option     "LowPowerModeEngineClock"   # <i>
        Option     "DRI"              "On"
        Option "AccelMethod" "EXA"
        Identifier  "Card0"
        Driver      "radeon"
        VendorName  "ATI Technologies Inc"
        BoardName   "RV530LE [Radeon X1600/X1650 PRO]"
        BusID       "PCI:1:0: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

> glxinfo |grep direc
direct rendering: Yes

If I run, for example, War3 in window mode, I'm getting:
> wine War3.exe  -opengl -window
err:ole:CoCreateInstance apartment not initialised
err:winediag:X11DRV_WineGL_InitOpenglInfo Direct rendering is disabled, most likely your OpenGL drivers haven't been installed correctly
fixme:advapi:SetSecurityInfo stub
fixme:d3d_caps:wined3d_guess_card No card selector available for GL vendor 4 and card vendor 0000.
fixme:win:EnumDisplayDevicesW ((null),0,0x34f298,0x00000000), stub!
fixme:win:EnumDisplayDevicesW ((null),0,0x34f650,0x00000000), stub!


It's running, but is very slow...
>How-To-Repeat:

>Fix:


>Release-Note:
>Audit-Trail:
>Unformatted:



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