[Xiaomi Poco F1 Guides, News, & Discussion] trax7:
Hello,

I thought that I was the only one with such an issue but by now I see more and more people in the forums who are hit by this same problem. I created this thread to be a discussion for all things connected to this problem - when and how it happens, what you have tried, diagnosed, seen from other places, how you have solved it if you have - everything.

How to spot if you have this issue:

- If your battery drain is high, especially in standby

- If your dmesg and logcat are getting spammed with "USB host device discovered" and then instantly dereferenced, then again and again

- If the wakelocks otg_default, qcom-step-chg, usbpd0 and usb are eating at your battery (spot them using BetterBatteryStats or something like Smartpack Kernel Manager)

Here is what I have tried to solve this problem:

Wipe data/factory reset

Full wipe from TWRP - system, vendor, data, cache, internal storage

Change kernels

Flash stock fastboot ROM and start over

Compiling a special kernel with all USB Host functions turned off (I don't use them anyway), deleting /vendor/etc/permissions/android.system.usb.host and removing usb_otg from fstab

Nothing worked. Issue is still here.

I think it's a hardware issue and most likely at least partly connected to the bad fast charging issue. I will keep this thread updated with our findings. :)

------------------------------------------------------------------------------------------------------

Logcat:

Dmesg:

------------------------------------------------------------------------------------------------------

Logcat message after modded kernel:

UsbPortManager

USB port changed: port=UsbPort{id=otg_default, supportedModes=dualsupportedContaminantProtectionModes=0supportsEnableContaminantPresenceProtection=falsesupportsEnableContaminantPresenceDetection=false, status=UsbPortStatus{connected=true, currentMode=dfp, currentPowerRole=source, currentDataRole=host, supportedRoleCombinations=[source:host, sink:device], contaminantDetectionStatus=0, contaminantProtectionStatus=0}, canChangeMode=true, canChangePowerRole=false, canChangeDataRole=false, connectedAtMillis=63812596, lastConnectDurationMillis=0

^ Take note here, USB OTG only makes sense to be in host mode NOT device mode. I tried disabling USB host fully and now I get OTG in DEVICE mode. That means that the phone is trying to be the USB device and not the phone! Lol. : (

Dmesg after modded kernel:

[63280.945666] PD_DISALLOWED_INDIRECT: current vote is now 0 voted by HVDCP_TIMEOUT_VOTER,1,previous voted 0

[63280.945695] PD_ALLOWED: current vote is now 1 voted by PD_DISALLOWED_INDIRECT_VOTER,0,previous voted 1

[63280.945734] OTG_VOTER: val: 0

[63280.945769] LEGACY_UNKNOWN_VOTER: val: 100000

[63280.945796] USB_ICL: current vote is now 0 voted by OTG_VOTER,2,previous voted 0

[63280.945886] smblib_set_icl_current: set icl 0

[63280.947289] usbpd usbpd0: Type-C Sink connected

[63280.949267] FG: fg_cycle_counter_update: batt_soc: 219 bucket: 6 chg_status: 2

[63280.949717] FG: fg_charge_full_update: msoc: 90 bsoc: db89 health: 1 status: 2 full: 0

[63280.958466] PMI: smblib_handle_typec_cc_state_change: TypeC removal

[63280.958555] LEGACY_UNKNOWN_VOTER: val: 100000

[63280.958568] USB_ICL: current vote is now 100000 voted by LEGACY_UNKNOWN_VOTER,11,previous voted 100000

[63280.958608] smblib_set_icl_current: set icl 25000

[63280.958636] smblib_set_icl_current: set icl 100000

[63280.958939] PD_DISALLOWED_INDIRECT: current vote is now 1 voted by CC_DETACHED_VOTER,0,previous voted 1

[63280.958956] PD_ALLOWED: current vote is now 0 voted by PD_DISALLOWED_INDIRECT_VOTER,0,previous voted 0

[63280.959170] PMI: __smblib_set_prop_typec_power_role: set power_role to 0

[63280.959182] PMI: smblib_masked_write: set 0x1368 mask:0x7,val:0x0

[63280.959260] PMI: smblib_masked_write: set 0x1368 mask:0x80,val:0x0

[63280.959339] PMI: smblib_update_usb_type: APSD=UNKNOWN PD=0

[63280.959353] notify_typec_mode_changed_for_pd

[63280.961483] FG: status_change_work: charge_status:2 charge_type:1 charge_done:0

[63281.016093] USBIN_USBIN_BOOST_VOTER: val: 0

[63281.016147] LEGACY_UNKNOWN_VOTER: val: 100000

I will edit later, as I am writing on the phone. :)