Proximity sensor is not enabled outside call - Redmi K20 Pro / Xiaomi Mi 9T Pro Questions & Answe

I've noticed that, unlike other phones I own (from Huawei, Meizu, Samsung), on Xiaomi phones the proximity sensor is not active outside calling screen, making the phone accidentally react to touches with face or ear when call is in progress.
As long as I leave calling screen, for example to take a note, search something on the web or to make simple calculations, things that are needed in the calling process, proximity sensor becomes disabled, meaning that if I put the phone back to my ear, the screen won't turn off like on other brands I own.
This happens on an older Xiaomi Redmi 4A, making me believe that it's a MIUI thing. I haven't got the chance to test this behavior on custom ROMs.
Is there a way to force the proximity sensor to be enabled all the time when a call is in progress, no matter what app is in foreground?

cris2d2 said:
I've noticed that, unlike other phones I own (from Huawei, Meizu, Samsung), on Xiaomi phones the proximity sensor is not active outside calling screen, making the phone accidentally react to touches with face or ear when call is in progress.
As long as I leave calling screen, for example to take a note, search something on the web or to make simple calculations, things that are needed in the calling process, proximity sensor becomes disabled, meaning that if I put the phone back to my ear, the screen won't turn off like on other brands I own.
This happens on an older Xiaomi Redmi 4A, making me believe that it's a MIUI thing. I haven't got the chance to test this behavior on custom ROMs.
Is there a way to force the proximity sensor to be enabled all the time when a call is in progress, no matter what app is in foreground?
Click to expand...
Click to collapse
Have you Checked this setting?

sofir786 said:
Have you Checked this setting?
Click to expand...
Click to collapse
Of course but my issue has nothing to do with that setting. Even that setting is ON, proximity sensor gets disabled (or its effect gets lost) if the calling screen goes in the background - which doesn't happen on other brands.
Yeah, I know, it's a Xiaomi/MIUI thing but maybe there's a software workaround for this.

cris2d2 said:
Of course but my issue has nothing to do with that setting. Even that setting is ON, proximity sensor gets disabled (or its effect gets lost) if the calling screen goes in the background - which doesn't happen on other brands.
Yeah, I know, it's a Xiaomi/MIUI thing but maybe there's a software workaround for this.
Click to expand...
Click to collapse
I don't have the issue you are having, I had a call this morning, had to grab some details off a text message, the little green call indicator went to the top right hand side of the screen, if I hover my hand over the top left hand side of the screen the screen turns off. I was in the house though I've not had the need to anything like that outside

sofir786 said:
I don't have the issue you are having, I had a call this morning, had to grab some details off a text message, the little green call indicator went to the top left hand side of the screen, if I hover my hand over the top left hand side of the screen the screen turns off. I was in the house though I've not had the need to anything like that outside
Click to expand...
Click to collapse
Interesting. What ROM are you using?
I'm on MIUI 11.2 beta 20.3.27 from Xiaomi.eu.

cris2d2 said:
Interesting. What ROM are you using?
I'm on MIUI 11.2 beta 20.3.27 from Xiaomi.eu.
Click to expand...
Click to collapse
I'm using xiaomi.eu 12.0.2.0 stable

sofir786 said:
I'm using xiaomi.eu 12.0.2.0 stable
Click to expand...
Click to collapse
I tested MIUI 12 Beta from xiaomi.eu for about a week but the issue was still present. Maybe is'a Beta thing or "feature" that had a different approach on Stable ROM.

Related

Need help samsung galaxy s proximity sensor not working

I need help with identifying the problem why my proximity sensor isnt working. This gets annoying because my phone turns the screen off when making a call and you can turn it back on since it thinks something is all the time in front of it. Is it maybe dust? On which side is the sensor located? Is there any software update for a proximity sensor?
If I type in *#*#0588#*#* that runs the proximity sensor test. The screeen goes green, vibrates and stays on 1 all the time( doesnt flick between 1 and 0 if I i move it). What can I do?
I've got a problem with mine aswell. It is always 0 in the test (it can't sense if i put anything over it).
It use to work but suddenly sort of died. I'm not sure what the problem is too but I would like a fix if anyone can come up with one
Funny thing though, my proximity sensor worked fine for 1 call this afternoon, but failed again soon after. :/
Looks like this is one big riddle for the samsung galaxy users. :/
I made a discovery.. If i shone a bright light on my sensor and held it really close to it (like 0.5-1cm away) then the proximity sensor would react and say something is covering it. Only works with a bright light though :/
How bright is that light? May I ask you what are the other 3 values of your sensors?
ciksas said:
How bright is that light? May I ask you what are the other 3 values of your sensors?
Click to expand...
Click to collapse
hmm it was the flash from my digital camera. I think any decent light would work. Try a torch, if that doesn't work try something a bit brighter.
As for the values, which 3 values do u mean?? sorry
Light, magnetic, accelerometer.
Which rom do you have?
ciksas said:
Light, magnetic, accelerometer.
Which rom do you have?
Click to expand...
Click to collapse
oh, the values for accelerometer work fine, the xyz values react as they should when i move the phone.
Light sensor goes as high as 15000 lux when I shine the light on it.
Magnet sensor: 2 and the xyz change and react as they should. same with Azimuth Pitch and Roll.
As for the rom, I'm on darky's 10.1 Extreme Edition
As I thought my light sensor is also faulty. It goes only from 0-22lux
My solution
ciksas said:
I need help with identifying the problem why my proximity sensor isnt working. This gets annoying because my phone turns the screen off when making a call and you can turn it back on since it thinks something is all the time in front of it. Is it maybe dust? On which side is the sensor located? Is there any software update for a proximity sensor?
Click to expand...
Click to collapse
I don't know if this helps, I had a similar problem.. After i made a call my screen would not auto turn back on for me to disconnect the call.
It may have been coincidence, but after i disconnected "Increase volume in pocket", everything started working properly again.
bcosta76 said:
I don't know if this helps, I had a similar problem.. After i made a call my screen would not auto turn back on for me to disconnect the call.
It may have been coincidence, but after i disconnected "Increase volume in pocket", everything started working properly again.
Click to expand...
Click to collapse
Android version?
ciksas said:
Android version?
Click to expand...
Click to collapse
Sorry, I should had given this information. This happened on a S4 (I9505) android version 4.2.2.
I don't know if this particular phone has the same menus has mine, but its how i solved my problem.
Having this issue too.
Nothing mentioned so far has worked for me.
Galaxy S4 SCH-I545 on VZW running 4.2.2.
Unfortunately I don't know when it started so I can't pinpoint any apps as possible triggers. However I have tried out all sorts of apps status bar apps, active notifications apps, launchers (Apex is my current now)

ProxImity sensor problem

Hey guys so I'm having the following problem, during a call when I put the phone near my ear and the screen turns off, sometimes the phone stucks, what I mean is the after I remove the phone from my ear the screen remains turned Off and the buttons do not respond.. But the call is still working.. I had gueste rom then I changed to cyanogen but the problem is still there...
Unresponsive phone perhaps, because as far as I know, nothing of the sort happened to me ever.
Also, does the screen light up when you end the call...let's say by using power button?
Not likely, but I'll mention anyway, check if anything is blocking the proximity censor - holding habit, cellphone case etc.
Similar issue,any way to disable the proximity senzor?
DrGreem said:
Hey guys so I'm having the following problem, during a call when I put the phone near my ear and the screen turns off, sometimes the phone stucks, what I mean is the after I remove the phone from my ear the screen remains turned Off and the buttons do not respond.. But the call is still working.. I had gueste rom then I changed to cyanogen but the problem is still there...
Click to expand...
Click to collapse
I have pretty much the same problem,the screen remain turned off after i remove the phone from my ear and i can't activate the screen or press any buttons until the other person terminates the call.
I run a proximity test from the Hidden Menu and the sensor detects as NEAR all the time even though nothing is in front of it.
I reinstalled several roms and i still encounter the same issue therefore it must be a hardware problem.
I would like to specify that i don't use a screen protector therefore the senor is not blocked in any way.
Is there any way to disable the proximity sensor completely?is there a application or a setting for that?
DrGreem said:
Hey guys so I'm having the following problem, during a call when I put the phone near my ear and the screen turns off, sometimes the phone stucks, what I mean is the after I remove the phone from my ear the screen remains turned Off and the buttons do not respond.. But the call is still working.. I had gueste rom then I changed to cyanogen but the problem is still there...
Click to expand...
Click to collapse
andreita99 said:
I have pretty much the same problem,the screen remain turned off after i remove the phone from my ear and i can't activate the screen or press any buttons until the other person terminates the call.
I run a proximity test from the Hidden Menu and the sensor detects as NEAR all the time even though nothing is in front of it.
I reinstalled several roms and i still encounter the same issue therefore it must be a hardware problem.
I would like to specify that i don't use a screen protector therefore the senor is not blocked in any way.
Is there any way to disable the proximity sensor completely?is there a application or a setting for that?
Click to expand...
Click to collapse
I have had the same problem, with many roms. I think if you are on some of the ICS roms, you will have to expect some bugs, like this. I am now on Temaseks build 135.1 with his kernel and I dont have any of these bugs. It seems ICS for our P990 is to be expected soon, so try a ROM as close to stock as possible and wait for our ingenious developers to get the last drivers working and you will see a lot of bugs disappearing. I would not recommend you to disable additional hard/software.
One app that has helped me though, with some of the ICS issues, is AnTuTu CPUMaster. A free app in Play and it allows you to set your minimum clockspeed a little higher than standard, I set mine around 400Mhz and it took care of many of the little bugs related to phone not reacting according to expectations.
Good Luck
Have the same problem and man... its a huge pain...
I am on the official CM7 latest release. I used to be on temasek's one and did not encounter the problem. As I can;t change ROMs these days, any quick fix, calibration app that would do the trick? Thanks!

Serious practical problem lock screen

Strange thing is happening recent to me...
Namely, while using headphones while talking on the phone, the unit gets unlocked while in pocket and problems arise with spontaneous keys getting activated.
If even cannot be explicitly locked by pressing the power button.
Have not found a solution to this problem, and it's strange why the proximity sensor does not work in pocket.
Cannot remember whether this was previously, or is it since last ROM upgrade.
Anyone having same problem?
tomsag said:
Strange thing is happening recent to me...
Namely, while using headphones while talking on the phone, the unit gets unlocked while in pocket and problems arise with spontaneous keys getting activated.
If even cannot be explicitly locked by pressing the power button.
Have not found a solution to this problem, and it's strange why the proximity sensor does not work in pocket.
Cannot remember whether this was previously, or is it since last ROM upgrade.
Anyone having same problem?
Click to expand...
Click to collapse
Yep I have the same thing... Today my pocket took 9599295 pictures and movies.. also when I'm a bit sweat my pocket dial random numbers. I've noticed that when screen is touched and disnt recognize fingerprint then whole lockscreen shows up and its easy way to random open dial or camera... Its rly anoying, because I dont want to hide phone screen outside of the skin. (Its easier to break screen if I hit something with my leg.)
Dunno why it doesnt use proximity sensor to recognize that phone is in the pocket like every other brand... :/
Do you have the double tap to wake up activated?
I had this problem a while ago and it was the double tap that played all kinds of tricks calling emergency and taking pictures in my pocket! Disable double tap to wake up screen and the problem goes away.
Disable the fingerprint icon on when the screen if off.
Gokh said:
Disable the fingerprint icon on when the screen if off.
Click to expand...
Click to collapse
Tried everything but the problem is eventually still there. Actually I've found a bug, namely the display will wake up once touched several times near the center of the fingerprint reader. Try it yourself.
Not nice - cannot avoid to happen it sometimes even if all options are disabled.
tomsag said:
Tried everything but the problem is eventually still there. Actually I've found a bug, namely the display will wake up once touched several times near the center of the fingerprint reader. Try it yourself.
Not nice - cannot avoid to happen it sometimes even if all options are disabled.
Click to expand...
Click to collapse
I didn't have this problem. If I try now and touch the part with the scanner, doesn’t have to be just the centre of the scanner, rapidly around ten times the lock screen will turn on, but nothing happens when I touch the shortcuts. Perhaps they are disabled, so the only thing that happens if the scanner is touched again is that the numpad to unlock with pin appears.
This is not good as it may severely affect battery life if it happens a lot. This clearly must be a bug!
gerhard_wa said:
I didn't have this problem. If I try now and touch the part with the scanner, doesn’t have to be just the centre of the scanner, rapidly around ten times the lock screen will turn on, but nothing happens when I touch the shortcuts. Perhaps they are disabled, so the only thing that happens if the scanner is touched again is that the numpad to unlock with pin appears.
This is not good as it may severely affect battery life if it happens a lot. This clearly must be a bug!
Click to expand...
Click to collapse
Even worse, since it is happening all the time while on a call via BT and my phone is in the pocket. I am now thinking about to switch over to my old MI8...
Cannot understand why the keyboard is not disabled in the pocket. Seems so easy to do it but it's as it seems on.
tomsag said:
Even worse, since it is happening all the time while on a call via BT and my phone is in the pocket. I am now thinking about to switch over to my old MI8...
Cannot understand why the keyboard is not disabled in the pocket. Seems so easy to do it but it's as it seems on.
Click to expand...
Click to collapse
My only solution was to buy a flip case. At first, I disabled the fingerprint reader by removing all fingerprints and setting up face recognition, but this didn’t fix the problem you are talking about. I don’t really like flip cases, but the Nillkin QIN Smartcase is rather good.
So now I ‘m eagerly awaiting a fix from Xiaomi so I can strip the Mi9 again!
Gokh said:
Disable the fingerprint icon on when the screen if off.
Click to expand...
Click to collapse
Where can the fingerprint icon be disabled? Thank's.
j4dotcc said:
Where can the fingerprint icon be disabled? Thank's.
Click to expand...
Click to collapse
Disabling the fingerprint icon has no effect on the problem we are talking about here. The only way to make the problem go away is to remove all the stored fingerprints thus disabling the use of fingerprints all together. This will shut off the fingerprint sensor doing away with this problem in a crude way.
If you really are looking for a setting, please use the search function at the top of the settings.
gerhard_wa said:
Disabling the fingerprint icon has no effect on the problem we are talking about here. The only way to make the problem go away is to remove all the stored fingerprints thus disabling the use of fingerprints all together. This will shut off the fingerprint sensor doing away with this problem in a crude way.
If you really are looking for a setting, please use the search function at the top of the settings.
Click to expand...
Click to collapse
Thanks for the prompt reply. I don't have the problem and just wanted to know where I can disable the fingerprint icon. Thanks again.
New uppdate out that include Pocket Mode. MIUI-V10.2.27.0PFAEUXM EEA version.

Activate proximity sensor during call in my app

I'm developing app for WiFi calling.
I want to turn off screen when proximity sensor reports "near". It work fine on other phones but on S10 phone looks like proximity sensor is not even activated - there is no white dot blinking on top part of the screen.
If I make normal call or use WhatsApp dot starts blinking as soon as I start the call.
So what do I have to do in my app to make that white dot blink on Samsung S10 phone?
I'm not quite sure, but there seems some kind of known issue with the proximity sensor that dates back to at least March. Screen coming on while in your pocket, screen not lighting up when pulled back from your face during a call, screen randomly coming on while on a call, despite it being pressed against your ear/face. I've tried everything suggested and the issues remains, unfortunately I'll be returning my S10+ and going back to my S8+, pretty disappointing for a $1,000 phone.
It's always recommended to do a factory reset after an update, problems happen not only on Samsung, even on iPhones, not a big deal.
Try this?
https://forum.xda-developers.com/showthread.php?t=2568003
TheNurd said:
I'm not quite sure, but there seems some kind of known issue with the proximity sensor that dates back to at least March. Screen coming on while in your pocket, screen not lighting up when pulled back from your face during a call, screen randomly coming on while on a call, despite it being pressed against your ear/face. I've tried everything suggested and the issues remains, unfortunately I'll be returning my S10+ and going back to my S8+, pretty disappointing for a $1,000 phone.
Click to expand...
Click to collapse
During normal phone call my sensor works as it should.
I just don't know how to activate it in app that I'm developing.
On all other types of phones this is not a problem, since this sensor is always on. It is just S10 series that have some kind of special sensor which have to be activated. You can see white dot (left form the front camera) blinking during call... that means that the sensor is activated.
The only other app I saw apart from phone app that can activate this sensor is WhatsApp. It activates it during call or during listening to voice messages.
I also checked Google Duo, Messenger Lite and Linphone app and none of these doesn't activate sensor. So it must be something that WhatsApp knows and others don't.
I also asked this on WhatsApp support, but I was ignored of course.
Do you find how to activate it? I have the same problem in my app and it looks similar on new Samsungs (I find it out on Galaxy Note 10)
Thanks for replay.

Question No proximity sensor in s21 ultra ?

I feel there is no proximity sensor in this phone..
Becuase while i am on call , even though the screen is touched to my ear , it will light up randomly as i am walking and turning.
Is that function managed by accelerometer and gyroscope as in new redmi phones ?
The autobrightness is also acting weird for me in some cases .
aj7400 said:
I feel there is no proximity sensor in this phone..
Becuase while i am on call , even though the screen is touched to my ear , it will light up randomly as i am walking and turning.
Is that function managed by accelerometer and gyroscope as in new redmi phones ?
The autobrightness is also acting weird for me in some cases .
Click to expand...
Click to collapse
It doesn't do so for me but yes if I move my face when talking the screen turns on but then goes back off immediately. It seems that proximity sensor is managed by the accelerometer combined with ai just like it was in my old OnePlus 7Pro. However, I could be totally wrong!
amirage said:
It doesn't do so for me but yes if I move my face when talking the screen turns on but then goes back off immediately. It seems that proximity sensor is managed by the accelerometer combined with ai just like it was in my old OnePlus 7Pro. However, I could be totally wrong!
Click to expand...
Click to collapse
While on call I tried to use another phone`s camera to search for proximity sensor ( it is ir based , so camera picks it up).
But couldnt find it
aj7400 said:
While on call I tried to use another phone`s camera to search for proximity sensor ( it is ir based , so camera picks it up).
But couldnt find it
Click to expand...
Click to collapse
So then, my suspicions are right..It's accelerometer+ai
I think it uses the camera too. If you try unlock the phone with the selfie camera covered, it will try to prevent it.
Likewise, if you make a call with your phone placed flat on a surface, you can get the screen to turn off by covering the camera.
adamlee2012 said:
Yes it has one. It's near the light sensor... They are both under the display.
Click to expand...
Click to collapse
I dont think it has .
Even when i am on call , phone just touching my ear , it randomly lets the screen turn on .
Also as far as i remember , always on display in the previous generations used to turn off when the phone was in pocket ( or screen was covered)
But here , the aod always remains on regardless if phone is in pocket or outside .
adamlee2012 said:
I’ve just tested mine during phone call. It’s definitely there… I’ve seen it.
Click to expand...
Click to collapse
Yes you are right. It has an ir based one like note 10,20, s10, s20...
Samsung probably is wondering if they should make it invisible with no indicator. That tiny flashing circle has caused more commotion than a midget hooker in the playpen. Every new model provokes this same discussion... talk about a fixation
Using the camera sensor be prohibitive because of power consumption. It would still need an IR emitter to work properly. Net zero gain... and a lot of added complexity at best.
You can test the light sensor with CPU-Z, cover the space to the right of the front camera, that's also what triggers display dimming no matter what adaptive brightness settings you have.
my S20 FE does the same thing on calls. super irritating... i wonder if Samsung will correct the SD card slot omission mistake on the S22. they did the same thing with the S6 and fixed it on the S7
inpression said:
You can test the light sensor with CPU-Z, cover the space to the right of the front camera, that's also what triggers display dimming no matter what adaptive brightness settings you have.
Click to expand...
Click to collapse
The light sensor is there , itried with cpuz , but i feel the proximity sensor does not work properly .
It wakes up the screen during calls

Categories

Resources