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.
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:
- Connect your smartphone to your PC.
- Swipe down the notification bar on Xiaomi.
- Tap on the notification “Charge via USB” (or “USB for file transfer”).
- 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:
- Open Device Manager (Win + X → Device Manager).
- Find the section “USB controllers” or “Portable devices”.
- Right-click on the exclamation mark device (or Xiaomi) and select “Update driver”.
- 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.
| Windows | Action required | Download link |
|---|---|---|
| Windows 10/11 | Update the driver through Device Manager | Automatic search |
| Windows 8.1 | Install Media Feature Pack | Official website |
| Windows 7 | Install MTP Porting Kit + Xiaomi Driver | Xiaomi 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?
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:
- Go to Settings → System and device → Resetting.
- Select “Reset Network Settings” (this will also reset) USB-configuration).
- Confirm the action and restart the smartphone.
For deep reset USB-Stack (if the previous method did not help):
- Enable the Developer Mode (see Section 1).
- Go to Settings → Additional → For developers.
- Find the option “Reset USB Configuration” and activate it.
- 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:
- Download Google’s Platform Tools and unpack it into the C:\adb folder.
- Connect your smartphone to your PC and open the Command Prompt (Win + R → cmd).
- Type commands in order: cd C:\adb adb devices If the device appears in the list, continue. If not, check the drivers (section 2).
- Activate. MTP: adb shell settings put global usb_configuration mtp,adb
- 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:
- Download USB Fix for MIUI 14 (root rights required).
- Install it via TWRP or Magisk.
- Reboot your smartphone.
| MIUI version | Typical problem | Decision |
|---|---|---|
| MIUI 12.5 | USB shuts down after 30 seconds | Disable “USB Optimization” in the Developer Settings |
| MIUI 13 | No MTP/PTP option | Reset USB configuration or rollback to MIUI 12 |
| MIUI 14 | Conflict with Windows 11 | Install 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:
- Install AirDroid or Pushbullet on your PC.
- Connect both devices to the same network.
- 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.