Many Xiaomi and Redmi smartphone users are faced with an unexpected situation: the phone is in their pocket or on the table, and suddenly its screen lights up, including a flashlight. This not only consumes battery power, but can cause irritation in the dark. Quick access to the camera or flashlight with a locked screen was conceived by developers for convenience, but in practice often leads to false positives. To eliminate this discomfort, you need to make changes to the system settings of the MIUI shell.
There are several reasons why a flash can activate itself, most often due to gesture settings, sensor sensitivity or Pocket Mode. In recent firmware versions, the security and notification algorithms change, so the location of the switches may differ. Disabling the flashlight on a locked screen does not affect the main camera or the regular flashlight application when the device is unlocked. Below we will discuss all available methods to solve this problem.
Before you start to make complex manipulations, it's worth checking the basic settings of the system. MIUI offers flexible customization options, but sometimes the option you want is hidden in a non-obvious menu. If you notice that the LED flashes or lights up when you receive notifications, the problem may lie in the event indication settings, not in the flashlight function itself.
Customize gestures and buttons on a locked screen
The first place to look for the reason for the lights to turn on spontaneously is the gesture control menu. The MIUI shell has the ability to run applications by double-touch or swipe over a display that is off. Often, this feature activates the camera, which in turn lights up the flash for autofocus or backlighting. To check this, go to Settings β Lock screen.
Here, you need to carefully examine the list of available actions. Some Redmi models have a separate switch to quickly start the flashlight. If you find a point associated with launching applications when you double press the power or volume button, it should be deactivated, which will prevent accidental activation of the system tools when the phone is in your pocket.
You should also pay attention to the Pocket Mode feature, which is designed to prevent false calls, but in rare cases, its malfunctioning can lead to backlighting. Try changing the sensitivity settings or turning it off completely for checks. If this continues, a deeper diagnosis will be required.
It is important to note that the names of items may differ slightly on different versions of Android and MIUI. If you do not find the switches described above, look for the section related to Smart Lock or Additional Screen Features.
Disabling the notification of the lamp on
Sometimes users confuse an active flashlight with a notification indicator. On Xiaomi smartphones, there is a feature where the flash LED flashes when messages arrive or calls are missed. This can look like the work of a flashlight, especially in complete darkness.
To turn off, go to Settings β Additional settings β Special features. In the list that opens, find the "Hearing" or "Vision" tab (location depends on the system version). This will be "Flash Notification" or "Flash at Notifications." The switch must be switched off.
Once this is done, the LED will stop responding to incoming events, not only will it eliminate the false sensation of the flashlight on, but it will also save battery power. Note that this setting is global and will affect all applications that use system notifications.
β οΈ Warning: Disabling the notification flash may cause you to miss an important call in a noisy place if the phone is lying down screen.
In some cases, the system may suggest using the flash as a low-power indicator. Check the Battery and Performance section for these options. If this function is active, the LED will light up red or green at a critical energy level, which can also be mistaken for running a flashlight.
Use of the "Security" application for control
Xiaomiβs built-in security application offers a wide range of features that go beyond simple antivirus protection, and you can find tools to manage application permissions, which are critical for controlling access to hardware modules. Some third-party programs can request access to the flashlight and activate it in the background.
Open the Security app and go to Permits or Privacy. Find the camera or flashlight access point, and here you will see a list of all the programs that are authorized to use these components.
Pay special attention to programs that, it would seem, should not have access to light: voice recorders, scanners QR-If you find an application that actively uses a flashlight without your knowledge, it is better to delete it or prevent it from working in the background.
βοΈ Checking application permissions
Also in the Security app is a Memory Cleanup feature, which is set to close background processes that may cause hardware malfunctions. Sometimes, sticking to the camera process causes the flash to remain on even after the screen is locked, and cleaning the cache regularly helps to avoid such situations.
Management through Engineering Menu and ADB
For advanced users who have not been helped by standard methods, there is the possibility of using an engineering menu or ADB commands. This method requires caution, since improper actions can lead to unstable system operation.
To enter the engineering menu, open the Phone app and dial ##6484##. In the CIT menu, you can test the flashlight and, in some cases, change the settings of its operation. However, be careful: changing unknown parameters can disrupt the calibration of the sensors.
A safer, but more complex, method is to use USB debugging and the command line on your computer, which requires you to turn on the developer mode and USB debugging in your phone settings, and then, by connecting the device to your PC, you can send a command to turn off certain services that are responsible for the flash.
adb shell svc torch disableThis command forcibly disables the flash management service. To get it back, use the enable command, which is effective if the problem is caused by a software failure in Android system services that cannot be fixed by standard interface tools.
β οΈ Attention: Use of teams ADB And logging into the engineering menu can cancel the warranty or cause data loss, and only do this if you're confident in your skills and understand the implications.
Verification of third-party applications and widgets
Often, the problem is caused by the user installed programs. Desktop widgets, flashlight applications, alarms or alarm clocks can take precedence over system settings. If you installed any software shortly before the problem occurs, it is worth checking its settings.
Pay special attention to applications that work with the lock screen. Replacing a standard lock with a third-party one often leads to iron control conflicts. Try temporarily removing all non-standard launchers and blockers to see if spontaneous lighting will disappear.
Also check the widget settings. Some weather or news widgets can use the flash to get attention. Go to desktops and remove the extra interface elements, which will free up the system resources and eliminate software conflicts.
How do you find the guilty app?
The table below shows the types of applications that most often cause similar problems, and recommendations for setting them up:
| Type of application | Reason for switching on the lamp | Recommended action |
|---|---|---|
| A side-light | Conflict with the system module | Remove, use built-in |
| Signaling. | Using light as an alarm clock | Turn off the "Light" option in the settings |
| Camera applications | Background work of autofocus | Banning work in the background |
| Weather widgets | Storm warning indication | Set up widget notifications |
Resetting and system update
If none of these methods worked, there may have been a build-up of bugs in the system that required a full reset or upgrade.The outdated version of MIUI firmware may contain bugs that have been patched in newer releases. Check for updates in Settings β About Phone β MIUI version.
Updating the system is the safest way to fix software errors, but if you are already using the latest version, reset your settings, and make sure to back up all important data before doing so, as this process will remove all information from the device.
To reset, go to Settings β Advanced Settings β Restore and Reset. Select Settings Reset. Once rebooted, the phone will return to factory status and all third-party settings causing the conflict will be removed, guaranteed to eliminate the software causes of the malfunction.
π‘
Before you complete a reset, try simply clearing the Settings cache. Go to Apps β All Apps β Settings β Memory β Clean. This often resolves minor glitches without losing personal data.
After reset, take your time to install all the applications at once. Turn them on one by one and check the flashlight to help identify the culprit if it happens again. Clean installation often works wonders, returning stability to the gadget.
π‘
Full reset (Factory Reset) is a radical, but the most effective way to eliminate software errors that cause incorrect behavior of hardware modules of the smartphone.