Bug 1958433

Summary: [Regression] Broken screen rotation on GNOME Wayland
Product: [Fedora] Fedora Reporter: Luya Tshimbalanga <luya_tfz>
Component: mutterAssignee: Florian Müllner <fmuellner>
Status: CLOSED DUPLICATE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: high Docs Contact:
Priority: unspecified    
Version: 34CC: fmuellner, gnome-sig, jadahl, otaylor, philip.wyett, walters
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2021-05-09 17:39:17 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Luya Tshimbalanga 2021-05-07 23:43:06 UTC
Description of problem:
Since 40 beta version, the screen rotation no longer works on GNOME Wayland due to upstream change to detect touchscreen support for devices like 2-in-1 laptops. 

Version-Release number of selected component (if applicable):
40.0

How reproducible:
Always

Steps to Reproduce:
1. Log in on GNOME (Wayland by default)
2. 
3.

Actual results:
Screen rotation failed when turning the device in portrait mode.

Expected results:
Auto-rotation of screen depending of the position from the device

Additional info:
The issue was originally reported on https://bugzilla.redhat.com/show_bug.cgi?id=1651886#c53 after upgrading from Fedora 33 which was mutter 3.38

monitor-sensor commands confirms the accelerometer runs but the screen failed to rotate on mutter in Wayland session.
--
 monitor-sensor 
    Waiting for iio-sensor-proxy to appear
+++ iio-sensor-proxy appeared
=== Has accelerometer (orientation: normal)
=== No ambient light sensor
=== No proximity sensor
    Accelerometer orientation changed: left-up
    Accelerometer orientation changed: normal
    Accelerometer orientation changed: right-up
    Accelerometer orientation changed: normal
--

Discussion about the issue is attached on the upstream report below. A patch to revert the change related to the screen rotation is already available at the time of writing.

Comment 1 Luya Tshimbalanga 2021-05-09 17:39:17 UTC

*** This bug has been marked as a duplicate of bug 1910784 ***