[Lenovo X1 Yoga 5th Gen] Screen auto rotates randomly after suspend

Bug #1976554 reported by phil
18
This bug affects 3 people
Affects Status Importance Assigned to Milestone
mutter (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

Description: Ubuntu 22.04 LTS
Release: 22.04

iio-sensor-proxy: 3.3-0ubuntu6
mutter: 42.0-3ubuntu2

Since update to Ubuntu 22.04:

If i leave screen rotation in GNOME enabled and come back form suspend mode (open/close Laptop) the screen is rotated wrong. Mostly 90 degrees left from normal view axis.

Expected behaviour:

The screen should not rotate until logged in again or there should be a delay before choosing an new rotation whilst laptop is opened.

Same problem seems to be present in older iio-sensor-proxy versions.

Mabye affected to Mutter and or iio-sensor-proxy
---
ProblemType: Bug
ApportVersion: 2.20.11-0ubuntu82.1
Architecture: amd64
CasperMD5CheckResult: unknown
CurrentDesktop: ubuntu:GNOME
DistroRelease: Ubuntu 22.04
InstallationDate: Installed on 2020-06-30 (707 days ago)
InstallationMedia: Ubuntu 20.04 LTS "Focal Fossa" - Release amd64 (20200423)
Package: mutter 42.0-3ubuntu2
PackageArchitecture: amd64
ProcEnviron:
 TERM=xterm-256color
 PATH=(custom, no user)
 XDG_RUNTIME_DIR=<set>
 LANG=de_DE.UTF-8
 SHELL=/usr/bin/zsh
ProcVersionSignature: Ubuntu 5.15.0-33.34-generic 5.15.30
Tags: jammy
Uname: Linux 5.15.0-33-generic x86_64
UpgradeStatus: Upgraded to jammy on 2022-04-22 (46 days ago)
UserGroups: adm cdrom dialout dip lpadmin lxd plugdev sambashare sudo vboxusers
_MarkForUpload: True

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
Revision history for this message
Daniel van Vugt (vanvugt) wrote :

Thank you for taking the time to report this bug and helping to make Ubuntu better. Please execute the following command only once, as it will automatically gather debugging information, in a terminal:

apport-collect 1976554

When reporting bugs in the future please use apport by using 'ubuntu-bug' and the name of the package affected. You can learn more about this functionality at https://wiki.ubuntu.com/ReportingBugs.

tags: added: jammy
Changed in mutter (Ubuntu):
status: Confirmed → Incomplete
Revision history for this message
Daniel van Vugt (vanvugt) wrote :

Please also tell us the exact model of machine this is.

Revision history for this message
phil (sunflower-seed) wrote : Dependencies.txt

apport information

tags: added: apport-collected
description: updated
Revision history for this message
phil (sunflower-seed) wrote : ProcCpuinfoMinimal.txt

apport information

Revision history for this message
phil (sunflower-seed) wrote : Re: Screen auto rotates randomly after suspend

I detected the screen is also rotating after suspend if you *lock* screen rotation. This is even more annoying, cause the screen rotations does not revert into its current position.

Machine is a X1 Yoga 5th Gen

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

Maybe related: bug 1960747 and bug 1973402

summary: - Screen auto rotates randomly after suspend
+ [Lenovo X1 Yoga 5th Gen] Screen auto rotates randomly after suspend
Changed in mutter (Ubuntu):
status: Incomplete → New
Revision history for this message
Giampiero Salvi (giampisalvi) wrote :

I can confirm the same happening on a Dell Latitude 7390 2-in-1 with Ubuntu 22.04.1, gnome version 42.4, windowing system: X11, kernel: 5.15.0-48-generic.

Details:
I have screen rotation locked, but after resuming from suspend the screen is rotated randomly. Then I first have to unlock screen rotation (by trying to move the mouse in the wrong orientation), and then rotate the laptop until the screen rotation is triggered and restored to the actual orientation of the laptop. Finally I need to lock screen rotation again.

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
Revision history for this message
LucidBrot (lucidbrot) wrote :

The same is happening on ubuntu 22.04.2 LTS on my Lenovo ThinkPad X1 Yoga 4th. Giampiero's details are the same on my machine.

A few more notes that may or may not be relevant:

* The screen has for me always been rotated in the direction that it would rotate if the screen rotation would have been enabled. Because I carry the laptop in my backpack in a rotated position. (But rotation was locked!)

* I have some notes from when a similar thing happened to me back on ubuntu 18.04. Then, according to my notes, i fixed it by permanently disabling automatic rotation using `gsettings set org.gnome.settings-daemon.plugins.orientation active false`. This setting no longer exists

* I have switched back from wayland to xorg because of how Gnome 42 breaks the screenshotting workflow. (It's fixed in Gnome 43 but that is not available yet, or ever - i assume). I have only started observing this problem again once I switched back to xorg. However, that timing coincides with when I started travelling with my laptop again. So it could be relevant or not.

* It happens even if automatic screen rotation was disabled using the gui and when `gsettings get org.gnome.settings-daemon.peripherals.touchscreen orientation-lock` reports `true`

Revision history for this message
LucidBrot (lucidbrot) wrote :

@Giampiero an easier way to fix the orientation rather than using the mouse: Log in first (that doesn't need the mouse) and then open a terminal (CTRL+ALT+T) and type in `xrandr -o normal`. This works despite the screen rotation being set to locked.

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

Other bug subscribers

Remote bug watches

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