Add sensor configuration for auto-rotation

This commit is contained in:
panotaka
2023-12-31 16:24:48 -04:00
parent 5dea1ed705
commit 425699f503

View File

@@ -52,5 +52,8 @@ in {
# Setup auto-rotaion
hardware.sensor.iio.enable = true;
environment.etc."/etc/udev/hwdb.d/61-gpd-pocket3-sensor-local.hwdb".source = ./sensor.hwdb;
services.udev.extraHwdb = ''
sensor:modalias:*
ACCEL_MOUNT_MATRIX=-1, 0, 0; 0, 1, 0; 1, 0, 0
'';
}