05-16-2015, 09:11 PM
What is the output of
When I run xrandr I get this:
Loook for the word connected in the output. Whatever stands in front of it is the port yout monitor is conected to.
For me it's VGA-0
To change the brightness toi 70% I use this command
And to return to normal
As you see the value goes from 0 to 1.
If you are not sure how to do this and you have only one monitor connected, use this command:
It will run xrandr, find the line containing string connected and remove that string and everything behind that. What's left it will be passed through the pipe and and the brightness will be set to to 0.6
To change it back use
You can set the keyboard shortcuts to run these commands
Menu -> Settings -> Keyboard -> Application Shortcuts <-
You can also set gamma while setting the brightness
The colors are 1:1:1 meaning red:green:blue all set to 100%
To change it back.
Code:
xrandr
When I run xrandr I get this:
Code:
xrandr
Screen 0: minimum 8 x 8, current 1920 x 1080, maximum 16384 x 16384
DVI-I-0 disconnected (normal left inverted right x axis y axis)
VGA-0 connected primary 1920x1080+0+0 (normal left inverted right x axis y axis) 477mm x 268mm
1920x1080 60.0*+
1680x1050 60.0
1280x1024 75.0 60.0
1152x864 75.0
1024x768 75.0 60.0
800x600 75.0 60.3
640x480 75.0 59.9
DVI-I-1 disconnected (normal left inverted right x axis y axis)
HDMI-0 disconnected (normal left inverted right x axis y axis)
For me it's VGA-0
To change the brightness toi 70% I use this command
Code:
xrandr --output VGA-0 --brightness 0.7
Code:
xrandr --output VGA-0 --brightness 1
If you are not sure how to do this and you have only one monitor connected, use this command:
Code:
xrandr | sed -n 's/ connected.*//p' | xargs -n1 -tri xrandr --output {} --brightness 0.6
To change it back use
Code:
xrandr | sed -n 's/ connected.*//p' | xargs -n1 -tri xrandr --output {} --brightness 1
Menu -> Settings -> Keyboard -> Application Shortcuts <-
You can also set gamma while setting the brightness

The colors are 1:1:1 meaning red:green:blue all set to 100%
Code:
xrandr | sed -n 's/ connected.*//p' | xargs -n1 -tri xrandr --output {} --brightness 0.6 --gamma 0.1:1:1
Code:
xrandr | sed -n 's/ connected.*//p' | xargs -n1 -tri xrandr --output {} --brightness 1 --gamma 1:1:1