[One (M7) Q&A, Help & Troubleshooting] spereree:
together we can solve this!!!

I HAVE EXACTLY THE SAME ISSUE! - running android 4.3 Sense 5.5 build 3.62.771.3 Hboot 1.55

What's working:

Fastboot (AC)

Fastboot (USB) - can even execute some commands, etc...

What's NOT working:

USB to pc when on (including ADB)

AC Charging when on. - only charges ( intermittently ) when off, and I just found out it charges ok in fastboot mode)

I think (and hope) our problem is NOT a hardware issue.

How mine started:

used to charge/sync fine, till one day it decided to go crazy (the car-mode/landscape issue, reporting "not charging when in USB HOST mode")

I believe it's got something to do with USB debugging, coz I disabled that, then it worked fine for a few ours, then it stopped charging till now.

If we by any chance find a way to fixed the firmware related to the USB drivers and charging, it might fix the bug.

This is why (I believe) just flashing a new rom / resetting didn't work.

Other things I've tried:

(1) cleaning the USB port and cable with a toothbrush (and a tiny bit of alcohol / methylated spirit, let to dry) - worked for a little while

(2) re-calibrating the battery:

(a) getting a 3rd party battery calibrating app from the android market (requires root and SU) - didn't work

(b) the HTC support way according to the chat guy (press power+VolUp+VolDown for 2 minutes and reboot) - didn't fix

(c) the android central way (pressing power+volume up) for 30 seconds - didn't fix

(3) Factory reset - didn't fix

also disabling USB debugging didn't help...

Now I've just hit a brick wall:

Can't use rumrunner to S-off, coz it doesn't support ADB over WiFi, and aren't planning to do so - beaups himself told me that! see this link:

http://xdaforums.com/show...4#post48996304

So that means we have to find another way to get S-off so that we can do what's posted here in this post:

http://xdaforums.com/show...t=not+charging

OR to be able to flash USB related custom or stock kernels - which might fix our USB issue (example here:

http://xdaforums.com/show....php?t=2592412 )

I also found this very usefull pointer, see the first code snipped in this link...

http://2dindroid.wordpress.com/2013/08/03/usb-otg-charging-nexus-7-flo-2013/

msm_otg msm_otg: Failed notifying 1 charger type to PMIC
msm_otg msm_otg: Avail curr from USB = 2
msm_otg msm_otg: current: 500 -> 2 (mA)
msm_hsusb msm_hsusb: CI13XXX_CONTROLLER_SUSPEND_EVENT received
VBUS_DET = H
notifying plugin
msm_otg msm_otg: Failed notifying 0 charger type to PMIC
msm_otg msm_otg: Avail curr from USB = 0
msm_hsusb msm_hsusb: CI13XXX_CONTROLLER_DISCONNECT_EVENT received
android_work: android_work: sent uevent USB_STATE=DISCONNECTED
mtp_release
INOK=H
========================================================
bq27541_battery_callback usb_cable_state = 0
========================================================
battery_callback cable_wake_lock 5 sec...
elan-ktf3k 3-0010: Update power source to 0
The USB cable status = CHARGER_NONE
msm_otg msm_otg: Failed notifying 0 charger type to PMIC
msm_otg msm_otg: phy_reset: success
bq27541_get_capacity = 67% ret= 69
bq27541_get_psp voltage_now= 3997000 uV
bq27541_get_psp temperature= 260 (0.1¢XC)
bq27541_get_psp status: Not charging ret= 0x0100
msm_otg msm_otg: USB in low power mode
request_suspend_state: wakeup (3->0) at 11409619596093 (2013-08-03 19:32:30.799981455 UTC)
late_resume: call handlers

As you can see, I think it fails to detect that what's connected is a proper charger, (it thinks it's a USB OTG device,

that's why it says "Charging disabled in USB host mode" for some users) - and returns "not charging" status...

If you read on in the link above, can someone (more experienced in java than me) develop a zipped kernel for rooted users

which can change that?

I hope that helps... Thanks! ... we are in this TOGETHER!!! :D