gala icon indicating copy to clipboard operation
gala copied to clipboard

Resuming laptop from sleep with external monitor connected doesn't retain configuration

Open ysbaddaden opened this issue 3 years ago • 2 comments

What Happened?

I upgraded from Elementary 5.1 to 6.1.

My laptop's main display is running at 3200×1800 resolution with HiDPI×2. I regularly plug an external 4K monitor, which is autoconfigured just as expected (position, resolution, and HiDPI).

I put my laptop to sleep multiple times a day, by closing the lid and turning off the external monitor. Coming back later from sleep, by opening the lid and turning the external monitor on, leads to a complete reconfiguration of the displays with nonsensical values after I login:

  • Both monitors are reduced to HiDPI×1;
  • The main monitor displays some kind of picture in picture (the whole screen is displayed on the monitor and duplicated to the top-left quarter of the monitor)
  • The top-menu and dock are moved to the external monitor.

I must reach for the settings, manually modify everything (move screens around, select the main monitor, select the HiDPI) every time multiple times a day.

Steps to Reproduce

Go to sleep with external monitor connected and turn it off. Turn the computer back on and log in. Screens are a mess.

Expected Behavior

The last known display configuration is maintained or reapplied.

This used to be working flawlessly in Elementary 5. I never had to access the display settings.

OS Version

6.x (Odin)

Software Version

Latest release (I have run all updates)

Log Output

No response

Hardware Info

Dell XPS 15 9530 (Haswell, integrated HD Graphics 4600) with and external 4K Dell monitor.

ysbaddaden avatar Oct 21 '22 13:10 ysbaddaden

It also splats all my workspaces into a single one, and because of #1401 it's awful to move my applications back into where they belong :rage:

ysbaddaden avatar Oct 21 '22 13:10 ysbaddaden

This still happens in elementary OS 7.1. After waking from sleep, some (or sometimes all) application windows are moved to the built-in screen, which is configured as the secondary display in my setup. I always have to move windows back to their original desktops.

Also, the resolution change sometimes happens. In that case, the external monitor always goes from HiDPI to LowDPI, with a refresh rate of 30 Hz instead of 60 Hz. The only solution is disconnecting and reconnecting the external monitor because the 60 Hz option is no longer available in the Display settings.

This is not new, either. I used to have it on my Dell XPS 13, and now, with my 13" Framework laptop, two completely different machines.

wout avatar May 11 '24 08:05 wout