Usb-otg and charging? - Lenovo P2 Questions & Answers

Has anybody got usb-otg and charging working at the same time?

Didn't tried​ as I don't need that, but it's annoying that when I connect my flash drive to the phone the charging notification appears. :silly: Otherwise it works as it should.

Related

Is there any way to trigger ADB whenever you plug in the charger?

I have a 3rd party charger purchased from Korea that triggers ADB whenever I connect my phone to it, and somehow, I do not get the sudden % drop if I disconnect my phone after it's been done charging for a while.
I've done this a few times with the HTC charger included, and I always get that quick drop, but not with this 3rd party charger. Anyone has any idea what triggers that ADB mode?
ADB? Can you deabbreviate?
I presume you mean that the phone just flashes up a notification that USB debugging is enabled? Normally, you shouldn't see this when plugged into a charger, and I presume that it has something to do with how the cable is wired up.
Regards,
Dave

[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?

Broken usb port

Hi guys i have a problem.
So i have played with an mhl cable.......anyway my usb port on my device is not working anymore so any repair or anything?
And i forgot to say that charging works normal also tried otg cable and it does not work. maybe a new motherboard?
If charging mode works normally, so maybe You have another problem... Hmm You cant connect Your phone to PC or what? Maybe there is a driver problem?

Offline charging is not working. Phone starts when i connect to the charger

Today i update the ZL-LockedDualRecovery of my phone and i having this problem now
Offline charging is not working. Phone starts (boot) when I connect to the charger
I think it's something related to chargemon.stock file .Anyone remember how to fix this problem? :crying:

Help to fix charging and usb connection issue

Hello dear.
I have a problem with my p601,
I cant connected my tablet to PC.
When i connected, just charging and no any connection.. In odin or storage not show a device, adb not connected...
And when i used a charger show an red stroke on battery icon. And charging is very slowly, during night only 50%.
I'm root my device, install twrp, and install cyanogenmod, but nothing change.
Now whats your idea? How i can fix this issue?
This may be an obvious question but have you tried a different cable or charger? I always found running on stock ROM that charging was an issue unless I powered it down. I have used a 12W Crapple charger and that seems to work ok but charging has never been an endearing part of the this tab.
So in Odin you it doesn't work? Could you have some dirt or contaminants in the USB port, start with the obvious, change the cable, use a different usb on the pc or try another pc altogether.
I had same problem, i noticed that the usb port was loosen little bit, i had to open the tablet apply small pressure with plier to afjust the usb port,,,, and now it's perfect.

Categories

Resources