Total wakelock - disable otg in kernel? - Nexus 5X Q&A, Help & Troubleshooting

my 5x recently started playing up, staying awake 100% of the time. BBS shows the wakelock as otg_default and fusb_301, which i think are related to having a usb drive connected. I know this can happen with a dirty port, but i have cleaned it as much as i can, even flashed a new factory image but the problem persists. The only thing i can think of is that the port might be broken, b ut the phone still charges fine and connects to the pc with no problems. So, is there any way to disable the otg function with a kernel or system modification? If not, i guess ill have to get used to being near the charger..

Here is a copy of the logcat of what is going on if anyone can help...
I/UsbPortManager( 1409): USB port changed: port=UsbPort{id=otg_default, supportedModes=dual}, status=UsbPortStatus{connected=true, currentMode=dfp, currentPowerRole=source, currentDataRole=host, supportedRoleCombinations=[source:host, sink:device]}, canChangeMode=true, canChangePowerRole=false, canChangeDataRole=false
I/UsbPortManager( 1409): USB port changed: port=UsbPort{id=otg_default, supportedModes=dual}, status=UsbPortStatus{connected=false, currentMode=none, currentPowerRole=no-power, currentDataRole=no-data, supportedRoleCombinations=[no-power:no-data]}, canChangeMode=true, canChangePowerRole=false, canChangeDataRole=false
E/UsbHostManagerJNI( 1409): usb_device_open failed
E/UsbHostManagerJNI( 1409): usb_device_open failed

Same problem here. Anyone?

Related

[HELP] Evo only charges when off

i'm running a Gingerbread build based off of the latest nightly with stock kernel.
i've formatted my device with the formatall.zip and reloaded the ROM. i've even gone back to a stock ROM and still got the same issue. after doing this, if i plug my device up, it charges just fine while on. if i unplug the device later and plug it back up, the charging light will come on, then quickly go off and the device won't charge.
the only way i've been able to get around this is to turn it off, in which case it then charges. i get these same results whether i'm plugged into the wall or to PC.
if it were a hardware issue, wouldn't that mean it wouldn't charge at all, whether on or off?
anyone have any ideas or experience with this issue?
Same Here...
Anyone found solution yet?
My only guess would be a kernel issue or a hardware problem. Wipe your dalvik and cache and reflash your kernel. If that doesn't fix it, I do know some evo's micro usb ports go bad. I don't know if this is a symptom of that but it may be.
Thanks alot **TheSilverStig **
It was the kernel.
My phone is charging now...
Will test for a couple days and will let you know again..
For some reason www dot qap dotla/~netarchy/ is not working (Error 404)
Try http home(dot)comcast(dot)net/~evoreviews/downloads(dot)html
For now...
For me
netarchy-toastmod-4.3.1-cfs-havs-nosbc worked...
Hope that helps for you too...
Good Luck
*Happy Rooting*
(I don't have 8 posts yet so no links)
HELP evo only charges turned off
I have a problem.. my evo only charges when turned off. sometimes the charging light will come on when it is on but the settings say its discharging.. also i reinstalled a driver once and it started charging fine until i unpluged it from the computer now back to not charging.. this is very frustrating.. it not the port or the cable or the charger.. is there a way to force it to charge with android terminal emulator maybe??

Galaxy Nexus GSM: No wall charge and USB not recognized

Hi guys,
My GNex has a problem. Many users seem to have a similar problem but theirs seem to be hardware related and I'm pretty confident mine is software related.
It started a few months ago when my GNex wouldn't charge through the wall charger. I was on a trip with my friends so I didn't have access to a pc and wasn't able to troubleshoot further. The charging icon would appear when the phone was off but when I turned it on it didn't charge. I played around with the phone for about two hours, rebooting, Googling for solutions, changing the USB connection modes in the Storage settings. When I changed from Next Launcher to Stock launcher and rebooted everything was working fine again. However I think it was only a coincidence. Then the problem didn't occur again until now and this is why I think it's software related. If hardware would have been broken the problem wouldn't just have fixed itself like that.
It happened 3 days ago but somehow fixed itself again. I was troubleshooting the issue with my GNex connected to PC and installed Nexus Root Toolkit by Wugfresh. During install my phone rebooted on it's own and suddenly USB worked perfectly again!
However yesterday I forgot to charge and my GNex died. On reboot the issue was back.
"Symptoms":
Phone won't charge with any wall charger (and any cable) unless off
Phone will charge through USB in any mode but PC will not recognize it and install it as unknown device.
USB Debug Icon and Connection Mode notification do not appear in status bar upon PC connection
OTG doesn't work and apps like "Stickmount" do not detect external drives
Attempts:
Gently bending the "tongue" inside the micro usb on the phone in case there is a bad connection
Reinstalling drivers on PC
Rebooting device in different modes including fastboot
Using different batteries
NOTES
This problem started after latest 4.3 update. It has only occured after battery completely runs dry. I have 3 batteries (a bit excessive I know) and an external battery charger so charge is not the issue, I just really want to understand what's going on with my phone.
I'm not ready to Factory Reset or replace the USB port yet, those are last resort options to me. Any other options, especially software related, are very welcome. I am on stock 4.3 only rooted and with CWM recovery.
In Testing menu (type *#*#4636#*#* in Dialer) under Battery Settings my phone also says Charging (AC) when connected through USB. Hope this helps.
Been Googling around for two days now so I decided to make my own thread. Any help is appreciated. Sorry for this very long post.
Fixed it! Tried bending the tongue inside the micro usb again, forced much more this time, everything is working again, for the moment

[Q] OTG Charge + USB Host Plug and Unplug Timur Alternative

Hello all,
I have a nexus 7 2013 and I am looking for a kernel that supports otg plus charge. Now, I know elemental x (by flar2) and a few others have this but the ones I have found do not support hot swap, or unplug and replug without rebooting. I am pretty sure Timurs kernel supports this but he wants $36 to buy it and I would rather not spend the money without trying it out first. Specifically, I have a fixed in-car installation and a febon100 UVC video grabber to display a backup camera. When the car shuts off, the febon will be disconnected from the usb side of the nexus, and the only way to reconnect it is to reboot the tablet with power connected. Anyone have any ideas? Thanks for the help.
Ok so I figured part of it out. After the device looses and regains power, these two commands simulate the usb disconnect and reconnect and seems to work (only tried it a couple times)...
Code:
echo "2-0:1.0" > /sys/bus/usb/drivers/hub/unbind
echo "2-0:1.0" > /sys/bus/usb/drivers/hub/bind
However, I have another issue. I am using the elementalx kernel on android 4.4.4 (currently on Carbon rom but have tried stock and other roms as well with same outcome). When the tablet reboots with the otg cable connected, it does not charge when it first starts up. To charge it, I have to physically unplug and replug the cord in the nexus. Any ideas?
bigc9731 said:
Ok so I figured part of it out. After the device looses and regains power, these two commands simulate the usb disconnect and reconnect and seems to work (only tried it a couple times)...
Code:
echo "2-0:1.0" > /sys/bus/usb/drivers/hub/unbind
echo "2-0:1.0" > /sys/bus/usb/drivers/hub/bind
However, I have another issue. I am using the elementalx kernel on android 4.4.4 (currently on Carbon rom but have tried stock and other roms as well with same outcome). When the tablet reboots with the otg cable connected, it does not charge when it first starts up. To charge it, I have to physically unplug and replug the cord in the nexus. Any ideas?
Click to expand...
Click to collapse
you find a fix for this? i will try that command you posted but i need it to run at startup automatically if it works.
quicksilvr2006 said:
you find a fix for this? i will try that command you posted but i need it to run at startup automatically if it works.
Click to expand...
Click to collapse
Just use tasker to run the commands at startup...
Does this set of command still work with lollipop? I just tried a few times and it seems to have made no difference.
Thanks in advance!
Yeah im in the same boat. Soooooo many problems with this ****ty tablet. Knew i should have installed an iPad. They said this is the 'best' of android. It's ****ing terrible. People who are thinking of installing an android into your car? A word of advise. Dont do it.
-guy who has worked on nexus 7 2012, AND 2013 car install for more than a year.
jimmng said:
Yeah im in the same boat. Soooooo many problems with this ****ty tablet. Knew i should have installed an iPad. They said this is the 'best' of android. It's ****ing terrible. People who are thinking of installing an android into your car? A word of advise. Dont do it.
-guy who has worked on nexus 7 2012, AND 2013 car install for more than a year.
Click to expand...
Click to collapse
Do you feel better now?
Sent from my LG-D850 using XDA Free mobile app
It's been almost a year any way to accomplish charging without having to physically unplug the OTG and plug it back in. Im have timurs kernel but I want to use elemental so I can use marshmallow. Timur accomplished it somehow. Someone has to know how.
Qi Wireless Charging
samt3 said:
It's been almost a year any way to accomplish charging without having to physically unplug the OTG and plug it back in.
Click to expand...
Click to collapse
It is actually trivially easy to accomplish - on any kernel - it is called Qi Wireless Charging.
Android 6.0.1 kernel Quanta-V7-Flo with 'USB Host Mode Charging'
samt3 said:
It's been almost a year any way to accomplish charging without having to physically unplug the OTG and plug it back in. Im have timurs kernel but I want to use elemental so I can use marshmallow. Timur accomplished it somehow. Someone has to know how.
Click to expand...
Click to collapse
Test results for Android 6.0.1 Stock + Kernel 'Quanta-V7-Flo' with active 'USB Host Mode Charging' and inactive 'fast charging' (N7 is only is use when its connected to the USB Power):
Ampere values checked with one of the cheap 'USB Charger Doctor Voltage Current Meter Mobile Battery Tester':
0.45 A for N7 only
0.61 A for N7 + USB Ethernet adapter
I don't use the N7 in a car setup but this should be important for such setups:
-If the USB Y cable is connected before powering on the N7, the USB device was usable in Android after startup without need for reconnecting the USB cable
-If the USB was unplugged and reconnected the device, it was usable in Android
-Important: If the N7 goes to sleep, it can't recover the USB charging and USB devices after waking. You should set the display timeout to always on, which is right for a car setup or am I'm wrong?
I'm happy! :good:
I tried quanta. It does work except for on initial boot. Have to unplug and plug it back in to charge. Then it works fine turning the key on and off for power. However it doesn't mount the OTG devices again without unplugging it and plugging it back in.
Edit: I also have another problem was at work and didn't have time to add it. But my Nexus thinks it's still charging after disconnecting it from power supply through the OTG cable. When I turn the key off it quits charging for about 1 second then switch's back to saying it's charging again and continues to say it's charging even after cycling the key on and off. Only way to fix it is to disconnect the OTG straight from the tablet and plug it back in or boot it into recovery then back to system. Has done this thru multiple roms and kernels. Only kernel it doesn't do it on is Quanta. The thing is it didn't use to do it at all no matter what rom or kernel I was using. I even went as far as to change the charging port board cause I had another one in a old junk Nexus I have and still didn't fix it.
samt3 said:
I tried quanta. It does work except for on initial boot. Have to unplug and plug it back in to charge. Then it works fine turning the key on and off for power. However it doesn't mount the OTG devices again without unplugging it and plugging it back in.
Edit: I also have another problem was at work and didn't have time to add it. But my Nexus thinks it's still charging after disconnecting it from power supply through the OTG cable. When I turn the key off it quits charging for about 1 second then switch's back to saying it's charging again and continues to say it's charging even after cycling the key on and off. Only way to fix it is to disconnect the OTG straight from the tablet and plug it back in or boot it into recovery then back to system. Has done this thru multiple roms and kernels. Only kernel it doesn't do it on is Quanta. The thing is it didn't use to do it at all no matter what rom or kernel I was using. I even went as far as to change the charging port board cause I had another one in a old junk Nexus I have and still didn't fix it.
Click to expand...
Click to collapse
Did you try the glitch kernel?
0xcafebabe said:
Did you try the glitch kernel?
Click to expand...
Click to collapse
I've used it before but not on my current setup.
Assuming one of these kernels provides OTG + Fast Charging, what are the options for the Power-Down + Deep Sleep, then Power-Up + Wake?

Charging only on Restart - No USB connection - No LED

Hey guys, wondering if you've run into a similar problem. I'm on stock 7.0 (with magisk & xposed) 4.49.605.16 Firmware.
My phone will no longer charge or recognize a USB connection when plugged in. No LED indicator. However, I am able to charge the phone if I plug it in and then restart (still no USB connection though... the phone doesn't seem to know it's plugged in, only that it is charging). When I disconnect after the restart the phone then loses the able to charge until I reconnect and reboot. Any ideas?
I've played around with USB debugging settings in Dev Options (some posts suggested toggling setting to 'fix' the issue). No dice.
Rebooted multiple times (with and without xposed enabled).
I'm not convinced that it's a hardware issue seeing as it constantly charges after reboot. I'm not sure if re-flashing anything again would help (and I can't connect to adb!). I've seen some posts on the internet attribute the problem to a flex cable but I don't see how that could cause problem as the phone still retains partial functionality.
Any ideas? Thanks in advance!
In case anyone is curious or has run into a similar situation, this was most definitely a hardware problem. If your phone charges while off (or when it's turned on while plugged in) but not afterwards, the sister board with the USB and headphone jack has failed (ignore all of the explanations and attempted workarounds seen online). Fortunately, it's an easy fix (especially if you've dug around the inside of the m9 before). The component is about $8.00-$9.00 USD and in theory you don't have to remove the motherboard or battery to replace the bit. I swapped the board and charging and USB connectivity work like before.

[Help Need] Oneplus 5t Type C Port Problem / No Data Connection

Hey everyone,
The type C port of my phone stopped working sometime ago. It only charges. However no dash charge is available. Also when I connect my phone to my computer there is absolutely 0 data exchange happening it only charges. Also OTG is not working aswell. When I connect a OTG device and turn on OTG, it only gives power to the OTG device however, no data connection is happening.
Before you may ask,
- I tried multiple cables and different different usb ports and devices.
- I bought a brand new official dash charge cable.
- Turned ON/OFF Usb debugging
- Put "Default Usb Configuration" to "File Transfer" (as well as trying other options such as USB tethering etc)
- Booted into recovery and wiped my cache.
- Cleared the cache of MTP, Media library services. (as well as disabling and re-enabling them)
- Went into factory menu and ran factory tests.
- Went into fast boot menu and recovery and tried plugging the cable for some data exchange.
- Then I determined that the port is damaged from endless usage for years, bought a brand new type c port (with flex cable etc) replacement and installed it.
and still... There is absolutely no data connection happening from the type c port. Just slow charging and nothing else.
More info:
The usb started working out of nowhere for a brief time on it's on and then shut off again. Which led me to believe this is rather a software issue than a hardware one.
The Microphone Jack is also not working (as they are on the same board with the usb port).
I am assuming the service or software responsible of activating the data connection when something plugged is just nothing working.
Has anybody experienced something like that? Is there anything that I can try to fix this issue?
The only thing I have not tried is factory reseting the phone and I am not sure if that would fix this issue and I want to do it as a last resort.
I just don't want to give up on my 5T as it's still rock solid except for this issue.
Damn bro. I am facing the exact same issue. Looks like this is end of life for OP5T phones? I had bought mine in 2017/18 can't remember now! Let me know if you are able to fix it anyway
I had the same symptoms and it was caused by a poorly designed ribbon cable inside the phone. The cable always has a little stress on it and over time it will break the connector on the motherboard.

Categories

Resources