Why your computer can’t see your Xiaomi phone USB, But charging works - a complete breakdown of the problem

You connected Xiaomi to your computer through USB-It's quiet, and instead of the usual sound of the device connecting and the folders appearing, the charging light is on and the battery is replenished. Is the situation familiar, POCO Mi, and it has at least 7 different causes - from banal failure of settings to hardware malfunctions.

In this article, we will not just list possible solutions, but analyze the mechanism of work. USB-We explain why charging can work even in the absence of data transfer, and give step-by-step instructions for diagnosis - from simple actions (reboot, change the cable) to complex ones (manual installation of drivers, port verification through Device Manager). We will pay special attention to the specifics of the firmware MIUI, which often block data transmission by default.

If you've tried standard tips like "Reset your phone" and they haven't worked, don't close the page. At the end of the article, there's a section for advanced users with commands. ADB and analysis of the dmesg logs (for Linux/Mac), Which will help to identify hidden errors.

1. Why Xiaomi is charging but not transmitting data over USB?

To understand the root of the problem, you need to understand how it works. USB-Xiaomi connection. There are 4 main contacts in the cable:

  • πŸ”΄ VCC (+5V) β€” food (responsible for charging).
  • ⚫ GND β€” land (general minus).
  • 🟒 D+ and 🟑 Dβˆ’ β€” differential.

If the phone is charging but not defined as a drive, it means that the power is (VCC and GND) It's working, and the signal lines are working (D+/Dβˆ’) β€” No, there may be reasons:

Type of problemSigns.Probability, %
Software failure (MIUI, driver)The phone makes the connection sound, but it doesn’t appear in β€œMy Computer.”60%
Hardware malfunction (cable, port)Charging is underway, but no reaction to the connection to the PC25%
Wrong USB ModeThere is no option in the notification curtain "File transfer"10%
Blocking with antivirus/firewallThe device appears and disappears for a short time.5%

Key point: on Xiaomi with MIUI 12+ The default mode can be activated "Charge Only" even when you're connected to a PC. This is for security, but it's often confusing. Check the notification curtain if there's no option to select the mode. USB, It's a deeper problem.

πŸ“Š What kind of smartphone you Xiaomi?
Redmi Note 10/11/12
POCO X3/X4/X5
Mi 11/12/13
Another Xiaomi
Not Xiaomi.

2. Checking cable and ports: hardware reasons

Start with the simplest, physical diagnosis, and most often the problem is:

  • πŸ”Œ Cheap or damaged cables often have broken cables D+/Dβˆ’ lines, mientras que VCC/GND They are still in the whole (so the charging works).
  • πŸ–₯️ porte USB PC: The rear ports of the motherboard are more reliable than the front ports (they are often connected via a hub with poor contact).
  • πŸ“± Phone port: Dust or moisture ingress can disrupt data contact, but not power.

How to check:

  1. Connect your phone to another PC/laptop, and if it's there, the problem is in your computer's ports.
  2. Try another cable (preferably original or certified) USB-IF).
  3. Check the port of the phone for contamination. When connected, the cable must come in tightly, without backlash.

⚠️ Warning: If you sway a cable in the port, the phone appears and disappears in Device Manager, which is a sure sign of mechanical damage to the connector, in which case only a replacement port in the service center will help.

β˜‘οΈ Diagnostics of hardware problems

Done: 0 / 5

3. Settings MIUI: Why does the phone block data transmission?

Xiaomi with firmware MIUI It's known for its "concern" about security, which sometimes turns into paranoia:

  • πŸ”’ Block the connection to the PC without unlocking the screen.
  • πŸ“΅ Automatically select the "Charging Only" mode".
  • πŸ›‘οΈ Require confirmation of a trusted device (even if you are connecting for the first time).

How to set up:

  1. Unlock the phone screen and connect the cable.
  2. Swipe down the notification curtain and find the option USB To transfer files (or Charge through USB). Put it on her.
  3. Select File Transfer (MTP) or PTP (for photos).
  4. If there is no option, go to Settings. β†’ Connections and sharing β†’ USB And turn on the debugging. USB (This may require activating the Developer Mode through 7 taps. MIUI phone).

On some models (for example, Redmi Note 10 Pro) after selecting the mode MTP If the window doesn’t appear, check to see if the antivirus is blocking it (for example, Avast or 360 Security, which are often bundled with the same software). MIUI).

πŸ’‘

If, after connecting to a PC, the phone starts to warm up and discharge quickly, this is a sign that it is trying to transfer data, but can not because of a driver failure. USB developer-setting.

4.Drivers for Xiaomi: Installation and Diagnostics on Windows

If the phone is not detected even after changing the cable and choosing the mode MTP, The problem is most likely in the drivers. - Windows 10/11 Usually installs them automatically, but sometimes manual adjustment is required.

Step 1: Checking in Device Manager

  1. Connect the phone to the PC.
  2. Open Device Manager (Win + X β†’ Device Manager).
  3. See Portable Devices, Other Devices or Controllers USB. If there is a device with an exclamation mark (for example, MTP, ADB Interface or Xiaomi Composite MDB Interface - driver not installed.

Step 2: Install drivers manually

  • πŸ“₯ Download the official drivers from the site MIUI (squash).
  • πŸ”§ Or use the universal package of Google USB Driver (suitable for most Android devices).
  • πŸ”„ Update the driver through Device Manager: right click on the problem device β†’ Update the driver β†’ Search for drivers on this computer β†’ Please indicate the path to the downloaded drivers.

Step 3: Remove Old Drivers

If the driver is installed but is not working correctly:

  1. Turn the phone off the PC.
  2. In Device Manager, remove all devices with Xiaomi names, ADB, MTP.
  3. Connect the phone again – Windows will install drivers from scratch.

⚠️ Attention: On Windows 7 and older versions of Windows 10 You may need to disable the driver digital signature check. CMD (on behalf of the administrator: bcdedit.exe /set nointegritychecks on After installation, return the settings back to: bcdedit.exe /set nointegritychecks off.

5 Problems on Mac and Linux: Features MTP

On macOS and Linux, Xiaomi connects to MTP It often works worse than Windows because it doesn't have native protocol support:

For macOS:

  • 🍎 Install Android File Transfer (official software from Google.
  • πŸ”„ If the program does not see the phone, restart it with the connected device.
  • πŸ› οΈ For new models (Xiaomi) 12/13, Redmi Note 12) You may need to enable Developer Mode and select File Transfer (MTP) manually.

For Linux (Ubuntu/Debian):

  • 🐧 Install packages for support MTP: sudo apt install mtp-tools libmtp-common libmtp-runtime
  • πŸ”Œ Connect the phone and check if it is determined by the command: mtp-detect | grep"Device"
  • πŸ“ To mount to the file system, use jmtpfs: sudo apt install jmtpfs mkdir ~/xiaomi jmtpfs ~/xiaomi

If your phone is detected on Linux but the files are not copied, try:

  • πŸ”„ Reconnect the cable to another port (some of which are USB 3.0 ports are not working well with MTP).
  • πŸ› οΈ Disable Debugging by USB The developer’s settings (sometimes they conflict with the MTP).
What if Linux sees the phone but doesn’t mount?
If the mtp-detect command shows the device but jmtpfs gives an error, try it: 1. Install gvfs-mtp: sudo apt install gvfs-mtp 2. Use Nautilus (file manager) GNOME) β€” He often works better with MTP, than console utilities. 3. Check the kernel logs for errors: dmesg | grep -i usb Look for lines with mtp or Xiaomi.

Advanced diagnostics: ADB, Log files and hidden settings

If all the previous methods didn't work, it's time to dig deeper.

1. Verification through ADB

Make sure the phone is on debugging. USB (Settings β†’ The phone. β†’ Version. MIUI (tap 7 times) β†’ Additionally. β†’ For developers β†’ Debugging by USB). Then:

  1. Download Platform Tools from the Android Developers website.
  2. Connect your phone and run in the terminal: Adb devices If the device is not displayed - the problem is at the driver or cable level.
  3. Check the current mode USB: adb shell getprop sys.usb.config Must return mtp,adb or ptp,adb. If there is only charge - the mode is lost.

2. Analysis of the logs Linux/Mac

On these systems, you can see exactly how the device is determined:

lsusb | grep -i xiaomi


dmesg | grep -i usb

Look for lines like new high-speed. USB Device number X: If you have a device descriptor read/64, error -110 β€” This is a sign of a hardware problem (a cable or port is damaged).

3. Reset USB settings on Xiaomi

On some firmware MIUI discharge USB-configuration:

adb shell settings delete global usb_config

Then disconnect and reconnect the cable – the phone should suggest selecting a mode.

πŸ’‘

If the adb shell dumpsys usbd command returns mCurrentFunctions=charge, and you can't change mode - this is a sign of a failure in the usbd service. Solution: reboot your phone in Safe Mode (hold the power button). β†’"Restart in Safe Mode" and check the connection again.

7. When to contact the service: signs of hardware malfunctions

If you've tried everything, but your phone is still undetectable, it may be a hardware problem, and here are the signs that it's time to get the device repaired:

  • πŸ”Œ The phone is not detected on any computer, even with different cables.
  • πŸ”₯ Port port USB the phone is warm or has visible damage (darkness, bent contacts).
  • πŸ”„ When connected, the phone restarts or turns off.
  • πŸ“΅ In Windows Device Manager, the device appears as Unknown. USB-device (error 43).

What exactly can be broken:

ComponentSymptomsCost of repair, β‚½
USB-port)The cable is not held well, charging is interrupted when moving800–1500
Controller USB (southbridge)The port is not working at all, the phone is not charging.2000–4000
Port contact solderingCharging is going, data is transmitted intermittently1000–2000
Damage to the motherboardThe port is not working, other failures are possible (Wi-Fi is not turned on, Bluetooth is glitching)3000–10000+

⚠️ Warning: If you suspect damage to the controller USB, Do not connect your phone to charge through this port - this can make the problem worse.Use wireless charging (if supported) or connect via OTG-hub (if the phone detects external devices).

Before going to the service, check whether your model is not covered by a warranty. In official service centers Xiaomi port repair USB If the phone is warranty, don't try to repair the port yourself - this will void warranty obligations.

FAQ: Frequent questions about connecting Xiaomi to PC

πŸ”Ή Why Xiaomi doesn’t ask for a regime USB plug-in?
It could be because of: πŸ”’ Lockdowns MIUI: squirrel-on MTP It only works after unlocking the screen. πŸ“΅ Ubd service failure: restart your phone. πŸ› οΈ No drivers on PC (relevant to Windows) Try manually selecting mode in Settings β†’ Connections and sharing β†’ USB.
πŸ”Ή Can I transfer files without MTP (For example, on Wi-Fi)?
Yes, there are a few alternatives: 🌐 Mi Drop (built-in to the MIUI application for transferring files over Wi-Fi Direct). πŸ“€ FTP-server: use applications such as FX File Explorer or Solid Explorer FTP-phone-server. ☁️ Cloud services: Mi Cloud, Google Drive or Telegram (sending files to yourself in saved messages (>1 GB is better used ADB Wi-Fi: Adb tcpip 5555 adb connect IP_TELEFONA:5555 adb pull /sdcard/path/file C:\file
πŸ”Ή Why Xiaomi is defined as a β€œMedia Device” but files are not copied?
It's a typical problem. MTP-- You can try the protocol: πŸ”„ Reconnect the cable (sometimes changing the port helps) USB PC-only). πŸ“ Use it. PTP instead MTP (notice-curtain). πŸ› οΈ Windows to update the driver MTP USB Device manually (download from Microsoft website). 🐧 On Linux, install mtpfs or jmtpfs (see section 5). If files are copied but slowly (1–2 MB/s), the problem may be in the cable - try it. USB 3.0 ferrite-ring cable.
πŸ”Ή How to turn on developer mode if the phone is not connected to the PC?
You don’t need to connect your phone to your computer to activate debugging. USB. Do it on your device: Go to Settings β†’ Find the version. MIUI And you tap it 7 times in a row, and you go back to the main settings menu, and you'll see a new section for developers. USB and Unlock. OEM (If the screen does not respond to taps, use gestures (on new Xiaomi models you can include gestures in Special features).
πŸ”Ή Can Antivirus Block Xiaomi Connection?
Yes, especially if you have a setup: πŸ›‘οΈ Avast or AVG (block ADB and MTP as "suspicious activity"). πŸ”’ 360 Security (built-in to the MIUI for certain regions). 🏒 Corporate antivirus software like Kaspersky Endpoint Security ESET NOD32. How to check: Turn off antivirus for 5 minutes and try to connect your phone. See the antivirus logs for usb.dll or mtp.usbd blocking. Add adb.exe and MTP-drivers in the exclusion of antivirus.