diff options
author | aszlig <aszlig@redmoonstudios.org> | 2016-02-23 11:40:48 +0100 |
---|---|---|
committer | aszlig <aszlig@redmoonstudios.org> | 2016-02-23 11:40:48 +0100 |
commit | 3f8a602aeacc03e94bb163f8586b8a831861cb88 (patch) | |
tree | d4e6ca03baeb0ad2687a7b325e5cf9a7ec13ca9d | |
parent | 2e0e2603993a2bdf71552c96f671c8a01d0b4428 (diff) |
hardware/t100ha: Rotate the touch screen as well
This may need some calibration as well, but I don't have a stylus to do it very precisely so I'm leaving this to the defaults because I tried to calibrate it using my monstrous fingers and it got worse than the defaults. Signed-off-by: aszlig <aszlig@redmoonstudios.org>
-rw-r--r-- | modules/hardware/t100ha/default.nix | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/modules/hardware/t100ha/default.nix b/modules/hardware/t100ha/default.nix index 7cc9c16e..f0beea65 100644 --- a/modules/hardware/t100ha/default.nix +++ b/modules/hardware/t100ha/default.nix @@ -25,5 +25,12 @@ in { Option "Rotate" "left" ''; services.xserver.videoDriver = "intel"; + + # The touch screen needs to be rotated as well: + services.xserver.inputClassSections = lib.singleton '' + Identifier "touchscreen" + MatchProduct "SIS0457" + Option "TransformationMatrix" "0 -1 1 1 0 0 0 0 1" + ''; }; } |