Bob Wya
2010-Nov-11 01:21 UTC
[Wine] Battlefield 2 & Battlefield 2142 : startup resolution issue
Hi I am trying to get Battlefield 2 and Battlefield 2142 to launch under Kubuntu 10.04 & Wine 1.3.6. I'm using an Nvidia 8800 GTX 768Mb GPU with Nvidia blob driver 260.19.12. Anyway launching BF2142 (retail copy, patched to v1.5) gives me the following error (2x) in the console output streams: Code: ... err:x11settings:X11DRV_ChangeDisplaySettingsEx No matching mode found 800x600x32 @85! (XRandR) ... The game runs fine in a Virtual Desktop 800x600 (I only tried Singleplayer mode but all the rendering appeared glitch free). I've tried manually adding entries to my xrandr output but they just end up being ignored: Code: Screen 0: minimum 320 x 175, current 1600 x 1200, maximum 1600 x 1200 default connected 1600x1200+0+0 0mm x 0mm 1600x1200 50.0* 800x600 51.0 91.0 92.0 93.0 94.0 95.0 96.0 97.0 98.0 99.0 100.0 1600x1024 52.0 1440x900 53.0 1400x1050 54.0 55.0 56.0 1360x768 57.0 58.0 1280x1024 59.0 60.0 61.0 1280x960 62.0 63.0 1152x864 64.0 65.0 66.0 67.0 68.0 69.0 70.0 1024x768 71.0 72.0 73.0 74.0 75.0 76.0 960x720 77.0 78.0 960x600 79.0 960x540 80.0 928x696 81.0 82.0 896x672 83.0 84.0 840x525 85.0 86.0 87.0 88.0 89.0 832x624 90.0 800x512 101.0 720x450 102.0 720x400 103.0 700x525 104.0 105.0 106.0 107.0 680x384 108.0 109.0 640x512 110.0 111.0 112.0 640x480 113.0 114.0 115.0 116.0 117.0 118.0 119.0 120.0 640x400 121.0 640x350 122.0 576x432 123.0 124.0 125.0 126.0 127.0 128.0 129.0 512x384 130.0 131.0 132.0 133.0 134.0 416x312 135.0 400x300 136.0 137.0 138.0 139.0 140.0 360x200 141.0 320x240 142.0 143.0 144.0 145.0 320x200 146.0 320x175 147.0 800x600_85.00 83.8 Yes that's my new mode at the bottom!! My xorg.conf: Code: # nvidia-settings: X configuration file generated by nvidia-settings # nvidia-settings: version 260.19.12 (buildd at fermium) Sat Oct 16 01:06:10 UTC 2010 # nvidia-xconfig: X configuration file generated by nvidia-xconfig # nvidia-xconfig: version 260.19.12 (buildmeister at builder101) Fri Oct 8 11:47:04 PDT 2010 Section "ServerLayout" Identifier "Layout0" Screen 0 "Screen0" 0 0 InputDevice "Keyboard0" "CoreKeyboard" InputDevice "Mouse0" "CorePointer" Option "Xinerama" "0" EndSection Section "Files" EndSection Section "InputDevice" # generated from default Identifier "Mouse0" Driver "mouse" Option "Protocol" "auto" Option "Device" "/dev/psaux" Option "Emulate3Buttons" "no" Option "ZAxisMapping" "4 5" EndSection Section "InputDevice" # generated from default Identifier "Keyboard0" Driver "kbd" EndSection Section "Monitor" Identifier "Monitor0" VendorName "Unknown" ModelName "Idek Iiyama AU5131" HorizSync 24.0 - 80.0 VertRefresh 50.0 - 85.0 Option "DPMS" EndSection Section "Device" Identifier "Device0" Driver "nvidia" VendorName "NVIDIA Corporation" BoardName "GeForce 8800 GTX" EndSection Section "Screen" # Removed Option "metamodes" "1600x1200 +0+0" Identifier "Screen0" Device "Device0" Monitor "Monitor0" DefaultDepth 24 Option "TwinView" "0" Option "metamodes" "1600x1200 +0+0; 800x600_85 +0+0" SubSection "Display" Depth 24 EndSubSection EndSection My TFT panel can support 800x600 @85Hz (native is 1600x1200). I tried setting the screen resolution to 800x600 @85Hz in the Nvidia control panel. However the game still crashes out with the previously mentioned error (xrandr). I've tried all the fixes for Profile files listed on AppDB. However it appears the game forces a resolution change at launch time (even if all the intro movies are deleted) - that cannot be avoided. This bug effects Battlefield 2142 (1.5) and Battlefield 2 (1.5). Both retail and Steam versions are affected. Any thoughts? Bob
vitamin
2010-Nov-11 04:08 UTC
[Wine] Re: Battlefield 2 & Battlefield 2142 : startup resolution is
Bob Wya wrote:> > Code: > Section "Device" > EndSection > > Section "Screen" > Option "TwinView" "0" > EndSection > > > >That is wrong. The proper option is : Code: Option "DynamicTwinView" "FALSE" And goes into Device section. BF2 is very specific about what resolution it wants and will not run properly if you don't have it.
Soulcage
2010-Nov-11 05:36 UTC
[Wine] Re: Battlefield 2 & Battlefield 2142 : startup resolution is
Does this work?: Code: wine BF2142.exe +szx 1280 +szy 1024