(08-01-2024, 08:09 AM)Sumisu Wrote: how can I create this file:60-sensor.hwdb and what is the content. Could you post this file?
Thank in advance
Sumisu
Sumisu,
Welcome to the party! I'm glad it's almost working for you!
The contents of the file /etc/udev/hwdb.d/60-sensor.hwdb are simple:
Code:
sensor:modalias:*
ACCEL_MOUNT_MATRIX=0, 1, 0; 1, 0, 0; 0, 0, 1
Those nine numbers should be able to fix your issue. They are labeled a matrix meaning they represent:
Code:
0 1 0
1 0 0
0 0 1
Note there is only a single "1" in each column or row. I believe this matrix accounts for the fact that the rotation sensor may be oriented differently or respond differently on each device. If your device is always 90 degrees off, then hopefully all you have to do is change the matrix to find the orientation that works for you. So, for example, I might try each of the following to see if one of them works:
ACCEL_MOUNT_MATRIX=1, 0, 0; 0, 1, 0; 0, 0, 1
ACCEL_MOUNT_MATRIX=1, 0, 0; 0, 0, 1; 0, 1, 0
ACCEL_MOUNT_MATRIX=0, 1, 0; 1, 0, 0; 0, 0, 1
ACCEL_MOUNT_MATRIX=0, 1, 0; 0, 0, 1; 1, 0, 0
ACCEL_MOUNT_MATRIX=0, 0, 1; 1, 0, 0; 0, 1, 0
ACCEL_MOUNT_MATRIX=0, 0, 1; 0, 1, 0; 1, 0, 0
Good luck!