gpd/pocket-{3,4}: enable IIO
Enables screen auto rotation.
This commit is contained in:
parent
40b1a28dce
commit
316a132d5f
2 changed files with 6 additions and 0 deletions
|
|
@ -36,6 +36,9 @@ in
|
||||||
"video=DSI-1:panel_orientation=right_side_up"
|
"video=DSI-1:panel_orientation=right_side_up"
|
||||||
];
|
];
|
||||||
|
|
||||||
|
# Turn on IIO for accelerometer screen rotation.
|
||||||
|
hardware.sensor.iio.enable = lib.mkDefault true;
|
||||||
|
|
||||||
fonts.fontconfig = {
|
fonts.fontconfig = {
|
||||||
subpixel.rgba = "vbgr"; # Pixel order for rotated screen
|
subpixel.rgba = "vbgr"; # Pixel order for rotated screen
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -23,6 +23,9 @@ in
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
|
||||||
|
# Turn on IIO for accelerometer screen rotation.
|
||||||
|
hardware.sensor.iio.enable = lib.mkDefault true;
|
||||||
|
|
||||||
fonts.fontconfig = {
|
fonts.fontconfig = {
|
||||||
subpixel.rgba = "vbgr"; # Pixel order for rotated screen
|
subpixel.rgba = "vbgr"; # Pixel order for rotated screen
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue