PDA

View Full Version : [REF]Managed HTC Light Sensor SDK released (with source)


Koush
13th July 2008, 02:53 AM
I published the HTC Accelerometer SDK a while ago, and have been spending some time off and on trying to find out how to get access to the Nav API. No luck there yet, but I did figure out how to access the light sensor.

The updated API and source is available at:
http://www.koushikdutta.com/2008/07/htc-light-sensor-sdk.html

Koush

R4nd0m
13th July 2008, 03:49 AM
can you give us compiled exe?

DOMin8or
13th July 2008, 03:52 AM
where are the lightsensor? is it the front/back cam?
how often will auto light adjust update?
alltime? once per power on switch? once per minute?
when the autolight is not set, and it will be done by frontcam, we can safe cams energy, by switching off automatic backlighht adjust. cameras are needing a lot of power.
can anybody confirm that?

Sergio PC
13th July 2008, 04:00 AM
WooooWWW this keeps getting better!
Thanks HTC:D

Reason4444
13th July 2008, 06:33 AM
Please.. Somebody will make a "really" adjustable light settings util with this SDK.. I want to set min backlit level to lower for totaly dark enviroments... because default one is too much than required..

Sorry for my poor English..

Koush
13th July 2008, 07:04 AM
Sure, I'll make a utility to do that. Give me a bit though, I'm coding up the Nav sensor SDK right now.

SecureGSM
13th July 2008, 08:07 AM
feature request :)

disable light sensor when call is in progress.
enable light sensor back after call was terminated.

2395
13th July 2008, 08:54 AM
Thank you,
I have noticed on the new Bang & Ollefson and another new highend phone [not iphone] they are set so that when the display is away from the air is is visable...against ear off......thus...

when you are looking at the display it is visable
when phone is covered by ear...display is off
take phone away from ear....display comes back on
back to ear display goes off....etc...


This is a fantastic feature and has a wow factor as a sales tool.

Reason4444
13th July 2008, 02:31 PM
Thank you,
I have noticed on the new Bang & Ollefson and another new highend phone [not iphone] they are set so that when the display is away from the air is is visable...against ear off......thus...

when you are looking at the display it is visable
when phone is covered by ear...display is off
take phone away from ear....display comes back on
back to ear display goes off....etc...


This is a fantastic feature and has a wow factor as a sales tool.


This is exactly happen what i saw a few days ago.. :eek:

iGo2008 running, a phone call received and i'm noticed display on & off with light sensor working !!!! :confused: I'm looked at the display it is visible (...from 10-15cm distance from my ear..) , when phone is covered my ear...display is off... I'm tried over and over again... still worked at the end of conversation... But when i'm closed iGO2008 and tried again... Not happen again...

Any ideas ??? :confused:

Furbious
13th July 2008, 03:42 PM
Thank you,
I have noticed on the new Bang & Ollefson and another new highend phone [not iphone] they are set so that when the display is away from the air is is visable...against ear off......thus...

when you are looking at the display it is visable
when phone is covered by ear...display is off
take phone away from ear....display comes back on
back to ear display goes off....etc...


This is a fantastic feature and has a wow factor as a sales tool.

Nice work Koush - and I completely agree with the above quote. I'm surprised HTC didn't have this already included, having to press a button to wake the display is kind of stupid since it gets turned off by the light sensor :)

Sergio PC
13th July 2008, 08:22 PM
Thank you,
I have noticed on the new Bang & Ollefson and another new highend phone [not iphone] they are set so that when the display is away from the air is is visable...against ear off......thus...

when you are looking at the display it is visable
when phone is covered by ear...display is off
take phone away from ear....display comes back on
back to ear display goes off....etc...


This is a fantastic feature and has a wow factor as a sales tool.

Hands down thatll be one of the coolest tweaks!:D

Ingvarr
13th July 2008, 08:32 PM
where are the lightsensor? is it the front/back cam?
Light sensor is just left of the front face phone speaker (inside the speaker recess).

p3eps
13th July 2008, 09:06 PM
when you are looking at the display it is visable
when phone is covered by ear...display is off
take phone away from ear....display comes back on
back to ear display goes off....etc...



This happens with the iPhone too.
It's exactly what we need to make the Diamond much better. I don't want the backlight on during a call as its a waste of battery - but I hate having to push the power button during a call if I need to enter a number or change to speakerphone etc.
How could HTC have missed out such a simple feature? Hopefully this is something that can easily be coded in? Fingers crossed :cool:

wcg-tom
20th July 2008, 12:56 PM
Please.. Somebody will make a "really" adjustable light settings util with this SDK.. I want to set min backlit level to lower for totaly dark enviroments... because default one is too much than required..

Sorry for my poor English..

Any news here? I'd appreciate a tool or tweak to define minimal backlight level for myself because of the same reason.

neoTheone
21st July 2008, 11:19 AM
somebody got ahead regarding the customization of automatic backlight changing with this api?

regards

bugeyes
22nd July 2008, 09:07 AM
this would be great if someone with programming skills looked into it!!! :D ie not me!

haobe
22nd July 2008, 11:08 AM
You don't have to press power button while on call to enable the backlight. Pressing the middle button (circle) will enable backlight and wont do anything with the call :)

bugeyes
22nd July 2008, 07:31 PM
Any news here? I'd appreciate a tool or tweak to define minimal backlight level for myself because of the same reason.

i may have confused you!
this is the app i would like! reading ebooks in the dark is far too glaringly bright!
sad maybe but i do this alot:D

wcg-tom
22nd July 2008, 09:10 PM
i may have confused you!
this is the app i would like! reading ebooks in the dark is far too glaringly bright!
sad maybe but i do this alot:D

confused?

no. i've exact the same problem :)
not reading ebooks, but just using my diamond in the dark sometimes...

bugeyes
22nd July 2008, 10:56 PM
now iam confusing you my previous post was aimed at the post by Haobe!:D

wcg-tom
23rd July 2008, 09:18 AM
now iam confusing you my previous post was aimed at the post by Haobe!:D

lol, ok. i missunderstood your citation... ;-)

besides we don't have any solution yet!

Plattendoktor
23rd August 2008, 12:13 PM
I have the same problem.
It seems that the automatic backlight does not use the maximal and minimal possible intensitivity.
It would be nice to adjust at which lightlevel of the environment the backlight reaches its limits.

Are there any ideas?

I've tried to play with the values in the new "advanced config 3.0", but there was no visible effect.

williamvas
7th September 2008, 04:06 PM
I Live In Australia & Wanna Buy A Htc In The Us. Does Anybody Know Any Cheap Shops Out There. Also Would It Work In Australia.... Have To Say This Forum Is Crazy Crazy.. Words Can't Describe How Good & Informative It Is... Great Stuff

thedino
26th September 2008, 10:02 AM
This happens with the iPhone too.
It's exactly what we need to make the Diamond much better. I don't want the backlight on during a call as its a waste of battery - but I hate having to push the power button during a call if I need to enter a number or change to speakerphone etc.
How could HTC have missed out such a simple feature? Hopefully this is something that can easily be coded in? Fingers crossed :cool:

I am sure that if you receive call than the display goes off not because of light sensor but accelerometer... Same like if you turn the phone than it silent the ringing.

snovvman
28th September 2008, 05:09 PM
It would be nice to be able to adjust the light sensor's bias -- that is, to change how much it brightens or darkens based upon ambient light. The current setting makes the screen too bright (therefore eating more battery) at any given light condition.

Thanks.

dblanchard
1st December 2008, 07:26 PM
I'm using G-Light and love it. Some other good apps there as well.
http://www.ageye.de/index.php?s=download