Proximity / Light Sensor - Galaxy S I9000 Android Development

Hey guys,
I was talking with a guy from my bank the other day, and the guy was mumbling something which I couldn't hear, and after asking him what did he say, he said I was pressing some keys on the phone which was a bit annoying..
but in reality I was just holding the phone to my ear and my cheek was dialing.. too embarassing.. :/
I know theres this proximity sensor on the Samsung Galaxy S, but I dont know when it is used exactly.. So if it isnt used specifically in situations like this (during call) then I think there must be a mod...
Can a Mod be built such that when the phone is held against the ear during the call, the phone gets locked, the keypad gets tucked in and display brightness gets dimmed and when its moved away from ear it gets unlocked by itself (even if there's a pattern lock), the keypad comes back on the screen and display brightness goes back to normal?
is this cool or stupid? you decide...

The proximity sensor works like this. When you cover the sensor, usually with your ear or side of your head while talking, it turns off the screen. Maybe yours is faulty? Mine is working very well, a lot better than on my previous device.

Are you female? Or do you have long hair?
My moto milestone too had that issue with long hair. It was a bad proximity sensor.
I have not had any such issues with my galaxy. : touch wood :
Sent from my Samsung Galaxy Beast using XDA app.

aditya_t90 said:
Are you female? Or do you have long hair?
My moto milestone too had that issue with long hair. It was a bad proximity sensor.
I have not had any such issues with my galaxy. : touch wood :
Sent from my Samsung Galaxy Beast using XDA app.
Click to expand...
Click to collapse
I have long hair I have the same problem... Is there a way to hold the screen ? While on the phone? Because i didnt find one..

omzart said:
I have long hair I have the same problem... Is there a way to hold the screen ? While on the phone? Because i didnt find one..
Click to expand...
Click to collapse
You can NEVER HOLD A PHONE WRONG(well unless that phone is an apple)
Try asking someone else who has long hair to make calls and see if the sensor works or not.
Then do the same thing with someone that has short hair, i.e. no hair over the ears.
If your tests are inconclusive, download the sensor test from the market and see what happens when it is placed near your palm first.
If it works as it is supposed to then next try your ear and face...tuck you hair in once. If it still works then try it without tucking your hair.
I really hope samsung did not use those defective moto sensors.
tl;dr version download sensor test from the market and ask a bunch of people to check the sensor.(You will see everything on the screen. You dont need to make half a dozen calls)
Get back and we will see what happens next
All the best

aditya_t90 said:
You can NEVER HOLD A PHONE WRONG(well unless that phone is an apple)
Try asking someone else who has long hair to make calls and see if the sensor works or not.
Then do the same thing with someone that has short hair, i.e. no hair over the ears.
If your tests are inconclusive, download the sensor test from the market and see what happens when it is placed near your palm first.
If it works as it is supposed to then next try your ear and face...tuck you hair in once. If it still works then try it without tucking your hair.
I really hope samsung did not use those defective moto sensors.
tl;dr version download sensor test from the market and ask a bunch of people to check the sensor.(You will see everything on the screen. You dont need to make half a dozen calls)
Get back and we will see what happens next
All the best
Click to expand...
Click to collapse
I meant an hold button http://www.dvhardware.net/reviews/freecombeatman/4.jpg
sorry ^^

Haha
Try pushing the screen lock button during the call.
Sent from my Samsung Galaxy Beast I9000 using XDA app.

aditya_t90 said:
Are you female? Or do you have long hair?
Click to expand...
Click to collapse
LOL NO! I'm a guy.
I have tested the proximity sensor, and I started observing when I made a call.
the screen locks when I hold it to my ear and unlocks it when I move it away.
guess I didn't enable pattern lock earlier..
problem solved

Related

[Q] Wife Claims Ghost Buttons During Calls

So whenever I talk to my wife she always ends up hitting buttons on the screen. (mute, speaker, etc) I told her that the screen should automatically turn off and that maybe something was wrong with her device. As soon as I got home I tested it and it worked just fine. I couldn't get it to happen, light sensor was very responsive.
Somehow she manages to hit buttons and I have no idea how. I covered up the light sensor and tried hitting every button/screen area and nothing happened.
Has anyone else experienced this before? Is there something I can settings/mods wise to help?
DanBergundy said:
So whenever I talk to my wife she always ends up hitting buttons on the screen. (mute, speaker, etc) I told her that the screen should automatically turn off and that maybe something was wrong with her device. As soon as I got home I tested it and it worked just fine. I couldn't get it to happen, light sensor was very responsive.
Somehow she manages to hit buttons and I have no idea how. I covered up the light sensor and tried hitting every button/screen area and nothing happened.
Has anyone else experienced this before? Is there something I can settings/mods wise to help?
Click to expand...
Click to collapse
Woman + X = No longer functioning properly
illogic6 said:
Woman + X = No longer functioning properly
Click to expand...
Click to collapse
:X
Another funny thing is she said her boss at work has the same problem (female) and her husband has no issue.... Ha! I don't think they have Evos though.
my wife was having the same problem and we narrowed it down to her hair causing interference with the screen sensing that her face was against it. dont know if that makes sense but seemed logical to us and now that she tries to be aware of it and move her hair out of the way the problem doesnt seem to exist. hope this helps.
freaknjoe said:
my wife was having the same problem and we narrowed it down to her hair causing interference with the screen sensing that her face was against it. dont know if that makes sense but seemed logical to us and now that she tries to be aware of it and move her hair out of the way the problem doesnt seem to exist. hope this helps.
Click to expand...
Click to collapse
Weird! Does the screen actually turn on then? I should watch the screen next time she makes a call on it.
yeah the screen was turning on while she was using it. i think whenever she would basically readjust the phone against her head it would happen if the hair would cause interference...again i'm not claiming this is some scientific answer but its what we found seemed to be causing issues for her
freaknjoe said:
yeah the screen was turning on while she was using it. i think whenever she would basically readjust the phone against her head it would happen if the hair would cause interference...again i'm not claiming this is some scientific answer but its what we found seemed to be causing issues for her
Click to expand...
Click to collapse
I see, thanks.
My wife had the same issue...earrings.
Yep, Yep. My wife has the same issue but I've never had a problem. I'm going to show her this thread so that at least she knows it's not just her. lol.
Lappie2010 said:
My wife had the same issue...earrings.
Click to expand...
Click to collapse
How would the earrings affect it?
I think it's actually the proximity sensor being highly in tune to how close it needs to be to the ear/face. It takes very little movement of the phone during a call to trigger the sensor and turn the screen back on. They probably don't even realize they're moving the phone as much as they are.
Crotchety said:
I think it's actually the proximity sensor being highly in tune to how close it needs to be to the ear/face. It takes very little movement of the phone during a call to trigger the sensor and turn the screen back on. They probably don't even realize they're moving the phone as much as they are.
Click to expand...
Click to collapse
During a call, I pulled the phone away, moved it around, etc and watched for screen to come one. It did not come on easily. I don't get it.
I need to watch her during a call and test some things.
My sis has the same issues with the moment, and I tried it out and it was fine. She does seem to use it outside her hair and does have a lot of earrings. Though this is the Moment, it still runs android and has the sensors. I'll let her know and see if she'll enjoy her phone again lol.
ReFLeX135 said:
My sis has the same issues with the moment, and I tried it out and it was fine. She does seem to use it outside her hair and does have a lot of earrings. Though this is the Moment, it still runs android and has the sensors. I'll let her know and see if she'll enjoy her phone again lol.
Click to expand...
Click to collapse
Still not sure what the issue/solution even is.
She picked up my phone last night and accidentally hung up on the person during the call! I didn't get a chance to see what happened...
She's starting to hate these phones. I need a solution.
Not a joke...but are these ladies blonds? At start of thread I was thinking hair color or earrings too. But earrings shouldn't impact the sensor as it is up top of phone and earrings would be down toward the screen.
But...if their hair was very light color...and they had phone only loosely pressed to head, I could 'guess' that the hair had enough light reflecting through it to set off the sensor.
Another thing to check on the earring side....what part of phone contacts first...do earrings hit the screen before head covers up the sensor?
My wife had dark brown hair :x
My wife too. Dark brown hair. With and without earrings. Swapped out one device, same problem. She even made it happen on mine.
I have seen it get in a mode where the proximity sensor seems to get reversed. Near head, screen on, away from head screen off. A button gets pushed at some point and then when the screen is on you can't un-mute, un-speaker, or answer a returned call from the one she just hung up on.
I think we are going to have to get her a different phone
I have the same issue but it only seems to come up with AOSP ROM's (Cyanogen & UD)
If I call Sprint and hit the prompts followed by putting the phone to my ear it presses other numbers. I think there is a delay in the proximity sensor that's causing this. I don't have long hair and my face is clean shaved so it's not that.
If I go to show someone that when everything works perfect. It's like when you call tech support for Dell, Netgear, etc. It works when you're on the phone with them and when you get off it doesn't.
I've noticed this in the past. If you are talking on the phone and you cant it just a little bit away from your ear, towards your face, you can see the backlight come back on. Also, hair can carry a static charge. So if your ladies cant the phone and the screen turns on, their hair could trigger a button press.

T989 Proximity Sensor Issues

Hey guys, I just picked up a sgs2 and the phone is amazing. The only real problem that makes me want to throw this out the window is the darn proximity sensor every time I talk to someone. If it is on my left ear, the screen goes blank and everything is fine. If I try to talk using my right ear, the screen goes blank and then after 3-5 seconds, turns back on and then off, etc. It is a never ending process and I have tried to position my phone in different ways on my right ear to stop this with no luck. Sooo frustrating. Anyone else come by this issue or heard of anything like this before?
never had this issue....what rom are you on?
Boweezie said:
Hey guys, I just picked up a sgs2 and the phone is amazing. The only real problem that makes me want to throw this out the window is the darn proximity sensor every time I talk to someone. If it is on my left ear, the screen goes blank and everything is fine. If I try to talk using my right ear, the screen goes blank and then after 3-5 seconds, turns back on and then off, etc. It is a never ending process and I have tried to position my phone in different ways on my right ear to stop this with no luck. Sooo frustrating. Anyone else come by this issue or heard of anything like this before?
Click to expand...
Click to collapse
Maybe your right ear is way smaller than your left jk. I dont have this issue but the sensor is on one side of the phone it could be an issue with the way your right side comes in contact with it.
Sent from my SGH-T989 using xda premium
shehrammajid said:
never had this issue....what rom are you on?
Click to expand...
Click to collapse
Just stock, I am beginning to believe I am deformed Lol must be the case
OMG! sorry but that made me crackle in LMAO
anyways... if you notice on the phone the sensor is on the Top left, where the FFC is located
so probably when you use it on the other side, it's not detecting any face/ear/obstacle for it to activate itself

In call light sensor

Does anyone know how to adjust or turn off the in Call light sensor it is making my screen immediately shut off on call with my protective case.
Thanks
Shawn
smy1976 said:
Does anyone know how to adjust or turn off the in Call light sensor it is making my screen immediately shut off on call with my protective case.
Thanks
Shawn
Click to expand...
Click to collapse
Never heard of someone wanting to disable the proximity sensor. You would think its probably tied into the auto brightness feature too. Possibly freezing a process with titanium backup? Im sure a dev would know which one.
Instead of doing that, have you considering modifying the case itself?
Sent from my oh-so-sexy Samsung!
I woukd like to know the same thing. I cracked my screen on top of the sensor :/
Sent from my SPH-D710 using XDA App
Im curious about this light sensor my self. My girlfrinds ET4G turns its screen on right away during a call when she removes it from her ear. Mine how ever delays 3 seconds. Same with my phone powering on when i hit the power button. Any one know a fit?
Sent From My Epic Touch 3g
Obviously im sure any dev would have the answer but i know calks Rom has some edits to proximity sensor so he could be one man to ask? Especially regarding delays
Sent from my oh-so-sexy Samsung!
bluefire808 said:
Im curious about this light sensor my self. My girlfrinds ET4G turns its screen on right away during a call when she removes it from her ear. Mine how ever delays 3 seconds. Same with my phone powering on when i hit the power button. Any one know a fit?
Sent From My Epic Touch 3g
Click to expand...
Click to collapse
The delay when waking your phone probably has to due with using a microsd card, which has been well documented. I don't know if it's related to the light sensor during calls though.
petemills8 said:
The delay when waking your phone probably has to due with using a microsd card, which has been well documented. I don't know if it's related to the light sensor during calls though.
Click to expand...
Click to collapse
How can that be true? Im running a class 10 and i still occasionally get a bit of lag when turning on screen
Sent from my oh-so-sexy Samsung!
Speed of card also has nothing to do with the issue. If you plug the phone w/ microsd mounted into the wall charger there will be no lag...unplug the phone from the charger and the screen wakeup lag will be present.

[Q] Proximity Sensor dead. Suggestions to simulate its working?

Alright. My proximity sensor has been dead for a while now. (And yes, it indeed is dead. I've used Proximity Sensor Recallibrator and different apps for testing it.)
It's not a very big issue to use the phone without a working Proximity Sensor. But it gets annoying while attending calls. With a functional sensor, the phone locks itself when you place the phone next to your ear. However, as expected mine doesn't. I've made it a habit to manually lock the screen by pressing the power button before making a call or after receiving a call. However, there are times when I forget in the rush and it leads to very annoying things, the notification drawer slides down and apparently 'my ear' presses and activates wifi, bluetooth and almost everything on the power widget in the notification drawer.
Its really annoying.
I know there's no real way of actually simulating a proximity sensor. So I just need suggestions from you guys as to how to tackle this problem. Any suggestions with creative ideas or workarounds would be welcome.
When i had an htc hd2 i had the same proble and i was using one out of two apps the problem is i can't fully remember the names, one was ditching the proximity sensor and using the light sensor for proximity and the other one was suposed to make the proximity sensor much snappier using partial info from light sensor. Search the play store for "proximity".
P.S. did you dismantle the phone to see if you have dust behind the speaker gril? I had the same problem with my handset , i could have swore that my sensor was dead but after i cleaned it it worked. Hoped i helped
Sent from my Desire HD using xda app-developers app
bondocel said:
When i had an htc hd2 i had the same proble and i was using one out of two apps the problem is i can't fully remember the names, one was ditching the proximity sensor and using the light sensor for proximity and the other one was suposed to make the proximity sensor much snappier using partial info from light sensor. Search the play store for "proximity".
P.S. did you dismantle the phone to see if you have dust behind the speaker gril? I had the same problem with my handset , i could have swore that my sensor was dead but after i cleaned it it worked. Hoped i helped
Sent from my Desire HD using xda app-developers app
Click to expand...
Click to collapse
Light sensor data for proximity checks. Its an innovative idea... although wouldn't that make my phone lock itself when the lights are turned off?
Also, the dust thing might be a problem, I'll give it a try to see if it helps. Thanks.
if4ct0r said:
Light sensor data for proximity checks. Its an innovative idea... although wouldn't that make my phone lock itself when the lights are turned off?
Also, the dust thing might be a problem, I'll give it a try to see if it helps. Thanks.
Click to expand...
Click to collapse
1 No that app activates only in call, it bypasses the the sensor data from proximity to light while in call then reverts back after call ends the only downside is that it is not as snappy but it is better than nothing
2 Dismantle your back casing and you will find the motherload of dust in speaker grill, if you didn't check that out first then i'm 99% sure this is your problem: filth in speaker grill and on proxy and light sensors you will find a carpet of dust
Caution!!!!
-watch a dismantling video before you start
-if you want to use compressed air to clean the speaker funnel don't exceed 2 bar max and blow at a distance of 15-25 cm not closer
For further support i will help you over forum but check google or xda for a tutorial
bondocel said:
1 No that app activates only in call, it bypasses the the sensor data from proximity to light while in call then reverts back after call ends the only downside is that it is not as snappy but it is better than nothing
2 Dismantle your back casing and you will find the motherload of dust in speaker grill, if you didn't check that out first then i'm 99% sure this is your problem: filth in speaker grill and on proxy and light sensors you will find a carpet of dust
Caution!!!!
-watch a dismantling video before you start
-if you want to use compressed air to clean the speaker funnel don't exceed 2 bar max and blow at a distance of 15-25 cm not closer
For further support i will help you over forum but check google or xda for a tutorial
Click to expand...
Click to collapse
Can you recall the name of the apps? A bit more help than "proximity" would do.. there are a ton load of crappy apps out there with proximity in their names
And thanks for the suggestion I was indeed watching a dismantling video just now.
https://play.google.com/store/apps/details?id=TomReay.proxSensor&feature=search_result
This was the app i initialy used but back then it was't only for htc hero it was only fot htc
But i can't seem to find the second one it was something like :
https://play.google.com/store/apps/details?id=com.hardrock.smartscreenoff&feature=search_result
But i am not 100 % sure this is it
Any progres on dismanteling? i do the cleaning about once in 2 months and it works perfect
bondocel said:
https://play.google.com/store/apps/details?id=TomReay.proxSensor&feature=search_result
This was the app i initialy used but back then it was't only for htc hero it was only fot htc
But i can't seem to find the second one it was something like :
https://play.google.com/store/apps/details?id=com.hardrock.smartscreenoff&feature=search_result
But i am not 100 % sure this is it
Any progres on dismanteling? i do the cleaning about once in 2 months and it works perfect
Click to expand...
Click to collapse
These were the apps that I found. The first one does not work. (I tried it out of desperation even though it stated it was only for HTC Hero ). I read the description of the second one you mentioned and it does not state any such feature about using the light sensor. The closest thing that app would do is to turn the screen off by shaking.
Anyway, you've given me the idea about using the light sensor data only when there is a phone call to lock the screen. I'll try to use Tasker to see if I can make a setting for that scenario. Otherwise I'll just go ahead and make the app.
As for the dismantling, I've seen the video and to get to the grill all I have to do is to remove the gps cover, remove the agency sticker, unscrew 5 screws of the main body cover and remove the cover... right? But unfortunately I don't have the screwdrivers right now, I'll get them first tomorrow and then definitely clean the grill.
if4ct0r said:
These were the apps that I found. The first one does not work. (I tried it out of desperation even though it stated it was only for HTC Hero ). I read the description of the second one you mentioned and it does not state any such feature about using the light sensor. The closest thing that app would do is to turn the screen off by shaking.
Anyway, you've given me the idea about using the light sensor data only when there is a phone call to lock the screen. I'll try to use Tasker to see if I can make a setting for that scenario. Otherwise I'll just go ahead and make the app.
As for the dismantling, I've seen the video and to get to the grill all I have to do is to remove the gps cover, remove the agency sticker, unscrew 5 screws of the main body cover and remove the cover... right? But unfortunately I don't have the screwdrivers right now, I'll get them first tomorrow and then definitely clean the grill.
Click to expand...
Click to collapse
If you have the phone for a long time and you never cleaned it , that might be your problem.
Btw didn't you notice that the phone would turn off harder and sometimes sporadickly while in call before it stoped working?
bondocel said:
If you have the phone for a long time and you never cleaned it , that might be your problem.
Btw didn't you notice that the phone would turn off harder and sometimes sporadickly while in call before it stoped working?
Click to expand...
Click to collapse
Actually.. I don't recall when it actually stopped working. So no, I have no recollection of such happenings. But I do believe you that it might be a possible cause because of the way I handle the phone, dust is a very real possibility.
Ok my friend i will stay tuned on the topic. i will go to bed now but i will be here tomorow to help and assist with whatever i can.
Good luck m8!
Tell me if you mannaged to fix anything.
First of all try to clean the sensor
I've got a simple one... Call a friend and place your hand over the sensor. If the screens turns off its working lol

Problem with proximity sensor during call, dial pad will not stay on

This happens randomly and because I promised my wife Android is now stable/bug free, it makes me really look bad because it is her first Android phone. I googled and it looks like other people have similar problems with S3 as well, with no definitive solution.
Her dial pad will not stay on during the call consistently, literally as soon as she tries to press 1 to hit customer service during call, 2 for support , 1234 for voice mail password etc, her screen goes off and does not let her type. This happens about 50% of the times.
Is this a hardware problem or software problem? It is awful!
I have experienced this issue as well. It doesn't happen often to me with but when it does it's very frustrating. I also don't know what the issue is, but would love to hear if someone has an idea.
Sent from my SAMSUNG-SGH-I747
hitmantb said:
This happens randomly and because I promised my wife Android is now stable/bug free, it makes me really look bad because it is her first Android phone. I googled and it looks like other people have similar problems with S3 as well, with no definitive solution.
Her dial pad will not stay on during the call consistently, literally as soon as she tries to press 1 to hit customer service during call, 2 for support , 1234 for voice mail password etc, her screen goes off and does not let her type. This happens about 50% of the times.
Is this a hardware problem or software problem? It is awful!
Click to expand...
Click to collapse
accrews2001 said:
I have experienced this issue as well. It doesn't happen often to me with but when it does it's very frustrating. I also don't know what the issue is, but would love to hear if someone has an idea.
Sent from my SAMSUNG-SGH-I747
Click to expand...
Click to collapse
You're holding it wrong haha.
Seriously though, make sure your hand doesn't get near the top of the screen while trying to type a number because the proximity sensor will think that is your face and shut off the screen.
Edit: Also, nothing is bug free, not even the iPhone
lol she is blocking the light to the ir sensor at the top of the device.
Yep.... i've experienced it, too, and it's exactly as they're saying. If you have your hand positioned in such a way where your fingers are essentially pointing down the screen, it's likely putting your hand in a position where the proximity sensor feels that it might be your head approaching the phone, and shuts the display off.
It's nothing to "look bad" about... it's just simply how proximity sensors work. Some phones have them set up a bit more sensitive than others. As long as she isn't basically doing a "hunt and peck" style of trying to type while in a call, there shouldn't really be an issue with it. It's not even like it's something when Apple was saying "You're holding it wrong" in regards to their previous Antennagate issue. It's just the proximity sensor reacting to less light due to hand position.
Hmm, I'll have to pay attention when/if it happens again to see if that's what was going on. I don't usually point at the phone with my index finger. I usually hold it where my palm is on the right side of the phone and enter numbers with my thumb.
Sent from my SAMSUNG-SGH-I747
I've noticed that sometimes when i'm doing things on the phone, i'm more prone to hold it in one hand, and press stuff with the other. Most notably when using the dial pad while on a call to go through menu's and such. Just seems a little less likely to hit something else by accident that way. I dunno. But simply keeping my hand down and away from the proxy sensor seems to be the cure.
Does she have a case or a screen protector that might be misinstalled and covering the proximity sensor? It might be more sensitive consequently.
Don't forget there is a timer on the screen that will shut it off, even if you are on the phone.
hitmantb said:
This happens randomly and because I promised my wife Android is now stable/bug free, it makes me really look bad because it is her first Android phone. I googled and it looks like other people have similar problems with S3 as well, with no definitive solution.
Her dial pad will not stay on during the call consistently, literally as soon as she tries to press 1 to hit customer service during call, 2 for support , 1234 for voice mail password etc, her screen goes off and does not let her type. This happens about 50% of the times.
Is this a hardware problem or software problem? It is awful!
Click to expand...
Click to collapse
If its the proximity sensor, you can try my app proximity screen off and select "enable during call only". It will force screen to turn on/off when its uncovered/covered respectively.
I don't get this issue nearly as often when using her phone to make calls with calling card. It may be the way she is holding her device, I will try to explain she's holding it wrong. I always hold my device from the bottom, she seems to hold from the top/center from her iPhone days.
Sent from my SAMSUNG-SGH-I717 using Tapatalk 2
Please read forum rules before posting
Questions go in Q&A
Thread moved
FNM
Also check if your screen is set to turn off after 15 seconds of inactivity. The sensors are at the top of the phone, to the right of the word Samsung. Make sure there's nothing blocking that
Sent from my SAMSUNG-SGH-I747 using xda app-developers app
I have a solution for this issue.
Solution- It's not software issue or bug, It's tempered glass or screen guard problem. So kindly remove tempered or screen guard from mobile screen sensor. Or use original mobile accessories. If you like my answer please check our website...

Categories

Resources