View previous topic :: View next topic |
Author |
Message |
bcarnazzi n00b
Joined: 31 Jan 2005 Posts: 25 Location: Reunion Island
|
Posted: Tue Feb 01, 2005 5:24 am Post subject: PowerBook Ambiant Light Sensor problem |
|
|
Hi All,
I've installed Gentoo on my Powerbook, lots of things work but the ambiant light sensor for automatic fading of screen and keyboard backlite still not works. I'm in gentoo-dev-source-2.6.10-r6 with pbbuttonsd-0.6.6 (with {LCD,KBD}_AutoAdjust = yes in /etc/pbbuttonsd.conf).
Altough, my kernel logs says :
Code: | Feb 1 07:48:37 pbook Registered "mnca" backlight controller, level: 15/15 |
Somebody manage to make it work ?
Thanks,
Bruno. |
|
Back to top |
|
|
puggy Bodhisattva
Joined: 28 Feb 2003 Posts: 1992 Location: Oxford, UK
|
Posted: Tue Feb 01, 2005 9:29 am Post subject: |
|
|
Do you have the relevant support in your kernel?
Such as "Backlight control for LCD screens" in the "Macintosh device drivers" of the "drivers" section of the kernel configuration.
Puggy _________________ Where there's open source , there's a way. |
|
Back to top |
|
|
bcarnazzi n00b
Joined: 31 Jan 2005 Posts: 25 Location: Reunion Island
|
Posted: Tue Feb 01, 2005 9:54 am Post subject: |
|
|
Yes, I got it in my kernel conf, but this options seems to offer an interface for LCD backlight control. With pbbuttonsd, for example, my screen dim after 1 minute of inactivity. So I think this point is ok. But the screen & keyboard don't react on ambiant light. Is there a special item in the kernel to activate it ? or a user-space program ? Does yours works ? |
|
Back to top |
|
|
puggy Bodhisattva
Joined: 28 Feb 2003 Posts: 1992 Location: Oxford, UK
|
Posted: Tue Feb 01, 2005 10:39 am Post subject: |
|
|
Yeah, mine works. pbbuttonsd should be enough to get it working, have you got it setup in the pbbuttonsd config? Does dmesg say anything useful? _________________ Where there's open source , there's a way. |
|
Back to top |
|
|
bcarnazzi n00b
Joined: 31 Jan 2005 Posts: 25 Location: Reunion Island
|
Posted: Tue Feb 01, 2005 10:47 am Post subject: |
|
|
In my first post, I put what I think it is relevant in kernel messages about keyboard backlite (mnca backlite controller) : is that the light sensor ? In my pbbuttonsd, I already have KBK_AutoAdjust & LCD_AutoAdjust setted to yes... Can you put your dmesg here to see if there is something usefull that I don't have ?
Thanks. |
|
Back to top |
|
|
gnomeza Tux's lil' helper
Joined: 31 Dec 2003 Posts: 97
|
Posted: Tue Feb 01, 2005 10:57 am Post subject: |
|
|
hmm, indeed I've just noticed that the light-sensors do not work with my current kernel (development-sources-2.6.9-rc3 + Ben's sleep patch #7).
Running pbbuttonsd-0.6.6.
CONFIG_PMAC_BACKLIGHT=y
dmesg says:
Code: | Registered "mnca" backlight controller, level: 15/15 |
On startup pbbuttonsd says:
Code: | INFO: LMU found, ambient light sensor and keyboard illumination active. |
and `pbbcmd query KBDBRIGHTNESS` is 15
Permissions are correct on /dev/adb and /dev/pmu
Could Ben's sleep patch have broken the light sensors perhaps? |
|
Back to top |
|
|
bcarnazzi n00b
Joined: 31 Jan 2005 Posts: 25 Location: Reunion Island
|
Posted: Tue Feb 01, 2005 11:01 am Post subject: |
|
|
I have gentoo-developpement-source 2.6.9 and 2.6.10 without Ben's sleep patch (what's this ?) and none works
My pbbuttonsd doesn't inform me about LMU (not found ?)
when I try :
Code: | pbbcmd config KBDBRIGHTNESS 10
pbbcmd query KBDBRIGHTNESS
0 |
The value is not updated ! Maybe a kernel trouble or a device node permission trouble, no ? |
|
Back to top |
|
|
bcarnazzi n00b
Joined: 31 Jan 2005 Posts: 25 Location: Reunion Island
|
Posted: Tue Feb 01, 2005 2:17 pm Post subject: |
|
|
I realized that there is a 'I2C support > Hardware sensor chip support' menu in my 2.6.10 kernel with nothing in it. Is the driver living there ? |
|
Back to top |
|
|
gnomeza Tux's lil' helper
Joined: 31 Dec 2003 Posts: 97
|
|
Back to top |
|
|
|