Fixing Mac HDMI audio that breaks after hibernating

Headshot of Adam Jones

Adam Jones

My MacBook stopped playing audio through my monitor. The monitor still showed up as an output and looked selected, but nothing played. Apps froze for about 10 seconds whenever they tried to play anything. The built-in speakers worked fine. Nothing fixed it except a reboot.

This seems to plague many Apple Silicon MacBooks that play audio to an external output (often over HDMI in some form, either directly or via a USB-C adapter). Lots of people online describe the same symptoms after sleep:

On Apple's forum:

Apple closed this forum in November 2026, so these link to archived copies.

On Reddit:

People have also written tools to work around it, such as LoudStation, whose README describes the same symptoms and the same 10 second hang.

In my case this was on my M2 Pro MacBook Pro running macOS 27.2.1, with an LG 4K monitor over USB-C to HDMI.

The cause: Macs sometimes hibernate, for example if their batteries run flat. macOS works out audio timestamps by subtracting the total time the Mac has been asleep from a clock on a separate chip. Hibernating resets that chip's clock to zero, but the asleep total keeps counting. The subtraction goes negative, macOS rounds it up to 0, and audio never starts. (This cause also means that waiting causes it to fix itself. Once the Mac has been awake longer than it was asleep before the hibernate, audio works again. This weird behaviour made root causing this even harder!)

Apple can fix this (details below). Until then, there's not much users can do apart from:

  1. avoiding hibernation
  2. restarting when it happens

What Apple should change

AppleSmartIODMA, the driver for the chip that sends audio to the monitor, should convert the chip's clock using the real offset between the two clocks, instead of assuming they match. It would also help if it reported an error rather than silently returning 0, which turns a timing bug into audio that's dead with no error anywhere. I've reported this to Apple as FB25848463.

If you're affected, please file your own report in the Feedback Assistant app and mention FB25848463. Apple prioritises bugs that more people report, so each extra report makes a fix more likely.

The rest of this post is the technical detail behind all this.

Appendix A: Narrowing it down

Most of this research was a combination of me and Claude. And really, mostly Claude. But I'm fairly confident in this given I sanity checked the reasoning + am able to reliably repro both this bug and the waiting fix now!

Initially, none of the usual fixes did anything:

  • switching outputs, or restarting coreaudiod
  • changing sample rate or display mode
  • sleeping and waking the display
  • replugging the cable, or using the other USB-C port

A small test program showed the problem. Starting the monitor's audio took 10 seconds and failed, while the built-in speakers started instantly:

LG HDR 4K:        AudioDeviceStart took 10.073 s → 'stop', host time 0, 0 callbacks
MacBook speakers: AudioDeviceStart took 0.032 s, 141 callbacks in 1.5 s

The audio hardware was running fine. But every buffer it finished came back with a timestamp of 0, and macOS won't start playing until it gets a real one.

Appendix B: Where the 0 comes from

The monitor's audio is handled by a separate chip (Smart IO). Its driver, AppleSmartIODMA, takes the chip's timestamp and converts it with this macOS function:

return ct < mach_absolutetime_asleep ? 0 : ct - mach_absolutetime_asleep;

That only works if the chip's clock has been running since boot. Normal sleep keeps it running. Hibernating cuts its power, so its clock restarts at zero, while mach_absolutetime_asleep still holds all the sleep since boot. So every timestamp comes out as 0.

My Mac had hit 1% battery and hibernated, the only time it had ever done so. It had been asleep for 27.7 hours in total since boot.

Appendix C: Reproducing it

I turned on DTrace (csrutil enable --without dtrace in Recovery) to log the chip's raw clock next to the asleep total. Then I forced a hibernate with pmset -a hibernatemode 25 and pmset sleepnow, waited 8.4 minutes, and woke it.

The asleep total was now 485 seconds. Audio stayed broken until the chip's clock passed 485 seconds, then started working with no reboot:

Time after wakeChip clockAsleep totalLG audio
1.8 min125 s485 sBroken
4.2 min271 s485 sBroken
6.7 min417 s485 sBroken
7.9 min490 s485 sWorks
10.5 min649 s485 sWorks

The first good timestamp was exactly 490 − 485 seconds. Afterwards I set hibernatemode back to 3.

One thing I'm inferring rather than measuring: that the chip's clock resets because it loses power. It fits every number, but I can't see inside the chip's firmware. Other things that use this chip might also break after hibernating; I only tested audio.