08-26-2024, 01:16 PM
(This post was last modified: 08-26-2024, 01:17 PM by KittyMuffin.)
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?...#pid121865
and iio-sensor-proxy documentation https://github.com/IMbackK/iio-sensor-proxy
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?...#pid121865
and iio-sensor-proxy documentation https://github.com/IMbackK/iio-sensor-proxy