4

By normal brightness controls I mean the accelerators on my laptop's keyboard that seem to integrate with Unity.

In a dark room, my screen is quite bright, even on the lowest setting. Can I override this?

I tried setting it explicitly via both:

sudo echo 500 > /sys/class/backlight/acpi_video0/actual_brightness
sudo echo 500 > /sys/class/backlight/intel_backlight/actual_brightness

But I get a permission denied error.

When at the lower bounds via my keyboard's brighness controls, acpi_video0/actual_brightness is 0, and intel_backlight/actual_brightness is 729. Can I set the latter value to be even lower?

3 Answers 3

5

Your command gives elevated permissions to the echo command (which doesn't need them), but not to the part that redirects the output stream to the root-owned file (which does)

In a terminal, you can either do

echo 7 | sudo tee /sys/class/backlight/acpi_video0/brightness

which gives the elevated permission to the bit that really needs it, or

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

which runs the whole command in a sudo shell

1

I created a slider tool based on the information presented here in the question/answers:

It provides an alternative slider to control backlight with finer control.

1
  • Looks good @chico! Dec 23, 2013 at 0:47
0

Turns out that the two items I show in the question are read only for all users.

However /sys/class/backlight/intel_backlight/brightness is not. So, the following works:

sudo su
echo 500 > /sys/class/backlight/intel_backlight/brightness

Be aware that echoing a zero value makes the screen is unreadable :)

You may have a different name for your device (instead of intel_backlight).

Also, performing the above using sudo echo ... doesn't work. Can someone explain why I have to do sudo su first?

EDIT @Vivek's answer explains this.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .