Linux 7.0 Fixes Battery Reporting For The Apple Magic Trackpad 2

Linux 7.0 Fixes Battery Reporting For The Apple Magic Trackpad 2

Phoronix
PhoronixMar 8, 2026

Key Takeaways

  • Battery reporting now works for USB‑connected Magic Trackpad 2
  • Fix resides in hid‑magicmouse driver with one‑line change
  • Included in Linux 7.0‑rc3 HID fixes
  • Back‑port expected to stable kernel releases soon
  • Additional patches address memory leaks and null pointers

Summary

Linux 7.0 kernel includes a fix for Apple Magic Trackpad 2 battery reporting when connected via USB. The change modifies the hid‑magicmouse driver to correct an HID descriptor length check, restoring accurate battery level display. The fix is part of the HID fixes merged for Linux 7.0‑rc3 and is expected to be back‑ported to stable kernels. The update also includes memory‑leak and null‑pointer patches.

Pulse Analysis

The Linux kernel’s hardware‑input (HID) stack has long accommodated Apple’s peripheral lineup, but subtle incompatibilities can linger for years. The Magic Trackpad 2, introduced in 2015, works flawlessly for gestures yet has suffered from inaccurate battery status when attached via USB. This discrepancy stems from an outdated descriptor validation routine that ignored a specific length field, causing the kernel to skip the battery‑level query. By addressing the issue in the upcoming Linux 7.0‑rc3, developers reaffirm the kernel’s commitment to seamless cross‑platform device support.

The corrective change lives in the hid‑magicmouse driver, a component responsible for both Magic Mouse and Trackpad devices. A single line adjusts the HID descriptor length check, allowing the driver to parse the battery report descriptor correctly and expose the charge level through standard sysfs interfaces. Users will now see real‑time battery percentages in GNOME, KDE, or command‑line tools, eliminating the need for third‑party scripts that previously guessed power status. The patch also includes minor clean‑ups that prevent potential null‑pointer dereferences.

Beyond the immediate user benefit, the fix illustrates the rapid upstream flow from community discovery to mainline inclusion. Kernel maintainers plan to back‑port the patch to the 5.19 and 6.1 stable branches, ensuring that distribution vendors can ship updated packages without waiting for the next major release. Consistent battery reporting strengthens the case for deploying Apple input devices in mixed‑OS environments, a trend gaining traction in development studios and remote‑work setups. Continued attention to HID edge cases will keep Linux competitive as a universal desktop platform.

Linux 7.0 Fixes Battery Reporting For The Apple Magic Trackpad 2

Comments

Want to join the conversation?