You are not logged in.

#1 2013-05-25 09:23:19

debellator
Member
From: Hamburg
Registered: 2012-07-23
Posts: 24

Wine cannot resize screen when in fullsreen using nvidia

Hello

when I switched from nouveau to the nvidia driver I get this problem when I want to start a game (Commandos) :

fixme:win:EnumDisplayDevicesW ((null),0,0x32ece8,0x00000000), stub!
fixme:win:EnumDisplayDevicesW ((null),0,0x32ec18,0x00000000), stub!
err:x11settings:X11DRV_ChangeDisplaySettingsEx No matching mode found 640x480x0 @0! (XRandR 1.2)
fixme:win:EnumDisplayDevicesW ((null),0,0x32df38,0x00000000), stub!
err:x11settings:X11DRV_ChangeDisplaySettingsEx No matching mode found 640x480x0 @0! (XRandR 1.2)
fixme:win:EnumDisplayDevicesW ((null),0,0x32df38,0x00000000), stub!
err:x11settings:X11DRV_ChangeDisplaySettingsEx No matching mode found 640x480x0 @0! (XRandR 1.2)
err:d3d:wined3d_unregister_window Window 0x1006c is not registered with wined3d.
err:d3d:wined3d_unregister_window Window 0x1006c is not registered with wined3d.

When I run xrandr I only get:

$ xrandr --query
Screen 0: minimum 8 x 8, current 1366 x 768, maximum 8192 x 8192
VGA-0 disconnected primary (normal left inverted right x axis y axis)
LVDS-0 connected 1366x768+0+0 (normal left inverted right x axis y axis) 290mm x 170mm
   1366x768       60.0*+   50.0  
HDMI-0 disconnected (normal left inverted right x axis y axis)
DVI-D-0 disconnected (normal left inverted right x axis y axis)

I tried this article to add some resolutions but I only get this error:

$ cvt 640 480
# 640x480 59.38 Hz (CVT 0.31M3) hsync: 29.69 kHz; pclk: 23.75 MHz
Modeline "640x480_60.00"   23.75  640 664 720 800  480 483 487 500 -hsync +vsync
$ xrandr --newmode "640x480_60.00"   23.75  640 664 720 800  480 483 487 500 -hsync +vsync
$ xrandr --addmode LVDS-0 640x480_60.00
X Error of failed request:  BadMatch (invalid parameter attributes)
  Major opcode of failed request:  140 (RANDR)
  Minor opcode of failed request:  18 (RRAddOutputMode)
  Serial number of failed request:  29
  Current serial number in output stream:  30

I believe the problem exists between xrandr and the nvidia driver because it worked with the nouveau driver.
I switched from nouveau to nvidia with this commands:

$ pacman -Rdds --noconfirm nouveau-dri xf86-video-nouveau mesa-libgl lib32-nouveau-dri lib32-mesa-libgl
$ pacman -S --noconfirm nvidia lib32-nvidia-libgl

Knows anyone a solution?

Regards
Debellator

Offline

#2 2013-05-27 05:08:37

smudge
Member
Registered: 2011-03-20
Posts: 158

Re: Wine cannot resize screen when in fullsreen using nvidia

This may not help at all but have search for "metamodes".

For example, I created a file: /etc/X11/xorg.conf.d/20-nvidia.conf which contains:

Section "Screen"
    Identifier   "Screen0"
    Device       "Device0"
    DefaultDepth  24
    Option       "Metamodes" "DFP-2: nvidia-auto-select; 1440x900_75 {ViewPortIn=1200x900, ViewPortOut=1200x900+120+0};"
EndSection

to give me the unusual resolution 1200x900 on a 1440x900 screen for an old game. Maybe you could try something like that.

Offline

#3 2013-05-31 18:02:47

debellator
Member
From: Hamburg
Registered: 2012-07-23
Posts: 24

Re: Wine cannot resize screen when in fullsreen using nvidia

Hello,

thanks for you suggestions. So I updated my 10-monitor.conf

Section "Monitor"
    Identifier             "Monitor0"
    Option                 "DPMS" "1"
EndSection

Section "Screen"
    Identifier             "Screen0"  #Collapse Monitor and Device section to Screen section
    Device                 "Device0"
    Monitor                "Monitor0"
    DefaultDepth            24  #Choose the depth (16||24)
    Option       "Metamodes" "LVDS-0: nvidia-auto-select; 1366x768_60 {ViewPortIn=640x480, ViewPortOut=640x480+120+0};"
    SubSection             "Display"
        Depth               24
        Modes              "1366x768" "1024x768" "800x600" "640x480" #Choose the resolution
    EndSubSection
EndSection

Unfoftunately it does not help. I still get the same error message.

Offline

Board footer

Powered by FluxBB