I can simply change my monitor brightness via
xrandr --output VGA1 --brightness 0.25
Though it is software-only modification, it does the trick anyway. According to the man page, xrandr
is the primitive command line interface to RandR extension, so it is quiet possible to change my monitor brightness programmatically. However, I didn't find any related API in its header file <X11/extensions/Xrandr.h>
.
How to change the monitor brightness by X11 RandR extension library in C?