Bug 2158105 - Screen rotation not working
Summary: Screen rotation not working
Keywords:
Status: NEW
Alias: None
Product: Fedora
Classification: Fedora
Component: mutter
Version: 40
Hardware: x86_64
OS: Linux
unspecified
high
Target Milestone: ---
Assignee: GNOME SIG Unassigned
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2023-01-04 09:11 UTC by enrico.salamon
Modified: 2024-02-15 22:55 UTC (History)
7 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed:
Type: Bug
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
GNOME Gitlab GNOME mutter issues 1686 0 None opened [Regression] Screen rotation broken on GNOME Wayland 2023-01-29 21:21:58 UTC
Red Hat Bugzilla 1910784 0 unspecified ASSIGNED Screen auto-rotation not detected when running Wayland 2024-02-19 19:46:31 UTC

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.


Note You need to log in before you can comment on or make changes to this bug.