From 3f8a602aeacc03e94bb163f8586b8a831861cb88 Mon Sep 17 00:00:00 2001 From: aszlig Date: Tue, 23 Feb 2016 11:40:48 +0100 Subject: 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 --- modules/hardware/t100ha/default.nix | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'modules/hardware/t100ha/default.nix') 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" + ''; }; } -- cgit 1.4.1