Xiaomi buttons are pressed during a call. We solve problems with the proximity sensor

Why doesn't the screen turn off on my phone when I hold it to my ear? In this article, you will find information on how to turn on the screen lock feature when talking in Xiaomi settings. If on your Xiaomi smartphone, during an incoming or outgoing call, the screen stops turning off and the screen is blocked when you bring the phone to your ear, then you may have disabled this feature in the Android settings. It could happen completely by accident and you just didn't notice, or your kids went through the phone settings and turned off the proximity sensor. In our example, we will show how to enable the proximity sensor on Xiaomi Redmi 4X so that when you bring the phone to your ear, the screen is locked and goes out. Perhaps the information is suitable for other Android smartphones and tablets.

To automatically lock the screen on Android when brought to your ear, you need to do the following. We open the phone icon on Xiaomi and get to where we usually dial the number to call. Next, press the touch button "menu" in the form of three horizontal stripes. (On some Androids, after opening the phone, the "menu" can also be opened with a touch button in the form of three stripes located under the screen on the left side. This button must be pressed and held for a while to bring up the menu.) Look at the attached pictures below, where the necessary icons and buttons.

Next, in the menu window that opens on Xiaomi, select the Incoming calls item, under which there will be a short description of the possible settings (additional settings for the device's behavior during incoming calls).

In the "Incoming calls" settings on Xiaomi, find and select the item Proximity sensor under which it will be written (turn off the screen automatically when you bring the phone to your ear during a call) and turn it on. Done, now when you bring the phone to your ear, the screen will turn off and lock, thus preventing accidental taps and touches on the touch screen.

  • We will be glad if you add a review or share useful information.
  • Thank you for your response, additional information and useful tips!!!


14-05-2019
00 h. 49 min.
Message:
Thank you, very useful article, I did everything in half a minute. Itself would be looking for a long time in the settings.

13-05-2019
17 o'clock 40 min.
Message:
Redmi note 7 turned everything on but the screen does not go out.

05-04-2019
08 o'clock 40 min.
Message:
Information came up, redmi 3

16-03-2019
15 o'clock 59 min.
Message:
Model Redmi 6

16-03-2019
15 o'clock 58 min.
Message:
Thank you! Everything is clearly described.

06-03-2019
08 o'clock 12 min.
Message:
Thank you! Redmi note 5 - everything worked out!

27-02-2019
11 o'clock 11 min.
Message:
Thanks a lot. Model Redmi6 Recommendation fit

05-02-2019
23 o'clock 30 min.
Message:
Thanks a lot. It helped) the article is clear, everything is to the point.

24-01-2019
21 o'clock 37 min.
Message:
Phone Xiaomi Redmi 5 recommendation came up.

28-12-2018
00 h. 16 min.
Message:
Thanks for the useful information .. I checked everything, but still the phone is not blocked when making calls (

12-12-2018
13 o'clock 38 min.
Message:
If the sensor is activated, disable the pocket lock

30-11-2018
19 o'clock 16 min.
Message:
Alas. All settings are set correctly. Thanks to you, at least I learned how to check it. But the screen is still on during the conversation (

22-11-2018
12 o'clock 43 min.
Message:
The screen does not turn off when talking. The proximity sensor is activated

21-09-2018
15 o'clock 20 minutes.
Message:
I have Redmi 4 A and everything is connected, but only with normal calls, and when you call from applications (watsap, imo ...) it does not work, the lock does not turn on. What about applications?

01-09-2018
07 o'clock 47 min.
Message:
Why, when I receive a call or call someone. My screen turns off. When you try to turn on the screen using the lock, no result. Tried turning the proximity sensor off and on. Did not work out. What to do?

23-08-2018
13 o'clock 36 min.
Message:
Thank you very much!

11-07-2018
13 o'clock 12 min.
Message:
Finally, you need to reboot.

28-04-2018
12 o'clock 57 min.
Message:
Thanks, useful information

Phones evolve from year to year, becoming more and more complex device, having on board a dozen different sensors. Each of them is responsible for certain functions. For example, the proximity sensor is responsible for adjusting the auto-brightness of the screen and turning it off during a conversation, it is also called a light or ambient light sensor. Calibrating the proximity sensor on xiaomi redmi or note devices will help fix sensor malfunctions that can cause a lot of problems for the smartphone owner, such as accidental taps on the screen during a call. There may be several reasons for incorrect operation. If a banal reboot of the device does not help you, then let's look at the reasons according to their degree of complexity.

Turn on the light sensor

Your sensor may simply be off. To enable it, you need to take a few steps, consider xiaomi redmi 3s as an example.
Open the "phone" application (dialer in the common people)
Long press on the menu
In the list that opens, select "incoming calls"
Then we find in the list "proximity sensor" and enable it if it is disabled

Some xiaomi models may not have such an option, or this function will differ in the location in the menu. Unfortunately, it is not possible to give a universal menu path due to the wide variety of models and firmwares.

Disable "harmful" features

The most common reason for a sensor not working correctly is the “pocket lock” function, the meaning of which is to prevent the screen from turning on when the smartphone is in your pocket. Because of this option, the light sensor often does not work correctly.

This problem is relevant on all xiaomi firmware, for some reason engineers do not want to fix this problem or believe that everything is working as it should, however, for some users, this function does not cause problems. To turn off pocket lock, you need to go to settings, then to "calls" and then to "incoming calls", there you can find a slider that turns off this feature.

What can interfere with the sensor

One of the reasons for a malfunctioning proximity sensor is physical interference in its operation, namely a protective film or glass. For example, this proximity sensor does not work for our employee on xiaomi redmi note 3 pro for this very reason. If you do not have holes for the light sensor, then you need to either change the film / glass or make this hole yourself. This sensor is usually located above the screen, next to the front camera and earpiece. This problem is usually caused by low-quality or universal films. Therefore, before buying a protective coating, be sure to check the presence of all holes.

Testing and calibrating the light sensor

Light Sensor Test

A fairly popular solution is to calibrate the proximity sensor of xiaomi devices. First you need to check the sensor’s performance in the phone, for this we dial the following numbers * # * # 6484 # * # * (you do not need to press the call button), thanks to this combination you will be taken to the engineering menu, tested on xiaomi mi4 and xiaomi redmi 3 pro , other ways to get there are described in our article about the engineering menu.
You will see 5 buttons on a black background.

Click on the top right, it should say "Single Item Test".


In the list of components, you need to find and select "Proximity Sensor", it is usually located almost at the very bottom.


In the test itself, the screen will display the inscription “far” or “close”, closing and opening the light sensor (for example, with a finger), the inscription should change. If this does not happen, then this module is faulty.
After this text, you can try to calibrate.

Light Sensor Calibration

Let's consider the calibration using the xiaomi redmi 3s smartphone as an example.

Turn off your smartphone completely.

Hold down the volume + button (increase the volume), and without releasing it, press the power button again. Your device should vibrate, after which the buttons can be released.

A menu will open in front of you, in 95% of cases it will be on Chinese(including xiaomi redmi 3s). You need to click on the "中文" button, it is located on the bottom line to the right of the "download模式" button. After that, the menu language will change to English.


We click on the "PCBA test" button in the top line and the engineering menu opens in front of us.


If the touchscreen does not work, then use the "UP" and "DOWN" buttons to navigate to the "Proximity sensor" item and go into it.

Place your phone horizontally on a flat surface.

The light sensor should not be covered by anything (it is better to wipe it with a cloth).

Make sure your phone is not exposed to bright light.

Click on the calibration button "Calibration", the sensor will begin to calibrate.

After that, the inscription “Successfully” should appear, it means that the calibration was successfully completed.

Now you need to check the operation of this module, cover the light sensor with an opaque object, on the screen 1 should change to 0 and vice versa.

After that, you may need to press the "Pass" button, you will be taken back to the engineering menu, there we press "Finish", then "Power Off", the phone should turn off.

We turn on the phone and check the operation of the sensor. When making a call, the screen should turn off only when you bring the phone to your ear.
On our personal experience The correct operation of the xiaomi redmi 3 proximity sensor was completely restored in this way.

Wrong device firmware

If the calibration does not help, then the reason for the incorrect operation of the smartphone may be incorrect flashing, this applies not only to the light sensor. The problem is that the new firmware does not install correctly on the smartphone, receiving the remaining garbage from the old firmware. This problem concerns the update method through the regular recovery (bootloader). The transition to new versions should be done through fastboot or by resetting all settings and user data (full wipe). Of the minuses this method it is worth noting that all your data and applications will be deleted, but all garbage will be deleted along with them.

Other reasons

If the previous methods did not have the desired effect, then the reason may be to replace the screen with a poor-quality one. Unfortunately, screen modules for xiaomi phones come with a light sensor. If you have already done a screen replacement in the service, then it is quite possible that, contrary to all the beliefs of the master, you just got a low-quality screen with a bad sensor. If from the beginning of the purchase itself your smartphone does not work correctly, then a simple marriage may be the reason. We advise you to contact the seller for further instructions.

We hope these tips helped you, be sure to write in the comments if this article helped you and what kind of advice helped.

Every modern smartphone based on Android or iOS has a lot of interesting features. Every year, devices are equipped with more and more sophisticated features that make it easier to work with the phone. One of the features of smartphones are sensors, of which there are more than a dozen. Xiaomi has a lot of them too.

Long-term operation of the device leads to a malfunction of sensors and sensors. As a result, it may not be properly adjusted. automatic brightness screen in different times days, there will be problems when you click on the screen, since touches are not detected correctly.

As for smartphones, calibrating the Xiaomi proximity sensor will help fix the problem. This procedure allows you to adjust the responses of the sensors to the correct answer, also with other types of sensors. It is worth noting that devices of other companies do not have such a function.

How to calibrate the proximity sensor on xiaomi

On most Xiaomi smartphones, you can use the engineering menu, which has the necessary sensor tests. But first you need to check the activity of the proximity sensor:

  • Open the "Phone" section, click on the "Menu" on the left.
  • Go to "Settings".
  • We find the item "Incoming calls".
  • In this section, we look at the line "Proximity sensor", the function must be active.
  • Open the dialing menu and enter the standard code engineering menu: *#*#6484#*#*.
  • We immediately get into the QC test window. Here we find the item "Proximity Sensor".
  • We try to bring your finger closer to the sensor on the top panel of the device. If the "Value" value changes, then the sensor is OK.
  • Click "Calibration" button to calibrate the proximity sensor on Xiaomi.

Battery calibration

Why do you need to calibrate the battery of Xiaomi smartphones?

When the phone is used for a long time, the information about the full charge and discharge of the battery may be incorrect, as a result, the smartphone may not charge properly. This problem shortens battery life. To fix this, you will need to calibrate the battery.

The first calibration method is that the device must be fully charged when it is turned on and the following manipulations must be carried out:

  • Disconnect the charging cable from the phone;
  • Turn off your phone completely and reconnect the charging cable after a couple of seconds. The LED should be green;
  • Disable again Charger and turn on the phone. After loading the OS, turn it off again. All actions are done very quickly;
  • We start charging the switched off phone. As soon as the LED turns green, disconnect the smartphone from charging again.
  • Turn on and use.

This was the easiest way to calibrate the battery on xiaomi.

The next method is to use Root rights. To do this, you need to prepare by reading each paragraph of the instructions below:

  • Completely turn off the smartphone and connect it to the charging cable. It is desirable that the adapter be plugged into an outlet.
  • After the device's LED turns green, the device must be turned on and wait for the operating system to fully load.
  • Further actions will work if you have superuser rights. Download the application "Root Explorer".
  • Go to the data / system directory and find the batterystats.bin file, which we delete.
  • Disconnect the charger and use the smartphone until it automatically turns off.
  • We charge the phone up to 100%.

Now the xiaomi smartphone battery is fully calibrated and the system has “remembered” exact value containers.

How to calibrate a compass

Almost any Xiaomi firmware has a built-in Compass application. Correct compass calibration is as follows:

  • Go to the smartphone settings and the "Installed applications" section;
  • We find applications "Compass";
  • Click the "Clear data" button to clear the cache;
  • We overload the phone;
  • We are looking for the compass application on the main screen. It is usually located in the "Tools" folder.
  • By launching the Compass, we allow access to geodata.
  • We act in accordance with the instructions on the screen (You need to perform a gesture in the form of a figure eight), while the smartphone is placed in a horizontal position.
  • After calibration, vibration will occur and the compass itself will appear.

Screen calibration

If when you press the screen, the sensor does not respond well, or the touches are detected incorrectly, there is an opportunity to fix the problem. To do this, the sensor is calibrated. The process involves the following series of steps:

  • To calibrate the screen, it is advisable to remove the protective film or glass, but this is only a recommendation;
  • We go into the engineering menu by entering the command *#*#6484#*#*;
  • We find the option "Touchpanel";
  • Swipe your fingers across the screen as instructed.

It is possible to use specialized applications that can be downloaded from the Play Market. These include Touchscreen Calibration, Display Calibration and the like. We use them last.

Thus, we have considered two ways to calibrate the display. If it doesn't help, then the problem is elsewhere.

Other calibrations

There are many more sensors, but one of the most important is the accelerometer, which is responsible for orientation in space. In other words, if your screen rotation is not working correctly, there is probably a problem with the accelerometer.

Accelerometer calibration on a Xiaomi smartphone is carried out by two methods: using standard functions and an ordinary magnet.

In the first case, on some Xiaomi firmware in the settings there is an accelerometer calibration function. It is located in the "Display" settings. After that, the built-in feature will automatically configure the sensor.

The second method is to use a mechanical effect on the smartphone using a magnet. The method does not always work and should be used with caution (the magnet should not be highly magnetized).

We take a magnet and hold it on the back of the phone for 2 minutes. Between the objects it is desirable to put some kind of cloth or paper. After the procedure, we restart the device and check the performance of the accelerometer.

There is another calibration option using the engineering menu. We do everything in order:

  • Enter the command * # * # 6484 # * # * to enter the engineering menu;
  • We find the item "Accelerator" or "Accelerometer sensor";
  • We tilt the phone in different directions: right, left, forward and backward. As soon as all the arrows appear, press the "Calibration" button;
  • The message "Calibration success" should appear;
  • Click OK;
  • Now you need to twist the smartphone in a circle to calibrate the Magnetic Sensor. We hold the device in a horizontal or vertical position;
  • We are waiting for vibrations and messages Finished.

In modern mobile devices the presence of sophisticated Xiaomi applications no longer surprises anyone. These include various text and media editors, a fingerprint scanner, and proximity, illumination (light) functionality. The latter are responsible for adjusting the brightness of the screen during a conversation. It is worth mentioning that the indicator of light, illumination and approximation is one common service.

It happens that the brightness does not drop when the gadget is touched to the ear. The first thing that is important to do is to restart the phone, if the illumination still does not work, then adjust it.

Causes of non-working sensors on Xiaomi

1. The application is disabled.

First check if it is enabled. To do this, open the “Phone” application with a long press and select “incoming calls”. Enable zoom if it is disabled.

2. Included "harmful" services.

Often the cause of a malfunctioning sensor is a “pocket trip”. As a result, the Xiaomi light sensor does not work correctly. It's easy to fix. Go down to “Calls” - “Incoming” and switch the slider to the other side.


3. Film or glass for protection.

The Xiaomi proximity sensor will definitely not function if its window is closed. It is located near the front camera on top. Therefore, it is important from mechanical damage use original protective coatings or glue universal ones in such a way that they cannot be covered.

Module failure check on Xiaomi

When all of the above reasons are not relevant, then you need to perform a certain list of actions to check the functionality of the function. First you need to dial *#*#6484#*#* without dialing. After entering the engineering menu, five windows will be available. Swipe across the top right.

In the list of suggested actions, find the "Proximity" sensor at the bottom.

When you touch this window, the inscriptions “far” and “close” should change (they are also on the screen). If nothing happens, then adjustment is needed.

Xiaomi Sensor Calibration

For this task, you need to perform the following sequence of actions:

1. Completely turn off the smartphone

2. Press the volume up at the same time as turning it on until the vibration signal and release.

3. The variator in Chinese will open. Hover over "中文" to change language.

4. Swipe on "PCBA test" to enter the factory menu.

If the sensor does not respond to fingers, then control can be realized using "Forward" and "Back".

5. Go to "Proximity sensor" and put the gadget horizontally. The option opening must not be covered without strong light shining on it.

6. Carry out the adjustment using "Calibration". The appearance of the inscription "Successfully" will mean that the work was completed successfully.

You can check the module like this. Close the hole with an opaque object. The number should change from 1 to 0.

Press the “Pass” button to go back to the engineering variator, then press the “Finish” and “Power Off” keys to turn off the smartphone. Then you can download it and check the function during a conversation.

If this algorithm did not help restore the module, then its firmware can help. Another reason may be incorrect display installation.

If for some reason the proximity sensor has stopped working (the screen does not turn off when you bring the phone to your ear or turns off with any movement), then reconfiguring it is not too difficult. One way is to calibrate.

Calibration through the engineering menu

The only way to properly calibrate the proximity sensor with built-in tools is through the engineering menu. To open it, just go to "Settings", find the section "About phone" and tap several times on the line "Kernel version". The smartphone itself will tell you how many times you need to click on the line to open the engineering menu. As a rule, five taps are enough.

Depending on the appearance of the engineering menu in Xiaomi, you need to approach calibration differently:

1. If it appears in the form of a simple list, then just click on the "Proximity sensor" (in Russian) or Proximity Sensor (in English) - and the desired section will open;

2. If the menu is made in the form of buttons, then you need to tap on the Single Item Test button on its main page. And then find the Proximity Sensor button and select it.

Naturally, appearance this section of settings will also be different. But the beginning is the same: you need to put Xiaomi on a horizontal surface with uniform standard lighting (it is important that too bright light does not fall on the device). Then cover the proximity sensor with your finger. Press it firmly against the space above the display where the camera and speaker pass. When calibrating, it is desirable to get rid of the protective glass or film that can interfere with the operation of the sensor (if they do not have the appropriate cutouts). Also, before starting, it is worth wiping it with a clean cloth, removing dust and grease from your fingers.

After that, if there is a menu in the form of a list, you must click on "Start Calibration" and wait for the inscription at the bottom of the screen "Calibration completed successfully". In this case, the value between this inscription and the button should change. Then just tap on “OK” and, if the menu for checking keystrokes opens, on “Cancel”.

With the menu in the form of buttons, everything is a little more complicated. Have to turn off Xiaomi phone and go to the Chinese Recovery menu: simultaneously hold down the power button of the smartphone and the volume down or volume up key. After a short vibration, they must be released. This menu will open.

In it, you need to tap on the button located in the lower right corner (the last row above the blue line). After that it will be enabled English language which you can already refer to.

The next step is to click on the very top row of PCBA Test. A new menu will open, in which you need to select Proximity Sensor and click on Calibration. Then leave the phone alone for a while while it calibrates. This usually takes a little time. When the process is complete, Successfully will appear.

To check, just close the proximity sensor with your finger again. If the one changes to zero - great, everything works. If not, the problem may be directly in the sensor, and it needs to be repaired or replaced. Or in the firmware, which will also have to be changed.

To exit Recovery, click on Pass, then Finish, and after that - Power Off (big blue button). The Xiaomi smartphone will turn off and you can use it normally in the future.

What can interfere with the operation of the sensor

Sometimes it happens that the proximity sensor does not work correctly due to banal reasons, and not because it is not calibrated or broken. It is also advisable to check if they affect its functionality.

Incorrect additional settings

In some cases, the Pocket Lock feature, if present at all in this firmware version, may cause interference. You can check this by going to "Settings", then tapping on "Calls". Here, in the "Incoming calls" section, the desired function is located, which should be turned off.

At the same time, you need to check if the proximity sensor is enabled at all in the settings. The corresponding line is located at the same address as "Pocket Lock".

Physical Interference

Oddly enough, the operation of the proximity sensor can be prevented by banal dirt or the wrong protective film. They physically prevent light from reaching the sensor, which causes interference or incorrect operation.

Therefore, before calibration, it is advisable to wipe upper part front panel Xiaomi smartphone. And if, as a result of the settings, it turns out that glass or film is to blame, it is better to get rid of them or make a hole where it should be. Especially often so-called "universal" accessories suffer from this.

mob_info