Re: kblevel - set keyboard illumination directly

2006-06-30 Thread Matthias Grimm
On Tue, 20 Jun 2006 01:44:56 +1000 Paul Collins <[EMAIL PROTECTED]> wrote: By the way, could somebody test the 255 brightness steps stuff in pbbuttonsd? It works in theory, but I would like to have the confirmation. ;-) The code is in CVS on sourceforge.net Thanks and Regards Matthias --

Re: kblevel - set keyboard illumination directly

2006-06-30 Thread Matthias Grimm
On Tue, 20 Jun 2006 01:44:56 +1000 Paul Collins <[EMAIL PROTECTED]> wrote: > Thanks of course are due to Matthias Grimm for writing the original > pbbuttonsd code. Thank you too. I added support for 255 KBD Brightnesslevel in pbbuttons too :-) I tried to improve your sysfs LMU detection routines

Re: kblevel - set keyboard illumination directly

2006-06-22 Thread Michael Schmitz
> I've extracted the keyboard illumination code from pbbuttonsd for my > own use. I post it here in case it may be useful to others. IIRC there's been lmud to do the very same thing. Michael -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contac

Re: kblevel - set keyboard illumination directly

2006-06-21 Thread Johannes Berg
On Tue, 2006-06-20 at 01:44 +1000, Paul Collins wrote: > I've extracted the keyboard illumination code from pbbuttonsd for my > own use. I post it here in case it may be useful to others. Of course, I'm the one complaining all the time... If the error code is 'permission denied' (-EACCESS) it co

Re: kblevel - set keyboard illumination directly

2006-06-21 Thread Johannes Berg
On Tue, 2006-06-20 at 01:44 +1000, Paul Collins wrote: > I've extracted the keyboard illumination code from pbbuttonsd for my > own use. I post it here in case it may be useful to others. One other thing I'd love to see but don't have time to implement at the moment would be having this as a hal

Re: kblevel - set keyboard illumination directly

2006-06-20 Thread Paul Collins
Johannes Berg <[EMAIL PROTECTED]> writes: > On Tue, 2006-06-20 at 20:23 +1000, Paul Collins wrote: > >> > Btw, it's in my device-tree as >> > [EMAIL PROTECTED]/[EMAIL PROTECTED]/[EMAIL PROTECTED]/[EMAIL PROTECTED] >> > with a compatible >> > 'lmu-controller' property. >> >> Does this mean that o

Re: kblevel - set keyboard illumination directly

2006-06-20 Thread Johannes Berg
On Tue, 2006-06-20 at 20:23 +1000, Paul Collins wrote: > > Btw, it's in my device-tree as > > [EMAIL PROTECTED]/[EMAIL PROTECTED]/[EMAIL PROTECTED]/[EMAIL PROTECTED] > > with a compatible > > 'lmu-controller' property. > > Does this mean that of_find_node_by_name("lmu-controller", 0) will > retu

Re: kblevel - set keyboard illumination directly

2006-06-20 Thread Paul Collins
Johannes Berg <[EMAIL PROTECTED]> writes: > On Tue, 2006-06-20 at 18:50 +1000, Paul Collins wrote: > >> It's in my device-tree as [EMAIL PROTECTED]/[EMAIL PROTECTED]/[EMAIL >> PROTECTED] >> I also have [EMAIL PROTECTED] and [EMAIL PROTECTED] in there, but there's no >> "uni-n 2" >> in /sys/class

Re: kblevel - set keyboard illumination directly

2006-06-20 Thread Johannes Berg
On Tue, 2006-06-20 at 18:50 +1000, Paul Collins wrote: > It's in my device-tree as [EMAIL PROTECTED]/[EMAIL PROTECTED]/[EMAIL > PROTECTED] > I also have [EMAIL PROTECTED] and [EMAIL PROTECTED] in there, but there's no > "uni-n 2" > in /sys/class/i2c-dev/*/name, so I guess simply sorting by @foo

Re: kblevel - set keyboard illumination directly

2006-06-20 Thread Paul Collins
Johannes Berg <[EMAIL PROTECTED]> writes: > Indeed, that can't be right, you'll have to crawl /sys: > > /sys/class/i2c-dev/*/name > > The LMU node on my tree is below [EMAIL PROTECTED]/[EMAIL PROTECTED]/[EMAIL > PROTECTED] > which is the i2c bus named "uni-n 0". (combined from [EMAIL PROTECTED]@0

Re: kblevel - set keyboard illumination directly

2006-06-20 Thread Johannes Berg
On Tue, 2006-06-20 at 18:39 +1000, Benjamin Herrenschmidt wrote: > > The LMU node on my tree is below [EMAIL PROTECTED]/[EMAIL PROTECTED]/[EMAIL > > PROTECTED] > > which is the i2c bus named "uni-n 0". (combined from [EMAIL PROTECTED]@0 as > > far > > as I can tell). Maybe we can convince benh t

Re: kblevel - set keyboard illumination directly

2006-06-20 Thread Benjamin Herrenschmidt
On Tue, 2006-06-20 at 10:26 +0200, Johannes Berg wrote: > The LMU node on my tree is below [EMAIL PROTECTED]/[EMAIL PROTECTED]/[EMAIL > PROTECTED] > which is the i2c bus named "uni-n 0". (combined from [EMAIL PROTECTED]@0 as > far > as I can tell). Maybe we can convince benh to add a property to

Re: kblevel - set keyboard illumination directly

2006-06-20 Thread Johannes Berg
On Tue, 2006-06-20 at 17:41 +1000, Paul Collins wrote: > I was able to use this code to find the lmu-controller node and read > the address from 'reg' - looks like it's the value shifted right one > bit. (An old posting[1] does it similarly.) Yes, that's because Apple treats the rw bit which i

Re: kblevel - set keyboard illumination directly

2006-06-20 Thread Paul Collins
Johannes Berg <[EMAIL PROTECTED]> writes: > On Tue, 2006-06-20 at 01:44 +1000, Paul Collins wrote: >> I've extracted the keyboard illumination code from pbbuttonsd for my >> own use. I post it here in case it may be useful to others. > > Cool. One thing I would want to add is support for finding

Re: kblevel - set keyboard illumination directly

2006-06-19 Thread Benjamin Berg
On Mon, 2006-19-06 at 19:08 +0200, Johannes Berg wrote: > On Tue, 2006-06-20 at 01:44 +1000, Paul Collins wrote: > > I've extracted the keyboard illumination code from pbbuttonsd for my > > own use. I post it here in case it may be useful to others. > > Cool. One thing I would want to add is supp

Re: kblevel - set keyboard illumination directly

2006-06-19 Thread Johannes Berg
On Tue, 2006-06-20 at 01:44 +1000, Paul Collins wrote: > I've extracted the keyboard illumination code from pbbuttonsd for my > own use. I post it here in case it may be useful to others. Cool. One thing I would want to add is support for finding the address and bus directly via open firmware ins

kblevel - set keyboard illumination directly

2006-06-19 Thread Paul Collins
I've extracted the keyboard illumination code from pbbuttonsd for my own use. I post it here in case it may be useful to others. I've tried to preserve PowerBook5,8/5,9 support, but I only have a PowerBook5,4 here so I can't test it. Thanks of course are due to Matthias Grimm for writing the ori