Autorotate initiates but doesn't reset in Wayland sessions (Xorg sessions work fine)

Bug #1965648 reported by Joe Barnett
32
This bug affects 4 people
Affects Status Importance Assigned to Milestone
Mutter
New
Unknown
OEM Priority Project
New
Wishlist
Unassigned
mutter (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

In jammy I can get mutter's auto-rotate to switch to portrait mode ("right-up") by rotating the device (this only worked in impish if I installed the autorotate gnome-shell extension).

However, putting it back into "normal" orientation doesn't put the screen back in landscape mode. Flipping it around ("left-up") does swap to the reverse portrait mode, but still can't get back to "normal" afterward.

running `monitor-sensor` does show the accelerometer orientation change events (including the "normal" ones) triggering properly, just the desktop doesn't respond.

Plugging in an external monitor does seem to trigger the desktop to go back to normal landscape mode.

ProblemType: Bug
DistroRelease: Ubuntu 22.04
Package: mutter 42~beta-1ubuntu2
ProcVersionSignature: Ubuntu 5.15.0-23.23-generic 5.15.27
Uname: Linux 5.15.0-23-generic x86_64
ApportVersion: 2.20.11-0ubuntu79
Architecture: amd64
CasperMD5CheckResult: unknown
CurrentDesktop: GNOME
Date: Sat Mar 19 15:41:42 2022
InstallationDate: Installed on 2019-08-17 (945 days ago)
InstallationMedia: Ubuntu 19.04 "Disco Dingo" - Alpha amd64 (20190305.1)
SourcePackage: mutter
UpgradeStatus: Upgraded to jammy on 2022-03-18 (1 days ago)

Revision history for this message
Joe Barnett (thejoe) wrote :
Revision history for this message
Daniel van Vugt (vanvugt) wrote :

Please try logging into 'Ubuntu on Xorg' and tell us if the same bug occurs. I'm reminded of bug 1960747.

Please also run:

  journalctl -b0 > journal.txt

and attach the resulting text file here.

Changed in mutter (Ubuntu):
status: New → Incomplete
Revision history for this message
Joe Barnett (thejoe) wrote :

The bug does not appear to occur under Xorg sessions:

 - Ubuntu on Xorg: rotated back and forth numerous times successfully
 - Ubuntu: rotated back and forth once successfully and then got stuck in portrait mode
 - Gnome on Xorg: rotated back and forth numerous times successfully
 - Gnome: rotated back and forth once successfully and then got stuck in portrait mode

Changed in mutter (Ubuntu):
status: Incomplete → New
Revision history for this message
Joe Barnett (thejoe) wrote :

One more piece of information in a wayland session: If I fully fold the device into tablet mode, then I can rotate back and forth successfully, it only gets stuck if I go back into laptop mode.

summary: - Autorotate initiates, but doesn't reset
+ Autorotate initiates but doesn't reset in Wayland sessions (Xorg
+ sessions work fine)
Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in mutter (Ubuntu):
status: New → Confirmed
tags: added: 2-in-1 oem-priority
Changed in oem-priority:
importance: Undecided → Wishlist
Changed in mutter:
status: Unknown → New
Revision history for this message
Kent Lin (kent-jclin) wrote :

Test pass on Ubuntu 23.10.01

[Additonal information]
Ubuntu Version: 23.10.01
Mode: Wayland
Gnome: gnome-42-2204

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.