Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

To work around bug #1005495 (changing LCD brightness via hotkeys impossible), I'd like to have one command line query for increasing and one for reducing the brightness of my LCD. I could then map a hotkey to each one of this queries.

The problem is: I don't know how to increase and reduce the LCD brightness on the command line. Do you?

share|improve this question
1  
possible duplicate of Unable to change brightness in a Lenovo laptop –  Lekensteyn Jun 10 '12 at 17:30
1  
Thanks, Lekensteyn, but it's not a duplicate since lsmod | grep ^i915 gives me no output (see accepted solution). Still looking for a solution. –  user69748 Dec 14 '12 at 11:56

7 Answers 7

one more way we have to do this is with another new program named as xbacklight , open your terminal and type this

sudo apt-get install xbacklight

then type this xbacklight -set 50

there 50 stands for brightness range we can get it upto 100 from 0 .

you can also increase and decrease the brightness from present value to specified level.as you mentioned if you want to increase to 10% from current value of brightness then you can give this

xbacklight -inc 10

and to decrease 10% you can give this

xbacklight -dec 10 
share|improve this answer
    
+1 for simplicity. –  zpletan Jun 11 '12 at 5:31
    
Looks like a really simple command but what I'd need is something like xbacklight -increase 10 to increase the brightness by 10 percent. Is that possible, too? –  user69748 Aug 24 '12 at 9:31
1  
Yes you can. I've already mention that . so you can get that by xbacklight -inc 10 –  AgentCool Aug 24 '12 at 16:53
1  
Ok, now it's in your answer. Thanks a lot, I'll try that out. –  user69748 Aug 27 '12 at 7:28
1  
That really looks simple, but unfortunatelly it doesn't work for me. Brightness simply doesn't change, not with -dec and not with -set. I guess I'll have to hope the bug gets fixed any time soon. Thanks nevertheless. –  user69748 Sep 4 '12 at 14:38

Open your terminal and type this

xrandr -q | grep " connected"

it will gives you the output as LVDS1 connected 1680x1050+0+0 (normal left inverted right x axis y axis) 331mm x 207mm

There LVDS1 Stands for your display .

so now you have to do as

xrandr --output LVDS1 --brightness 0.5

there 0.5 stands for brightness and it ranges from 0.0 to 1.0 . 0.0 -> Full black .so you have to choose the required value of brightness .

share|improve this answer
    
Thanks for you answer but what I'd need is something like xrandr --increase 10 to increase the brightness by 10 percent. Is that possible, too? –  user69748 Dec 14 '12 at 11:50
    
@user69748 well, you could use my first answer for that purpose . –  AgentCool Dec 14 '12 at 17:21
    
thanks but that doesn't work for me as written there. –  user69748 Jan 17 '13 at 16:01
1  
this doesn't seem to change the brightness at a hardware level –  user84207 Oct 18 '13 at 6:29
    
Elaborate the issue please –  AgentCool Oct 18 '13 at 6:36

for Laptops
sudo setpci -s 00:02.0 F4.B=80
change 80 by [0-FF] to get lowest-highest brightness The value specified is in hex, so 80 will give you a 50% brightness

for Desktop [not tested by ME]
xgamma -gamma .75

share|improve this answer
    
Thanks for you answer but what I'd need is something like setpci --increase 10 to increase the brightness by 10 percent. Is that possible, too? –  user69748 Dec 14 '12 at 11:50
    
thank you for this answer, it's good to know how things are done at the lower levels –  user84207 Oct 18 '13 at 6:30
    
This was the only answer that worked for me on a Samsung NB30 Plus. –  OSE Oct 21 '13 at 18:33

The following works for me:

echo 400 > /sys/class/backlight/intel_backlight/brightness

I guess the maximum possible value is in the /sys/class/backlight/intel_backlight/max_brightness file.

share|improve this answer

Try this in terminal:

xrandr --output LVDS1 --brightness 0.9

You can change the last value as you like, eg. 0.2

share|improve this answer
1  
1) Output is not always LVDS1, but user can find out with xrandr --verbose 2) Doesn't change backlight intensity –  user84207 Oct 18 '13 at 6:31

Here's a short line that can help you relax your eyes. Just create a crontaab with the line or make a script

xrandr --output VGA1 --brightness 0.5; sleep 20; xrandr --output VGA1 --brightness 1
share|improve this answer

KDE 4.12:

qdbus org.kde.Solid.PowerManagement /org/kde/Solid/PowerManagement/Actions/BrightnessControl setBrightness 55
share|improve this answer
    
can you explain what It will do ? –  AgentCool Apr 8 at 18:27

protected by AgentCool Apr 23 at 13:28

Thank you for your interest in this question. Because it has attracted low-quality answers, posting an answer now requires 10 reputation on this site.

Would you like to answer one of these unanswered questions instead?

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