How do I programmatically change the monitor brightness on Linux?
I\'m using SLES 11.
You might look into using xgamma. Although it's not pure code, at least it's just a command line utility.
You can always use
xrandr --output LVDS1 --brightness 0.9
Here is the simple step to control brightness in Linux based system
First, you have to know the monitoring screen connected you.
To know this run this command
xrandr -q
It will give useful information about the screen
( Here my screen connected to eDP, It might be different for your system )
After knowing that run the below command
xrandr --output eDP --brightness
[0-10]
Replace eDP by your connected screen from the above output.
you can choose normal brightness values from 0.1 to 1.0