Bug 1379430

Summary: Gnome-shell with Wayland session rotates sometimes automatically my display
Product: [Fedora] Fedora Reporter: Couret Charles-Antoine <renault>
Component: gnome-shellAssignee: Owen Taylor <otaylor>
Status: CLOSED EOL QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 25CC: berend.de.schouwer, erik-fedora, fmuellner, otaylor
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2017-12-12 10:08:29 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:
Attachments:
Description Flags
HasAccelerometer property none

Description Couret Charles-Antoine 2016-09-26 17:42:35 UTC
Yesterday and today, I had two rotations of my display with Gnome-Shell with Wayland on my Fedora 25.
I did nothing particular, but once the rotation was 90° and another was 180°.

So, no actions are possible to restore settings in these sessions. I had to reboot my laptop to restore that properly.

GDM and GNOME are affected, TTY not.
My laptop did not have accelerometers or something else like that to explain this behaviour. I did not have these issues in the past with X.org or Wayland.

Versions:
gnome-shell 3.22.0
gnome-session-wayland-session 3.22.0
libwayland-client 1.12
libwayland-server 1.12
mutter 3.22.0

Comment 1 Erik van Pienbroek 2016-11-09 12:31:23 UTC
I also just ran into this issue, while doing some work in gnome/wayland/fedora 25 beta+updates-testing the internal display on my notebook suddenly got rotated by 90 degrees (no external displays connected). Restoring the situation on the fly doesn't seem possible. control-center doesn't offer the possibility to rotate wayland displays and xrandr commands always complete successfully, but have no effect on wayland. Nothing special can be found in journalctl which could explain the automatic rotation.

Comment 2 Erik van Pienbroek 2016-11-09 22:12:50 UTC
After some more debugging along with some folks on IRC in #gnome-shell it turned out that my laptop (HP EliteBook 850 G3) does have an accelerometer after all (something I wasn't aware of until now). This accelerometer was to blame for the 'random' gnome-shell display orientation change.

@Couret Charles-Antoine: you can verify if your system also has an accelerometer by running the command "gdbus introspect --system --dest net.hadess.SensorProxy --object-path /net/hadess/SensorProxy" and check if it contains something like "readonly b HasAccelerometer = true;"

Comment 3 Couret Charles-Antoine 2016-11-09 22:20:51 UTC
Yes, I have this property.
It strange, it was not mentioned in my Elitebook 8560w documentation.

Comment 4 Couret Charles-Antoine 2016-11-09 22:21:42 UTC
Created attachment 1219099 [details]
HasAccelerometer property

Comment 5 Berend De Schouwer 2017-01-27 08:26:26 UTC
This might be related to #1394104

I suggest marking one as a duplicate of the other

Comment 6 Berend De Schouwer 2017-01-27 08:31:01 UTC
Any way to blacklist that accelerometer?

Comment 7 Fedora End Of Life 2017-11-16 18:57:57 UTC
This message is a reminder that Fedora 25 is nearing its end of life.
Approximately 4 (four) weeks from now Fedora will stop maintaining
and issuing updates for Fedora 25. 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 Fedora  'version'
of '25'.

Package Maintainer: If you wish for this bug to remain open because you
plan to fix it in a currently maintained version, simply change the 'version'
to a later Fedora version.

Thank you for reporting this issue and we are sorry that we were not
able to fix it before Fedora 25 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, you are encouraged  change the 'version' to a later Fedora
version prior this bug is closed as described in the policy above.

Although we aim to fix as many bugs as possible during every release's
lifetime, sometimes those efforts are overtaken by events. Often a
more recent Fedora release includes newer upstream software that fixes
bugs or makes them obsolete.

Comment 8 Fedora End Of Life 2017-12-12 10:08:29 UTC
Fedora 25 changed to end-of-life (EOL) status on 2017-12-12. Fedora 25 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 please feel free to reopen this bug against that version. If you
are unable to reopen this bug, please file a new report against the
current release. If you experience problems, please add a comment to this
bug.

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