The newest open-source Apple Silicon driver being submitted for review in working toward its inclusion in the mainline Linux kernel is the Apple Silicon SMC power driver for being able to expose MacBook battery power metrics as well as AC power adapter status reporting under Linux.

Michael Reeves posted the set of patches today for the nearly 900 lines of code power driver for Apple’s System Management Controller. This new “macsmc-power” driver allows for the Linux kernel to report the AC charging status as well as battery status and power metrics to user-space. This driver is based on code for the out-of-tree driver within the Asahi Linux kernel tree but then refactored for upstream inclusion, The revised code also better handles newer Apple System Management Controller firmware, devices without batteries, and other improvements.

  • wltr@discuss.tchncs.de
    link
    fedilink
    arrow-up
    4
    ·
    2 days ago

    I wonder what about the Intel Macs. Did they have similar driver already, or would they benefit from that new driver too? My Intel MacBook Pro (2014) seems to work very well with battery management on Arch Linux, and as far as I remember Fedora was good as well.