Own products · 2026
AudioNudge
Bring back monitor audio after sleep
AudioNudge grew out of an annoyance at my own desk: since macOS 27, the audio of my monitor stays silent after display sleep. The monitor is still listed as an output device, but its audio clock does not start – the log says Device … is not running, videos freeze and browsers report an audio error. The only fix was switching the monitor off and on again; restarting coreaudiod did not help.
The fix
Briefly switching the sample rate of the affected output – for example 48 kHz → 44.1 kHz → 48 kHz – rebuilds the audio stream through CoreAudio, and the sound is back immediately. What started as a small Swift script on the command line is now a lean menu bar app for the Mac App Store.
What it does
- nudges the watched outputs automatically after wake, after unlocking and when a monitor is connected again
- several monitors, each with its own default and temporary sample rate, delay and pause
- manually from the menu or with an optional global keyboard shortcut
- the menu bar icon pulses orange while nudging, then green or red
- launch at login, translated into all 50 App Store languages
- runs in the sandbox, without network access and without collecting data
Technology
Swift 6 with strict concurrency, SwiftUI for the settings and AppKit for the menu bar. The app sets the sample rate directly through the HAL properties of CoreAudio. Wake and unlock events come from NSWorkspace and DistributedNotificationCenter, newly connected monitors from a listener on the device list. Launch at login uses SMAppService, the keyboard shortcut Carbon hot keys – no accessibility permission needed.
How to set up AudioNudge and what the settings mean is described in the docs.