Take the 2-minute tour ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems.. It's 100% free, no registration required.

Is there any way to change the brightness and color? Using any command line tools?

I am trying in Fedora and Ubuntu but no luck so far.

Follow up:

[command]    [conneccted output]   [effects R:G:B, value 0 to 255]        
|     /      |            /        |            /
^    ^       ^            ^        ^           ^
xrandr       --output VGA1         --gamma 0:0:0
share|improve this question
    
The gamma values should be in range 0..1 or slightly above. Not 0..255. –  rozcietrzewiacz Sep 20 '11 at 12:23

2 Answers 2

up vote 3 down vote accepted

You can modify gamma settings (colors and effectively contrast too) using xrandr tool. First determine the output name of your monitor:

 $ xrandr -q | grep connected
 DFP1 connected 1920x1080+0+0 (normal left inverted right x axis y axis) 477mm x 268mm
 CRT1 disconnected (normal left inverted right x axis y axis)

In the above example I have a monitor connected and seen as output DFP1. So now for the gamma modification example:

$ xrandr --output DFP1 --gamma 0.8:0.8:1.1

Where gamma values are in format Red:Green:Blue.

Edit: Another option is xcalib (you may need to install it first). It can be used with -a parameter to have effect directly on the connected monitor. See the output of xcalib for more details. Unfortunately, the color/brightness settings seem to work additively, so you might need to do randr --output ... --gamma 1:1:1 to restore the default state.

share|improve this answer
    
Excellent. This is what i am trying really the native way to change the gamma, color, brightness, sharpness. –  YumYumYum Sep 20 '11 at 12:09

From xrandr's manpage:

Some versions of xrandr also have this option:

   --brightness brightness

          Multiply the gamma values on the crtc currently attached to  the
          output  to specified floating value. Useful for overly bright or
          overly  dim  outputs.   However,  this  is   a   software   only
          modification,  if  your  hardware has support to actually change
          the brightness, you will probably prefer to use xbacklight.
share|improve this answer
    
Hm, you should probably mention that those are the exact words from man xrandr. –  Emanuel Berg Aug 16 '12 at 9:34

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.