Update:
Here is my video adapter info...
```
$ lspci | grep NVIDIA
0a:00.0 VGA compatible controller: NVIDIA Corporation GP106 [GeForce GTX 1060 
6GB] (rev a1)
0a:00.1 Audio device: NVIDIA Corporation GP106 High Definition Audio Controller 
(rev a1)
```

It's interesting that I also have the problem with mu audio inputs /
outputs switching around and my audio controller is also NVIDIA.
Probably just a coincidence?

-----

This has been a problem with multiple monitors in Linux since forever. I
have a shell script that I run which will fix things about 80% of the
time. The rest of the time I have to reboot. If I could simply disable
the system's display auto-detect and force a configuration, that'd go a
long way toward fixing this permanently.

It happens about 90% of the time when waking up from sleep. About ten
percent of the time the computer will wake up with everything in the
right place and that is always a delightful surprise.

FYI, the audio outputs switch around too. My microphone input and audio
outputs will switch around sometime between when the PC sleeps and wakes
back up. I'd also like to be able to fix that too, but right now am only
focused on the monitors.

I have a desktop with three monitors. One 55" Samsung 4k and two
1920x1080 Sceptre curved, widescreen displays. The two Sceptres are
stacked and to the left of the 55" Samsung.

When the computer wakes from sleep, the monitors will have been
reconfigured from  "Join" to "Mirror". When I reconfigure them to "Join"
then the displays will have been reconfigured with the Display Port
(DP-3) monitor no longer being listed and one of the Samsung monitors
showing a 4k resolution and the other one showing the proper resolution.

When I run this shell script (xrandr command), the DP-3 monitor will re-
appear, but I will have to use the displays ui to drag them back into
the proper orientation.

```
xrandr \
  --fb 5760x2160 \
  --output HDMI-1 --mode 1920x1080 --pos 0x0 --rotate normal \
  --output HDMI-0 --mode 1920x1080 --below HDMI-1 --rotate normal \
  --output DP-3 --mode 3840x2160 --right-of HDMI-1 --scale 1x1 --rotate normal;
```

Here is my current (correctly configured) `xrandr -q`...

```
Screen 0: minimum 8 x 8, current 5760 x 2160, maximum 32767 x 32767
DVI-D-0 disconnected (normal left inverted right x axis y axis)
HDMI-0 connected 1920x1080+0+1080 (normal left inverted right x axis y axis) 
480mm x 260mm
   1920x1080     60.00*+  59.94    50.00    60.05    60.00    50.04  
   1600x900      60.00  
   1280x1024     60.02  
   1280x960      60.00  
   1280x800      59.81  
   1280x720      60.00    60.00    59.94    50.00    50.00  
   1152x864      60.00  
   1024x768      60.00  
   800x600       60.32    56.25  
   720x576       50.00  
   720x480       59.94  
   640x480       75.00    72.81    59.94    59.93  
HDMI-1 connected 1920x1080+0+0 (normal left inverted right x axis y axis) 480mm 
x 260mm
   1920x1080     60.00*+  59.94    50.00    60.05    60.00    50.04  
   1600x900      60.00  
   1280x1024     60.02  
   1280x960      60.00  
   1280x800      59.81  
   1280x720      60.00    60.00    59.94    50.00    50.00  
   1152x864      60.00  
   1024x768      60.00  
   800x600       60.32    56.25  
   720x576       50.00  
   720x480       59.94  
   640x480       75.00    72.81    59.94    59.93  
DP-0 disconnected (normal left inverted right x axis y axis)
DP-1 disconnected (normal left inverted right x axis y axis)
DP-2 disconnected (normal left inverted right x axis y axis)
DP-3 connected primary 3840x2160+1920+0 (normal left inverted right x axis y 
axis) 1872mm x 1053mm
   3840x2160     30.00*+  59.94    50.00    29.97    25.00    23.98  
   4096x2160     59.94    50.00    29.97    25.00    24.00    23.98  
   1920x1080     60.00    59.94    50.00    29.97    25.00    23.98    60.00    
50.04  
   1680x1050     59.95  
   1600x900      60.00  
   1440x900      59.89  
   1366x768      59.79  
   1280x1024     75.02    60.02  
   1280x800      59.81  
   1280x720      60.00    59.94    50.00  
   1152x864      75.00  
   1024x768      75.03    70.07    60.00  
   800x600       75.00    72.19    60.32  
   720x576       50.00  
   720x480       59.94  
   640x480       75.00    72.81    59.94  
```

-- 
You received this bug notification because you are a member of Desktop
Packages, which is subscribed to gnome-shell in Ubuntu.
https://bugs.launchpad.net/bugs/1927948

Title:
  Windows switch monitor after resuming from sleep

Status in GNOME Shell:
  New
Status in Mutter:
  New
Status in gnome-shell package in Ubuntu:
  Confirmed
Status in mutter package in Ubuntu:
  Confirmed

Bug description:
  What I expect:

  Window layout/positioning is identical after resume from sleep.

  What I observe:

  After resume from sleep, windows appear on a different monitor than
  before.

  I found this possibly relevant GNOME bug:

  https://gitlab.gnome.org/GNOME/mutter/-/issues/1419

  ProblemType: Bug
  DistroRelease: Ubuntu 21.04
  Package: mutter 3.38.4-1ubuntu2
  ProcVersionSignature: Ubuntu 5.11.0-16.17-generic 5.11.12
  Uname: Linux 5.11.0-16-generic x86_64
  ApportVersion: 2.20.11-0ubuntu65
  Architecture: amd64
  CasperMD5CheckResult: unknown
  CurrentDesktop: ubuntu:GNOME
  Date: Mon May 10 13:40:28 2021
  InstallationDate: Installed on 2019-12-02 (524 days ago)
  InstallationMedia: Ubuntu 19.10 "Eoan Ermine" - Release amd64 (20191017)
  SourcePackage: mutter
  UpgradeStatus: Upgraded to hirsute on 2021-05-05 (4 days ago)

To manage notifications about this bug go to:
https://bugs.launchpad.net/gnome-shell/+bug/1927948/+subscriptions


-- 
Mailing list: https://launchpad.net/~desktop-packages
Post to     : desktop-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~desktop-packages
More help   : https://help.launchpad.net/ListHelp

Reply via email to