How to change the type of headphones on Xiaomi: from wired to Bluetooth and back

You've connected your headphones to a Xiaomi smartphone, but your phone persists in not recognizing them correctly? The sound goes through the speaker instead of the headphones, the microphone doesn't work, or the status bar shows the wrong type of device? This problem is familiar to many owners of Redmi, POCO or Mi devices β€” especially after the MIUI update or when using non-original accessories. In 90% of cases, it's not a hardware failure, but a software error determining the type of device connected.

In this article, you will find all the working ways to change the type of headphones on Xiaomi, from standard MIUI settings to hidden engineering menus and manual editing of configuration files. We will separate wired headphones (3.5 mm, USB-C, Lightning), Bluetooth headsets and hybrid devices (for example, Xiaomi Buds with support for wired mode).

Why Xiaomi is not correctly determining the type of headphones

The problem with Xiaomi’s headphone type recognition is usually due to one of three reasons:

  • πŸ”Œ Hardware incompatibility: non-original headphones with non-standard slinging of the connector (especially important for the use of electronic devices). USB-C and 3.5 mm with microphone).
  • πŸ€– Failure in MIUI: After updating the firmware or resetting the system β€œforgets” the profiles of connected devices.
  • πŸ”§ Driver conflict: If other headphones of the same type (for example, several Bluetooth headsets) have previously been connected, the system can confuse them.

The error is most often expressed as follows:

  • 🎧 The sound goes through the phone's speaker, although the headphones are connected.
  • 🎀 The headphone microphone does not work (the built-in microphone of the smartphone is used in calls).
  • ⚠️ The status bar displays the icon β€œearphones”, but there is no sound.
  • πŸ”„ The type of device spontaneously changes (for example, from β€œwired” to β€œBluetoothΒ»).

On devices with MIUI 12–14 The problem is compounded by aggressive power optimization, which can "disable" the drivers of sound devices in the background. 3.5-mm connector (for example, Xiaomi) 12/13 series errors USB-C-headphones meet in 3 more often due to the need for digital signal processing.

πŸ“Š What type of headphones do you use with Xiaomi?
3.5 mm wired
Wired USB-C wired
Bluetooth
Bezelny (TWS)
Other

Method 1: Resetting the sound settings in MIUI

The easiest and safest method is to reset the audio settings to factory settings, which helps in 60% of cases when the problem is caused by a software failure, not hardware incompatibility.

Instructions:

  1. Open the Settings. β†’ Sound and vibration.
  2. Slip on the three dots in the upper right corner and select Reset.
  3. Confirm the action (you may need to enter the unlock password).
  4. Reboot your smartphone and reconnect the headphones.

If this method does not work, check if Monozvook mode is activated (in the same audio settings), sometimes MIUI automatically turns it on when a "non-standard" device is detected.

β˜‘οΈ Preparation for sound reset

Done: 0 / 4

Method 2: Manual switching of headphone type through the engineering menu

If resetting didn’t work, try manually specifying the types of connected devices through Xiaomi’s hidden engineering menu, which works on all Qualcomm-powered devices (including the Snapdragon 4xx/6xx/7xx/8xxx).

Attention: improper actions in the engineering menu can cause malfunctions in the sound system.

⚠️ Warning: Before entering the engineering menu ##36446337##, make sure the headphones are connected. If the menu doesn't open, your model uses a MediaTek processor - see method 4.

Instructions for Qualcomm:

  1. Open the Phone app and enter the combination ##36446337##.
  2. Go to the Hardware Testing β†’ Audio section.
  3. Select Headset Mode and install the correct type: 🎧 Headset – standard headphones with a microphone. 🎡 Headphone – headphones without a microphone. πŸ”Œ USB Audio - for USB-C headphone.

Save the settings and restart the phone.

If the headphone type is lost again after the reboot, try disabling optimization for the Media app (which handles sound processing) in the battery settings.

What to do if the engineering menu is not opened?
If ##36446337## doesn't work, your device can use a MediaTek processor or have a locked engineering menu in the firmware, in which case try alternative combinations: - #4636## (general test menu) - #8255## (for some models) POCO) Or use the 4c method. ADB-team.

Method 3: Change the type of Bluetooth headset

For Bluetooth headphones (such as Xiaomi Buds, Redmi AirDots, or third-party), the problem often lies in the wrong connection profile. MIUI can define the headset as a β€œphone” (HFP) instead of β€œmultimedia” (A2DP), which causes the sound to go with poor quality or only to one headphone.

How to fix it:

  1. Open Settings β†’ Connected devices β†’ Bluetooth.
  2. Put the badge on. βš™οΈ near your headset.
  3. Turn off the Calls and Audio option, then turn it on again.
  4. In the Profiles section, make sure you are active: 🎢 A2DP (music) πŸ“ž HFP (call-in)

If the headset is defined as "earphones" but the sound only goes to one channel, check the Audio Effects settings in the same Bluetooth menu. Sometimes MIUI forcefully turns on Monosound mode for "compatibility."

Problem.Probable causeDecision
The sound is only in one headphone (Bluetooth)Monosound mode or A2DP profile failure activatedDisable monosound in the sound settings, reconnect the headset
The microphone is not working (wired headphones)Incorrect connector pinning or driver failureUse the engineering menu or ADB-teams (mode 4)
The sound goes through the speaker, although the headphones are connectedMIUI does not recognize the type of deviceResetting sound settings or manually switching in the engineering menu
Bluetooth headset connects as a β€œphone” rather than a β€œheadphone”HFP/A2DP Profile ConflictReset Bluetooth settings or remove the device and reconnect

Method 4: ADB-commands for forced change of headphone type

If standard methods fail, you can manually reconfigure the sound system via ADB (Android Debug Bridge), a method that is suitable for advanced users and requires connecting the phone to a computer.

You'll need:

  • πŸ–₯️ Computer with ADB-tools installed.
  • πŸ“± Included Debugging by USB on a smartphone (Settings) β†’ The phone. β†’ Version. MIUI β€” Tap 7 times, then return to the Additional Settings β†’ For developers).
  • πŸ”Œ Connected headphones (wired or Bluetooth).

Instructions:

  1. Connect your phone to your PC and open the command line (or Terminal on Mac/Linux).
  2. Enter the command to check the connection: Adb devices must display the serial number of your device.
  3. Get a list of audio devices: adb shell dumpsys media.audio_flinger Look for lines with headset, headphone or usb_audio.
  4. Forced device type (example for wired headphones): adb shell settings put global headset_type 1 Where 1 β€” type: 0 β€” phone-phone 1 β€” headphones 2 β€” microphone-headset 3 β€” Bluetooth headphones 4 β€” USB-C headphones

Reboot the phone.

⚠️ Attention: Infidels ADB-If the sound is completely lost after the commands are executed, reset the phone to the factory settings (with loss of data).

adb shell settings delete global headset_type

This will bring back automatic identification of the type of headphones.-->

Method 5: Checking the hardware compatibility of headphones

If software methods didn't help, the problem may be incompatibility of the headphones with your smartphone.

  • 🎧 Headphones with non-standard 3.5 mm sling (for example, some Sony or Bose models use the same equipment). CTIA instead OMTP).
  • πŸ”Œ USB-C headphones without Xiaomi support (especially cheap no-name models).
  • πŸ”— 3.5 mm adapters β†’ USB-C chipless (MIUI They may not recognize them as a sound device).

How to check compatibility:

  1. Connect your headphones to another device (like a laptop or a smartphone from another brand), and if the problem recurs, the headphones are to blame.
  2. Check the connector sling: πŸ”΄ OMTP: Left channel - Contact 1, Right - Contact 2, Earth - Contact 3, Microphone - Contact 4. πŸ”΅ CTIA: Left channel - Contact 1, Right - Contact 2, Microphone - Contact 3, Earth - Contact 4.

Xiaomi

CTIA

OMTP

USB Audio Class 1.0/2.0

If the headphones are incompatible, there are two solutions:

  1. Use an adapter with the correct pinning (e.g., OMTP→CTIA).
  2. Buy headphones with support for Xiaomi (the description should indicate compatibility with MIUI).

A common mistake of users is to try to β€œcheat” the system by connecting headphones through a splitter (for example, to simultaneously charge and listen to music). Xiaomi blocks the sound in such cases due to the risk of damage to the port. Use only certified accessories with support for USB-C Audio + Power Delivery.

If neither of these methods worked, there are two options:

  1. Reset your phone to factory settings (with data loss).
  2. Contact the Xiaomi service center – the problem may be in a damaged audio chip or connector.

FAQ: Answers to Frequent Questions

❓ Why Xiaomi defines my Bluetooth headphones as a β€œphone” rather than a β€œheadphoneΒ»?
This is due to a conflict of HFP (for calls) and A2DP (for music) profiles. To fix: Forget the device in Bluetooth settings. Turn off the headphones and turn them on again. Connect them to the phone, but do not confirm access to contacts and calls (cancel the request). Manually activate the A2DP profile in the Bluetooth device settings. If the problem persists, update the headphone firmware (if supported).
❓ Can you change the type of headphones to Xiaomi without root rights?
Yes, all of the methods described in this article (except for editing system files) work without root. For most tasks, it will be enough: Reset audio settings. ADB-Root may only be needed to edit files in /system/etc/audio_*, But it's risky and doesn't guarantee results.
❓ Why After Updating MIUI The headphones stopped working?
MIUI updates often reset audio device drivers. Try: Reset audio settings (method 1). Clear the Media app cache (Settings β†’ Apps β†’ All Apps β†’ Media β†’ Storage β†’ Clear cache). If you use Custom Recovery (TWRP), swipe the Audio Mod module for your version of MIUI. If the problem comes after a major update (e.g., from MIUI 13 to MIUI 14), your headphone model may no longer be supported. Check compatibility on forums (e.g. Xiaomi.eu).
❓ How to make Xiaomi recognize headphones with a microphone as a headset?
If the microphone of the headphones doesn't work and the phone defines them as "earphones without a microphone": In the engineering menu (##36446337##) Choose Headset Mode β†’ Headset with Mic. ADB Adb shell settings put global settings headset_type 2 Check the scaling of the connector (see method) 5). If the microphone is connected to 4-I'm in contact, and the phone's waiting. 3-It's gonna sound, but it's not gonna sound. USB-C Headphones with microphone may require firmware with support USB Audio Class 2.0 (Available on custom firmware such as Pixel Experience).
❓ Why in games sound goes through the speaker, and in music – through headphones?
This is a feature of MIUI: some applications (especially games) ignore the system settings of the sound and output the audio to the main speaker. Solutions: In the game settings, find the audio output option and select Headphones. Use the SoundAssistant app (available in the Mi App Store) to force audio redirection. For root users: edit the file /system/build.prop by adding the line: persist.audio.fluence.speaker=false This will turn off automatic switching to the speaker.