Thank you. I had written bug #1792813 about the sensors not being found with kernel 4.18. This is fixed in the mainline 4.19 (see the other report).
The incorrect automatic back rotation also happens with 4.19. However, note that what exactly happens depends on whether the keyboard vs display angle is smaller or larger than 180 degrees. I am copying my description from the other bug with some edits for brevity and to fix errors: monitor-sensor output detects the correct orientation in all attempts. When the screen auto-rotates back, monitor-sensor does NOT output a switch to "normal". So I suppose the sensor outputs remain correctly detected and the switching back happens elsewhere. The issue may be connected to a hardware quirk in how the rotation is implemented on the Dell XPS, which similarly also occurs in Windows (https://www.dell.com/community/XPS/Dell-XPS-13-9365-Rotation-lock-unavailable-grayed-out-EXPLAINED/td-p/6075400): * Laptop mode, i.e. keyboard-to-screen angle SMALLER than 180 degrees: In Windows, this automatically engages the rotation lock, i.e. the screen does not rotate at all. * Tent/tablet mode, i.e. keyboard-to-screen angle LARGER than 180 degrees: In Windows, this releases the rotation lock automatically. In Ubuntu, the rotation lock in the Gnome panel does NOT automatically engage if the angle is smaller than 180 degrees, but rotation behavior depends on angle: * Angle SMALLER than 180: - Orientation "left-up": screen rotates to portrait correctly, but immediately switches back to normal. - Orientation "right-up": screen rotates to portrait correctly and in most attempts stays like this, but occasionally it immediately switches back to normal. - Orientation "bottom-up": screen rotates rotates upside-down correctly, but immediately switches back to normal. - Orientation "normal": screen always rotates back correctly (if it didn't automatically switch back anyway). * Angle LARGER than 180: - Orientation "left-up": screen rotates to portrait correctly and in most attempts stays like this, but occasionally it immediately switches back to normal. - Orientation "right-up": screen rotates to portrait correctly and apparently randomly either stays like this or immediately switches back to normal. - Orientation "bottom-up": screen rotates rotates upside down correctly most of the time (but occasionally doesn't). - Orientation "normal": screen always rotates back correctly (if it didn't automatically switch back anyway). So the "left-up" and "right-up" behaviors seem somewhat (but not entirely) swapped depending on the keyboard-screen angle. -- You received this bug notification because you are a member of Ubuntu Desktop Bugs, which is subscribed to gnome-shell in Ubuntu. https://bugs.launchpad.net/bugs/1797174 Title: [Dell XPS 15 9575] gnome-shell unrotates immediately after rotating To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/gnome-shell/+bug/1797174/+subscriptions -- desktop-bugs mailing list desktop-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/desktop-bugs