about summary refs log tree commit diff
path: root/modules/hardware/t100ha/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'modules/hardware/t100ha/default.nix')
-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"
+    '';
   };
 }