diff --git a/README.md b/README.md index ab147ac..1a264e2 100644 --- a/README.md +++ b/README.md @@ -321,6 +321,7 @@ See code for all available configurations. | [Samsung Series 9 NP900X3C](samsung/np900x3c) | `` | | [StarFive VisionFive v1](starfive/visionfive/v1) | `` | | [StarFive VisionFive 2](starfive/visionfive/v2) | `` | +| [StarLabs StarLite 5 (I5)](starlabs/starlite/i5) | `` | | [Supermicro A1SRi-2758F](supermicro/a1sri-2758f) | `` | | [Supermicro M11SDV-8C-LN4F](supermicro/m11sdv-8c-ln4f) | `` | | [Supermicro X10SLL-F](supermicro/x10sll-f) | `` | diff --git a/flake.nix b/flake.nix index bde633b..af9090c 100644 --- a/flake.nix +++ b/flake.nix @@ -267,6 +267,7 @@ samsung-np900x3c = import ./samsung/np900x3c; starfive-visionfive-v1 = import ./starfive/visionfive/v1; starfive-visionfive-2 = import ./starfive/visionfive/v2; + starlabs-starlite-i5 = import ./starlabs/starlite/i5; supermicro = import ./supermicro; supermicro-a1sri-2758f = import ./supermicro/a1sri-2758f; supermicro-m11sdv-8c-ln4f = import ./supermicro/m11sdv-8c-ln4f; diff --git a/starlabs/README.md b/starlabs/README.md new file mode 100644 index 0000000..75a1dc7 --- /dev/null +++ b/starlabs/README.md @@ -0,0 +1,10 @@ +# [Star Labs](https://starlabs.systems) + +Star Labs machines are made for mainline Linux and most things just work! + +ID new hardware based on product_sku. For example, on the StarLite 5: + +```console +$ cat /sys/class/dmi/id/product_sku +I5 +``` diff --git a/starlabs/starlite/i5/README.md b/starlabs/starlite/i5/README.md new file mode 100644 index 0000000..6560015 --- /dev/null +++ b/starlabs/starlite/i5/README.md @@ -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). diff --git a/starlabs/starlite/i5/default.nix b/starlabs/starlite/i5/default.nix new file mode 100644 index 0000000..018a576 --- /dev/null +++ b/starlabs/starlite/i5/default.nix @@ -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 + ''; +}