Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
PowerBook Ambiant Light Sensor problem
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Gentoo on PPC
View previous topic :: View next topic  
Author Message
bcarnazzi
n00b
n00b


Joined: 31 Jan 2005
Posts: 25
Location: Reunion Island

PostPosted: Tue Feb 01, 2005 5:24 am    Post subject: PowerBook Ambiant Light Sensor problem Reply with quote

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
View user's profile Send private message
puggy
Bodhisattva
Bodhisattva


Joined: 28 Feb 2003
Posts: 1992
Location: Oxford, UK

PostPosted: Tue Feb 01, 2005 9:29 am    Post subject: Reply with quote

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
View user's profile Send private message
bcarnazzi
n00b
n00b


Joined: 31 Jan 2005
Posts: 25
Location: Reunion Island

PostPosted: Tue Feb 01, 2005 9:54 am    Post subject: Reply with quote

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
View user's profile Send private message
puggy
Bodhisattva
Bodhisattva


Joined: 28 Feb 2003
Posts: 1992
Location: Oxford, UK

PostPosted: Tue Feb 01, 2005 10:39 am    Post subject: Reply with quote

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
View user's profile Send private message
bcarnazzi
n00b
n00b


Joined: 31 Jan 2005
Posts: 25
Location: Reunion Island

PostPosted: Tue Feb 01, 2005 10:47 am    Post subject: Reply with quote

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
View user's profile Send private message
gnomeza
Tux's lil' helper
Tux's lil' helper


Joined: 31 Dec 2003
Posts: 97

PostPosted: Tue Feb 01, 2005 10:57 am    Post subject: Reply with quote

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
View user's profile Send private message
bcarnazzi
n00b
n00b


Joined: 31 Jan 2005
Posts: 25
Location: Reunion Island

PostPosted: Tue Feb 01, 2005 11:01 am    Post subject: Reply with quote

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
View user's profile Send private message
bcarnazzi
n00b
n00b


Joined: 31 Jan 2005
Posts: 25
Location: Reunion Island

PostPosted: Tue Feb 01, 2005 2:17 pm    Post subject: Reply with quote

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
View user's profile Send private message
gnomeza
Tux's lil' helper
Tux's lil' helper


Joined: 31 Dec 2003
Posts: 97

PostPosted: Sun Mar 20, 2005 4:32 pm    Post subject: Reply with quote

The failure of the ambient light sensor (on all systems accessing the sensor through /dev/i2c-[0-3]) was caused by a bug in pbbuttonsd (0.6.6 & 0.6.7 iirc).
The latest version of pbbuttonsd fixes it.
(see my post here: https://forums.gentoo.org/viewtopic-p-2187128-highlight-.html#2187128)
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Gentoo on PPC All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum