Hello, I have a problem with windows apps that switch resolution. I use my nvidia card (optimus laptop) with provider output source feature. In this case all supported resolutions are not detected normally so I have to add them manually like this:
xrandr --newmode 800x600 38.25 800 832 912 1024 600 603 607 624 -hsync +vsync
xrandr --addmode LVDS-0 800x600
After that xrandr shows all added resolutions and allows to switch them just fine:
Screen 0: minimum 8 x 8, current 1920 x 1080, maximum 16384 x 16384
LVDS-0 connected 1920x1080+0+0 344mm x 194mm
1920x1080 60.0*+
1400x1050 60.0
1280x1024 60.0
1280x960 60.0
1024x768 60.0
800x600 59.9
640x480 60.0
VGA-0 disconnected
HDMI-0 disconnected
DisplayPort-0 disconnected
1400x1050 (0x2b7) 122.0MHz
h: width 1400 start 1488 end 1640 total 1880 skew 0 clock 64.9KHz
v: height 1050 start 1052 end 1064 total 1082 clock 60.0Hz
1280x1024 (0x2b8) 108.0MHz
h: width 1280 start 1328 end 1440 total 1688 skew 0 clock 64.0KHz
v: height 1024 start 1025 end 1028 total 1066 clock 60.0Hz
1280x960 (0x2b9) 108.0MHz
h: width 1280 start 1376 end 1488 total 1800 skew 0 clock 60.0KHz
v: height 960 start 961 end 964 total 1000 clock 60.0Hz
1024x768 (0x2ba) 65.0MHz
h: width 1024 start 1048 end 1184 total 1344 skew 0 clock 48.4KHz
v: height 768 start 771 end 777 total 806 clock 60.0Hz
800x600 (0x2bb) 38.2MHz
h: width 800 start 832 end 912 total 1024 skew 0 clock 37.4KHz
v: height 600 start 603 end 607 total 624 clock 59.9Hz
640x480 (0x2bc) 25.2MHz
h: width 640 start 656 end 752 total 800 skew 0 clock 31.5KHz
v: height 480 start 490 end 492 total 525 clock 60.0Hz
However when I start Diablo II and it tries to set 640x480 or 800x600 resolution it failes with the following error:
X Error of failed request: BadValue (integer parameter out of range for operation)
Major opcode of failed request: 139 (RANDR)
Minor opcode of failed request: 21 (RRSetCrtcConfig)
Value in failed request: 0x0
Serial number of failed request: 13484
Current serial number in output stream: 13484
The same game works fine if direct output from Intel integrated video is used. Does anyone know what's wrong with my configuration?
Note, that when the game starts, the resolution actually switches, and only then game exits with error above.
Wine with provider-output-source (optimus)
-
- Level 1
- Posts: 6
- Joined: Sun Apr 03, 2011 2:07 am