Add auto-rotation support and sensor configuration

This commit adds support for auto-rotation by enabling the hardware sensor and configuring the sensor.hwdb file.
This commit is contained in:
panotaka
2023-12-31 16:18:21 -04:00
parent 5d77dcc8ac
commit 5dea1ed705
2 changed files with 6 additions and 0 deletions

View File

@@ -49,4 +49,8 @@ in {
# Setup bluetooth
hardware.bluetooth.enable = true;
# Setup auto-rotaion
hardware.sensor.iio.enable = true;
environment.etc."/etc/udev/hwdb.d/61-gpd-pocket3-sensor-local.hwdb".source = ./sensor.hwdb;
}

View File

@@ -0,0 +1,2 @@
sensor:modalias:*
ACCEL_MOUNT_MATRIX=-1, 0, 0; 0, 1, 0; 1, 0, 0