Skip to content

Conversation

@IntegralPilot
Copy link

@IntegralPilot IntegralPilot commented Dec 29, 2025

The Apple M3 machines, and potentially M1/M2 machines with updated SMC firmware, generate a new set of SMC events starting with 0x7113 when cables are plugged or unplugged. Without this patch, the kernel logs "Unknown charger event" errors, and the power status may not update immediately.

The event structure is 0x7113[Port][Status].
Observed on M3:

  • Port 0 (USB-C): 0x711300xx
  • Port 1 (USB-C): 0x711301xx
  • Port 2 (MagSafe): 0x711302xx
  • Disconnect: 0x7113ffxx

Status 0x04 indicates a stable connection, while 0x02/0x03 appear during negotiation.

This patch handles these events and triggers a power_supply_changed notification.

The Apple M3 machines, and potentially M1/M2 machines with
updated SMC firmware generate a new set of SMC events
starting with 0x7113 when cables are plugged or unplugged.
Without this patch, the kernel logs "Unknown charger event" errors,
and the power status may not update immediately.

The event structure is 0x7113[Port][Status].
Observed on M3:
- Port 0 (USB-C): 0x711300xx
- Port 1 (USB-C): 0x711301xx
- Port 2 (MagSafe): 0x711302xx
- Disconnect: 0x7113ffxx

Status 0x04 indicates a stable connection, while 0x02/0x03 appear
during negotiation.

This patch handles these events and triggers a power_supply_changed
notification.

Signed-off-by: Michael Reeves <michael.reeves077@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants