[Q] Proximity sensor doesn't stop button pushes - Nexus 4 Q&A, Help & Troubleshooting

This just started a few days ago, and I haven't been able to find a thread covering the same problem yet.
My proximity sensor turns off the screen during calls, but does not disable the touch sensor, meaning I'm constantly hanging up in the middle of calls, opening other apps, etc. It happens consistently, including when I cover the senor with my hand and tap the screen, which appears to be off.
I've tried several combinations of ROMs and Kernels including Matr1x, Franco, stock kernel, SlimRom, CM 10.1, PA, and Xylon. The problem is still there no matter what I have flashed.
EDIT: Solved. It was an issue with Touch Control. Installed a simple tasker command to disable it while I'm in a call, and then re-enable it when the call is over. Works perfectly.

dvorak67 said:
This just started a few days ago, and I haven't been able to find a thread covering the same problem yet.
My proximity sensor turns off the screen during calls, but does not disable the touch sensor, meaning I'm constantly hanging up in the middle of calls, opening other apps, etc. It happens consistently, including when I cover the senor with my hand and tap the screen, which appears to be off.
I've tried several combinations of ROMs and Kernels including Matr1x, Franco, stock kernel, SlimRom, CM 10.1, PA, and Xylon. The problem is still there no matter what I have flashed.
Click to expand...
Click to collapse
Do you have a screen protector installed?
Also im not sure if you tried this but open up your build prop editor and add these lines at the very bottom:
ro.lge.proximity.delay=25
mot.proximity.delay=25
Make sure you save the changes. Reboot your phone. Let me know if this helps.

Jsparta26 said:
Do you have a screen protector installed?
Also im not sure if you tried this but open up your build prop editor and add these lines at the very bottom:
ro.lge.proximity.delay=25
mot.proximity.delay=25
Make sure you save the changes. Reboot your phone. Let me know if this helps.
Click to expand...
Click to collapse
Thanks for the suggestion, but that didn't do it. The screen shuts off just fine. The problem is that the screen still behaves as if it was on, even though the sensor has seemingly turned it off.

Jsparta26 said:
Do you have a screen protector installed?
Also im not sure if you tried this but open up your build prop editor and add these lines at the very bottom:
ro.lge.proximity.delay=25
mot.proximity.delay=25
Make sure you save the changes. Reboot your phone. Let me know if this helps.
Click to expand...
Click to collapse
What does this do? My problem is when I use my shoulder to hold my phone against my head. It not only pushes buttons, but does something to make the other caller think I'm not there anymore.

Related

[Q] Turn on & off Screen during call?

Hi there!
Sure it's easy to fix this problem of mine but I just did not find the way.
If I make a call, the screen automatically turns off, that's fine. However, when I call somewhere where I need to dial a few numbers, I tap a button to turn on screen again, however, I haven't been able to find a way to turn it off again.
Yesterday during a call to my ISP where I needed to press 1-3-4, I accidentally hang up the phone call 3 consecutive times with my cheek, just because the screen was not turned off.
Thank you in advance.
Cheers!
I believe it has a proximity sensor, so the screen turns off when its close to sommit. The sensors are top left of the phone. Just try it, and see if it always stays on when you put your hand close to it.
Hi MalekoUK.
Thanks for your answer. I already tried this and it did not work, this is why my call got hung for 3 consecutive times...
Is there a Default switch or parameter in the registry to test if this sensor is activated? Another way to test if it works properly?
Cheers!
Well there is a tweak for the proximity sensor in development now, take a look and see if it helps or fixes it:
http://forum.xda-developers.com/showthread.php?t=624206
Maybe you have a faulty prox sensor? Also, maybe a hard reset will fix it?
It's strange, sometimes it works, sometimes it doesn't.
My ROM is an Official 1.48 ESN
No one else has had this issue?
Cheers,
Well, I'm somehow glad to see I'm not the only one... See Here
Cheers,
Mano75 said:
Well, I'm somehow glad to see I'm not the only one... See Here
Cheers,
Click to expand...
Click to collapse
someone found a app in my thread check it out

No Wake-up after phone call

Still tested different NAND-Android Roms on my HD2 but got still a problem. If i make a phone call and the screen turns black while calling i press the endkey to end the phone call. But instead of turning on the device, the screen stays black and i need to pull the battery and restart the phone.
If i make a phone call and use the free speaking funktion, while the screen don't turn off, i got no problem when ending the phone call.
I don't know what the problem could be, but it seems, that the thing has to do with the sensor who turns the screen on and off. But i don't know if this is the problem and/or know how to fix this problem. Like i said, i tested different Android Roms formated the SD-Card, deleted cache and all the stuff, but nothing fixed this problem. :-(
28 Views and no one with this problem? :-(
There are 2 other threads discussing this issue already. Here is one.
http://forum.xda-developers.com/showthread.php?t=946012
Issue lies with the light/proximity sensor. Could be defective hardware. Could be incorrect sensor drivers. Could be dirty sensors. I have yet to take mine apart to check for dirt on sensors. Blowing into the led/earpiece opening seemed to help. I notice if it doesn't come back on I can hold a very bright light (ex: cigarette lighter) about an inch away and the screen comes on as long as the lighter is lit. Sometimes it stays on.
thanks for your answer. seems to be more things to test and maybe solve this problem. Thanks!
THANK YOU Agoattamer!
Your link helped me to solve the problem! I just cutted a little piece of my screen protector, where the proximity sensor is, and got no more freezes after the phone calls! The screen protector still got two holes for the light and proximity sensor, but this seemed not to be big enough. Anyway, thank you a lot for your post!
wake up problem
Palerider-de said:
Still tested different NAND-Android Roms on my HD2 but got still a problem. If i make a phone call and the screen turns black while calling i press the endkey to end the phone call. But instead of turning on the device, the screen stays black and i need to pull the battery and restart the phone.
If i make a phone call and use the free speaking funktion, while the screen don't turn off, i got no problem when ending the phone call.
I don't know what the problem could be, but it seems, that the thing has to do with the sensor who turns the screen on and off. But i don't know if this is the problem and/or know how to fix this problem. Like i said, i tested different Android Roms formated the SD-Card, deleted cache and all the stuff, but nothing fixed this problem. :-(
Click to expand...
Click to collapse
I also tried a a lot of different NAND ROM and I had also this problem and I can't use Android efficiently. Now I am using hyperdroid ROM ( first GBX now CM). With this ROM and sanity app (from market, with correct settings you can find with trying) I almost solve this problem. ( probability of 95 % I don't get this error)
hey guys! i found the solution goin through the market!
download an app called "Sanity" theres a free version in the regular android market.
go to the settings > general > check "Reverse Proximity" (This will give you some warning about not using it if you DONT have a buggy proximity sensor). Check it anyways. Then go back to preferences then click "Proximity" scroll down and uncheck Turn off screen and leave leave the Turn on screen checked. this will force your phone to stay on during calls so that it never has to go through the proximity phase of calls this no more black screens. Hope this was helpful ^_^
anthonydo1991 said:
hey guys! i found the solution goin through the market!
download an app called "Sanity" theres a free version in the regular android market.
go to the settings > general > check "Reverse Proximity" (This will give you some warning about not using it if you DONT have a buggy proximity sensor). Check it anyways. Then go back to preferences then click "Proximity" scroll down and uncheck Turn off screen and leave leave the Turn on screen checked. this will force your phone to stay on during calls so that it never has to go through the proximity phase of calls this no more black screens. Hope this was helpful ^_^
Click to expand...
Click to collapse
Does any other one tried this solution ???

Screen keep waking up with Touchwiz Rom

Hi All,
There is some hardware issue with my S4 that it will wake itself up randomly every few seconds. It has this issue with every touchwiz rom I put on, Kitkat or Lollipop (fresh install so that I know it's not caused by some apps installed later). I'm sure I have tried everything like disabling air gesture, every senor related function that I'm aware of.
I used wakelock trying to track which apps triggered the wake with no luck.
I also tried gravity screen, no luck.
The only fix so far is using a cm rom. I suppose it's because cm rom ignores some sensor info compared to touchwiz. I can stay with cm but I really like the stock camera.
Can anyone cast some light on how to fix this screen wake up issue on touchwiz?
Update: Finally got this fixed. The fix is very specific to this phone. As I mentioned this phone has some issue including home key not working and the random screen wake. After disable home key mapping in Generic.kl and gpio-keys.kl by adding # in front of key 172 Home, screen wont wake up by itself again.
shadowcliffs said:
Hi All,
There is some hardware issue with my S4 that it will wake itself up randomly every few seconds. It has this issue with every touchwiz rom I put on, Kitkat or Lollipop (fresh install so that I know it's not caused by some apps installed later). I'm sure I have tried everything like disabling air gesture, every senor related function that I'm aware of.
I used wakelock trying to track which apps triggered the wake with no luck.
I also tried gravity screen, no luck.
The only fix so far is using a cm rom. I suppose it's because cm rom ignores some sensor info compared to touchwiz. I can stay with cm but I really like the stock camera.
Can anyone cast some light on how to fix this screen wake up issue on touchwiz?
Click to expand...
Click to collapse
Hi
I've been having the same problems with my phone, I think I've managed to fix the problem,
I went to settings, device, display, then at the bottom turn off 'ambient display'
Problem seems to be gone

D800 Screen keys pressed while on call - build.prop mod?

I´ve searched this forum, but found nothing like what I am facing. As per title, whilst on a call, with the phone on my ear (left ear usually, if that means anything) the on screen buttons are pressed, because I usually end up with the call on hold. Other times, it finishes the call, other times it dials a number from the contact list...Here´s a list of what I have done so far with no success:
1. Calibrate proximity sensor with apps
2. Use hidden menu to test functionality (it works as advertised)
3. Calibrate motion sensor
4. Full reset of the phone
5. Clear dalvik cache
6. Test sensor functionality with app (again, works as it should). It detects when my hand is covering the sensor and it detects when my hand is taken away from it. Instantly. Also, left my hand covering the sensor for a while (simulating a call) to see if at some point it stopped working, but no, the darned thing worked as it should.
I read somewhere here that a mod on build.prop might help (it has to do with the delay time of the proximity sensor) but since the post didn´t explain the exact setting, i googled it, and found 2 settings that might apply:
1.) ro.lge.proximity.delay
2.) mot.proximity.delay.
Neither of them is in my build.prop file, so, the questions that pop to my mind are:
1.)Which one of the two would affect the described issue? Apparently those settings are modified by users that had a problem with black screens after a call or with long delays for the screen to come back after taking the phone from their ears to use the keypad, but no post that I read indicated which one of the settings influenced what. I have the feeling that one of them is for the proximity sensor to "kick in" while the other controls how long does it take for the screen to come back after the proximity sensor stops detecting your ear.
2.)Can I add that setting to my build.prop without risking a bootlop or a brick?
As the title say, I have a D800, with official AT&T 5.0.2 ROM, rooted, with stock recovery.
Any help would be highly appreciated. As you can imagine is terribly frustrating that I cannot use my smartPHONE as a PHONE because of this!
Thanks in advance!
Frank.
a small, shameless bump!

Proximity sensor not working

Hi.
I have problem with proximity sensor. While making a phone call, display is always on.
I tried to enable it in settings. Turned it on, rebooted my phone and nothing happened.
Also tried *#*#6484#*#* solution, and when I open proximity sensor, there are 'test' and 'error' buttons on the screen and I can't click anything.
Does anyone know how to fix this?
In the engineering menu * # * # 6484 # * # * we find 27 - Proximity sensor
When approaching the palm to the front camera should show "0".
I always showed "5", did not want to be calibrated.
I pressed Error, went out and went to the engineering menu, a miracle happened - it was calibrated.
stanley56 said:
In the engineering menu * # * # 6484 # * # * we find 27 - Proximity sensor
When approaching the palm to the front camera should show "0".
I always showed "5", did not want to be calibrated.
I pressed Error, went out and went to the engineering menu, a miracle happened - it was calibrated.
Click to expand...
Click to collapse
No, nothing happened. As usuall, screen is always on.
Yes, proximity sensor in settings was on and I have rebooted the phone.
I really don't know what to do. Is it because of bug in Global Rom or is it hardware malfunction?
Fortis10 said:
No, nothing happened. As usuall, screen is always on.
Yes, proximity sensor in settings was on and I have rebooted the phone.
I really don't know what to do. Is it because of bug in Global Rom or is it hardware malfunction?
Click to expand...
Click to collapse
Hold your phone with your left hand. The placement sensor gets blocked by your right ear when you make calls using your right hand. Give it a go and get back to us.
DelphinusMinor said:
Hold your phone with your left hand. The placement sensor gets blocked by your right ear when you make calls using your right hand. Give it a go and get back to us.
Click to expand...
Click to collapse
Ok, non-related to left and right hand.. Now my phone gets black screen all the time during calls. I can't put it on speaker or do anything while talking with someone. I really don't know what's happening...
Fortis10 said:
Ok, non-related to left and right hand.. Now my phone gets black screen all the time during calls. I can't put it on speaker or do anything while talking with someone. I really don't know what's happening...
Click to expand...
Click to collapse
I can't help there but left/right holding is an issue I guess with this phone. Or maybe it's the Pro. I forget offhand.
Fortis10 said:
Ok, non-related to left and right hand.. Now my phone gets black screen all the time during calls. I can't put it on speaker or do anything while talking with someone. I really don't know what's happening...
Click to expand...
Click to collapse
Obviously the proximity sensor is at fault. Enter the menu using the code mentioned above, then press the menu/options button and select Calibrate proximity sensor. Once you're there, hold your hand over the proximity sensor (to the right of the front camera) and tap the Calibrate button. That's one thing that could fix it.
Failing that, go to incoming call settings and turn off the proximity sensor (turn off screen in call). Restart your phone, go to the same toggle and turn it on.
If neither of these works, you likely have a faulty piece of hardware. Your last option is to have the phone repaired or try a different kernel/ROM.
Fortis10 said:
Hi.
I have problem with proximity sensor. While making a phone call, display is always on.
I tried to enable it in settings. Turned it on, rebooted my phone and nothing happened.
Also tried *#*#6484#*#* solution, and when I open proximity sensor, there are 'test' and 'error' buttons on the screen and I can't click anything.
Does anyone know how to fix this?
Click to expand...
Click to collapse
Hi , are you on miui global stock rom? Or custom rom?
I just had the same issue , but in my case , I recently opened the bootloader and installed xiaomi.eu rom, everything was working fine. I got notification of update ,I downloaded the update , but flash it thru TWRP , and then with the new update, the proximity was not working at all. Flash again the new rom, but wiping everything , and now works.
jonathan_jon said:
Hi , are you on miui global stock rom? Or custom rom?
I just had the same issue , but in my case , I recently opened the bootloader and installed xiaomi.eu rom, everything was working fine. I got notification of update ,I downloaded the update , but flash it thru TWRP , and then with the new update, the proximity was not working at all. Flash again the new rom, but wiping everything , and now works.
Click to expand...
Click to collapse
Is the EU rom that better?
I mean is there any plane to compare the known issues between the global and EU ?
I'm using the miui global 10.3.3.0 PFGEUXM and definitely have some "issues" with the proximity sensor.
I'm still trying to tie down the exact nature of the problem:
With a quick test, or doing calibration, it seems to work exactly as I would expect; the screen switches off as you approach closer than about 2 inches.
However during a long call I notice the display start to flash "on" frequently in the corner of my eye and soft keys can get inadvertently pressed.
It kinda feels like it gets worse during the call, is it time or perhaps the phone warming up in my hand? Not sure.
hi @All!
is there still no permanent solution for fixing proximity bug?
its really annoying and making me crazy....
even after making it working again using quicktune app - doing one call it is broken again
fasty said:
I'm using the miui global 10.3.3.0 PFGEUXM and definitely have some "issues" with the proximity sensor.
I'm still trying to tie down the exact nature of the problem:
With a quick test, or doing calibration, it seems to work exactly as I would expect; the screen switches off as you approach closer than about 2 inches.
However during a long call I notice the display start to flash "on" frequently in the corner of my eye and soft keys can get inadvertently pressed.
It kinda feels like it gets worse during the call, is it time or perhaps the phone warming up in my hand? Not sure.
Click to expand...
Click to collapse
Exactly what i've experienced.
Super annoying when you accidentally hang up during a call.
It happend countless times so far.
I'm on eu beta btw.
Wish there would be a solution.. . But afaik proximity is even more bugged in non miui custom roms.
I had this problem to. my proximity sensor what not responding at all. I thought it was defective because the calibration was not working to.
Then i went to the system update settings, downloaded the latest package and flashed it. After reflashing it started working with no problem at all.
Factory reset did the trick for me. Working normally now.
Install Quick Tuneup. Then do Sensor Celebration & Restart your device twice.
Two solutions
Fortis10 said:
Hi.
I have problem with proximity sensor. While making a phone call, display is always on.
I tried to enable it in settings. Turned it on, rebooted my phone and nothing happened.
Also tried *#*#6484#*#* solution, and when I open proximity sensor, there are 'test' and 'error' buttons on the screen and I can't click anything.
Does anyone know how to fix this?
Click to expand...
Click to collapse
It turns out that the problem is because MIUI does not activate the proximity sensor when the smartphone is turning on.
To force MIUI to ALWAYS activate the sensor at each start, we can do two things:
1- Always have "Automatic brightness" activated
2- Activate the "Pocket mode" (the best choice)
After applying one of these situations, it is necessary to restart the phone.
Only by activating the pocket mode it is no longer necessary to have automatic brightness activated all the time.
In the video I show how to activate the "pocket mode"
w w w . youtube.com/watch?v=2dfrqmH02O8
I published this solution in a forum in my country (Colombia).
w w w . laneros.com/temas/soluci%C3%B3n-sensor-de-proximidad-xiaomi.239997
I don't speak English, I had to use the google translator, sorry for any translation error.
2- Activate the "Pocket mode" (the best choice)
After applying one of these situations said:
KMILO_PARRA is a KING .........................
above is proof to SOLVE the Proximity Sensor no reaction in my Redmi Note 7.
I was having lots of TASKER Profile depending on whether or not Proximity Sensor is covered.
I found all those Profiles no more function due to the issue after I believe OTA to Global rom the latest ( August-2019 )
Thanks again to KMILO_PARRA
Click to expand...
Click to collapse
Actually, the proximity sensor for Redmi Note 7 isn't in the "usual" top-center position, it's a little bit on the top-right edge (if you watch the phone "against the light" you can actually see a small dot on that side).
If you're calling\responding try to put your ear at that angle, you'll never have those problem anymore.
I know it seems crazy, and of course the first times could be "unusual" to put the ear there, but it actually worked out flawlessly for me.
Mr
Quaresma_7 said:
Obviously the proximity sensor is at fault. Enter the menu using the code mentioned above, then press the menu/options button and select Calibrate proximity sensor. Once you're there, hold your hand over the proximity sensor (to the right of the front camera) and tap the Calibrate button. That's one thing that could fix it.
Failing that, go to incoming call settings and turn off the proximity sensor (turn off screen in call). Restart your phone, go to the same toggle and turn it on.
If neither of these works, you likely have a faulty piece of hardware. Your last option is to have the phone repaired or try a different kernel/ROM.
Click to expand...
Click to collapse
Thanks.....
It works for me
Hi guys,
I have made a little workaround, using the suggestion of @KMILO_PARRA user. (pocket)
https://taskerprofilecenter.blogspot.com/2019/09/project-proximity-sensor-workaround-for.html
This is mainly for Tasker users, but I have generated an APK to be installed too. So any user can use it. But what is needed, by now, is root, as it needs to write to Settings table.
Please, report me back if it does the job or not.
Note1: For those users that don't know how Tasker works, just install the app, and give it root permissions, and allow Write System Settings permission (Android option). I recommend you to not set it as an app to be killed from the OS using the battery optimization, as it could be killed. It acts on every shutdown and device boot.
Note2: It will generate two permanent notifications: Place holder, and the one that is the mini-Tasker code monitor (required). Just, disable the Place holder one, as described in the same notification (click on it), and disable notifications completely for the installed app to get rid of the last one.
---------- Post added at 12:44 AM ---------- Previous post was at 12:31 AM ----------
What it does exactly?
Well, as I explained on my web, it just changes the value (0/1) from the 'enable_screen_on_proximity_sensor' Global Settings table, that makes the pocket option to be toggleable in an automated way.
So, be sure not to use that option as a daily one, as the project/app uses it to allow the sensor be available at startup. And do not forget that you will need root too! Sorry.
What to download if I don't know what Tasker is?
You will only have to download the APK from the 'Kid App (APK)' link, provided under the 'DOWNLOAD' section. Nothing else.
If you know Tasker, you will know what to do.
Does it work really?
I'm currently testing this workaround, but as I could see, at least on my device (lavender too), seems to be working as expected. But needs to be tested a little more.
So, if it does not what it's intented for, please, report it me back.
After installing the app, giving root permissions, and allow it to modify system settings, reboot the device to take it effect.

Categories

Resources