A minimal command-line tool for controlling the built-in display brightness on Apple Silicon Macs.
The standard tooling for brightness control is broken on Apple Silicon internal panels:
- AppleScript has no
set brightnesscommand - The popular Homebrew
brightnesstool fails with an IOKit error (-536870201) m1ddconly drives external displays
The private DisplayServices framework is the one stateless, daemon-free path that works on the built-in panel.
- macOS 13 or later
- Apple Silicon Mac
git clone https://github.com/s-age/brightness.git
cd brightness
swift build -c release
cp .build/release/brightness /usr/local/bin/brightnessbrightness [<value>]
<value> set main-display brightness, 0.0 (dark) … 1.0 (max)
(no arg) print the current brightness
Examples:
brightness # print current value, e.g. 0.36
brightness 0.5 # set to 50%
brightness 1.0 # set to maximumMIT