ponces / treble_aosp

Script and patches for building TrebleDroid AOSP

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[Surface Duo] Posture switching on the left screen uses the proximity sensor from the right screen.

Sidefix opened this issue · comments

Acknowledgements

  • I have chosen an appropriate title.
  • All requested information has been provided properly.
  • This is not a feature request.
  • This issue is not a duplicate of an existing issue.
  • The issue is solely related to this GSI.
  • This issue occurs with the latest available build.
  • I am not running a custom vendor on my device.
  • This issue is not kernel related.
  • This issue is not related to Magisk/KernelSU/APatch.

Info

  • Device: Surface Duo
  • GSI version: latest
  • Vendor version: latest

Only relevant for the following build: https://github.com/thai-ng/treble_build_aosp/releases

Folding the Surface Duo and utilizing the right screen only utilizes the right side proximity sensor (as intended). However folding the Duo and using the left screen, the right side proximity sensor is still utilized.
This causes an issue wherein if the device is placed on the table (for example) with the left screen up (the screen currently utilized), the proximity sensor on the right screen will be utilized for ambient light. Since the right screen is facing the table, this will cause the device to think it is facing a wall and the screen will dim immediately and lock quicker than intended.

Expected Behavior

Proximity/light sensors should respect posture

Current Behavior

Only the right screen sensors are ever utilized, regardless of which screen is currently active.

Possible Solution

None

Steps to Reproduce

  1. Open Surface Duo
  2. Fold with the right screen behind and the left screen in front
  3. Ensure the left screen is the active one
  4. Place on a table with the right screen facing downward
  5. Observe that the screen dims immediately

Logs

No response

Additional context

No response

The issue is solely related to this GSI.