monitorctl
Felthos Foundry

Your monitor's settings, from the command line.

monitorctl reads and changes an external monitor's brightness, volume, colour and more, over the display cable. It reads every write back, and it refuses the writes that can lock you out.

Apple Silicon Macs only, for now. Free and open source under the MIT licence.

Install

$ curl -fsSL https://felthosfoundry.com/monitorctl/install.sh | sh

This downloads the source from GitHub, builds it on your Mac and copies it to ~/.local/bin. It needs the Xcode command-line tools, and it never asks for a password. You can read the script first, or follow the manual steps on GitHub. The README documents every command.

monitorctl list
Shows every named control and its value.
monitorctl set brightness 80
Sets a control, then reads it back to confirm the monitor obeyed.
monitorctl chg volume -5
Raises or lowers a control by a step.
monitorctl info
Shows the model, the resolution and the firmware.
monitorctl setup
Tests what your monitor supports and saves a profile.

What it looks like

$ monitorctl list
brightness     90 of 100
contrast       75 of 100
volume         50 of 100
mute           off (2)
red            70 of 100
green          70 of 100
blue           70 of 100
color-preset   5000k (4)
input          4
power          on (1)

$ monitorctl set input dp1
The monitor accepted the command, but input is still 4.

A monitor answers "accepted" even to a write it then ignores. monitorctl reads the value back, so you find out.

Monitors in the database

Each record is built from profiles that monitorctl setup wrote on a real monitor. A monitor's page lists every code it supports, and how many reports stand behind each answer.

MonitorIdReportsSwitching input
Samsung C34J79x SAM0F1E 1 report Cannot be switched

Is your monitor missing? Run monitorctl setup. It tests the monitor, saves a profile under ~/.config/monitorctl/, and then asks whether to send that profile here. A person reads every report before it appears on this page.