1
0
Fork 0
mirror of https://github.com/NixOS/nixos-hardware synced 2024-09-16 19:37:24 +02:00

starlabs: init, add starlite 5 tablet

This commit is contained in:
M. Ian Graham 2024-09-04 13:42:54 +01:00 committed by mergify[bot]
parent 502e0aed31
commit 04a1cda0c1
5 changed files with 34 additions and 0 deletions

View file

@ -321,6 +321,7 @@ See code for all available configurations.
| [Samsung Series 9 NP900X3C](samsung/np900x3c) | `<nixos-hardware/samsung/np900x3c>` |
| [StarFive VisionFive v1](starfive/visionfive/v1) | `<nixos-hardware/starfive/visionfive/v1>` |
| [StarFive VisionFive 2](starfive/visionfive/v2) | `<nixos-hardware/starfive/visionfive/v2>` |
| [StarLabs StarLite 5 (I5)](starlabs/starlite/i5) | `<nixos-hardware/starlabs/starlite/i5>` |
| [Supermicro A1SRi-2758F](supermicro/a1sri-2758f) | `<nixos-hardware/supermicro/a1sri-2758f>` |
| [Supermicro M11SDV-8C-LN4F](supermicro/m11sdv-8c-ln4f) | `<nixos-hardware/supermicro/m11sdv-8c-ln4f>` |
| [Supermicro X10SLL-F](supermicro/x10sll-f) | `<nixos-hardware/supermicro/x10sll-f>` |

View file

@ -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;

10
starlabs/README.md Normal file
View file

@ -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
```

View 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).

View 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
'';
}