calibrate itsd

This commit is contained in:
Nathan McCarty 2025-01-30 10:45:01 -05:00
parent 387a11dfba
commit 50103723ab

View file

@ -160,12 +160,40 @@
wl-clipboard
];
# We need to use a fork of iptsd for the LiftTimeout option
# https://github.com/linux-surface/iptsd/issues/166#issuecomment-2391567615
nixpkgs.overlays = let
iptsd_overlay = self: super: {
iptsd = super.iptsd.overrideAttrs (prev: {
src = pkgs.fetchFromGitHub {
owner = "wvffle";
repo = "iptsd";
rev = "9c3e4c7b85767a3239bb2ba1ee12430ba5c92a86";
hash = "sha256-wyCstqTpyFDLRe/AGFrjJi9A+txwkFNbsW4KLNcMf1Q=";
};
});
};
in [iptsd_overlay];
# Setup iptsd for touch and stylus support
services.iptsd = {
enable = true;
config.Touchscreen = {
# DisableOnPalm = true;
DisableOnStylus = true;
config = {
Touchscreen = {
DisableOnPalm = true;
DisableOnStylus = true;
};
Contacts = {
SizeMin = "0.775";
SizeMax = "1.710";
AspectMin = "1.005";
AspectMax = "1.470";
};
Stylus = {
LiftTimeout = "0.07";
};
DFT = {
PositionMinAmp = "10";
};
};
};