light sensor is not read ? (Lucid, MacbookPro 6.2)
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Mactel Support |
Invalid
|
Low
|
Bernhard Froemel |
Bug Description
Hello,
I have a macbook pro 6.2 with lucid 64 bits (installed following this: https:/
1st question: It seems this functionnality did exist on previous ubuntu versions, right ?
2nd question: I should just have to read the 'light' file which contains the output of light sensors:
~$ cat /sys/devices/
(0,0)
The trouble is this file always contains this (0,0), whatever the ambient light conditions are..
Nevertheless:
Code:
~$ dmesg|grep apple
[ 4.496393] apple 0003:05AC:
[ 4.499260] apple 0003:05AC:
[ 4.502979] apple 0003:05AC:
[ 8.198273] applesmc: Apple MacBook Pro 6 detected:
[ 8.198275] applesmc: - Model with accelerometer
[ 8.198277] applesmc: - Model with light sensors and backlight
[ 8.198278] applesmc: - Model with 18 temperature sensors
[ 8.199332] applesmc: device has already been initialized (0xe0, 0xf.
[ 8.199334] applesmc: device successfully initialized.
[ 8.200274] applesmc: 2 fans found.
[ 8.203250] input: applesmc as /devices/
[ 8.203395] applesmc: driver successfully loaded.
[ 25.056833] applesmc: light sensor data length set to 10
[ 64.788156] applesmc: wait status failed: 5 != 0
[ 80.741403] applesmc: wait status failed: 4 != 0
[ 144.690224] applesmc: wait status failed: 5 != 1
[ 224.599671] applesmc: wait status failed: 5 != 1
(full output of this command in the attached file)
So it seems the system is recognizing light sensors ?
On the other hand:
Code:
:~$ sensors
applesmc-isa-0300
Adapter: ISA adapter
Left side :2585 RPM (min = 2000 RPM)
Right side :2574 RPM (min = 2000 RPM)
TB0T: +42.5°C
TB1T: +42.5°C
TB2T: +37.2°C
TC0C: +60.0°C
TC0D: +61.5°C
TC0P: +62.0°C
TC1C: +62.0°C
TG0D: +61.0°C
TG0P: +57.0°C
TG0T: +61.5°C
TMCD: +62.0°C
TP0P: +67.5°C
TPCD: +75.0°C
Th1H: +53.8°C
Th2H: +52.8°C
Tm0P: +70.2°C
Ts0P: +35.5°C
Ts0S: +47.2°C
here no light sensors..
I also tried:
Code:
~$ hal-find-
Found 0 device objects of capability 'light-sensor'
Changed in mactel-support: | |
importance: | Undecided → Low |
assignee: | nobody → Bernhard Froemel (froemel) |
I own the same model and my light sensor is working (a little light, more light and no ambient light):
> # cat /sys/devices/ platform/ applesmc. 768/light platform/ applesmc. 768/light platform/ applesmc. 768/light
> (15,0)
> # cat /sys/devices/
> (29,0)
> # cat /sys/devices/
> (0,0)
This model only has a single light sensor on the left side; that's why the second number is always zero.
The sensors command only lists those parameters that are recognized by lm-sensors which does not seem to know about the ambient light sensor class.
Also, HAL only knows about light if you provide an interface to applesmc. It seems to be already done here: http:// bitmath. org/code/ hal-applesmc/
So the question is: does the light sensor work on OSX? At first glance there is no difference between our machines and setup including the reported kernel messages. For your reference, I run both, applesmc and pommed, as available in the PPA repository (ppa:mactel- support/ ppa):
pommed- 1.33-mactel1~ lucid1 dkms-0. 16.1~0ubuntu1~ mactel1~ lucid
applesmc-