[ubuntu-in] How to find Monitor brightness control file..?
Ritesh Sinha
sinha.k.ritesh at gmail.com
Mon May 25 04:19:07 BST 2009
On Sun, May 24, 2009 at 6:44 PM, sanath kumar
<dayanandasaraswati at gmail.com>wrote:
> Hello,
> I am working on a project and I want to find what file controls the
> monitor's brightness in a system. In my system, I found that to control the
> brightness of my monitor, I have to write different values to the file
> /proc/acpi/video/VID/LCD/brightness. I am sure this will not be the same
> location on other machines too. Is there a command or some way that can help
> me find the correct file used by a system to control its brightness..? I
> want this badly. Because of this problem, my project is stuck in the middle.
>
> --
> SANATH KUMAR
> http://blog.ceglug.org/sanath
Sanath,
On most modern distros LCD brightness (and other functions requiring direct
access) is controlled using the HAL daemon. Your best bet to ensure that
your solution is valid across multiple enviroments (i.e. different laptops)
would be to read up on the HAL documentation or ask in #hal on freenet.
Writing directly to the proc filesystem would be a hack and might cause
breakage int the future.
Regards,
Ritesh
-------------- next part --------------
An HTML attachment was scrubbed...
URL: https://lists.ubuntu.com/archives/ubuntu-in/attachments/20090525/6205bffe/attachment.htm
More information about the ubuntu-in
mailing list