3

I have 2 monitors set up with my Ubuntu system, primary (landscape) and a secondary rotated (portrait) monitor to the left of it. I've been having a problem where there's about a 2-pixel wide overlap from the secondary monitor onto the primary. This isn't window-specific (as in, its not a window-bleed, its the entire leftmost columns of the secondary framebuffer).

This issue doesn't occur with both monitors set to landscape. On top of this, strangely, it doesn't occur with the secondary monitor set to portrait and set to the right of the primary monitor. Another thing to note is that when arranging the monitors with display settings, there's a space between the monitors when placing the secondary to the right, but no space when placing the monitor to the left. Here's a side-by-side comparison of monitor arrangement in gnome-control-center.

This led me to believe the issue may be in the treatment of rotated screens in gnome-control-center (not rotating around the true origin?) so I started looking at the source for it, making small modifications but to no avail.

I've tried manually setting monitor positions with xrandr, but the issue I ran into there was that the 'screen' framebuffer (for the overall desktop) ended up consisting of a full bounding box of both monitors (i.e. windows in the primary display could go above and below the monitor due to the secondary monitor being a higher vertical resolution).

System-wise, I'm running Ubuntu 18.04 with Wayland disabled (completely different kettle of fish with Wayland), with an AMD Rx370 primary GPU (AMDGPU driver) and an NVidia gtx 660 GPU for compute (NVidia 396 driver).

Just wondering if anyone has any ideas of what's going on, or if anyone could confirm that this is a true bug in gnome-control-center/X11 that's worth opening a tracker on.

Thanks

1
  • Necrobump... any answers? I have exactly the same in Xubuntu 20.04. Might it be to do with screens of different heights?
    – Little me
    Feb 27, 2022 at 9:45

2 Answers 2

1

I started to see same in Ubuntu 18.04. I never got success with desktop display adjuster, either running Gnome or Xfce4. The problem happens for me when I move from various projectors with different resolutions.

You can fix if you install the GUI program arandr, a nice interface to xrandr. arandr gives easy to drag overlapped window out of way.

5
  • That's a handy tool, managed to answer 1 part of this mystery. Seems that the issue persists regardless of Xorgs setting of the distance between the monitors, so thinking now that it may be a driver issue, possibly misinterpreting the division of the screen buffer onto the separate monitors? I'm not too up-to-speed on the functionality of that side of the system.
    – platinum95
    Oct 21, 2018 at 20:57
  • In 18.10, I see a lot of trouble on interaction with external devices. These are new problems I did not have in 18.04. I suspect something deep is changed in X11 and the fix will have to happen there. Be happy arandr can put it straight.
    – pauljohn32
    Oct 22, 2018 at 1:13
  • Unfortunately arandr didn't resolve this issue for me, the issue persists regardless of the distance set between the monitors.
    – platinum95
    Oct 22, 2018 at 9:30
  • you mean arandr does not let you pull one monitor so it is no longer overlapped? For me, that always works
    – pauljohn32
    Oct 22, 2018 at 15:33
  • I can pull apart the monitors and Xorg does take the separation into account, but the 2-pixel overlap is present regardless, which is why I'm thinking that the issue isn't necessarily with Xorg.
    – platinum95
    Oct 22, 2018 at 15:58
1

This noob worked it out as well before finding this! This is similar to the above arandr answer but without installing any software. Shared at noob level as that's what I appreciate myself...

Mine was a two pixel overlap (left primary overlaps onto external right hand screen) and here is how I eradicated it on Xubuntu 20.04 with the XFCE desktop environment.

Using the terminal (Ctrl-Alt-T to run) type the following commands:

xrandr -q (Which queries which monitors you have and their settings)

then refer to BatchyX's excellent answer for help and using the information from the above command, type something like the following:

xrandr --output HDMI-0 --pos 1368x0

  • Where HDMI-0 is my screen that I wanted to move; change this to yours.
  • And where its previous position (--pos) was 1366, 0 (I added 2 pixels to it's x position and left it's y position alone)

Finally, I opened the Control Panel, Display settings then selected the 'Advanced' tab. I saved or updated the appropriate profile so that when this monitor connects, it will always resume this arrangement.

Note: This actually leaves a 2 pixel blind spot or hole between the two monitors. You could add more than 2 but then you could lose things like cursors/windows in this hole...

Note 2: Now I recall that this might have happened on other external screens/projectors so perhaps my best bet would have been to move the primary screen left by 2 pixels, that would be xrandr --output eDP --pos -2x0 but I'm going to stop faffing now. Good luck.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .