4

Short version: When moving my laptop and sleeping between using different monitors, all my open windows are crammed into the upper left corner as if they tried to fit on the laptop internal screen resolution. I plug in and switch to the external monitor before unlocking my session. Is there a way to prevent this automatic resizing?

Longer version: I have a laptop that I move between two locations. I have one docking station, and the same kind of monitor configured for 1600x1200, in both locations. The internal laptop screen is awful so I don't use it.

  • Location A: Docking station, monitor connected via DVI.
  • Location B: No docking station, external monitor connected via VGA cable. In this location I have the laptop lid open for keyboard access but I don't use the laptop screen.

When moving from Location A to Location B, the laptop wakes up from sleep, displaying the screen on the internal monitor. I switch to the external monitor display (using Fn+F8 on this laptop), and only after that do I unlock my session with my password. However, Windows has crammed all my nicely arranged windows into the upper left corner as if it were trying to fit them all on the laptop internal screen resolution.

When moving from Location B to Location A, I have the laptop lid closed when using the docking station so Windows apparently concludes the screen resolution is 1600x1200 and doesn't resize any windows.

The laptop is a Dell Latitude running Windows 7 Professional.

Greg Hewgill
  • 5,619

3 Answers3

3

Lock the console. Push the Switch User button. This will completely disconnect your user session from the console (keyboard, display, mouse, sound, etc). -- you can also accomplish this by opening Task Manager and disconnecting your own session under the Users tab.

Then when you unplug your external monitor or docking station, your user session (and the various open windows within), will be unaware of any resolution changes.

Then plug the laptop back in to a monitor or docking station at its new location. When you "log in", your existing user session will get reattached, and ideally it will only see the resolution change from the original to the new (without going through the intervening "small" laptop native display res).

William
  • 921
3

Slightly different situation, but same problem: whenever my laptop would go to sleep after upgrading to Windows 10, I would suffer exactly the same problem. Inspired by William's answer, and some further experimentation, I found simply locking the computer (Windows Key + L) before closing the lid was sufficient. The other steps were not needed, at least in my case.

0

Run tsdiscon.exe to disconnect your session before unplugging from the docking station. This will send you directly to the "switch user" screen. To make it easy, create a shortcut to the location "%windir%\System32\tsdiscon.exe" on your desktop (for example).

Source: http://en.kioskea.net/faq/15840-windows-7-a-shortcut-to-easily-switch-user and based the same approach William used in his excellent answer.

lhagan
  • 1