Bug 1981813

Summary: iio-sensor-proxy didn't detect rotation (Lenovo X1 Tablet G2)
Product: [Fedora] Fedora Reporter: Shnoulle <bugzilla>
Component: iio-sensor-proxyAssignee: Igor Raits <igor.raits>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 34CC: bnocera, igor.raits
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Unspecified   
Whiteboard:
Fixed In Version: iio-sensor-proxy-3.3-1.fc34 Doc Type: ---
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2021-11-08 01:11:32 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 Shnoulle 2021-07-13 13:26:29 UTC
Description of problem:

Just after a new installation : rotation work really good with Gnome Wayland.

Just do the automatic update (5.12.14-300 + Gnome 40.1.0 + some other) : restart autorotation didn't work, neither in Xorg or Wayland. 

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


How reproducible:
Always

Steps to Reproduce:
1. Setup a new system
2. Test OK
3. Update
4. Restart
5. Test KO

Actual results:
No automatic rotation, 

Expected results:
Automatic rotation 

Additional info:

Before update : detected
[root@fedora ~]# monitor-sensor
    Waiting for iio-sensor-proxy to appear
+++ iio-sensor-proxy appeared
=== Has accelerometer (orientation: left-up)
=== Has ambient light sensor (value: 1726.421000, unit: lux)
=== No proximity sensor
    Light changed: 590.617000 (lux)
    Accelerometer orientation changed: normal
    Light changed: 318.024000 (lux)
    Accelerometer orientation changed: left-up
    Accelerometer orientation changed: bottom-up
    Accelerometer orientation changed: right-up
    Accelerometer orientation changed: bottom-up
    Accelerometer orientation changed: normal
    Light changed: 363.457000 (lux)
    Light changed: 45.432000 (lux)
    Light changed: 0.000000 (lux)
    Light changed: 45.432000 (lux)
    Light changed: 136.296000 (lux)
    Light changed: 227.160000 (lux)

After update
[root@fedora ~]# monitor-sensor
    Waiting for iio-sensor-proxy to appear
+++ iio-sensor-proxy appeared
=== Has accelerometer (orientation: undefined)
=== Has ambient light sensor (value: 136296,000000, unit: lux)
=== No proximity sensor
    Light changed: 0,000000 (lux)
    Light changed: 227160,000000 (lux)
    Light changed: 408889,000000 (lux)
    Light changed: 0,000000 (lux)
    Light changed: 45432,000000 (lux)
    Light changed: 136296,000000 (lux)
    Light changed: 0,000000 (lux)
    Light changed: 636049,000000 (lux)
    Light changed: 681482,000000 (lux)
    Light changed: 0,000000 (lux)
    Light changed: 45432,000000 (lux)
    Light changed: 0,000000 (lux)
    Light changed: 45432,000000 (lux)
    Light changed: 90864,000000 (lux)
    Light changed: 0,000000 (lux)
    Light changed: 45432,000000 (lux)
    Light changed: 90864,000000 (lux)
    Light changed: 136296,000000 (lux)

Comment 1 Fedora Update System 2021-08-14 23:00:08 UTC
FEDORA-2021-10b1f23f5e has been submitted as an update to Fedora 34. https://bodhi.fedoraproject.org/updates/FEDORA-2021-10b1f23f5e

Comment 2 Fedora Update System 2021-08-15 02:01:54 UTC
FEDORA-2021-10b1f23f5e has been pushed to the Fedora 34 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --advisory=FEDORA-2021-10b1f23f5e`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2021-10b1f23f5e

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 3 Fedora Update System 2021-08-16 13:53:05 UTC
FEDORA-2021-10b1f23f5e has been submitted as an update to Fedora 34. https://bodhi.fedoraproject.org/updates/FEDORA-2021-10b1f23f5e

Comment 4 Fedora Update System 2021-08-17 01:08:50 UTC
FEDORA-2021-10b1f23f5e has been pushed to the Fedora 34 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --advisory=FEDORA-2021-10b1f23f5e`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2021-10b1f23f5e

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 5 Fedora Update System 2021-11-08 01:11:32 UTC
FEDORA-2021-10b1f23f5e has been pushed to the Fedora 34 stable repository.
If problem still persists, please make note of it in this bug report.