View previous topic :: View next topic |
Author |
Message |
BobWya Apprentice
Joined: 12 Aug 2012 Posts: 228 Location: Cambridge,UK
|
Posted: Thu Apr 03, 2014 12:13 pm Post subject: Fix for xrandr 800x600 @85Hz (required by Wine+BF2/BF2142) |
|
|
Hi folks,
I'm presently updating the WineHQ Wiki pages for BF2 & BF2142. I am trying to work out if there is way to fake a 800x600 monitor mode which BF2/BF2142 requires when starting up (without using a Wine Virtual Desktop).
For example at present my laptop has an AMD Radeon HD4650M GPU. I have a built-in TFT panel @1366x768 and an external monitor @1600x1200. Like so...
Code: | xrandr
Screen 0: minimum 320 x 200, current 2966 x 1200, maximum 8192 x 8192
VGA-0 disconnected (normal left inverted right x axis y axis)
LVDS connected 1366x768+0+432 (normal left inverted right x axis y axis) 0mm x 0mm
1366x768 60.0*+
1280x720 59.9
1152x768 59.8
1024x768 59.9
800x600 59.9
848x480 59.7
720x480 59.7
640x480 59.4
HDMI-0 connected 1600x1200+1366+0 (normal left inverted right x axis y axis) 408mm x 306mm
1600x1200 60.0*+
1400x1050 59.9
1600x900 60.0
1280x1024 75.0 60.0
1440x900 84.8 75.0 59.9
1280x960 60.0
1366x768 60.0
1360x768 60.0
1280x800 84.9 74.9 59.9
1152x864 75.0
1280x768 84.8 74.9 60.0
1024x768 85.0 75.1 70.1 60.0
1024x576 60.0
800x600 85.1 72.2 75.0 60.3 56.2
848x480 60.0
640x480 85.0 75.0 72.8 60.0 59.9
720x400 85.0
640x400 85.1
640x350 85.1
|
Wine is a bit dumb in multimonitor.
When running the game on the external display the game will start fine (internal display disabled). When I start on the built-in laptop monitor the game does not start (external display disabled). The debug trace states that the game requires a 800x600@85 xrandr mode.
Note I am disabling the displays in the KDE System Settings. The output of xrandr appears to be correct after I disable a display (the modes for the disabled display do not show up).
Currently I am not using a xorg.conf for my laptops video card as I am using radeon display driver. So my question is can one "fake" a display mode of 800x600 (@ a specified refresh rate) in xorg.conf or using xrandr that actually map to a supported mode (e.g. 1024x768@60Hz)? How would one do this?
Thanks
Bob _________________ system: G751JT (ASUS-NotebookSKU); processor: Intel(R) Core(TM) i7-4710HQ CPU @ 2.50GHz; memory: 32GiB System Memory; display: GM204M [GeForce GTX 970M]; disk: 2048GB Samsung SSD 850;BD-CMB UJ172 S;1024GB Samsung SSD 850
Last edited by BobWya on Thu Apr 03, 2014 7:18 pm; edited 1 time in total |
|
Back to top |
|
|
Dominique_71 Veteran
Joined: 17 Aug 2005 Posts: 1877 Location: Switzerland (Romandie)
|
Posted: Thu Apr 03, 2014 7:17 pm Post subject: |
|
|
will change your display to 800x600. _________________ "Confirm You are a robot." - the singularity |
|
Back to top |
|
|
BobWya Apprentice
Joined: 12 Aug 2012 Posts: 228 Location: Cambridge,UK
|
Posted: Thu Apr 03, 2014 7:23 pm Post subject: |
|
|
Dominique_71 wrote: |
will change your display to 800x600. |
I've adjusted the inaccurate forum thread title. The original and updated BF2 (& BF2142) code is a bit broken and tries to modeset to 800x600 @85Hz. Many monitors don't support this.
The problem isn't how to set a monitor mode. The problem is that Wine tries to set the display mode to 800x600 @85Hz and fails if this mode is unavailable. My thought was can I fake a 60Hz 800x600 resolution mode (which 800x600 @85Hz maps to). But my feeble attempts haven't got very far...
Thanks
Bob _________________ system: G751JT (ASUS-NotebookSKU); processor: Intel(R) Core(TM) i7-4710HQ CPU @ 2.50GHz; memory: 32GiB System Memory; display: GM204M [GeForce GTX 970M]; disk: 2048GB Samsung SSD 850;BD-CMB UJ172 S;1024GB Samsung SSD 850 |
|
Back to top |
|
|
Dominique_71 Veteran
Joined: 17 Aug 2005 Posts: 1877 Location: Switzerland (Romandie)
|
Posted: Thu Apr 03, 2014 8:21 pm Post subject: |
|
|
You must look if it is possible to configure/force wine to use 800x600@60 instead of 85. I have no clue here. _________________ "Confirm You are a robot." - the singularity |
|
Back to top |
|
|
Gentoo64 n00b
Joined: 21 Oct 2011 Posts: 52 Location: ::
|
Posted: Tue Apr 08, 2014 11:45 am Post subject: |
|
|
heh I played BF2 to death only recently stopped playing. It tries to do 800x600 @60HZ to initially start up, after that you can use any resolution in game, so make sure you have the option to support 800x600@60HZ either by using modeline in xorg.conf or whatever. I've never played it on wine though so good luck. |
|
Back to top |
|
|
|