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 problem | Signs. | 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 PC | 25% |
| Wrong USB Mode | There is no option in the notification curtain "File transfer" | 10% |
| Blocking with antivirus/firewall | The 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.
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:
- Connect your phone to another PC/laptop, and if it's there, the problem is in your computer's ports.
- Try another cable (preferably original or certified) USB-IF).
- 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
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:
- Unlock the phone screen and connect the cable.
- Swipe down the notification curtain and find the option USB To transfer files (or Charge through USB). Put it on her.
- Select File Transfer (MTP) or PTP (for photos).
- 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
- Connect the phone to the PC.
- Open Device Manager (Win + X β Device Manager).
- 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:
- Turn the phone off the PC.
- In Device Manager, remove all devices with Xiaomi names, ADB, MTP.
- 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?
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:
- Download Platform Tools from the Android Developers website.
- 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.
- 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 usbLook 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_configThen 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:
| Component | Symptoms | Cost of repair, β½ |
|---|---|---|
| USB-port) | The cable is not held well, charging is interrupted when moving | 800β1500 |
| Controller USB (southbridge) | The port is not working at all, the phone is not charging. | 2000β4000 |
| Port contact soldering | Charging is going, data is transmitted intermittently | 1000β2000 |
| Damage to the motherboard | The 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.