[BUG] CachyOS kernel patches send multitouch requests to Apple trackpad interfaces that don't support them

Aperta
#1,126 0 commenti 0 reazioni 2 assegnatari Vedi su GitHub

@ptr1337 ci sta già lavorando.

Dal 4/11/2026.

Valutazione

Questa issue non è ancora stata valutata.

Descrizione

bug
Pre-flight checklist
  • I have searched existing issues and this is not a duplicate.
  • I have read the Contributing Guidelines.
  • I have verified the issue is reproducible with the latest available CachyOS kernel.
  • I have tried to reproduce the issue on Arch Linux's linux kernel.
Upstream / vanilla kernel check

I have not tested with a vanilla/upstream kernel

Kernel variant

linux-cachyos (EEVDF, Clang)

System information (cachyos-bugreport.sh)
Date: wo  4 nov 2026 21:07:50 CET
uname: Linux <hostname-redacted> 7.3.1-1-cachyos #1 SMP PREEMPT_DYNAMIC Sat, 31 Oct 2026 06:43:52 +0000 x86_64 GNU/Linux
System:
  Kernel 7.3.1-1-cachyos arch x86_64 bits 64 compiler clang v 23.1.4 clocksource tsc
  Desktop niri v N/A dm SDDM Distro CachyOS base Arch Linux
Machine:
  Type Desktop Mobo ASRock model X670E PG Lightning serial <filter>
    uuid <uuid-redacted> Firmware UEFI vendor American Megatrends LLC. v 1.07
    date 09/23/2022
CPU:
  Info model AMD Ryzen 7 7700X socket AM5 bits 64 type MT MCP arch Zen 4 gen 4 level v4 note check
    built 2022+ process TSMC n5 (5nm) family 0x19 (25) model-id 0x61 (97) stepping 2
    microcode 0xA60120A
Graphics:
  Device-1 NVIDIA GM204 [GeForce GTX 970] vendor Gigabyte driver nvidia v 580.196.07
    alternate nouveau,nvidia_drm non-free 550-580.xx+ status arch Maxwell code GMxxx
Memory:
  Memory total 32 GiB available 31.05 GiB used 25.38 GiB (81.8%)

Getting Scheduler information

sched-ext:
/sys/kernel/sched_ext/nr_rejected:0
/sys/kernel/sched_ext/hotplug_seq:15
/sys/kernel/sched_ext/switch_all:0
/sys/kernel/sched_ext/state:disabled
/sys/kernel/sched_ext/enable_seq:0
Manual system information (if cachyos-bugreport.sh is unavailable)

Bug description

🤖 this issue's body was generated by an LLM and reviewed by jyn, with minor edits. i am experimenting with getting LLMs to generate readable prose and i think this one reads ok for humans. i reviewed it in detail, but also my brain is fried from reading too much LLM prose, so if you want me to delete it and not post any more llm-generated text i'm happy to do that. 🤖

Opening USB interface 0's input event node on my Apple Magic Trackpad fails with EPIPE because hid-magicmouse sends it a multitouch-enable request. The same physical trackpad's interface 1 works normally: Niri reads that interface, and two-finger right-click works.

Here is an example of real bugs this causes in downstream applications: https://github.com/opensteno/plover/issues/1875.

I have not tested this with Arch's linux kernel. I have, however, inspected the source and I believe the multitouch request does not happen on upstream Arch or mainline kernels. See "Source analysis" below.

The driver exposes both interfaces as input devices named Apple Inc. Magic Trackpad:

USB interface Event node on this machine Observed behavior
1-1.2:1.0 /dev/input/event15 Opening it fails with BrokenPipeError / errno 32.
1-1.2:1.1 /dev/input/event6 The same read-only open succeeds (exit status 0).

Interface 0's HID descriptor advertises battery-status and vendor-defined reports, not the touch reports that interface 1 advertises. CachyOS's generic input-open callback nevertheless sends the multitouch-enable command to interface 0 and returns the failed request's error to the opener.

Please check whether touch initialization should be limited to the actual touch-report interface rather than also running for interface 0.

Steps to reproduce

This requires a USB-C Apple Magic Trackpad (05ac:0324) connected over USB, the kernel above, and read permission on the input event node.

  1. List the trackpad's event nodes and USB interface numbers:

    udevadm info --query=property \
      --property=DEVNAME,ID_VENDOR_ID,ID_MODEL_ID,ID_USB_INTERFACE_NUM \
      /dev/input/by-id/usb-Apple_Inc._Magic_Trackpad*-event-mouse
    

    Choose the DEVNAME from the block containing ID_VENDOR_ID=05ac, ID_MODEL_ID=0324, and ID_USB_INTERFACE_NUM=00. On this machine that is /dev/input/event15; interface 01 maps to /dev/input/event6.

  2. Run the following, replacing /dev/input/event15 with the interface-0 node found above if it differs:

    python -c 'import os; os.open("/dev/input/event15", os.O_RDONLY)'
    

An LLM agent ran this reproducer on the host on November 4, 2026. It exited with status 1 and produced the traceback and kernel message below. The same command targeting /dev/input/event6 (USB interface 1 of the same trackpad) exited successfully with status 0. Each process exits immediately without reading input events.

Expected behavior

The driver should not make an input event node unusable by sending a touch-enable request to an interface that does not support it. If interface 0 only provides status/vendor data, applications enumerating input devices should not encounter a failing touch-input node for it. Normal gestures through interface 1 should continue working.

Actual behavior

The driver registers interface 0 as an input device, then its open callback returns -EPIPE from the multitouch-enable request. The application sees errno 32 on opening /dev/input/event15, even though gestures through the sibling interface continue working.

Logs / stack traces

Kernel log excerpt from the standalone open test, with timestamp and hostname omitted:

magicmouse 0003:05AC:0324.0003: unable to request touch data (-32)

Standalone reproducer's exception:

BrokenPipeError: [Errno 32] Broken pipe: '/dev/input/event15'
Interface checks and cached HID descriptors

Agent-run read-only checks included:

fuser -v /dev/input/event6 /dev/input/event15
udevadm info --query=property --name=/dev/input/event6
udevadm info --query=property --name=/dev/input/event15
cat /sys/bus/hid/devices/0003:05AC:0324.0003/uevent
cat /sys/bus/hid/devices/0003:05AC:0324.0004/uevent
modinfo -F srcversion hid_magicmouse
cat /sys/module/hid_magicmouse/srcversion
od -An -tx1 /sys/bus/hid/devices/0003:05AC:0324.0003/report_descriptor
od -An -tx1 /sys/bus/hid/devices/0003:05AC:0324.0004/report_descriptor

fuser reported Niri as an open client of event6 and no client for event15. Both interfaces bind to magicmouse. The installed driver path is /lib/modules/7.3.1-1-cachyos/kernel/drivers/hid/hid-magicmouse.ko.zst, and modinfo reports intree: Y. The installed and loaded module source-version identifiers both equal 85AD5001A966B09224E6BDD.

Interface 0's cached descriptor declares report IDs e0, 9a, 90, 9b, and 9c, including battery-related usages. Interface 1 declares IDs 02, 3f, and 44, including a touchpad collection. Interface 0 does not advertise report ID 02.

Those descriptors support an inappropriate-request diagnosis, but devices can implement undocumented feature requests. The kernel log establishes the request failure. We did not capture USB traffic to check the device's control-transfer response.

Source analysis for the affected CachyOS release

CachyOS carries “HID: magicmouse: Handle touch controller resets on SPI devices”, which introduces magicmouse_open() and installs it for USB input devices as well as SPI trackpads:

https://github.com/CachyOS/linux/commit/f236a0ccce354beeaa76e73ed7839eeb8ef4b0e9

Stock Arch's linux 7.2.14.arch1-1 source and upstream Linux v7.3 do not install this open override. Both skip the auxiliary USB trackpad interface during probe before sending the touch-enable request, so I expect this particular open failure not to reproduce on stock Arch:

https://github.com/archlinux/linux/blob/8ae86fbb961a2953a8883b767465417f667d8d21/drivers/hid/hid-magicmouse.c#L943-L946

https://github.com/torvalds/linux/blob/c03c1a14507dfaf8b856c2608f9ac216021fc222/drivers/hid/hid-magicmouse.c#L943-L946

The inspected source comes from release tag cachyos-7.3.1-1. Its USB input setup installs the open callback for the input device:

https://github.com/CachyOS/linux/blob/36ae4c219cfbd02576048c7ca1d366cea5db8034/drivers/hid/hid-magicmouse.c#L1158-L1164

magicmouse_open() calls hid_hw_open(), sends the multitouch-enable request for non-BUS_HOST devices, and logs and returns negative results other than -EIO. It therefore propagates -EPIPE to the opener:

https://github.com/CachyOS/linux/blob/36ae4c219cfbd02576048c7ca1d366cea5db8034/drivers/hid/hid-magicmouse.c#L294-L324

For product 0324 on USB, the enable function sends report ID 02, bytes 02 01, as a HID feature SET_REPORT:

https://github.com/CachyOS/linux/blob/36ae4c219cfbd02576048c7ca1d366cea5db8034/drivers/hid/hid-magicmouse.c#L1369-L1423

The USB HID transport directs that control request to the current USB interface:

https://github.com/CachyOS/linux/blob/36ae4c219cfbd02576048c7ca1d366cea5db8034/drivers/hid/usbhid/hid-core.c#L907-L940

The driver skips later probe-time touch-report setup for USB trackpad interfaces whose HID type is not HID_TYPE_USBMOUSE, but the earlier input setup has already installed the generic open callback:

https://github.com/CachyOS/linux/blob/36ae4c219cfbd02576048c7ca1d366cea5db8034/drivers/hid/hid-magicmouse.c#L1600-L1603

That asymmetry appears relevant: an interface can avoid touch-report setup during probe but still receive the touch-enable request when an application opens its event node.

Additional system information

The running kernel is 7.3.1-1-cachyos; the installed package and repository databases both report linux-cachyos 7.3.1-1. A live check of the CachyOS mirror's cachyos-znver4 package listing on the same day also found linux-cachyos-7.3.1-1-x86_64_v4.pkg.tar.zst.

Lingua principale
Shell
Stelle
4.9k
Fork
190
Merge medio
8h 53m
PR unite (30g)
1

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di CachyOS/linux-cachyos

Tutte le issue di CachyOS/linux-cachyos

Issue simili

Altre issue su Shell/Bash

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.