After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 777815 - Rotating display causes screen artifacts
Rotating display causes screen artifacts
Status: RESOLVED OBSOLETE
Product: mutter
Classification: Core
Component: wayland
3.22.x
Other Linux
: Normal major
: ---
Assigned To: mutter-maint
mutter-maint
Depends on:
Blocks:
 
 
Reported: 2017-01-27 02:45 UTC by Varun Priolkar
Modified: 2021-07-05 13:52 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
My monitor config (76.25 KB, image/png)
2017-01-27 02:45 UTC, Varun Priolkar
Details
Artifacts captured with phone camera(1) (1.75 MB, image/jpeg)
2017-01-27 02:46 UTC, Varun Priolkar
Details
Artifacts captured with phone camera(2) (1.75 MB, image/jpeg)
2017-01-27 02:47 UTC, Varun Priolkar
Details
Artifacts captured with phone camera(2) (1.92 MB, image/jpeg)
2017-01-27 02:49 UTC, Varun Priolkar
Details
Command Jonas said to run on X11 (4.87 KB, text/plain)
2017-03-18 01:50 UTC, Varun Priolkar
Details
Command Jonas said to run on wayland (6.24 KB, text/plain)
2017-03-18 01:50 UTC, Varun Priolkar
Details

Description Varun Priolkar 2017-01-27 02:45:15 UTC
Created attachment 344374 [details]
My monitor config

My monitor config has Samsung U28E590D UHD monitor on the left and a Qnix QX2710 2560x1440 resolution monitor on the right in portrait mode. When I rotate my right display on Gnome Wayland session, I get severe corruption/artifacts on it. Everything works fine on X11 and on Wayland when I don't rotate the right display. 

I have tested this on Fedora and on OpenSUSE Tumbleweed on Gnome 3.22.2.

I have an AMD R9 280 card running the open source drivers(using Radeon kernel driver, not AMDGPU) and my left monitor uses Displayport and the right one uses Dual link DVI.

Related commit used to enable screen rotation on Wayland: https://git.gnome.org/browse/mutter//commit/?id=efef0c993b7e45c1a5d06afffdf302c30ba441a0&utm_source=anzwix

Related bug: https://bugzilla.gnome.org/show_bug.cgi?id=745079
Comment 1 Varun Priolkar 2017-01-27 02:46:17 UTC
Created attachment 344375 [details]
Artifacts captured with phone camera(1)
Comment 2 Varun Priolkar 2017-01-27 02:47:18 UTC
Created attachment 344376 [details]
Artifacts captured with phone camera(2)
Comment 3 Varun Priolkar 2017-01-27 02:49:52 UTC
Created attachment 344377 [details]
Artifacts captured with phone camera(2)
Comment 4 Carlos Garnacho 2017-03-17 22:40:51 UTC
(Even though I don't get to spot the artifacts you mean). Portrait rotation is known broken on tiled/MST monitors, maybe it's the case of your 4k monitor? I would however expect broken positioning in one of the tiles, not plain artifacts.
Comment 5 Varun Priolkar 2017-03-18 00:48:39 UTC
(In reply to Carlos Garnacho from comment #4)
> (Even though I don't get to spot the artifacts you mean). Portrait rotation
> is known broken on tiled/MST monitors, maybe it's the case of your 4k
> monitor? I would however expect broken positioning in one of the tiles, not
> plain artifacts.

The 4k monitor rotates fine. I believe it is a SST. The Qnix QX2710 1440p monitor has an issue.

>Even though I don't get to spot the artifacts you mean
See the 344375 attachment. The left monitor(the Samsung U28E590D 4K) is bright and normal, while the Qnix is very dark after I rotate it with some bands forming across it.

Thanks for replying. Do let me know if you need any kind of logs/any more info. I'll attach a video within a day to show the problem.
Comment 6 Jonas Ådahl 2017-03-18 01:02:07 UTC
Could you run:

gdbus call --session  -d org.gnome.Mutter.DisplayConfig -o /org/gnome/Mutter/DisplayConfig -m org.gnome.Mutter.DisplayConfig.GetResources

and attach the output as a file here?
Comment 7 Varun Priolkar 2017-03-18 01:50:20 UTC
Created attachment 348212 [details]
Command Jonas said to run on X11
Comment 8 Varun Priolkar 2017-03-18 01:50:56 UTC
Created attachment 348213 [details]
Command Jonas said to run on wayland
Comment 9 Varun Priolkar 2017-03-18 01:53:19 UTC
(In reply to Jonas Ådahl from comment #6)
> Could you run:
> 
> gdbus call --session  -d org.gnome.Mutter.DisplayConfig -o
> /org/gnome/Mutter/DisplayConfig -m
> org.gnome.Mutter.DisplayConfig.GetResources
> 
> and attach the output as a file here?

Have attached the outputs as requested, both on X11 as well as Wayland.

My phone camera is borked. I'll try to do a video to show the problem more clearly in 1-2 days.
Comment 10 Carlos Garnacho 2017-03-19 23:06:16 UTC
(In reply to Varun Priolkar from comment #5)
> (In reply to Carlos Garnacho from comment #4)
> > (Even though I don't get to spot the artifacts you mean). Portrait rotation
> > is known broken on tiled/MST monitors, maybe it's the case of your 4k
> > monitor? I would however expect broken positioning in one of the tiles, not
> > plain artifacts.
> 
> The 4k monitor rotates fine. I believe it is a SST. The Qnix QX2710 1440p
> monitor has an issue.

I apparently misread and thought both are 4k... it seems the monitor is not MST indeed (although Jonas might correct me), so the situation should be regular despite the sizes of the framebuffers.

> 
> >Even though I don't get to spot the artifacts you mean
> See the 344375 attachment. The left monitor(the Samsung U28E590D 4K) is
> bright and normal, while the Qnix is very dark after I rotate it with some
> bands forming across it.

Right, I wasn't sure if the differing colors were due to color profiles, camera/screen angle, etc. I wonder if you can capture the artifacts with a plain screenshot, you should be able to since screen capturing just reads the pixels from the framebuffer(s).
Comment 11 Varun Priolkar 2017-03-20 17:20:39 UTC
(In reply to Carlos Garnacho from comment #10)

> Right, I wasn't sure if the differing colors were due to color profiles,
> camera/screen angle, etc. I wonder if you can capture the artifacts with a
> plain screenshot, you should be able to since screen capturing just reads
> the pixels from the framebuffer(s).

A screenshot is not capturing artifacts or any changes. I tried changing the color profiles too to fix the issue but to no avail.

I've captured two videos to show the issue a little better.

On Wayland:
https://www.youtube.com/watch?v=5Jj_rsL5X48

On Xorg:
https://www.youtube.com/watch?v=T61T9aL-xJY

Compare the colors of secondary display in both the videos. Also see how windows become "transparant" in the Wayland video.
Comment 12 Varun Priolkar 2017-03-20 17:30:07 UTC
Also noticed something strange. The discoloration/artifacting is persistant even if the screen is not rotated. I'll try the Fedora 26 Alpha once that is out and check if I see any improvements.
Comment 13 GNOME Infrastructure Team 2021-07-05 13:52:54 UTC
GNOME is going to shut down bugzilla.gnome.org in favor of gitlab.gnome.org.
As part of that, we are mass-closing older open tickets in bugzilla.gnome.org
which have not seen updates for a longer time (resources are unfortunately
quite limited so not every ticket can get handled).

If you can still reproduce the situation described in this ticket in a recent
and supported software version, then please follow
  https://wiki.gnome.org/GettingInTouch/BugReportingGuidelines
and create a new ticket at
  https://gitlab.gnome.org/GNOME/mutter/-/issues/

Thank you for your understanding and your help.