LCD Brightess support for ppc in HAL
Richard Hughes
hughsient at gmail.com
Fri Jan 27 17:57:55 PST 2006
LCD brightness support works well with ACPI, but is not supported
currently for PMU.
Attached is a patch which adds the simple ioctl wrapper
hal-system-power-pmu (as discussed before on this list) and the pmu
infrastructure glue to make it all work. It's been tested on my iBook,
using g-p-m, where the brightness was got, and set to, the correct
values.
There's also a few obvious cleanups in pmu.c, which should change no
existing logic, and seem to work for me.
hald/linux2/pmu.c | 127 ++++++++++++++++--------
tools/.cvsignore | 1
tools/Makefile.am | 12 ++
tools/hal-system-lcd-get-brightness | 12 +-
tools/hal-system-lcd-set-brightness | 13 ++
tools/hal-system-power-pmu.c | 187 ++++++++++++++++++++++++++++++++++++
6 files changed, 305 insertions(+), 47 deletions(-)
Please review.
Richard.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: hal-add-pmu-lcdbrightness.patch
Type: text/x-patch
Size: 15915 bytes
Desc: not available
Url : http://lists.freedesktop.org/archives/hal/attachments/20060128/fd4179bb/hal-add-pmu-lcdbrightness.bin
More information about the hal
mailing list