PINE64
Automatic screen rotation - Printable Version

+- PINE64 (https://forum.pine64.org)
+-- Forum: PineTab (https://forum.pine64.org/forumdisplay.php?fid=140)
+--- Forum: PineTab Software (https://forum.pine64.org/forumdisplay.php?fid=142)
+--- Thread: Automatic screen rotation (/showthread.php?tid=18322)

Pages: 1 2 3 4


RE: Automatic screen rotation - hansen - 03-08-2026

(08-26-2024, 01:16 PM)KittyMuffin Wrote: My screen was 90 degrees off clockwise, the following worked for me

1. # pacman -S iio-sensor-proxy

2. # nano /etc/udev/hwdb.d/61-sensor-local.hwdb

3. Put the following in and save
#
sensor:modalias:*sc7a20:*
  ACCEL_MOUNT_MATRIX=0, 0, -1; 1, 0, 0; 0, -1, 0
#

4. # systemd-hwdb update
5. # udevadm trigger -v -p DEVNAME=/dev/iio:device1
6.  Settings -> Display & Monitor -> check "Automatic"
7. Maybe reboot, not sure


I figured the correct accel_mount_matrix by drawing 2 cubes and assigning X,Y and Z axis, one cube for Pinetab rotation and one for screen rotation and then correcting the accel_mount_matrix based on the differences. Also the numbers can be -1,0,1.

Credits to mtomaschett with this post https://forum.pine64.org/showthread.php?tid=18322&pid=121865#pid121865
and iio-sensor-proxy documentation https://github.com/IMbackK/iio-sensor-proxy

After upgrading to Plasma 6.6 I had to change the file  /etc/udev/hwdb.d/61-sensor-local.hwdb to

#
sensor:modalias:*sc7a20:*
  ACCEL_MOUNT_MATRIX=1, 0, 0; 0, 0, 1; 0, 1, 0
#

...in order to get it working again.


RE: Automatic screen rotation - TcCoy - 03-09-2026

Thanks a lot !!
I also faced this issue and could not find the proper matrix, so I finally deactivated auto-rotation.
It works perfectly now.


RE: Automatic screen rotation - Raik - 03-17-2026

Quote:#
sensor:modalias:*sc7a20:*

  ACCEL_MOUNT_MATRIX=1, 0, 0; 0, 0, 1; 0, 1, 0

#



Works for me. Thanks a lot.