mirror of
https://github.com/NixOS/nixos-hardware.git
synced 2025-11-04 01:07:14 +08:00
starlabs: init, add starlite 5 tablet
This commit is contained in:
committed by
mergify[bot]
parent
502e0aed31
commit
04a1cda0c1
5
starlabs/starlite/i5/README.md
Normal file
5
starlabs/starlite/i5/README.md
Normal file
@@ -0,0 +1,5 @@
|
||||
# [Star Labs StarLite 5 Tablet (I5)](https://starlabs.systems)
|
||||
|
||||
Star Labs machines are made for mainline Linux and most things just work!
|
||||
|
||||
The StarLite 5 is their first tablet, and the only hardware configuration oddity is an accelerometer that needs enabling and adjusting to rotate the display correctly. See the vendor's note at [support.starlabs.systems](https://support.starlabs.systems/kb/guides/starlite-fixing-rotation-on-older-kernel).
|
||||
17
starlabs/starlite/i5/default.nix
Normal file
17
starlabs/starlite/i5/default.nix
Normal file
@@ -0,0 +1,17 @@
|
||||
{ lib, pkgs, ... }:
|
||||
{
|
||||
imports = [
|
||||
../../../common/cpu/intel
|
||||
../../../common/pc/laptop
|
||||
../../../common/pc/laptop/ssd
|
||||
];
|
||||
|
||||
# Turn on IIO for accelerometer screen rotation.
|
||||
hardware.sensor.iio.enable = lib.mkDefault true;
|
||||
|
||||
# Accelerometer is mounted to display with inverted Y axis. Adjust!
|
||||
services.udev.extraHwdb = ''
|
||||
sensor:modalias:acpi:KIOX000A*:dmi:*:*
|
||||
ACCEL_MOUNT_MATRIX=1, 0, 0; 0, -1, 0; 0, 0, 1
|
||||
'';
|
||||
}
|
||||
Reference in New Issue
Block a user