Tell me more ×
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
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

3 Answers

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

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 . – Jai Dec 14 '12 at 17:21
thanks but that doesn't work for me as written there. – user69748 Jan 17 at 16:01

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
@user69748 answer edited – Jai Aug 24 '12 at 10:47
Yes you can. I've already mention that . so you can get that by xbacklight -inc 10 – Jai Aug 24 '12 at 16:53
Ok, now it's in your answer. Thanks a lot, I'll try that out. – user69748 Aug 27 '12 at 7:28
show 1 more comment

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.