Drive a Blink(1) mk3 USB LED to display real-time GPU and CPU utilisation on an Apple Silicon Mac.
| LED | Metric | Colour | Idle → Full |
|---|---|---|---|
| 1 (top) | GPU Active Residency | Magenta (val, 0, val) |
Dark → Bright |
| 2 (bottom) | CPU usage | Cyan (0, val, val) |
Dark → Bright |
- macOS on Apple Silicon (uses
powermetricsGPU sampler) - blink1-tool —
brew install blink1 - uv —
brew install uv(or any Python package installer)
sudo visudo -f /etc/sudoers.d/powermetricsAdd this single line (replace cls with your username):
cls ALL=(root) NOPASSWD: /usr/bin/powermetrics
Save and exit. Verify:
sudo -n /usr/bin/powermetrics --samplers gpu_power -i 1000 -n 1uv tool install . # from a local checkoutThis puts the blinkenlight command on your $PATH.
blinkenlight run[info] blinkenlight starting (pid 12345)
[load] GPU 12.3% → rgb(31,0,31) | CPU 8.5% → rgb(0,21,21)
Press Ctrl-C — both LEDs turn off cleanly.
blinkenlight installThis generates a launchd plist (with the correct paths resolved automatically), copies it to ~/Library/LaunchAgents/, and loads it. It will start on every login and restart on crash.
blinkenlight run # start the monitor (foreground)
blinkenlight install # install + start the launchd agent
blinkenlight uninstall # stop + remove the launchd agent
blinkenlight status # check if the agent is loaded
blinkenlight status # is it running?
blinkenlight uninstall # stop and remove
blinkenlight install # (re)install and startView logs:
tail -f /tmp/blinkenlight.log # stdout
tail -f /tmp/blinkenlight.err # stderruv tool install -e . # editable install for development
blinkenlight run # run directly