You plugged your headphones into a Xiaomi smartphone, but when they're disconnected, your phone still thinks they're connected? The headphone icon is on the screen, the sound is only through the headphone speaker, and the microphone doesn't work in the calls? This is a typical problem for Redmi, Poco and Mi owners, which arises from an audio jack malfunction, a software bug, or mechanical damage to contacts. In 80% of cases, it can be fixed by yourself without going to the service center.
In this article, we will discuss 5 proven ways to remove headphone mode on Xiaomi β from simple (reboot, clean the connector) to advanced (reset audio settings via the engineering menu). Also, you will learn why the smartphone βhangsβ in headphone mode and how to prevent the problem from recurring. Instructions are relevant for all Xiaomi models, including the Redmi Note 12/13, Poco X5/F5, Mi 11/12 and older devices on MIUI 12-14.
Why Xiaomi is not leaving headphone mode?
The headphone mode is activated automatically when wired headphones are connected to a 3.5 mm jack (or Type-C on models without a separate audio input). If after removing the headphones, the smartphone continues to "see" them, the reasons may be as follows:
- π Pollution or oxidation of contacts in the audio connector β dust, moisture, or corrosion create a false signal about the connected device.
- π Software failure in service media.audio_flinger (liaison).
- π§ Mechanical damage to the connector β for example, after a fall or sloppy connection of headphones.
- π± The conflict with firmware - bugs in MIUI (especially after updates).
- π Failure in audio settings β for example, forced redirection of the audio stream to headphones.
On Type-C models (such as the Xiaomi 13 or Poco F4), the problem is often due to the incorrect operation of the digital audio interface, in which case the smartphone can βhangβ in headphone mode even when connecting a charger or an external device via OTG.
β οΈ Warning: If headphone mode appears after a phone drop or moisture hits, don't try to clean the connector yourself, which can aggravate the damage.
Method 1: Reboot and physical check of the connector
Start with the simplest one, forced reboot, which works 30 percent of the time if the failure is caused by a temporary shutdown.
How to Reboot Xiaomi correctly:
- Press the Power + Volume button up for 10-15 seconds until the screen goes out.
- Wait 30 seconds (donβt turn on your phone right away!)
- Turn on the device with the power button.
If the reboot didnβt help, check the physical condition of the connector:
- π¦ Light the connector with a flashlight - inside there should be no foreign objects (dust, fibers, debris).
- π§΄ Clean the connector with a dry toothpick (do not use metal objects!).
- π§ If the connector is wet, place the phone in a dry place for 1-2 hours (for example, next to the fan).
Turn off the phone.
Use only wooden/plastic tools
Do not blow into the jack with your mouth (moisture!)
Do not use alcohol or liquids
-->
On Type-C models (such as the Xiaomi 12T), the problem may be a faulty cable. Try connecting other headphones or charging β if the headphone mode is activated accidentally, the connector is most likely to blame.
Method 2: Reset the sound settings through the engineering menu
If physical cleaning didnβt work, try resetting your audio system through a hidden engineering menu, which works on 90% of Xiaomi devices and doesnβt require root rights.
Instructions for MIUI 12-14:
- Open the Phone app and enter the combination: ##36446337###
- You will be taken to EngineerMode. Go to Hardware Testing β Audio.
- Select Headset Mode and press Disable.
- Return to the main menu and select Clear Audio Settings.
- Reboot the phone.
If the combination ##36446337## doesn't work, try the alternative code:
##4636##β οΈ Warning: Do not change other options in the engineering menu unless you are sure of their purpose. Incorrect settings can lead to loss of sound or microphone.
What to do if the engineering menu is not opened?
Method 3: Disabling headphone mode via ADB
If standard methods donβt work, try sending a command via ADB (Android Debug Bridge), which is suitable for advanced users and requires a computer.
Step-by-step:
- Download and install ADB Tools on PC.
- On your phone, turn on USB Debugging: Go to Settings β About Phone β MIUI version and tap 7 times on this item to activate Developer Mode. Go back to Settings β Additional β For Developers and enable USB Debugging.
cmd
adb.exe
adb devices(The name of your device should appear).
adb shell settings put global headset_connected 0Reboot the phone.
If the problem is caused by a service failure audio_flinger, It will also help the team:
adb shell pm clear com.android.providers.mediaπ‘
After completion ADB-And then you have to check the microphone, and sometimes the audio reset will cause the microphone to temporarily shut down in the calls.
Method 4: Update or roll back firmware
If the headphone mode came after the MIUI update, a firmware bug could be the cause.
- π Reverse to the previous version (if the problem started after the update).
- π² Installation of the last stable firmware (if the bug has already been fixed in new builds).
How to update the firmware manually:
- Download the latest version of MIUI for your model from the official Xiaomi website.
- Go to Settings β About the phone β System update.
- Click on the three dots in the upper right corner and select Select the firmware file.
- Specify the downloaded file and wait for the installation to be completed.
If you want to roll back to the previous version, use the Mi Flash Tool (unlocked bootloader required).Instructions for unlocking can be found on the 4PDA forum for your model.
| Xiaomi model | The Last Stable Firmware (2026) | Famous sound bugs |
|---|---|---|
| Redmi Note 12 | MIUI 14.0.6 | Headphone mode after connecting Bluetooth headphones |
| Poco X5 Pro | MIUI 14.0.4 | False positives when using Type-C OTG |
| Xiaomi 13 | MIUI 14.0.8 | Failure after upgrade from MIUI 13 |
| Redmi 10C | MIUI 13.0.12 | Hanging in headphone mode at high humidity |
MIUI updates
Connecting new headphones
Phone drop/hit
Moisture intrusion
By itself (without apparent reason)
Other (write in the comments)
-->
Method 5: Hardware Repair (If Nothing Helped)
If all the software methods have been tried, but the headphone icon is still burning, the problem is 100% hardware.
- π Damage to contacts in the audio connector (most often on models with 3.5 mm).
- π§ Failure of the audio codec (the microchip responsible for sound processing).
- π± Problems with the motherboard (for example, after a short circuit).
Cost of repairs in service centers:
- π οΈ Replacement of audio jack - from 800 to 1,500 β½.
- π§ Repair/replacement of audio codec β from 2,000 to 4,000 β½.
- π± Diagnosis of the motherboard - from 500 β½ (squat).
On Xiaomi models with Type-C (for example, Xiaomi) 12/13, Poco F5) Replacement of the connector is more expensive - before 2 500 β½, Because it requires a chip-level brazing.
β οΈ Warning: If you decide to repair your phone yourself, remember that improper soldering or replacement of the connector can lead to complete loss of sound or damage to the motherboard. IP53/IP68 (for example, Xiaomi 13 Pro) self-repair cancels the warranty.
How can we prevent the problem from recurring?
To prevent the headphone mode from appearing on its own, follow these recommendations:
- π Carefully connect the headphones - do not insert the plug at an angle and do not pull the wire.
- π« Avoid cheap headphones with a bad plug β they often damage contacts.
- π§ Do not use your phone in wet conditions (such as in the bathroom or in the rain).
- π± Update regularly MIUI β In new versions, bugs with sound are often corrected.
- π Periodically clean the connector with a dry brush or compressed air (canister).
On models with Type-C, it is also recommended:
- Use high-quality cables with USB-IF certification.
- Do not connect incompatible OTG-devices (for example, old flash drives without an adapter).
π‘
If headphone mode only appears when you connect Bluetooth headphones, the problem lies in the Bluetooth settings, not the audio jack. In this case, resetting Bluetooth settings in the Settings menu β Connections β Bluetooth β Additional β Resetting.