From 951ba2b8501c6d5868e1fa05b890fd9155bc64f4 Mon Sep 17 00:00:00 2001 From: rope Date: Tue, 19 May 2026 17:39:38 +0100 Subject: [PATCH] =?UTF-8?q?macbook:=20revert=20libinput=20quirk=20?= =?UTF-8?q?=E2=80=94=20it=20permanently=20inhibits=20the=20touchpad?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The AttrKeyboardIntegration=internal quirk caused libinput's native DWT to permanently disable the touchpad. Keep the custom script. Co-Authored-By: Claude Opus 4.6 --- hosts/FredOS-Macbook.nix | 16 +++++----------- 1 file changed, 5 insertions(+), 11 deletions(-) diff --git a/hosts/FredOS-Macbook.nix b/hosts/FredOS-Macbook.nix index aea507b..81f0ec7 100644 --- a/hosts/FredOS-Macbook.nix +++ b/hosts/FredOS-Macbook.nix @@ -32,17 +32,11 @@ HandleLidSwitchExternalPower = "suspend"; }; - # Hint libinput that the Apple keyboard is internal, so its built-in - # DWT pairing works for the bcm5974 touchpad (keyboard and touchpad - # share the same USB device, which normally breaks pairing). - environment.etc."libinput/local-overrides.quirks".text = '' - [Apple MacBook Keyboard] - MatchProduct=Apple Internal Keyboard - AttrKeyboardIntegration=internal - ''; - - # Fallback DWT daemon in case the libinput quirk above isn't enough. - # TODO: remove this if the quirk works reliably. + # Disable-while-typing daemon for the bcm5974 touchpad. + # Hyprland's built-in DWT doesn't work because the keyboard and + # touchpad share the same USB device, breaking libinput's pairing. + # A libinput quirk (AttrKeyboardIntegration=internal) was tried but + # caused libinput to permanently inhibit the touchpad. systemd.services.macbook-dwt = { description = "Disable touchpad while typing (bcm5974)"; after = [ "systemd-udevd.service" ];