ddcutil

Control monitor brightness, contrast, and color via DDC/CI protocol

brewmacoslinux
Try with needOr install directly
Source

About

Control monitor settings using DDC/CI and USB

Commands

ddcutil

Examples

List all detected monitors and their capabilities$ ddcutil detect
Get current brightness level on monitor 1$ ddcutil getvcp 10 --display 1
Set brightness to 75% on monitor 1$ ddcutil setvcp 10 75 --display 1