[PATCH] Keyboard backlight driver for Oct 2005 PowerBooks
linux-kernel at hansmi.ch
Mon Aug 28 09:07:14 EST 2006
On Mon, Aug 28, 2006 at 08:34:23AM +1000, Benjamin Herrenschmidt wrote:
> Why would we need a driver ? Userland can emit PMU commands directly...
Drivers are there to abstract hardware. Userland shouldn't know about
hardware specific commands (PMU commands in this case).
It would make it much simpler for programs to use these devices, because
not each of them has to implement everything needed to locate the device
and control it.
pbbuttonsd supports both the I²C and PMU variant. The code is a mess
there and a generic driver would help to clean it up. And yes, I'm
partly responsible for it, since I supplied the original patch for the
PMU keyboard backlight support in pbbuttonsd.
Maybe controlling the keyboard backlight could be moved to its own
program anyway, because the algorithm used by pbbuttonsd isn't appealing
to all people. But those are just ideas.
Oh, and using the LED class allows users to attach it to some trigger.
Maybe someone wants to use it as the IDE LED. :-)
> At least, if we do a driver, it should provide a common interface to
> both PMU and i2c based LMUs
Yeah, I figured after sending it. You'll hear again from me once I got
my hands on an I²C backlight. Something like the AMS driver would be
More information about the Linuxppc-dev