2026-03-11 5:01 AM
I am running CubeMX in a WIndows on Arm VM on a MacMini, which is connected to a KVM. When I switch the KVM to another machine and come back, all of the windows have changed size (not unexpected). They all revert to their original sizes and positions, but the window for CubeMX does not redraw/scale it's content.
For example, I see this before I switch away:
And this when I switch back (note the double menu):
Dragging the edge of the window to cause a (very small) change in size restores the expected view.
CubeIDE and TouchGFX do not show this behaviour.
2026-03-11 5:07 AM
What "KVM" are you using?
IMO, a true KVM should leave the computer thinking that the display is still attached.
But a lot of cheap/consumer "KVM" boxes nowadays effectively just unplug the display.
On Windows, this causes the OS to reconfigure itself from dual-screen to single-screen mode - and not all applications cope well with that.
Do you see the same effect if you do literally just unplug & re-plug the display?
2026-03-11 1:49 PM
This is interesting observation. IIRC somebody complained about similar visual error (double menu) on Windows or Linux, but without VMs. Maybe this could help catch the root cause.
2026-03-12 2:47 AM
@Andrew Neil wrote:What "KVM" are you using?
IMO, a true KVM should leave the computer thinking that the display is still attached.
But a lot of cheap/consumer "KVM" boxes nowadays effectively just unplug the display.
On Windows, this causes the OS to reconfigure itself from dual-screen to single-screen mode - and not all applications cope well with that.
It's an AV Access 4KSW41-KVM-Pro. About the best I could find with 4K HDMI that wasn't crazy money. I've tried a few, and this one causes fewest problems (but the hotkey switching doesn't work). A lot of them are junk and simply don't work with most setups (screen information not passed through, USB failing to enumerate). I've often considered making my own so that I can get the software working properly!
Only running single screen in this case, but the single/dual screen behaviour is a pain in other cases.
Do you see the same effect if you do literally just unplug & re-plug the display?
No, that seems to be ok. I think the trigger may be something to do with VMware and screen changes/notification when the KVM switches, with MX not processing all of the resolution change notifications. Hard to tell though.
2026-03-12 9:36 AM
It's even worse if I switch away when MX is loading and it offers a firmware upgrade:
The popup is modal, so I can't resize to make the content visible. Need to cancel the load and start again to recover.
2026-03-12 2:05 PM - edited 2026-03-12 2:07 PM
What if you simply disconnect and reconnect the display, without the KVM? (is the display DP or thunderbolt/USBC?)
This test is to understand whether the KVM maintains presence of the display when it switches away.