When the Monitor type/name is known to the system (e.g. the display driver), an 'instant' swap of displaywidth and -height could be an indication of a rotated monitor. This rotation has to be checked, of course. Maybe the monitor itself reports this via communication channels on the display bus?https://touch-base.com/documentation/Rotate.htm