Automatic screen rotation
#26
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
  Reply


Messages In This Thread
Automatic screen rotation - by frtodd - 06-06-2023, 07:05 PM
RE: Automatic screen rotation - by zoward - 06-07-2023, 08:26 AM
RE: Automatic screen rotation - by frtodd - 06-07-2023, 11:12 AM
RE: Automatic screen rotation - by exu - 06-07-2023, 12:22 PM
RE: Automatic screen rotation - by zoward - 06-08-2023, 04:07 AM
RE: Automatic screen rotation - by zoward - 06-07-2023, 04:57 PM
RE: Automatic screen rotation - by frtodd - 06-07-2023, 05:26 PM
RE: Automatic screen rotation - by Corconegre - 06-13-2023, 01:57 AM
RE: Automatic screen rotation - by KelsonV - 06-13-2023, 11:20 AM
RE: Automatic screen rotation - by chzbacon - 06-19-2023, 06:54 PM
RE: Automatic screen rotation - by rqkeating - 06-20-2023, 10:21 AM
RE: Automatic screen rotation - by mtomaschett - 03-17-2024, 01:53 PM
RE: Automatic screen rotation - by hansen - 04-07-2024, 06:58 AM
RE: Automatic screen rotation - by frtodd - 04-10-2024, 06:37 AM
RE: Automatic screen rotation - by hansen - 04-28-2024, 07:53 AM
RE: Automatic screen rotation - by frtodd - 04-28-2024, 03:08 PM
RE: Automatic screen rotation - by Sumisu - 08-01-2024, 08:09 AM
RE: Automatic screen rotation - by frtodd - 08-01-2024, 11:29 AM
RE: Automatic screen rotation - by Kevin Kofler - 04-28-2024, 05:58 PM
RE: Automatic screen rotation - by hansen - 04-29-2024, 10:33 AM
RE: Automatic screen rotation - by Kevin Kofler - 04-29-2024, 02:34 PM
RE: Automatic screen rotation - by hansen - 05-19-2024, 09:28 AM
RE: Automatic screen rotation - by frtodd - 05-21-2024, 07:08 PM
RE: Automatic screen rotation - by hansen - 06-05-2024, 10:57 AM
RE: Automatic screen rotation - by KittyMuffin - 08-26-2024, 01:16 PM
RE: Automatic screen rotation - by hansen - 09-08-2024, 02:38 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  PineTab 2 login screen rotation fix chzbacon 11 6,271 03-17-2024, 04:53 PM
Last Post: mtomaschett
  Ubuntu touch rotation GloriousCoffee 3 2,262 01-09-2024, 06:01 AM
Last Post: polrus
  Low-level persistent display rotation diodelass 8 11,474 10-06-2020, 07:17 AM
Last Post: tophneal

Forum Jump:


Users browsing this thread: 3 Guest(s)