Stevely2003 / blacktree-nocturne

Automatically exported from code.google.com/p/blacktree-nocturne
0 stars 0 forks source link

Automatic switching with light sensors does not work with new MacBook Pro #9

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Use the new (Nov. 2008) MacBook Pro and Nocturne 1.0.6
2. Set 'Use light sensors to switch' ON
3. Set lighting spectrum to any reasonable numbers
4. Work in a low-light environment (that would trigger Nocturne with same
numbers on the old MacBook Pro)

What is the expected output? What do you see instead?
Night mode is expected, and it never changes. Also, actual lighting levels
on the Preferences window seem extremely high all the time.

What version of the product are you using? On what operating system?
Nocturne 1.0.6 with OS X 10.5.5

Please provide any additional information below.

Original issue reported on code.google.com by kerenwie...@gmail.com on 16 Dec 2008 at 6:34

GoogleCodeExporter commented 9 years ago
Also does not work on Gen 2 MBA as well.

Original comment by han.y...@gmail.com on 10 Feb 2009 at 3:56

GoogleCodeExporter commented 9 years ago
same for me! it doesn't work on the first gen macbook air

Original comment by jon.chui@gmail.com on 11 Feb 2009 at 9:44

GoogleCodeExporter commented 9 years ago
When I put my thumb over the light sensor on my Gen 2 MBA, the lowest value I 
receive
is 2263.  On an overcast day with ambient light, I am seeing sensor values in 
the
4000s.  Somehow the values for measuring ambient light for the newer Apple 
hardware
is inconsistent on the newer hardware platforms.  I'd really love this feature 
but I
can imagine that if the API is not yielding consistent values for different 
hardware
platforms this could be very difficult to fix.

Original comment by han.y...@gmail.com on 12 Feb 2009 at 8:40

GoogleCodeExporter commented 9 years ago
For some reson either the (new?) MacBook Pro or the new OS seems to have a total
different scaling in concerning light sensors.
On my system IOConnectMethodScalarIScalarO(...) get's values somewhere between 
100000
and 1000000 (the preferences pane does not have enough digits to display this 
correctly).

I've created a small hack: If the light sensor values are beyond 10000 they are
divided by 1000. Not sure if this will work on every system, but it fixes the 
problem
for me.

Original comment by untoldw...@googlemail.com on 22 Sep 2009 at 4:16

Attachments:

GoogleCodeExporter commented 9 years ago
Can someone please upload a compiled version with the included patch?

Thanks in advance.

Original comment by Oll...@gmail.com on 2 Jan 2010 at 10:55