How to turn off the sensor on the Xiaomi smartphone: all working methods

Disabling the touch screen on Xiaomi, Redmi or POCO smartphones can be necessary in a variety of situations, from protecting the device from accidental pressing to diagnosing hardware malfunctions, for example, if the display is damaged and reacts to touch spontaneously, or you want to prevent children from accessing the phone without completely turning off. In this article, we will examine all the current methods, from standard MIUI functions to hidden commands for power users.

Itโ€™s important to understand that completely disabling the sensor (not just locking the screen) is not a typical option in smartphone settings. Manufacturers do not provide such a feature out of the box, so most methods require access to an engineering menu, ADB-We'll describe each option in detail, with the level of difficulty and the possible risks. If you're a beginner, start with the first way, if you have experience with Android, pay attention to advanced methods.

Temporary sensor lock via "Package flashlight mode"

The easiest and safest way is to use the built-in Pocket Mode, which turns off the sensor when the screen is off. This is not a complete shutdown, but prevents accidental taps in your pocket or bag.

How to activate:

  • ๐Ÿ“ฑ Open the Settings. โ†’ Screen. โ†’ Advanced settings.
  • ๐Ÿ” Find the option Pocket flashlight mode (on some firmware โ€“ Protection against accidental pressing).
  • ๐Ÿ”„ Turn on the slider and select sensitivity (e.g. High for full lock).

Limitations of the method:

  • โŒ The sensor will work with the screen on.
  • โŒ Not suitable for diagnosing a faulty display.
  • โœ… Safe for all Xiaomi models (including the Redmi Note 12, POCO X5).

๐Ÿ’ก

If the option is not available in the settings, check the version of MIUI. On firmware older than 12.5, the function may be called "Block in your pocket" and be in Settings โ†’ Lock and Protection.

2. Disable the sensor via the engineering menu (#3646633##)

The Engineering Mode allows you to test the hardware components of a smartphone, including the touch screen, which is suitable for temporarily turning off the touchscreen without root rights, but requires caution - incorrect settings can disrupt the display.

Step-by-step:

  1. Open the Phone app and type the combination: ##3646633## (on some models - ##4636##).
  2. Go to the Hardware Testing โ†’ Touch Screen section (can be called Sensor or TP Test).
  3. Find the Touch Panel Switch (or Disable Touch) option and set the Off value.
  4. Confirm the changes and restart the device.

Warnings:

โš ๏ธ Attention: On some firmware MIUI 14+ The engineering menu can be blocked. If nothing happens after you enter the code, try using the ADB-teams (described below).

Xiaomi modelDoes the engineering menu supportAlternative method
Redmi Note 10/11โœ… Yes.ADB or MTK Engineering Application
POCO F4/F5โš ๏ธ Partially (requires root)Fastboot teams
Xiaomi 13/14โŒ No (locked)Only ADB.
๐Ÿ“Š What method of disabling the sensor you need?
Temporary locking (for example, for pockets)
Complete shutdown for repairs
Continuous shutdown
I don't know, just curious.

3.Use of ADB-commands to turn off touchscreen

If the engineering menu is not available, the most reliable way is to disable the sensor via Android Debug Bridge (ADB), a method that works on all Xiaomi models, but requires a PC connection and enabled USB debugging.

What you need:

  • ๐Ÿ–ฅ๏ธ Computer with installed ADB-driver.
  • ๐Ÿ“ฑ Included debugging by USB (Settings โ†’ The phone. โ†’ Version. MIUI โ†’ 7 times press to unlock the developer mode, then Settings โ†’ Additionally. โ†’ For developers โ†’ Debugging by USB).
  • ๐Ÿ”Œ USB-cable (preferably original).

Instructions:

  1. Connect your smartphone to your PC and confirm the debugging permission on your phone screen.
  2. Open the command line (Windows) or terminal (macOS/Linux) and type:
adb shell


su




echo 0 > /sys/class/touchscreen/unified_touch/disable_touch

  1. If the command fails, try an alternative path (depending on the model):
echo 0 > /sys/bus/platform/drivers/fts_ts/disable_touch

To get the sensor back to work, replace the 0 by 1 commands above.

โš ๏ธ Note: On some devices after the sensor is turned off ADB Fingerprint unlock may stop working. To avoid this, disable biometric authorization in settings before executing commands.

USB debugging enabled

Installed ADB drivers on PC

The smartphone is connected in the mode "File transfer"

Battery charge > 50%-->

Disable the sensor via TWRP (for advanced users)

If your Xiaomi has a custom TWRP recavator installed, you can turn off the sensor by editing system files.This method is suitable for permanent shutdown, but requires an unlocked bootloader and is dangerous for beginners.

Step-by-step:

  • ๐Ÿ”ง Boot in. TWRP (hold on to the power + Volume Up when switched on).
  • ๐Ÿ“ Go to Advanced. โ†’ File Manager.
  • ๐Ÿ” Find the file. /system/usr/idc/[name sensor].idc (e.g. fts.idc for Redmi Note) 9).
  • โœ๏ธ Open the file and replace the touch.deviceType line = touchScreen on touch.deviceType = none.
  • ๐Ÿ’พ Save the changes and reboot.

Risks of the method:

  • โŒ Incorrect editing can cause the screen to lose its sensitivity forever.
  • โŒ Some of the updates after the update MIUI change.
  • โš ๏ธ It is recommended to make a backup section /system before editing.
How to find the correct.idc file?
In TWRP, open the terminal and type in the command: ls /system/usr/idc/ This will display a list of all the sensor configuration files. Usually the file you want contains the name of the chip (for example, goodix.idc, synaptics.idc).

5. Sensor locking applications (without root)

If you need to temporarily disable the sensor without complex manipulations, you can use third-party applications. They don't turn off the touchscreen completely, but block the presses on top of the standard interface.

Top.-3 applications:

  • ๐Ÿ”’ Touch Lock creates a transparent overlay that blocks all touches, works without root, but requires permission to overlay other applications.
  • ๐Ÿ›ก๏ธ NoTouch โ€“ allows you to configure screen areas that will ignore the taps (useful for gaming or reading).
  • ๐Ÿ“ฑ Sensor Disabler is a more advanced tool, but requires a ADB-permissions for working with sensors.

How to set up Touch Lock:

  1. Install the app from Google Play.
  2. Launch it and give access to Special Opportunities.
  3. Activate the lock via a notification or widget.

โš ๏ธ Note: Apps donโ€™t turn off the sensor at the hardware level, and in some cases (such as a damaged display), they may not work.

6. Hardware Sensor Shutdown (for repair)

If the touch screen is faulty and responds to ghost touches, it can be physically disabled by disconnecting the plume from the motherboard, a method used in service centers that requires disassembling the device.

How it works:

  • ๐Ÿ› ๏ธ Touch screen connected to board via flexible plume (FPC-cable).
  • ๐Ÿ”Œ If you disconnect this plume, the touchscreen will stop working, but the display itself will remain on.
  • โš ๏ธ Without Xiaomiโ€™s disassembly experience, you can damage other components (e.g., battery or camera).

When it's relevant:

  • ๐Ÿ”ง Diagnostics of malfunction (checking whether sensor glitch is related to hardware breakdown).
  • ๐Ÿ“ฑ Temporary use of the phone without touch screen (for example, through the OTG-mouse).
  • ๐Ÿ’ฐ Savings on repairs if the sensor is completely out of order.

๐Ÿ’ก

Physically turning off the sensor is the only way to completely de-energize the touchscreen without software restrictions. USB-mouse ADB-team.

Frequent Mistakes and How to Avoid Them

When you turn off the sensor, you often have typical problems, and here are the most common ones and the ways you can solve them:

Problem.Reason.Decision
The sensor does not shut down via ADBThe wrong path to the sensor fileCheck the list of devices in /sys/class/touchscreen/ or /sys/bus/i2c/drivers/
After restarting, the sensor is back on.Changes not saved in the systemUse chmod to change file rights or edit through Magisk
Phone does not respond to commands after sensor shutdownUSB OTG or ADB is disabledConnect. USB-Mouse in advance or use adb reboot to reboot

Critical information: On Qualcomm Snapdragon-based devices (e.g., POCO X3, Redmi K40), the path to sensor files may be different. If standard commands don't work, check logcat with touch filter.

Can I turn off the sensor on Xiaomi without root?
Yes, but only temporarily. This will work: Pocket flashlight mode (blocks random taps). ADB-Applications like Touch Lock (blocks pressing over the interface) There are no reliable ways to permanently shut down without root rights.
Why did the screen stop working after the sensor was turned off through the engineering menu?
You probably changed the wrong setting. There are options on the engineering menu for testing the display (LCD Tests that may conflict with sensor settings. To get it back: Reset the engineering menu to the factory menu. If the screen doesn't respond, plug the phone into your PC and use it. ADB-Command: Adb shell am start -n com.android.settings/.Settings This will open the settings where you can return the sensor settings.
How to control a Xiaomi phone without a sensor?
If the sensor is turned off, there are several ways to control it: ๐Ÿ–ฑ๏ธ USB-(via mouse) OTG-adapter). ๐ŸŽฎ Gamepad (e.g. Xiaomi Game Controller). ๐Ÿ’ป ADB-PC commands (e.g., adb shell input tap x y for emulating presses). ๐Ÿ”„ Voice Assistant (Google Assistant or Xiao) AI). For permanent use without a sensor, it is recommended to connect a Bluetooth keyboard.
Will Face ID or fingerprint work after the sensor is turned off?
Depends on the method of disconnection: โœ… If the sensor is disabled through an engineering menu or applications, the biometrics will work. โŒ If the sensor is off through ADB or TWRP โ€” The fingerprint scanner (built into the screen) will cease to function. ๐Ÿ”„ Face ID (Facial recognition is not sensor dependent and will work in any case.
Can I turn off the sensor at all times so that it does not turn on even after a reboot?
Yes, but it will require: Unlock the bootloader and install TWRP. Edit the sensor configuration file (as described in the TWRP section). Or flash a modified kernel through Magisk that ignores the touchscreen. On some models (for example, Xiaomi 12T), this can lead to a loss of warranty.