I have an HP Envy notebook, not a touch device/tablet so it should not adjust screen orientation to suit how I hold the device. However, the orientation seems to randomly and spontaneously change, both when I am using the device, and while it wakes from suspend. There is no pattern to which orientation it switches to; sometimes it rotates, sometimes it flips.
xrandr -o normal
correctly re-orientates the screen, but it would obviously be nice if I did not have to keep doing this.