Everything about the backlight settings and controls work for me except:
Backlight resets to max. on every reboot/boot.
The backlight minimum goes on to complete black screen, instead of the minimum brightness setting elsewhere.
NB> I see that 1. above is answered on a lot of places with different answers, so I am actually looking for someone or somplace where I can read and understand how it all works.
I have 2 different backlight folders in my laptop and many conf files to edit. So need to understand what on those files impacts what on the sytem.
Best Answer
At the heart of backlighting is this Linux Kernel parameter that's exposed to you through here under
/sys
. You can manipulate it by setting the value to something between 1 and 15. For example:Set's the brightness to 5. Manipulating this Kernel parameter is abstracted away so that when you're changing the value with your keyboard or a desktop applet you're manipulating it through D-Bus and HAL.
D-Bus is allowing you to manipulate this structure,
org.freedesktop.Hal.Device.KeyboardBacklight
, and HAL is allowing the privilege to do so. You can see this on my Fedora 14 system like this:In the file
hal.conf
:You can query the current value, through D-Bus like so:
Which returns the value:
You can also manipulate it from the command line like so, (the bit
int32:10
below is setting brightness to "10"):You can see that we changed the brightness:
So how do I fix this?
One idea would be to save the current brightness out to a file prior to either a shutdown and/or reboot and then add to your startup (perhaps
~/.xinitrc
) thedbus-send ...
command above adding in the brightness value you previously saved out to the file.Why do I have multiple files under /sys/class/backlight?
I came across this Q&A on askubuntu.com titled: Why there are two brightness control file (/sys/class/) in my system. In the answer to this there was this comment:
I also came across this documentation for the Kernel, titled: Kernel Parameters. In this doc the following aCPI options are mentioned:
I think the
intel_backlight
referenced in/sys/class/backlight
is part of the backlighting for the video card drivers provided for Intel graphics cards.References