Hello there i've used the surface book 2 with kernel 6.18.3-surface-2. I've use it in portright visualization with rotation disabled, and when i've putted it again in the dock, the layout has not changed.
Can you implement the automatic change to landscape when latched?