Add sensor configuration for auto-rotation
This commit is contained in:
@@ -52,5 +52,8 @@ in {
|
|||||||
|
|
||||||
# Setup auto-rotaion
|
# Setup auto-rotaion
|
||||||
hardware.sensor.iio.enable = true;
|
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
|
||||||
|
'';
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user