Computer Can't See Xiaomi Through USB, But Charging Works: Complete Troubleshooting Guide

Why is Xiaomi not defined by a computer via USB, even though charging is on?

You have connected a Xiaomi smartphone (be it Redmi Note 12, POCO X5 or Mi 11 to the PC via USB-And the cable, but Windows doesn't see the device in My Computer, and the task manager shows it as Unknown Device, and the charging light goes up and the battery is replenished, and this problem affects 37 percent of users. MIUI (According to the survey of 2023) and has both software and hardware reasons.

80% of cases are due to the wrong connection mode (by default Xiaomi uses “Only Charge”), outdated drivers or conflict of MTP/PTP protocols. Less commonly, physical damage to the cable or port. In this article, we will analyze all possible solutions, from simple to advanced, including working with ADB and editing the Windows registry.

Before you start the diagnosis, make sure that:

  • 🔌 Use the original cable (Chinese no-names often only support charging).
  • 🖥️ Trying to connect to another USB-port (preferably) USB 3.0 blue).
  • 📱 On the screen of the smartphone does not appear the notification “charging through” USB» choiceless.
📊 What kind of smartphone you Xiaomi?
Redmi (Note/Pro series)
POCO (F/X/M)
Mi (11/12/13)
Black Shark
Other

Verification of the regime USB-connection

By default, Xiaomi smartphones connect to PCs in Charging Only mode. To transfer files, you need to manually select the MTP (Media Transfer Protocol) or PTP (Photo Transfer Protocol).

How to change the regime:

  1. Connect your smartphone to your PC.
  2. Swipe down the notification bar on Xiaomi.
  3. Tap on the notification “Charge via USB” (or “USB for file transfer”).
  4. Select “File Transfer” (MTP) or “Photo Transfer” (PTP).

If no notice appears:

  • 🔄 Reconnect the cable (sometimes helps to disconnect/connect multiple times).
  • 📱 Reboot your smartphone – it will reset temporary errors MIUI.
  • ⚙️ Check the developer settings: go to Settings → The phone. → Version. MIUI (Tap 7 times, then in Settings → Additionally. → For developers and include “Debugging by” USB».

Checked notification "Charging through" USB"|The regime is chosen MTP/PTP|Rebooted smartphone|Debugging is on. USB-->

⚠️ Note: On some models POCO Black Shark after the update MIUI 14 File Transfer option may not be available, in which case you need to reset your settings. USB (see section 5).

2. Updating USB drivers on your computer

Outdated or damaged drivers are the second most common cause of the problem. Windows may not recognize Xiaomi as a media device, even if charging is working (since power is on other USB contacts).

How to update drivers:

  1. Open Device Manager (Win + X → Device Manager).
  2. Find the section “USB controllers” or “Portable devices”.
  3. Right-click on the exclamation mark device (or Xiaomi) and select “Update driver”.
  4. Select Auto Search. If it doesn't work, download the driver from Xiaomi's official website.

For advanced users:

  • 🔧 Remove all devices called “Xiaomi” or «MTP» In the controller, then reconnect the smartphone.
  • 🖥️ Set up Mi. PC Suite (official synchronization software) – it will automatically install the desired drivers.
  • 🛠️ If you are using Windows 7/8, Download the Media Feature Pack for MTP-support.
WindowsAction requiredDownload link
Windows 10/11Update the driver through Device ManagerAutomatic search
Windows 8.1Install Media Feature PackOfficial website
Windows 7Install MTP Porting Kit + Xiaomi DriverXiaomi Support

💡

If Xiaomi drivers are still undetectable after updating, try connecting your smartphone to another PC or laptop, which will help you identify whether there is a problem in your phone or your computer.

3.Verification USB-cable and port

Cheap cables often have only 2 wires (power), whereas data transmission requires 4 wires. Even if the cable is externally whole, the inner veins could break.

How to check the cable:

  • 🔍 Inspect connectors for darkening, rust, or bent contacts.
  • 🔄 Try another cable (preferably original from Xiaomi or certified) USB-IF).
  • 🖥️ Connect your smartphone to the back ports of your PC (they are connected directly to the motherboard and more stable).
  • 📱 Check the port. USB-C on your phone – clean it gently with a wooden toothpick (not a metal object!).

If the cable is good, the problem remains:

  • 🔌 Try it. USB-externally powered hub (sometimes helps with weak port current).
  • 🔄 Reboot your PC and smartphone at the same time – it will reset the temporary controller errors.
  • 🛠️ On laptops, turn off the energy saving mode for USB-Ports in Device Manager → Controllers USB → Properties → Power management.
How to check the cable multimeter?
If you have a multimeter, you can call the cable: 1. Set the resistance check mode (Ω). 2. Connect the probes to the contacts USB-A (on the PC side) and USB-C (on the phone side): - GND (grounding) → GND - VCC (+5V) → VCC - D + → D + - D - D - D- → D-3. Resistance should be close to 0 Ohm. If any contact break (resistance → ∞), the cable is faulty.

4. Reset USB and MIUI settings

If the smartphone previously connected to other devices, MIUI could accumulate conflicting USB settings, resetting them back to factory values.

How to reset your settings:

  1. Go to Settings → System and device → Resetting.
  2. Select “Reset Network Settings” (this will also reset) USB-configuration).
  3. Confirm the action and restart the smartphone.

For deep reset USB-Stack (if the previous method did not help):

  1. Enable the Developer Mode (see Section 1).
  2. Go to Settings → Additional → For developers.
  3. Find the option “Reset USB Configuration” and activate it.
  4. Connect the smartphone to the PC – a notification about the choice of mode should appear.

⚠️ Note: Some Xiaomi.eu firmware or custom ROM option "Reset configuration" USB» In this case, only a complete reset (with loss of data) will help).

5 Manually enable MTP mode via ADB

If the smartphone does not respond to the change of mode through the notification, you can force the activation of MTP via Android Debug Bridge (ADB), this method works even on locked screens (if debugging over USB is enabled).

Instructions:

  1. Download Google’s Platform Tools and unpack it into the C:\adb folder.
  2. Connect your smartphone to your PC and open the Command Prompt (Win + R → cmd).
  3. Type commands in order: cd C:\adb adb devices If the device appears in the list, continue. If not, check the drivers (section 2).
  4. Activate. MTP: adb shell settings put global usb_configuration mtp,adb
  5. Reconnect the cable.

If the PC still does not see the files:

  • 🔄 Try the alternative command: adb shell am broadcast -a android.intent.action.BOOT_COMPLETED
  • 📱 Reboot your smartphone with a connected cable.
  • 🖥️ In Windows, open Disk Management (Win) + X → Disk management – sometimes Xiaomi appears there as a removable disk without a letter.

💡

ADB-Teams only work when the debugging is enabled USB. If you haven’t activated it in advance, this method won’t help – you’ll need to unlock the screen.

6.Firmware problems MIUI and their solution

Some versions of MIUI (especially 12.5-14) have USB-connected bugs, such as the File Transfer option, which may disappear after the upgrade, or the smartphone is constantly switching between modes.

How to fix it:

  • 🔄 Reverse to the old version MIUI (If the problem has occurred after the update. Use Xiaomi Firmware Updater.
  • 🛠️ Install a global firmware (if you have a Chinese version) MIUI CN — It often conflicts with Windows).
  • 📱 Reset the settings to factory (Settings) → System system → Reset settings), but pre-do backup.

For the POCO F4/F5 and Redmi K50 models with MIUI 14, there is a special patch:

  1. Download USB Fix for MIUI 14 (root rights required).
  2. Install it via TWRP or Magisk.
  3. Reboot your smartphone.
MIUI versionTypical problemDecision
MIUI 12.5USB shuts down after 30 secondsDisable “USB Optimization” in the Developer Settings
MIUI 13No MTP/PTP optionReset USB configuration or rollback to MIUI 12
MIUI 14Conflict with Windows 11Install a patch or use Linux/Mac

7. Alternative methods of file transfer

If none of the methods worked, but you urgently need to transfer files, use alternative methods:

  • 🌐 Mi Drop (built-in to the MIUI wifi).
  • ☁️ Cloud services: Google Drive, Mi Cloud or Telegram (send files to yourself in Save Messages»).
  • 📶 FTP-server FX File Explorer or Solid Explorer.
  • 🔌 OTG-adapter + flash drive / cartridger (if you need to copy a photo from a memory card).

For Wi-Fi transmission:

  1. Install AirDroid or Pushbullet on your PC.
  2. Connect both devices to the same network.
  3. Follow the instructions in the application for file transfer.

⚠️ Note: When using public Wi-Fi networks (cafes, airports) to transfer files, turn on VPN or encryption in settings FTP-servers to avoid interception of data.

FAQ: Frequent questions about Xiaomi's PC connection

Why does Windows make a connection sound, but Xiaomi doesn’t show up in My Computer?
This means that the PC recognizes the physical connection (power), but cannot initialize the MTP protocol. Reasons: outdated MTP drivers (update via Device Manager); Conflict with antivirus (disable Kaspersky/Avast for connection time); Smartphone is locked with a password/pattern lock (unlock the screen); Solution: try connecting in PTP mode (for photos) or use ADB (section 5).
Can you damage your smartphone if you constantly connect it in “Only Charging” mode?
No, Charging Only is absolutely safe, and only power contacts are used in this case (VCC and GND), It's not transmitted: 🔋 With a long charge in this mode, the port can overheat. USB-C (Especially when using powerful adapters). 📱 Some models (POCO X3 Pro, Redmi Note 10) limit the charging current in this mode to 500 mA. It is recommended to periodically clean the port of dust and use original cables.
How to transfer files from Xiaomi to Mac if USB is not working?
On macOS, the problem is most often associated with the lack of a driver. MTP. Solutions: Install Android File Transfer (official software from Google). Use OpenMTP (an alternative to newer versions of macOS); connect via Wi-Fi via AirDroid or Snapdrop. If Android File Transfer does not see the device: 🔄 Restart the Mac and Smartphone. 🔌 Try another cable (not all of it) USB-C cables support data transmission). 🛠️ Turn on Xiaomi mode "Send photos (PTP)» — It is better compatible with macOS.
After the firmware through Fastboot, Xiaomi stopped being determined by USB.
This is a typical problem after firmware is run through Fastboot or EDL. Causes: Damaged section persists (responsible for USB-Incompatible version MIUI (for example, stitched CN No drivers, no drivers ADB Solutions: Re-scan your smartphone with the correct version. MIUI Restore the persist partition with Fastboot: fastboot flash persist persist.img (file persist.img If nothing helps, do a full reset via Fastboot: fastboot erase userdata fastboot erase cache fastboot reboot Attention: these actions lead to the loss of all data on the device!
Can I use it? USB-hub or docking station to connect Xiaomi to a PC?
Yes, but with reservations: ✅ Passive hubs (without power) are usually operational but may limit transmission speeds. ⚠️ Active hubs (external powered) sometimes conflict with protocol MTP. 🚫 Docking stations (for example, for MacBook) are often not supported. MTP — In this case, use Wi-Fi. Recommendations: Connect the hub to the port USB 3.0 (blue connector) Turn off the others. USB-Hub devices (mouse, keyboard) If Xiaomi is not defined, try connecting directly.