Sunday 4 December 2011

How to increase/decrease brightness on Ubuntu

There is always need of adjusting brightness while working with laptop or notebook in Ubuntu. Here is the solution how to increase/decrease brightness in Ubuntu via terminal. You have to type the following command in terminal to adjust the brightness.

"$ sudo setpci -s 00:02.0 F4.B=xx"
         where xx= all hexadecimal value between 00 to ff
         [00=highest brightness  ff=lowest brightness(total dark)]











If you enter 'ff', the whole brightness has gone the screen will become totally dark so be careful at there. This command will be very helpful to you if you work in very darker or in very lightning room. The average working brightness level is 'aa' which i prefer to work. 

15 comments:

  1. This comment has been removed by a blog administrator.

    ReplyDelete
  2. This comment has been removed by a blog administrator.

    ReplyDelete
  3. it asks for some password when i enter my log in password nothing happens ?
    how to decrease the brightness ?? please help ?

    ReplyDelete
    Replies
    1. when you write 'sudo' at starting of your any command it means you run this command as super user, so it asks for your password for super user.

      You have to just enter password and command executes. So in this case you can increase/decrease your brightness by giving value of 'xx' between 00 to ff in hexadecimal.

      please write your command, so I can identify the problem . . .

      Delete
  4. sudo setpci -s 00:02.0 F4.B=xx

    ReplyDelete
  5. I use ubuntu os in my lap and unable to decrease brightness by any manual methods. due to this power consumption is more..... please help me to sort out this problem.the above given command also din't work

    ReplyDelete
    Replies
    1. it may be possible that your output device may not be 00:02.0, so go to /sys/bus/pci/devices and try with other device, it may help you.

      Delete
  6. thanks its working for me, you are awesome :)
    i use sudo setpci -s 00:02.0 F4.B=11 :D

    ReplyDelete
  7. sorry but it doesn't work....output: no device selected for F4.B=88

    ReplyDelete
    Replies
    1. It doesn't work on some devices, just try with choosing another device as I mention on the one of the above comments, better luck for that :)

      Delete
  8. _/\_ Respect for you man !!
    I configured my screen brightness after 2 years.

    ReplyDelete
  9. You have to type in terminal to adjust brightness ? That's ridiculous
    Isn't there a slider somewhere ?

    ReplyDelete
  10. i'm using a samsung series5 ultrabook with ubuntu 13.1 and i can't configure my brightness. I've tried the command you suggested but it's not working. How do i chose another device?

    ReplyDelete