[PATCH] command line options for hald-addon-acpi
Timo Hoenig
thoenig at suse.de
Tue Aug 2 14:14:30 PDT 2005
Hi,
On Tue, 2005-08-02 at 16:24 -0400, David Zeuthen wrote:
> On Tue, 2005-08-02 at 22:15 +0200, Timo Hoenig wrote:
> > Do we want to integrate support of specific notebook drivers into HAL
> > nevertheless? If yes, should we support interfaces of non-mainline
> > drivers, too?
>
> Yes, I think we want that, AFAIK, the generic ACPI interfaces don't
> really work on any laptop I know but I could be wrong.
I have a several systems which work fine (= you can adjust the screen
brightness) with the generic video driver.
> I know that the
> latest experimental version of ibm-acpi supports this and I've got a T41
> so I can do that actually =).
Supports what?
> However, first we need to define the external interface, but I think
> that's not too difficult (just expose the interface
> org.freedesktop.Hal.LaptopScreen with methods SetBrightness(..) and some
> properties. It just requires some work to get the right interface...
* void SetBrightness(int)
Either we take
* absolute values (usually about eight to 15 brightness
levels are available)
or
* relative values (map absolute levels to 0 to 100)
I vote for the latter to ease the development of applications
which use this interface.
* int GetBrightness(void)
Same as above. Either return absolute or relative values
* void IncreaseBrightness(void)
Increase by one brightness level depending on the given system.
* void DecreaseBrightness(void)
Decrease by one brightness level depending on the given system.
I've recently wrote code for these things which should be pretty easy to
integrate into HAL once we agree about the design of the interface.
A decent design for *very* system specific interface would be cool, too.
Think of:
* keyboard light on the top of the screen of many IBM laptops
* funky LEDs on ASUS laptops
* any other function provided by the system specific ACPI drivers
> Cheers,
> David
See you,
Timo
_______________________________________________
hal mailing list
hal at lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/hal
More information about the Hal
mailing list