VOOZH about

URL: https://www.phoronix.com/news/Apple-Lid-Power-Buttons-Driver

⇱ Linux Driver Under Review For Apple Laptop Lid Events & Power Button - Phoronix


👁 Phoronix

Linux Driver Under Review For Apple Laptop Lid Events & Power Button

Written by Michael Larabel in Apple on 21 August 2025 at 09:24 AM EDT. 1 Comment
Following the recent Apple SMC driver upstreaming to handle rebooting Apple Silicon Macs under Linux, the latest code volleyed on the kernel mailing list for review is support for handling laptop lid events and power buttons. Plus Apple sensor monitoring driver support too.

Posted to the Linux kernel mailing list this week by James Calligeros were patches he along with Hector Martin and Sven Peter had worked on for Asahi Linux. These patches enable the RTC, HWMON, and HID sub-devices of the Apple System Management Controller (SMC).

The RTC driver is needed for getting and setting the system clock. The HWMON driver exposes various hardware monitoring metrics such as for thermal and power. Among the hardware monitoring data exposed from the Apple SMC are the current, fan control mode/minimum/maximum, power endpoints, temperatures, and voltage.

👁 Apple MacBook Air lid


Lastly SMC driver support is also needed for handling the hardware power buttons and lid switch open/close events under Linux. Power button presses and lid opening/closing are emitted as HID events on the Apple Silicon devices.

This patch series is now out for review for working to upstream these important Apple Silicon support additions to the mainline Linux kernel. For now the Apple Silicon Linux support continues to be focused on the M1 and M2 hardware with the M3/M4 bring-up still slowly being worked on downstream in Asahi Linux.

Michael Larabel is the principal author of Phoronix.com and founded the site in 2004 with a focus on enriching the Linux hardware experience. Michael has written more than 20,000 articles covering the state of Linux hardware support, Linux performance, graphics drivers, and other topics. Michael is also the lead developer of the Phoronix Test Suite, Phoromatic, and OpenBenchmarking.org automated benchmarking software. He can be followed via Twitter, LinkedIn, or contacted via MichaelLarabel.com.