From 838171060d468dbce9d6ce4410970a184d692b24 Mon Sep 17 00:00:00 2001 From: matt1432 Date: Thu, 12 Oct 2023 14:06:36 -0400 Subject: [PATCH] fix(tablet mode): make tablet mode grab touchpad again --- config/ags/bin/tablet-toggle.sh | 1 + nixos/cfg/extra-hardware.nix | 3 +++ 2 files changed, 4 insertions(+) diff --git a/config/ags/bin/tablet-toggle.sh b/config/ags/bin/tablet-toggle.sh index 4f5dc9ac..dede8568 100755 --- a/config/ags/bin/tablet-toggle.sh +++ b/config/ags/bin/tablet-toggle.sh @@ -12,6 +12,7 @@ tablet() { evtest --grab "/dev/input/by-path/platform-AMDI0010:02-event-mouse" & evtest --grab "/dev/input/by-path/platform-thinkpad_acpi-event" & evtest --grab "/dev/video-bus" & + evtest --grab "/dev/touchpad" & } laptop() { diff --git a/nixos/cfg/extra-hardware.nix b/nixos/cfg/extra-hardware.nix index d9cdf61a..1627b2c6 100644 --- a/nixos/cfg/extra-hardware.nix +++ b/nixos/cfg/extra-hardware.nix @@ -14,6 +14,9 @@ udev.extraRules = '' # give permanent path to keyboard XF86* binds SUBSYSTEMS=="input", ATTRS{id/product}=="0006", ATTRS{id/vendor}=="0000", SYMLINK += "video-bus" + + # give permanent path to touchpad + SUBSYSTEMS=="input", ATTRS{id/product}=="01e0", ATTRS{id/vendor}=="27c6", ATTRS{name}=="GXTP5140:00 27C6:01E0 Touchpad", SYMLINK += "touchpad" ''; fwupd.enable = true;