DWT not working on Sway with Apple BT Trackpad + wireless keyboard
Disable-while-typing is not working on my set up. I do not know if this is caused by libinput or sway. DWT is enabled in sway config:
# Apple Trackpad
input "type:touchpad" {
natural_scroll enabled
dwt enabled
tap enabled
}
However, if while typing I touch the touchpad with my arm, the cursor moves/clicks.
Setup details:
-
Arch Linux
-
Libinput 1.16.1 (Arch package version: 1.16.1-1)
-
System: custom-built desktop
-
Touchpad: Apple Trackpad 2, issue occurs both over Bluetooth and USB - in the recordings it's connected over Bluetooth
-
Keyboard: Logitech MK270 connected to their Nano Receiver
-
Compositor: Sway (1.5-fd216b3a)
I'm attaching libinput record
yamls for both the keyboard and the touchpad. I used Tilix's "synchronize inputs" feature to record them at exactly the same time: keyboard.yml touchpad.yml
Note that the touchpad recording also shows this issue occurring: https://wayland.freedesktop.org/libinput/doc/1.16.1/touchpad-jumping-cursors.html
This is the debug-events --verbose
output: debug-events.log
In both cases, to show the issue, I'm pressing random keys on the keyboard while heavily rubbing my wrists on the touchpad.
Other info
udevadm info /dev/input/event20
(touchpad, driver is hid_magicmouse
)
P: /devices/pci0000:00/0000:00:01.2/0000:20:00.0/0000:21:08.0/0000:2a:00.1/usb1/1-6/1-6:1.0/bluetooth/hci0/hci0:12/0005:004C:0265.0007/input/input40/event20
N: input/event20
L: 0
E: DEVPATH=/devices/pci0000:00/0000:00:01.2/0000:20:00.0/0000:21:08.0/0000:2a:00.1/usb1/1-6/1-6:1.0/bluetooth/hci0/hci0:12/0005:004C:0265.0007/input/input40/event20
E: DEVNAME=/dev/input/event20
E: MAJOR=13
E: MINOR=84
E: SUBSYSTEM=input
E: USEC_INITIALIZED=11363713090
E: ID_INPUT=1
E: ID_INPUT_TOUCHPAD=1
E: ID_INPUT_WIDTH_MM=161
E: ID_INPUT_HEIGHT_MM=115
E: ID_BUS=bluetooth
E: ID_INPUT_TOUCHPAD_INTEGRATION=external
E: LIBINPUT_DEVICE_GROUP=5/4c/265:5c:f3:70:9b:8c:ff
Keyboard:
P: /devices/pci0000:00/0000:00:01.2/0000:20:00.0/0000:21:08.0/0000:2a:00.3/usb3/3-6/3-6.3/3-6.3:1.1/0003:046D:C534.0003/0003:046D:4023.0004/input/input20/event3
N: input/event3
L: 0
S: input/by-id/usb-Logitech_USB_Receiver-if01-event-kbd
S: input/by-path/pci-0000:2a:00.3-usb-0:6.3:1.1-event-kbd
E: DEVPATH=/devices/pci0000:00/0000:00:01.2/0000:20:00.0/0000:21:08.0/0000:2a:00.3/usb3/3-6/3-6.3/3-6.3:1.1/0003:046D:C534.0003/0003:046D:4023.0004/input/input20/event3
E: DEVNAME=/dev/input/event3
E: MAJOR=13
E: MINOR=67
E: SUBSYSTEM=input
E: USEC_INITIALIZED=16186578
E: ID_INPUT=1
E: ID_INPUT_KEY=1
E: ID_INPUT_KEYBOARD=1
E: ID_VENDOR=Logitech
E: ID_VENDOR_ENC=Logitech
E: ID_VENDOR_ID=046d
E: ID_MODEL=USB_Receiver
E: ID_MODEL_ENC=USB\x20Receiver
E: ID_MODEL_ID=c534
E: ID_REVISION=2901
E: ID_SERIAL=Logitech_USB_Receiver
E: ID_TYPE=hid
E: ID_BUS=usb
E: ID_USB_INTERFACES=:030101:030102:
E: ID_USB_INTERFACE_NUM=01
E: ID_USB_DRIVER=usbhid
E: ID_PATH=pci-0000:2a:00.3-usb-0:6.3:1.1
E: ID_PATH_TAG=pci-0000_2a_00_3-usb-0_6_3_1_1
E: LIBINPUT_DEVICE_GROUP=3/46d/4023:usb-0000:2a:00.3-6
E: DEVLINKS=/dev/input/by-id/usb-Logitech_USB_Receiver-if01-event-kbd /dev/input/by-path/pci-0000:2a:00.3-usb-0:6.3:1.1-event-kbd
E: TAGS=:power-switch:
touchpad-edge-detector 161x115 /dev/input/event20
Touchpad Apple Inc. Magic Trackpad 2 on /dev/input/event20
Move one finger around the touchpad to detect the actual edges
Kernel says: x [-3678..3934], y [-2478..2587]
Touchpad sends: x [-3678..3934], y [-2478..2587] \^C
Touchpad size as listed by the kernel: 161x115mm
User-specified touchpad size: 161x115mm
Calculated ranges: 7612/5065
Suggested udev rule:
# <Laptop model description goes here>
evdev:input:b0005v004Cp0265*
EVDEV_ABS_00=-3678:3934:47
EVDEV_ABS_01=-2478:2587:44
EVDEV_ABS_35=-3678:3934:47
EVDEV_ABS_36=-2478:2587:44