Problem with dual monitors only on some Linux distributions.

Questions about Wine on Linux
Locked
johnfound
Level 2
Level 2
Posts: 15
Joined: Tue Dec 04, 2012 4:43 pm

Problem with dual monitors only on some Linux distributions.

Post by johnfound »

I have two Linux distributions installed - Linux Mint XFCE and Manjaro XFCE.

When two monitors are connected to the laptop, in Mint, WINE reports two monitors (using EnumDisplayMonitors API). In Manjaro, it reports only one with double resolution. This way, some applications I want to use can't determine the size and placement of the particular monitors and stretch their windows across both monitors. (Very uncomfortable).

"xrandr -q" reports absolutely the same configuration on Mint and on Manjaro Linux. The native Linux programs works OK in Manjaro.

WINE is version 1.7.42, installed from the Manjaro Linux package manager.

The same effect as in Manjaro Linux was observed on centOS 6.6 distribution. This way, only Linux Mint behaves properly.

Any ideas what is configured wrong?

Regards
User avatar
dimesio
Moderator
Moderator
Posts: 13367
Joined: Tue Mar 25, 2008 10:30 pm

Re: Problem with dual monitors only on some Linux distributi

Post by dimesio »

johnfound wrote: WINE is version 1.7.42, installed from the Manjaro Linux package manager.
Is it the same Wine version on Mint? If it's an older version, this could be a regression.

You didn't mention your graphics card/driver. If it's Nvidia with the proprietary driver, there are a couple of open bugs related to Nvidia's xrandr, one of which is a regression since 1.7.35.
https://bugs.winehq.org/show_bug.cgi?id=34348
https://bugs.winehq.org/show_bug.cgi?id=37966
johnfound
Level 2
Level 2
Posts: 15
Joined: Tue Dec 04, 2012 4:43 pm

Re: Problem with dual monitors only on some Linux distributi

Post by johnfound »

The WINE version on Linux Mint is 1.7.38; But actually, I don't believe it is a regression, because on centOS 6.6 there was pretty old version of WINE that had the same behavior.

The graphic card is AMD Radeon® HD 8180G on ASUS netbook X102BA
johnfound
Level 2
Level 2
Posts: 15
Joined: Tue Dec 04, 2012 4:43 pm

Re: Problem with dual monitors only on some Linux distributi

Post by johnfound »

Well, after the weekend I have second monitor again and can report more details:

Here is the report of xrandr -q:

Code: Select all

$xrandr -q
Screen 0: minimum 320 x 200, current 3286 x 1080, maximum 16384 x 16384
LVDS connected 1366x768+1920+0 (normal left inverted right x axis y axis) 222mm x 125mm
   1366x768      60.00*+
   1280x720      59.86  
   1152x768      59.78  
   1024x768      59.92  
   800x600       59.86  
   848x480       59.66  
   720x480       59.71  
   640x480       59.38  
HDMI-0 disconnected (normal left inverted right x axis y axis)
VGA-0 connected primary 1920x1080+0+0 (normal left inverted right x axis y axis) 0mm x 0mm
   1024x768      60.00  
   800x600       60.32    56.25  
   848x480       60.00  
   640x480       59.94  
   1920x1080     59.96* 
The mode 1920x1080 is manually defined by xrandr --newmode/--addmode, because the monitor can not be detected properly.

Here is what the Win32 program reports from EnumDisplayMonitors() and from GetMonitorInfo():

Code: Select all

$wine ./MonitorsInfo.exe
Monitor #0 parameters:
  Monitor rectangle: 0, 0, 3286, 1080
  Working rectangle: 0, 0, 3286, 1080
User avatar
dimesio
Moderator
Moderator
Posts: 13367
Joined: Tue Mar 25, 2008 10:30 pm

Re: Problem with dual monitors only on some Linux distributi

Post by dimesio »

You need to rule out this being a difference in the Wine packages of the different distros; packagers may patch Wine or build without support for some features.

The way to check that is to build plain Wine yourself on both distros and see how they behave. If there is still a difference, then the reason is something else in the underlying systems. It's not necessarily a setting you can change; it could simply be different versions of your graphics driver, the kernel, XFCE, some other library, etc.
johnfound
Level 2
Level 2
Posts: 15
Joined: Tue Dec 04, 2012 4:43 pm

Re: Problem with dual monitors only on some Linux distributi

Post by johnfound »

dimesio wrote:You need to rule out this being a difference in the Wine packages of the different distros; packagers may patch Wine or build without support for some features.

The way to check that is to build plain Wine yourself on both distros and see how they behave. If there is still a difference, then the reason is something else in the underlying systems. It's not necessarily a setting you can change; it could simply be different versions of your graphics driver, the kernel, XFCE, some other library, etc.
Thank you! Sometimes, just a little hint can help to find the solution. I figured out the problem. It was the missing optional library: lib32-libxinerama package in arch/manjaro Linux. Now everything works as expected! :D
Locked