brightness linux code example
Example 1: linux screen brightness command line
$ xrandr | grep " connected" | cut -f1 -d " "
VGA1
$ xrandr --output VGA1 --brightness 0.7
Example 2: lower brightness of a ubunut pc
$ xrandr --output [monitor-name] --brightness [brightness-level]
$ xrandr --output LVDS-1 --brightness 0.75