From 788f44f6a0380d19d8d8677197f5ae4535b7f3d2 Mon Sep 17 00:00:00 2001 From: chn Date: Sat, 11 May 2024 22:09:08 +0800 Subject: [PATCH] devices.surface: fix touch screen --- devices/surface/default.nix | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/devices/surface/default.nix b/devices/surface/default.nix index 001e95d0..a7d63c2a 100644 --- a/devices/surface/default.nix +++ b/devices/surface/default.nix @@ -59,5 +59,10 @@ inputs: boot.kernelParams = [ "intel_iommu=off" ]; environment.systemPackages = with inputs.pkgs; [ maliit-keyboard maliit-framework ]; powerManagement.resumeCommands = ''${inputs.pkgs.systemd}/bin/systemctl restart iptsd''; + services.iptsd.config = + { + Touch = { DisableOnPalm = true; DisableOnStylus = true; Overshoot = 0.5; }; + Contacts = { Neutral = "Average"; NeutralValue = 50; }; + }; }; }