oneplus-fajita autorotate in portrait mode screen flipped
Describe your issue
What's the expected behaviour?
When autorotate is on, the display orientation follows device orientation
What's the current behaviour?
When it's on, it follows the device orientation, but in portrait mode the screen is always flipped (upside down)
How to reproduce your issue?
Turn on autorotate on a OP6T, rotate screen to any of the two portrait orientations, observe the image being upside down.
What device are you using?
oneplus-fajita (OnePlus 6T)
On what postmarketOS version did you encounter the issue?
-
edge ( master
branch) -
v23.12
-
v23.06
(supported until 2024-01-18) -
I confirm that the issue still is present after running sudo apk upgrade -a
(Tested 2 days ago, since I edited the config file myself to fix the issue anotherapk upgrade
won't re-destroy it I think)
On what environment did you encounter the issue?
Environments
-
GNOME Shell on Mobile -
Phosh -
Plasma Mobile -
Sxmo (Wayland/Sway) Please post the output of sxmo_version.sh
-
Other: Please fill out
How did you get postmarketOS image?
-
from https://images.postmarketos.org -
I built it using pmbootstrap -
It was preinstalled on my device
What's the build date of the image? (in yyyy-mm-dd format)
Not 100% sure, but I think 2023-09-23 (the latest img I still have on my desktop hard drive) - obviously though updated several times on edge branch.
Additional information
Similar was reported in comments of !4050 (merged) already. The fix in the comment thread there also helped which was editing the gyro mount matrix like so:
SUBSYSTEM=="misc", KERNEL=="fastrpc-*", ENV{ACCEL_MOUNT_MATRIX}+="-1, 0, 0; 0, 1, 0; 0, 0, -1"
in /usr/lib/udev/rules.d/81-libssc-oneplus-fajita.rules
and then rebooting.
However, this fix seems to initialize the screen on boot upside down, as soon as gyro data is coming in it flips correctly (easily visible by laying flat on a desk on boot)