Setting color brightness on Linux/Xorg
Is there any command (or API) to set X.Org/Linux color brightness? In other words, I need something as handy as the xgamma command but for changing RGB brightness real-time . Is this possibile? Use the XF86VidMode* family of functions. #include <X11/Xlib.h> #include <X11/extensions/xf86vmode.h> #include <math.h> #include <stdio.h> #include <stdlib.h> #include <unistd.h> int main() { Display *display; int screen; int major, minor; int i; XF86VidModeGamma orig; display = XOpenDisplay(NULL); if (!display) return -1; screen = DefaultScreen(display); if (!XF86VidModeQueryVersion(display, &major,