How to permanently disable the light sensor on Xiaomi Redmi 9: from settings to physical locking

Why do users want to turn off the light sensor on Redmi 9 โ€“ and should they?

The ambient light sensor on Xiaomi Redmi 9 automatically adjusts the brightness of the screen depending on external conditions. In theory, this is convenient: in a dark room the screen dims, in the sun it becomes brighter. But in practice, many owners experience annoying brightness spikes when the sensor is triggered too sharply or mistakenly, for example, when the phone is tilted in the hands or when the shadow from the finger is hit.

Another common reason is battery saving: Automatic brightness control requires constant sensor operation and processing by the processor, which consumes up to 3-5% of the charge per day when used actively. Finally, some users simply prefer fixed brightness, especially if they work with graphics, video or games where stable display is critical.

However, before turning off the sensor, two key points should be considered: first, on some versions of MIUI, after turning off the automatic brightness, a manual slider disappears in the notification curtain; secondly, when the sensor is physically blocked (for example, tape), other sensors located nearby may fail.

Method 1: Turning off automatic brightness via MIUI settings

The easiest and safest method is to software disable the feature in the phone's menu.It works on all versions of Redmi 9 (including Redmi 9A/9C/9T models) with MIUI 11-14 firmware.

  1. Open the settings (cog icon on the desktop).
  2. Go to the Screen section (or Display in some localizations).
  3. Slip on Brightness.
  4. Turn off the Automatic Adjustment (or Adaptive Brightness) switch.
  5. Manually set a comfortable brightness level with a slider.

If after these actions, the brightness slider disappeared from the notification panel, return it like this:

  • ๐Ÿ“ฑ Go to Settings. โ†’ Notification panel and status bar.
  • ๐Ÿ”ง Select Control Panel Settings (or Quick Settings).
  • ๐Ÿ” Find Brightness in the list and drag it to the active area.

The brightness slider appeared in the notification curtain |

The brightness of the screen stopped spontaneously changing |

In the display settings, the tick "Automatic adjustment" is removed |

The phone does not overheat when manually adjusting the brightness-->

โš ๏ธ Note: On some custom firmware (e.g. Pixel Experience or LineageOS), the Auto Adjustment option may be in the Settings section. โ†’ System system โ†’ Gestures โ†’ If you don't find it, check the firmware version in Settings. โ†’ The phone.

Method 2: Use of an engineering menu (for power users)

If a standard shutdown doesn't work (for example, the brightness still jumps), you can lock the sensor through an engineering menu, which requires caution, since incorrect changes can lead to malfunctions in the screen.

Instructions for Redmi 9:

  1. Open the Phone app and enter the combination: ##36446337## (this is the code to access the LCD Test menu).
  2. In the menu that opens, select Light Sensor.
  3. Click Disable or uncheck Auto Brightness.
  4. Save the changes and restart the phone.

Alternative code for new versions of MIUI:

##6484##

(Mention MTK Engineer Mode if the phone is on a MediaTek processor)

What to do if the engineering menu is not opened?
If nothing happens after you enter the code, check: 1. Firmware Version: on MIUI 14+, some engineering codes are blocked. Try entering the code through the MTK Engineering Mode app (available in the Play Market). 2. Superuser rights: If the phone is rooted, use the QuickShortcutMaker app to find hidden menus. 3. Firmware region: on Chinese versions of MIUI, the engineering menu can be blocked. The solution is global or European firmware.

Engineering menu codeAppointmentWorks on Redmi 9?
##36446337##LCD and sensor testYes (MIUI 12-13)
##6484##MTK Engineer ModeYes (for MediaTek only)
##4636##Battery informationNo (not associated with the light sensor)
##2664##Sensor testPartially (shows sensor values)

Method 3: Lock the sensor physically (scotch, sticker, case)

If the software didn't work, you can glue the light sensor down, and it's located at the top of the screen, next to the front camera, and the exact location depends on the model.

  • ๐Ÿ“ฑ Redmi 9 (standard): sensor to the right of the camera (when looking at the screen).
  • ๐Ÿ“ฑ Redmi 9A/9C: sensor to the left of the camera, next to the speaker.
  • ๐Ÿ“ฑ Redmi 9T/9 Power: sensor in the center of the upper frame.

Locking materials:

  • โœ”๏ธ Black seal (not allowing light, easily removed).
  • โœ”๏ธ Sticker from the old one SIM-map (thin, does not interfere with the proximity sensor).
  • โŒ Scotch or transparent tape (may pass infrared radiation).
  • โŒ Paint or marker (risk of damaging the oleophobic screen covering).

Yeah, it helped.|

Yeah, but the effect was temporary.|

No, I'm afraid I'll damage my phone.|

I tried it, but the sensor still worked.-->

โš ๏ธ Attention: On Redmi 9, the light sensor is combined with the proximity sensor (turns off the screen during a call). If you tape it completely, you can have problems with the sensor during conversations. The solution is to use a sticker with a small hole (0.5 mm) for an infrared sensor.

Method 4: Disconnect via ADB (for advanced users)

If you have access to USB debugging (ADB), you can turn off the sensor at the system level, which is reversible and doesn't require root rights.

  • ๐Ÿ–ฅ๏ธ A computer with installed Xiaomi drivers and ADB Tools.
  • ๐Ÿ“ฑ Included debugging by USB on the phone (Settings) โ†’ The phone. โ†’ Version. MIUI โ€” Tap 7 times, then return to the additional โ†’ For developers โ†’ Debugging by USB).
  • ๐Ÿ”Œ USB-cable (preferably original).

Step-by-step:

  1. Connect the phone to the PC and confirm the debugging permission.
  2. Open the command line (Windows) or terminal (macOS/Linux) in the adb folder.
  3. Enter the command to check the connection: adb devices (should appear serial number of your Redmi 9).
  4. Turn off automatic brightness: Adb shell settings put system screen_brightness_mode 0
  5. Set a fixed brightness (for example, 50%): adb shell settings put system screen_brightness 128 (significance 0 before 255).

To return automatic adjustment, use the command:

adb shell settings put system screen_brightness_mode 1

๐Ÿ’ก

If the brightness changes after the ADB shutdown, check the settings of the Google app (on some firmware it override system settings). Go to Settings โ†’ Apps โ†’ Google โ†’ Storage โ†’ Clear data and restart the phone.

Method 5: Remove the sensor software (requires root rights)

For users with unlocked bootloader and root access, there is a radical method of disabling the sensor at the kernel level.This will permanently remove the automatic brightness feature, but can lead to unstable MIUI operation or update errors.

Instructions:

  1. Install a file manager with root access (such as Root Explorer or Solid Explorer).
  2. Go to /system/etc/sensors or /vendor/etc/sensors
  3. Find the file. light_sensor.conf (or als_ps_config.xml).
  4. Rename him in light_sensor.conf.bak or remove.
  5. Reboot the phone.

After that, the sensor will stop working, and the settings will disappear, "Automatic adjustment." Importantly, before deleting the file, back it up on your computer!

๐Ÿ’ก

Deleting the sensor system files is a last resort, and on some firmware, it can lead to a com.android.systemui error and permanent reboots, so if the phone starts to glittle after you delete it, restore the file from the backup or reflash the device.

What if the light sensor shuts down on its own?

Sometimes automatic brightness control stops working without you interfering.

Problem.Possible causeDecision
Brightness is at a minimum.Failure of the sensor (pollution, damage)Wipe the sensor with alcohol, check in ##6484###
The brightness slider disappeared from the curtainMIUI update resets settingsReturn the slider through Settings โ†’ Notification panel
The brightness changes in jerksConflict with the shell (for example, after installing the launcher)Reset the launcher settings or roll back to the standard
Sensor's not responding to light.Hardware malfunction (fall, ingress of moisture)Check at the service center (replacement of the sensor) ~1500-2000 โ‚ฝ)

If the sensor stopped working after the MIUI update, try:

  • ๐Ÿ”„ Reset screen settings: Settings โ†’ System system โ†’ Resetting settings โ†’ Reset the display settings.
  • ๐Ÿ“ฅ Reverse to the previous version of the firmware through the Mi Flash Tool.
  • ๐Ÿ› ๏ธ Install a custom core (e.g., FrancoKernel) if the phone is rooted.

Alternatives to switching off the light sensor

Before you completely block the sensor, try these solutions:

  • ๐ŸŒ“ Sensitivity setting: In some firmware (for example, MIUI 13) the sensor response rate can be adjusted. โ†’ Special facilities โ†’ Light sensor. โ†’ Sensitivity.
  • ๐Ÿ”„ Custom firmware: Firmware like Pixel Experience or LineageOS offer more flexible brightness settings, including manual control without jumping.
  • ๐Ÿ“ฑ Lux Auto Brightness (allows you to create your own brightness profiles), Velocity (blocks automatic adjustment at the application level), Tasker (you can program fixed brightness on a schedule).
  • ๐Ÿ›ก๏ธ Protective glass with a hole: Some glasses (for example, from Spigen) have a cutout for the sensor, but block some of the light, reducing its sensitivity.

If you are annoyed by the brightness spikes only in certain apps (like YouTube or TikTok), try:

  1. Turn off autobrightness directly in the application settings (if there is such a point).
  2. Add the app to the "exclusions" via Settings โ†’ Applications โ†’ Special Access โ†’ Battery Optimization.
  3. Use Reading mode in MIUI (it fixes brightness at a comfortable level).

FAQ: Frequent questions about turning off the light sensor on Redmi 9

Can I turn off the light sensor without root rights?
Yes, most users only need 1-3 of this article (MIUI settings, engineering menus, or physical locking). Root is only required to delete the sensor system files (method 5).
Why did the screen become dim after turning off the automatic brightness?
Probably manually set the minimum brightness. Check the settings in Settings โ†’ Screen โ†’ Brightness and move the slider to a comfortable level. Also make sure that the power mode is not turned on.