Launchpad has imported 7 comments from the remote bug at
https://bugzilla.xfce.org/show_bug.cgi?id=11712.

If you reply to an imported comment from within Launchpad, your comment
will be sent to the remote bug automatically. Read more about
Launchpad's inter-bugtracker facilities at
https://help.launchpad.net/InterBugTracking.

------------------------------------------------------------------------
On 2015-03-16T18:00:37+00:00 Blt2i4b72d wrote:

Created attachment 6088
Mirror Displays bug

After upgrading Xfce 4.10 to 4.12, "Mirror Displays" (xfce4-display-
settings --minimal) appears disabled.

The command "xrandr --output HDMI-0 --auto --same-as DVI-I-1" works as
before.

So, yes, it's a Xfce bug.

xorg-xrandr 1.4.3
libxrandr 1.4.2

Reply at:
https://bugs.launchpad.net/ubuntu/+source/xfce4-settings/+bug/1714302/comments/0

------------------------------------------------------------------------
On 2015-11-06T20:21:29+00:00 netllama wrote:

Just upgraded to 4.12, and I'm hitting this bug as well.  Any chance of
a work around or fix in the near future (this bug has been open for
nearly 8 months)?

Reply at:
https://bugs.launchpad.net/ubuntu/+source/xfce4-settings/+bug/1714302/comments/1

------------------------------------------------------------------------
On 2016-04-20T09:46:39+00:00 J-novak-k wrote:

Hello,

I touched this problem too.
The reason is that 4.10 code checks just resolution of two displays and if it 
match, it allows to mirror it.
New 4.12 code checks resolution and frequency of two or more displays. If all 
parameters match, it allows to mirror it on all displays.
Therefor when one display supports e.g. 1920x1080 (0x27e) 138.650MHz and second 
display supports 1920x1080 (0x2dc) 148.500MHz, 4.12 code do not allow to mirror 
it even it is possible.

I see the idea that 4.12 code supports multiple (more than two) displays
active when old code supported only two displays (which is enough from
my point of view).

I can write a patch to allow 4.12 code to accept resolution match on
multiple screens. Is it welcomed or XFCE team will do so?

Workaround:
You can use xrandr from command line:

xrandr -q 
=> check names of your outputs (I have LVDS-O and HDMI-0)

Make mirror:
xrandr --output LVDS-0 --auto --primary
xrandr --output HDMI-0 --auto
xrandr --output HDMI-0 --same-as LVDS-0

Reply at:
https://bugs.launchpad.net/ubuntu/+source/xfce4-settings/+bug/1714302/comments/2

------------------------------------------------------------------------
On 2016-04-22T13:18:21+00:00 Tony-paulic wrote:

I think bug 11107 is somehow related to this issue that causes the
mirror option to be greyed out. If you read through the comments in that
bug report, xfsettingsd is not re-activating the display when it is
turned on again. When the display dialog is shown, it does not know
about the attached and/or reactivated monitor, thus it does not enable
the mirror option. Interestingly, it does know that a second display is
attached as it presents the options to extend or make the external
monitor primary. Searching the code, it appears that the check for the
clone option occurs in the xfce_randr_clonable_mode function
(http://git.xfce.org/xfce/xfce4-settings/tree/dialogs/display-settings
/xfce-randr.c line #651).The check for extended occurs in
http://git.xfce.org/xfce/xfce4-settings/tree/dialogs/display-
settings/main.c (line 2947).

I applied the patch from comment #53 and now on connect of an external
monitor, the "mirror" option is no longer greyed out and is functional.

However, I'm noticing some unexpected behaviour as a result of this
patch as well. After applying this patch and attaching an external
monitor, my system automatically goes into clone (mirror) mode while the
display dialog is displayed (even though my preference and previous
state was extended). The dialog is functional and I can easily change it
back to extended.

Reply at:
https://bugs.launchpad.net/ubuntu/+source/xfce4-settings/+bug/1714302/comments/3

------------------------------------------------------------------------
On 2016-04-22T14:44:57+00:00 J-novak-k wrote:

I'm afraid the problem is deeper, see below.

When you attach new display, the mirror option is grey (in minimal
dialog and in standard dialog too, no patch #53 applied). Then you can
enable deactivated display in standard dialog, but it don't enable
mirror option in my case.

xfce_randr_clonable_mode checks for same mode on both displays (same
dimensions and refresh rate). My system uses same dimensions but
different refresh rates for two displays. Therefor in my case mirror
option stayed disabled. But I can imagine it might gets enabled for
others.

As consequence I made patch which check for correct dimensions only.
When it finds it, it enables mirror buttons (minimal and standard
dialog) and allows to select such mode.

Before I will post it there, I will check patch #53 from link too.

Reply at:
https://bugs.launchpad.net/ubuntu/+source/xfce4-settings/+bug/1714302/comments/4

------------------------------------------------------------------------
On 2016-04-22T20:24:02+00:00 J-novak-k wrote:

Created attachment 6656
Patch for display setting dialog

The patch make mirror function working when xfce_randr_clonable_mode function 
do not allow it.
New xfce_randr_mirrorable_mode function calls old xfce_randr_clonable_mode. 
When it do not allow cloning, xfce_randr_mirrorable_mode checks whether there 
are one or more common resolutions (same dimensions) on attached displays. If 
it finds it, select the biggest one.

Note: xfce_randr_mirrorable_mode works for two displays only.

Reply at:
https://bugs.launchpad.net/ubuntu/+source/xfce4-settings/+bug/1714302/comments/5

------------------------------------------------------------------------
On 2016-04-23T18:49:33+00:00 J-novak-k wrote:

(In reply to j.novak from comment #5)
> Created attachment 6656 [details]
> Patch for display setting dialog
> 
> The patch make mirror function working when xfce_randr_clonable_mode
> function do not allow it.
> New xfce_randr_mirrorable_mode function calls old xfce_randr_clonable_mode.
> When it do not allow cloning, xfce_randr_mirrorable_mode checks whether
> there are one or more common resolutions (same dimensions) on attached
> displays. If it finds it, select the biggest one.
> 
> Note: xfce_randr_mirrorable_mode works for two displays only.

I forgot to add additional information:
Patch is based on 4.12.0 source. It do not require patch mentioned in commend 
#53 of issue no 11712.

Reply at:
https://bugs.launchpad.net/ubuntu/+source/xfce4-settings/+bug/1714302/comments/6

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1714302

Title:
  Mirror displays not offered, buggy

To manage notifications about this bug go to:
https://bugs.launchpad.net/xfce4-settings/+bug/1714302/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to