about summary refs log tree commit diff
path: root/modules
diff options
context:
space:
mode:
authoraszlig <aszlig@redmoonstudios.org>2016-02-23 11:40:48 +0100
committeraszlig <aszlig@redmoonstudios.org>2016-02-23 11:40:48 +0100
commit3f8a602aeacc03e94bb163f8586b8a831861cb88 (patch)
treed4e6ca03baeb0ad2687a7b325e5cf9a7ec13ca9d /modules
parent2e0e2603993a2bdf71552c96f671c8a01d0b4428 (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>
Diffstat (limited to 'modules')
-rw-r--r--modules/hardware/t100ha/default.nix7
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"
+    '';
   };
 }