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:
@@ -49,4 +49,8 @@ in {
|
|||||||
|
|
||||||
# Setup bluetooth
|
# Setup bluetooth
|
||||||
hardware.bluetooth.enable = true;
|
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;
|
||||||
}
|
}
|
||||||
|
|||||||
2
hosts/Blackbird/sensor.hwdb
Normal file
2
hosts/Blackbird/sensor.hwdb
Normal file
@@ -0,0 +1,2 @@
|
|||||||
|
sensor:modalias:*
|
||||||
|
ACCEL_MOUNT_MATRIX=-1, 0, 0; 0, 1, 0; 1, 0, 0
|
||||||
Reference in New Issue
Block a user