Skip to content

Instantly share code, notes, and snippets.

@rafamoreira
Created July 18, 2012 22:22
Show Gist options
  • Save rafamoreira/3139335 to your computer and use it in GitHub Desktop.
Save rafamoreira/3139335 to your computer and use it in GitHub Desktop.
Brightness adjust for linux
If the driver of your graphics card supports it, then you can use xrandr.
The following command lists the current configuration:
xrandr --current --verbose
If you want to change the configuration of an output, then you need the name of the output. This name is part of the output of xrandr --current, for example LVDS1.
The brightness can be changed like this:
xrandr --output <outputname> --brightness 0.8
Gamma:
xrandr --output <outputname> --gamma 0.5:1.0:1.0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment