https://bugs.winehq.org/show_bug.cgi?id=40284
Bug ID: 40284 Summary: Unable to change resolution for LVDS panels Product: Wine Version: 1.9.5 Hardware: x86 OS: Linux Status: UNCONFIRMED Severity: normal Priority: P2 Component: winex11.drv Assignee: wine-bugs@winehq.org Reporter: gang65@poczta.onet.pl Distribution: ---
If Wine want to change the resolution on laptop screen, there is only one supported mode. For example xrandr -q shows:
LVDS-0 connected primary 1680x1050+0+0 (normal left inverted right x axis y axis) 331mm x 207mm 1680x1050 59.88*+
This is because the native resolution is the only one that your internal panel supports, while your HDMI monitor supports a variety of different modes. Note that unlike other modesetting interfaces, RandR 1.2 provides control over the actual physical mode timings being sent to the monitor, so only supported timings are listed.
More information about issue: https://devtalk.nvidia.com/default/topic/922395/340-96-xrandr-1-5-0-and-nati...
This is causing error during run like for Commandos 2: wine Comm2.exe fixme:win:EnumDisplayDevicesW ((null),0,0x32f1a4,0x00000000), stub! err:x11settings:X11DRV_ChangeDisplaySettingsEx No matching mode found 640x480x16 @0! (NoRes)
To resolve missing resolution for laptops, the scale should be used. With randr it could be set as: xrandr --output LVDS-0 --scale-from 640x480
https://bugs.winehq.org/show_bug.cgi?id=40284
Bartosz gang65@poczta.onet.pl changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |gang65@poczta.onet.pl
https://bugs.winehq.org/show_bug.cgi?id=40284
--- Comment #1 from Bartosz gang65@poczta.onet.pl --- After attaching VGA monitor (which support 640x480 resolution), the Commandos 2 is running perfectly fine.
Hardware: VGA compatible controller: NVIDIA Corporation GF108GLM [NVS 5200M]
https://bugs.winehq.org/show_bug.cgi?id=40284
Bartosz gang65@poczta.onet.pl changed:
What |Removed |Added ---------------------------------------------------------------------------- Summary|Unable to change resolution |Unable to change resolution |for LVDS panels |for LVDS panels (laptop), | |on which only one | |resolution is available | |(ex. 1680x1050)
https://bugs.winehq.org/show_bug.cgi?id=40284
super_man@post.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |super_man@post.com
--- Comment #2 from super_man@post.com --- Is this wine bug at all? It's possible to add new resolution into your xrandr config. Is it possible to run in virtual desktop mode or is it the same?
https://bugs.winehq.org/show_bug.cgi?id=40284
--- Comment #3 from Bartosz gang65@poczta.onet.pl --- For internal panel (eg. for laptops), native resolution is the only available option. It is hardware limitation.
In such cases additional resolution is made by scaling. It is not a bug on graphic drivers level, as the scaling is available, and xrandr displays correctly all modes supported by hardware.
For Windows such behavior is done automatically. As a result, games (eg. Commandos 2: Men of Courage) is working out of box.
That's why I think this issue should be resolved on Wine side. As a result it will simplify wine configuration and User Experience.
https://bugs.winehq.org/show_bug.cgi?id=40284
--- Comment #4 from Bartosz gang65@poczta.onet.pl --- More information about that "feature" for NVidia cards is available at: https://devtalk.nvidia.com/default/topic/525287/non-native-resolutions-not-a...
To resolve this issue it will be good to display not only native modes (with xrandr it will be:
$ xrandr Screen 0: minimum 8 x 8, current 1600 x 900, maximum 16384 x 16384 VGA-0 disconnected (normal left inverted right x axis y axis) LVDS-0 connected primary 1600x900+0+0 (normal left inverted right x axis y axis) 309mm x 174mm 1600x900 60.04*+ 40.00
But also use not native resolutions, for example with xrandr: $ xrandr --q1 SZ: Pixels Physical Refresh 0 640 x 489 ( 124mm x 92mm ) 50 *1 1600 x 900 ( 310mm x 170mm ) *51 2 1440 x 900 ( 279mm x 170mm ) 52 3 1366 x 768 ( 264mm x 145mm ) 53 4 1280 x 800 ( 248mm x 151mm ) 54 5 1280 x 720 ( 248mm x 136mm ) 55 6 1024 x 768 ( 198mm x 145mm ) 56 7 1200 x 900 ( 232mm x 170mm ) 57 8 640 x 480 ( 124mm x 90mm ) 58
https://bugs.winehq.org/show_bug.cgi?id=40284
winetest@luukku.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |winetest@luukku.com
--- Comment #5 from winetest@luukku.com --- Does your problem sound familiar to bug 37966 or bug 34348 ?
https://bugs.winehq.org/show_bug.cgi?id=40284
mirh mirh@protonmail.ch changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |mirh@protonmail.ch
--- Comment #6 from mirh mirh@protonmail.ch --- Could bug 47885 activity have helped this?