Bug 2158105

Summary: Screen rotation not working
Product: [Fedora] Fedora Reporter: enrico.salamon
Component: mutterAssignee: GNOME SIG Unassigned <gnome-sig>
Status: CLOSED EOL QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: high Docs Contact:
Priority: unspecified    
Version: 40CC: fmuellner, gnome-sig, jadahl, luya_tfz, otaylor, philip.wyett, walters
Target Milestone: ---Keywords: Upstream
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2025-05-16 07:41:10 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 enrico.salamon 2023-01-04 09:11:15 UTC
Description of problem: 
Screen rotation does not work, not on wayland, nor xorg. Keyboard and trackpad correctly disabled when folding the laptop (HP Spectre x360).  
There were no problem when I had EndeavourOS on this laptop. 

Version-Release number of selected component (if applicable): 
iio-sensor-proxy-3.4-2.fc37.x86_64
mutter 43.2

Steps to Reproduce:
1. get a HP Spectre x360
2. try to fold and/or rotate the screen

Actual results: Screen does not rotate

Expected results: Screen does rotate. 

Additional info: 
Output of `monitor-sensor` 

 Waiting for iio-sensor-proxy to appear
+++ iio-sensor-proxy appeared
=== Has accelerometer (orientation: normal)
=== No ambient light sensor
=== No proximity sensor

No event is registered when rotating the screen. 

After I restart the iio-sensor-proxy.service, this is the output:
 Waiting for iio-sensor-proxy to appear
+++ iio-sensor-proxy appeared
=== Has accelerometer (orientation: undefined)
=== No ambient light sensor
=== No proximity sensor


Output of `sudo /usr/libexec/iio-sensor-proxy --verbose`

https://pastebin.com/4YqdFUaQ

Output of `cat /sys/devices/virtual/dmi/id/chassis_type`
31

Comment 1 Luya Tshimbalanga 2023-01-29 21:18:54 UTC
EndeavourOS uses Arch packages for screen-rotation: gnome-shell-extension-screen-autorotate and mutter-auto-rotation). GNOME extension named Screen Rotate (https://extensions.gnome.org/extension/5389/screen-rotate/) restore that functionality. 
The bug is a result of change done prior to Mutter 40 affecting majority of convertible laptops. Several solutions were already proposed and the best one is found on Screen Rotate extension. Only step is for upstream Mutter apply the fix. See full details: https://gitlab.gnome.org/GNOME/mutter/-/issues/1686

Comment 2 enrico.salamon 2023-01-30 10:08:51 UTC
I already tried the Screen Rotate extension, but it does not work still. My question then is: is this a bug from `iio-sensors-proxy`? I gave up using Fedora because of this, maybe when that change is merged, I'll try again.

Comment 3 Luya Tshimbalanga 2023-01-30 16:36:29 UTC
Testing on Dell inspiron 14 7425 2-in-1, iio-sensors-proxy works as intended:

 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: right-up
    Accelerometer orientation changed: normal
    Accelerometer orientation changed: left-up
    Accelerometer orientation changed: normal

It seems like a Mutter issue.

Comment 4 Aoife Moloney 2023-11-23 00:53:53 UTC
This message is a reminder that Fedora Linux 37 is nearing its end of life.
Fedora will stop maintaining and issuing updates for Fedora Linux 37 on 2023-12-05.
It is Fedora's policy to close all bug reports from releases that are no longer
maintained. At that time this bug will be closed as EOL if it remains open with a
'version' of '37'.

Package Maintainer: If you wish for this bug to remain open because you
plan to fix it in a currently maintained version, change the 'version' 
to a later Fedora Linux version. Note that the version field may be hidden.
Click the "Show advanced fields" button if you do not see it.

Thank you for reporting this issue and we are sorry that we were not 
able to fix it before Fedora Linux 37 is end of life. If you would still like 
to see this bug fixed and are able to reproduce it against a later version 
of Fedora Linux, you are encouraged to change the 'version' to a later version
prior to this bug being closed.

Comment 5 Aoife Moloney 2024-02-15 22:55:50 UTC
This bug appears to have been reported against 'rawhide' during the Fedora Linux 40 development cycle.
Changing version to 40.

Comment 6 Cain smyth 2025-01-27 07:37:40 UTC Comment hidden (spam)
Comment 7 Cain smyth 2025-01-27 07:38:56 UTC Comment hidden (spam)
Comment 8 Aoife Moloney 2025-04-25 10:04:31 UTC
This message is a reminder that Fedora Linux 40 is nearing its end of life.
Fedora will stop maintaining and issuing updates for Fedora Linux 40 on 2025-05-13.
It is Fedora's policy to close all bug reports from releases that are no longer
maintained. At that time this bug will be closed as EOL if it remains open with a
'version' of '40'.

Package Maintainer: If you wish for this bug to remain open because you
plan to fix it in a currently maintained version, change the 'version' 
to a later Fedora Linux version. Note that the version field may be hidden.
Click the "Show advanced fields" button if you do not see it.

Thank you for reporting this issue and we are sorry that we were not 
able to fix it before Fedora Linux 40 is end of life. If you would still like 
to see this bug fixed and are able to reproduce it against a later version 
of Fedora Linux, you are encouraged to change the 'version' to a later version
prior to this bug being closed.

Comment 9 Aoife Moloney 2025-05-16 07:41:10 UTC
Fedora Linux 40 entered end-of-life (EOL) status on 2025-05-13.

Fedora Linux 40 is no longer maintained, which means that it
will not receive any further security or bug fix updates. As a result we
are closing this bug.

If you can reproduce this bug against a currently maintained version of Fedora Linux
please feel free to reopen this bug against that version. Note that the version
field may be hidden. Click the "Show advanced fields" button if you do not see
the version field.

If you are unable to reopen this bug, please file a new report against an
active release.

Thank you for reporting this bug and we are sorry it could not be fixed.