3

I want to make it so my laptop starts at a low brightness level, which is comfortable for my eyes and easy on the laptop's battery. I found some instructions here on AskUbuntu, and so by using this command:

cat /sys/class/backlight/intel_backlight/brightness

... I discovered that the maximum brightness is 4080 and the ideal brightness that I want to have my laptop default to is 700. So, I edited my /etc/rc.local file to have the following line in it:

echo 700 > /sys/class/backlight/acpi_video0/brightness

However, that didn't work. So, after a little more research, I tried this line:

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

But that also changed nothing.

Now I'm a bit stuck. How do I get my brightness to start at the right level when I log in on my laptop?


Note: It seems that this problem may be made worse by another more general issue of commands not running at startup, which I've asked about in a separate question. I think some of the answers suggested so far may actually work in principle, but I can't verify any of them unless I'm sure my startup programs are executing at all.

Questioner
  • 6,959

6 Answers6

2

I had the same issue.

Solution = xbacklight:

Install xbacklight:

sudo apt-get install xbacklight

Then add "xbacklight -set x" (where 'x' = 0 to 100 desired brightness) to the startup applications via dashboard. For example, xbacklight -set 50.

This works with UX32VD and UX31A Asus Ultrabooks.

Bhavin Doshi
  • 2,496
Brandex
  • 488
1

First let us check yiour VGA device code

lspci | grep VGA

The device code looks like 00:03.0 for example.

To set brightness

sudo setpci -s '00:03.0' F4.B='xy'

where 00:03.0 is your VGA device code && xy is hexadecimal value of your screen brightness varies between 00 and FF.


EDIT:You can try this also..

first know the output name

xrandr -q

for example my output name is DVI-I-2

The brightness can be changed like this:

xrandr --output DVI-I-2 --brightness 1

Now add this command to your startup programs or to the /etc/rc.local file.

Maythux
  • 87,123
1

I found this: LINK

As to avoid issues with dead links, I will add it here as well. :)

  1. Open a terminal window.

  2. Type in the following commands then hit Enter after each.

    sudo apt-get install xbacklight

  3. Open the Startup Applications Preferences menu.

  4. Click the Add button and add the following information:

    Name: Brightness Command: xbacklight -set 60

  5. Replace 60 with whatever brightness level you prefer.

And of course, credit where credit is due:

Jim Lynch for the blog post with the answer. :)

1
sudo apt-get install xbacklight

To run on startup

on unity dash search for startup applications and enter name and the command

xbacklight -set XXX

Replace XXX by the appropriate value

0

Try this, it works for me.

sudo sh -c "echo $VAL > /sys/class/backlight/acpi_video0/brightness"

where, $VAL ranges from 0-100(lowest-to-highest)

Example

sudo sh -c "echo 7 > /sys/class/backlight/acpi_video0/brightness"

SOURCE : Setting a display's backlight brightness to be lower than is possible via the normal brightness controls

0

In the end it turned out that there was a conflict with the power management preferences. The default brightness setting for when my laptop is on AC power is somehow over riding the default for when the laptop is on battery power. I've determined that if I uninstall all power management tools, then any of the commands suggested in the other answers will work.

In order to have the optimal system, I need to figure out how to get power management and screen adjustments to play nicely together, but that is a different journey from this question.

The lesson learned here, though, is that when dealing with screen brightness, or other startup commands, there may be multiple commands exerting an influence. So one necessary step in solving the problem is to try and determine all the relevant programs that might be having an impact.

Questioner
  • 6,959