← Back to team overview

dx-packages team mailing list archive

[Bug 1295267] Re: Windows change Monitor/Desktop after screen lock

 

Getting the bug here too.  16.04

David's post #59 was very helpful to me
https://bugs.launchpad.net/ubuntu/+source/unity/+bug/1295267/comments/59

I think he's figured it out (at least for our setup).  My problem seems
to be that when I press the suspend button, one of my screens goes to
sleep before the rest of the system, forcing the windows to move to the
non sleeping screen.  When I wake up, both monitors wake up, but the
windows don't move back to the second screen.

I've found a workaround by disabling dpms using "xset -dpms".  It's not
the best solution, but when I leave my PC I turn off my screens &
speakers at the wall anyway.

I also found a workaround was using VGA instead of HDMI with one of the
screens (doesn't work with the other screen), but VGA didn't look great,
so I wasn't happy with that.


It seems to me like there are two ways to fix this bug.


#1 detect the bad screen behaviour, and put the windows back on the correct screen.  For example, if one monitor gets "removed", then the system goes to sleep a few seconds later, then the system wakes up and both monitors are there, then you know that was bad behaviour and can work around it.


#2  Find a way to not inform the monitors that the PC is going into sleep mode.  If they don't attempt to sleep before the PC goes into hibernate mode, that seems like it should work (basically a more sophisticated version of my xset -dpms solution).

-- 
You received this bug notification because you are a member of DX
Packages, which is subscribed to compiz-plugins-main in Ubuntu.
Matching subscriptions: dx-packages
https://bugs.launchpad.net/bugs/1295267

Title:
  Windows change Monitor/Desktop after screen lock

Status in Unity:
  Fix Released
Status in Unity 7.1 series:
  Fix Released
Status in compiz-plugins-main package in Ubuntu:
  Fix Released
Status in unity package in Ubuntu:
  Triaged

Bug description:
  I run a dual monitor configuration, with one portrait and one
  landscape.

  I nearly always have multiple applications open in multiple windows
  across both monitors and all virtual desktops.

  When I lock the screen and then unlock, my application windows will
  move from their original position.

  Sometimes they are in completely random positions;

  Other times they seem to get the monitors confused, and rather than
  being in the top half of the portrait monitor they are on the top half
  of the landscape monitor;

  Sometimes it is only a new desktop, but the monitor position is the
  same;

  Sometimes it is the same desktop, but on the other monitor.

  Description:	Ubuntu 13.10
  Release:	13.10

  What I expect to happen: When I unlock my computer, all the windows
  are in the same position on the same monitor and desktop as I left
  them.

  What actually happens: When I unlock my computer, some or all of the
  windows have been changed to a random position on a random monitor
  and/or desktop.

To manage notifications about this bug go to:
https://bugs.launchpad.net/unity/+bug/1295267/+subscriptions


References