Skip to contentSkip to conversation

Savage backlight control

DISCUSSION Johan Braennlund 2 participants 2 messages Apr 14, 2005 1 message not in the archive ACPI

lore
Share & tools
lore
#0 lore raw
Quoted 8 lines · --- Matthew Garrett
Quoted 4 lines · Johan Braennlund

Hi. With recent kernel releases, I see that there's now a file /proc/acpi/video/VGA0/LCD0/brightness. Unfortunately that file says "<not supported>" - what's missing for this feature to be supported?

It requires your machine's BIOS to provide standard brightness control methods.

I see. I do have two working ways of controlling the backlight:

1. Through the graphics card driver, at least to the extent of turning it on/off.

2. Smoothly changing the brightness using an Fn key combination.

Would it be possible to connect either of those methods to the /proc interface? My interest in all this comes from a desire to be able to script brightness control, depending on whether I'm on AC or batteries.

Regards,

Johan

__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com

-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click

#2 lore raw
In reply to a message not in the archive
Quoted 3 lines · Johan Braennlund

Would it be possible to connect either of those methods to the /proc interface? My interest in all this comes from a desire to be able to script brightness control, depending on whether I'm on AC or batteries.

It's quite likely that your machine will have acpi methods to control the brightness, and if it does you could hook them up to the /proc interface. However, these methods tend to be per-manufacturer rather than per-graphics chipset. The current /proc/acpi/video stuff uses the standard ACPI video methods, and sadly many manufacturers don't support that. Your best bet may be to work on a hardware-specific support module
- it's likely to work on several other machines from the same manufacturer as well.

Signature · 9 lines
Matthew Garrett | [email protected]



-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click