Resolution issue

Open forum for end-user questions about Wine. Before asking questions, check out the Wiki as a first step.
Forum Rules
Locked
danvari
Newbie
Newbie
Posts: 3
Joined: Sat Apr 04, 2009 2:12 am

Resolution issue

Post by danvari »

hello!

i am using archlinux x86_64. i have got a 32bit chroot and also 32bit libs installed, so i can run 32bit apps inside the chroot or using the libs. now my problem:

my native desktop resolution is 1680x1050. i want to play my games in 800x600, 1024x768 or whatever. when i run a game in the chroot, it works like a charme, wine changes the resolution and i have no problems at all. when i run it using the 32bit libs wine changes the resolution, but i can move the mouse to the right or bottom corner and can so navigate to the whole desktop (as my desktop is bigger than the games resolution). it does happen to all tested games, half life (no source based), half life 2, morrowind, blair witch...
i tried different versions of the nvidia-drivers (nvidia-utils) and different versions of wine, latest is 1.1.18.
workaround: i change my desktop resolution to the games one in gnome for example, the run the game in wine. wine will not change the resolution anymore and i will not get this issue anymore (which makes first person shooter unplayable).
but: 32bit games, like ut2004 or doom3, are running fine via 32bit libs, there is no problem with the resolution.
i also tried changing wine's resolution method to xrandr, but then there is only one resolution (my desktop resolution) avaible in my games. playing in an emulated works therefore fine.
i asked in the archlinux forums, but nobody has this issue or could help me.

i know it worked two weeks ago, then i changed my distro to gentoo (where it also worked quite well) and then changed back to archlinux. do you maybe know how i can fix that or which lib is responsible for the resolution change?
fullyspenged
Level 2
Level 2
Posts: 31
Joined: Tue Dec 02, 2008 1:29 pm

Post by fullyspenged »

xrandr is responsible for this.

I also run arch64 with the same setup as you and the same resolution, quite interesting. :p

Anyways, what you need to do is to disable twinview. Type xrandr to show the currently available resolutions.

Code: Select all

    Identifier     "Screen0"
    Device         "Device0"
    Monitor        "Monitor0"
    DefaultDepth    24
[b]    Option         "TwinView" "0"[/b]
    SubSection     "Display"
        Depth       24
        Modes      "1680x1050_60.00"
    EndSubSection
EndSection

Code: Select all

Section "Device"
    Identifier     "Device0"
    Driver         "nvidia"
    VendorName     "NVIDIA Corporation"
    BoardName      "GeForce 8800 GT"
    Option         "NoLogo" "True"
    Option         "RenderAccel" "True"
    Option         "NoRenderExtension" "False"
    Option         "NvAGP" "0"
    Option         "AddARGBGLXVisuals" "True"
    Option         "AllowGLXWithComposite" "True"
[b]    Option	   "DynamicTwinView" "False"[/b]
EndSection
The twinview parts on both parts are the lines you need. This worked for me, I now have loads of resolutions to pick in game as opposed to when twin view was enabled.
danvari
Newbie
Newbie
Posts: 3
Joined: Sat Apr 04, 2009 2:12 am

Post by danvari »

hmm no that did not work :-\. i tried both xrandr and xvidmode for resolution change, it seems to change nothing (beside i cannot change the resolution in nvidia-settings anymore). now here is my xorg.conf:

Code: Select all

Section "ServerLayout"
    Identifier     "Layout0"
    Screen      0  "Screen0"
EndSection

Section "Monitor"
    Identifier     "Monitor0"
    VendorName     "Unknown"
    ModelName      "Unknown"
    HorizSync       28.0 - 33.0
    VertRefresh     43.0 - 72.0
    Option         "DPMS"
EndSection

Section "Device"
    Identifier     "Device0"
    Driver         "nvidia"
    Option "NoLogo" "true"
    Option         "RenderAccel" "True"
    Option         "NoRenderExtension" "False"
    Option         "NvAGP" "0"
    Option         "AddARGBGLXVisuals" "True"
    Option         "AllowGLXWithComposite" "True"
    Option      "DynamicTwinView" "False"
    VendorName     "NVIDIA Corporation"
EndSection

Section "Screen"
    Identifier     "Screen0"
    Device         "Device0"
    Monitor        "Monitor0"
    DefaultDepth    24
	Option "TwinView" "0"
    SubSection     "Display"
        Depth       24
    EndSubSection
EndSection
vitamin
Moderator
Moderator
Posts: 6605
Joined: Sat Feb 23, 2008 2:29 pm

Post by vitamin »

danvari wrote:hmm no that did not work :-\. i tried both xrandr and xvidmode for resolution change, it seems to change nothing (beside i cannot change the resolution in nvidia-settings anymore). now here is my xorg.conf:
You don't have any resolutions listed. Wine can't use XRandr extension without some resolutions configured.
You can verify what you have running 'xrandr' commnad.

What you described in OP is XVidMode.
danvari
Newbie
Newbie
Posts: 3
Joined: Sat Apr 04, 2009 2:12 am

Post by danvari »

mmh no, xrandr lists many different resolutions:

Code: Select all

[stephan@myhost Morrowind]$ xrandr
Xlib:  extension "Generic Event Extension" missing on display ":0.0".
Screen 0: minimum 320 x 240, current 1680 x 1050, maximum 1680 x 1050
default connected 1680x1050+0+0 0mm x 0mm
   1680x1050      50.0* 
   1400x1050      51.0  
   1280x1024      52.0  
   1280x960       53.0  
   1024x768       54.0  
   800x600        55.0     56.0  
   640x512        57.0  
   640x480        58.0     59.0  
   512x384        60.0  
   400x300        61.0  
   320x240        62.0  
although it has to work with xvidmode.
i installed arch 32bit on my partition, _same_ configuration, same apps, same versions, and no problem with the resolution in wine. so whats the difference between a 64bit system using 32bit libs and a "real" 32bit system?
how can i find out whats wrong with wine?
Locked