Autoboot when USB charger plugged in? - Nexus 5X Q&A, Help & Troubleshooting

Hi. I try a way to do this.. When phone is off and connect USB charger, nexus to boot in android, without having to press power on.
I need this to auto start Android auto in car..
I am rooted with twrp. I have seen method for Samsung phones, but not for nexus 5x.
Has anyone succeed it in nexus 5x?
Thanks,

I read somewhere that most nexus phone, do what I want, by adb , giving: fastboot oem off-mode-charge 0
But when I give this in adb, it writes: waiting for phone, and nothing happens. Adb do see phone.

I suppose noone has made it in nexus 5x. But in nexus 5 i have read it works..
Anyway as i cant do it, i implemented the second best thing.
I created a script in tasker, when usb charging is on to open wifi, gps, Bluetooth.
When usb charging goes off, close all, gps, wifi, Bluetooth, open saving battery mode, and kill every open app..
This way battery is lasting weeks..

Did you try:
Code:
fastboot oem off-mode-charge 0

Related

Phone will no longer boot... brand new :(

Wondering if you guys could solve my new Nexus issue.
- Working fine this morning.. alarm went off, checked the weather (via Google Now, of course), traffic, etc. Charged overnight with the Samsung cable and wall adaptor.
- When I got to work, I noticed a blank triangle where the mobile signal usually is and "Cannot connect to mobile network" on the home screen with "retry" under it. I hit retry a few times but no joy. So, I powered off......
- It powers off, per usual. I wait the usual 10 seconds or so and I hold in the power button. Nothing. I hold it in longer. Nothing.
- I google for some reset tricks. I hold in the up and down volume at the same time then hold in the power button. Nothing.
- I remove the battery and sim. Plug up the phone to power (even though it was at 99% when I powered down). Do the volume trick. Nothing.
- I plug back in the battery, now connected to the wall, do the volume trick again. Nothing. No flashing lights, no on screen icon telling me it's even plugged in.
The battery doesn't appear to be swollen or anything out of the usual. No electrical storms last night. No blackouts/grayouts according to our microwave.
Any other tips or tricks? I have spoken with Samsung via phone and they said "return it to Google".... Really helpful! :good:
snappjay said:
Wondering if you guys could solve my new Nexus issue.
- Working fine this morning.. alarm went off, checked the weather (via Google Now, of course), traffic, etc. Charged overnight with the Samsung cable and wall adaptor.
- When I got to work, I noticed a blank triangle where the mobile signal usually is and "Cannot connect to mobile network" on the home screen with "retry" under it. I hit retry a few times but no joy. So, I powered off......
- It powers off, per usual. I wait the usual 10 seconds or so and I hold in the power button. Nothing. I hold it in longer. Nothing.
- I google for some reset tricks. I hold in the up and down volume at the same time then hold in the power button. Nothing.
- I remove the battery and sim. Plug up the phone to power (even though it was at 99% when I powered down). Do the volume trick. Nothing.
- I plug back in the battery, now connected to the wall, do the volume trick again. Nothing. No flashing lights, no on screen icon telling me it's even plugged in.
The battery doesn't appear to be swollen or anything out of the usual. No electrical storms last night. No blackouts/grayouts according to our microwave.
Any other tips or tricks? I have spoken with Samsung via phone and they said "return it to Google".... Really helpful! :good:
Click to expand...
Click to collapse
can you enter bootloader? Vol up + vol down + power?
If you can you can try restore a factory image from google
Ozkitar said:
can you enter bootloader? Vol up + vol down + power?
If you can you can try restore a factory image from google
Click to expand...
Click to collapse
Thanks for the tip! The volume up + down + pwr was the first troubleshooting tip I found on Google. No Joy
What really worries me is that, even though it's plugged up, there isn't an icon or light on the device telling me it's hooked up.
When plugging Nexus via USB to PC you can hear the sound if that USB device/thing is connected.. so then should be maybe some ways to fix it with some programs..
does the Odin flash mode work..? when off then press power and then volume down if I remember right..
Try this: http://forum.xda-developers.com/showthread.php?t=1640443
manumanfred said:
When plugging Nexus via USB to PC you can hear the sound if that USB device/thing is connected.. so then should be maybe some ways to fix it with some programs..
does the Odin flash mode work..? when off then press power and then volume down if I remember right..
Try this: http://forum.xda-developers.com/showthread.php?t=1640443
Click to expand...
Click to collapse
I'll give it a shot! Thanks!:fingers-crossed:
Oops, forgot to mention. It does NOT make a ding when plugging up. Tried other USB plugs in the back and front... :-|
Strange?! I would say leave it charging for a couple of hours and then come back and see if it will power back up..
Sounds like your phone has died. Better to take it to corporate Verizon store and get it replaced
Sent from my Galaxy Nexus using xda premium
snappjay said:
I'll give it a shot! Thanks!:fingers-crossed:
Oops, forgot to mention. It does NOT make a ding when plugging up. Tried other USB plugs in the back and front... :-|
Click to expand...
Click to collapse
Okay..
try this:
take battery off and then plug it to PC via USB cable, let it to be like that something 30 seconds and then open CMD in Windows and then put cd ADB platform-tools location to it if you have installed SDK, you need USB driver from AVD manager!...
then type to CMD: adb devices and if it can find your device then put to cmd the adb re-boot or what is the command, maybe it works..
If PC says cannot be installed the USB driver then find from google the OMAP4440 driver and install it and then type ADB devices..
for ZTE Blade this de-bricking was so easy, just needed to pust image folder where is the tpt files and then to boot by pressing power, menu and volume -...
To unbrick Galaxy Nexus is a bit harder but you might be able to fix it like with the OMAP4440 files + driver to flash the boot stuff to it.. there was something thread how to do it (in thegeneral forum,maybe 5-8 threads back..) ..
manumanfred said:
Okay..
try this:
take battery off and then plug it to PC via USB cable, let it to be like that something 30 seconds and then open CMD in Windows and then put cd ADB platform-tools location to it if you have installed SDK, you need USB driver from AVD manager!...
then type to CMD: adb devices and if it can find your device then put to cmd the adb re-boot or what is the command, maybe it works..
If PC says cannot be installed the USB driver then find from google the OMAP4440 driver and install it and then type ADB devices..
for ZTE Blade this de-bricking was so easy, just needed to pust image folder where is the tpt files and then to boot by pressing power, menu and volume -...
To unbrick Galaxy Nexus is a bit harder but you might be able to fix it like with the OMAP4440 files + driver to flash the boot stuff to it.. there was something thread how to do it (in this general forum,maybe 5-8 threads back..) ..
Click to expand...
Click to collapse
He says the phone is brand new and didn't mention it was rooted. I don't think he bricked his phone. It probably just died. He can replace it since its under warranty.
Sent from my Galaxy Nexus using xda premium
huskers15 said:
He says the phone is brand new and didn't mention it was rooted. I don't think he bricked his phone. It probably just died. He can replace it since its under warranty.
Sent from my Galaxy Nexus using xda premium
Click to expand...
Click to collapse
the ROOT is not needed if not editing any system files...
if ADB can find the device then the phone can be fixed via ADB!
also with the OMAP4440 files..
So he doesn't need any root!
Thanks for all the help, guys.
This phone is completely "virgin" with 4.1.1. No root, bootloader, or anything at all. I wanted to get the feel of stock JB before I went rom crazy.
I always figured I'd brick a phone at some point, but I didn't think I would brick it before rooting!
Also, this is the GSM (post-ban) GNex directly from Google Play. I'm on the phone now with Google Support (45 minutes and counting! Yikes!) :silly:
Also, the phone has been plugged in for around an hour now without any life. I had the battery out for 30 minutes before that, each time cleaning the contacts on both battery and SIM.
As Professor Farnsworth would say...
"GOOD NEWS, EVERYONE!"
Not sure why, or how, but leaving the battery out for an hour or so will, apparently, bring a dead phone back to life.
I haven't had a removable battery since 2007 (pre iPhone 2G), so this stuff is new to me :good:
You guys rock. :highfive:

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

Dead Nexus 7 2013

Hi All,
I've been looking into the forum and came across couple of issue with 'dead' nexus 7 but none of them applies for mine. I was browsing the device, when suddenly it flashed and powered down. Now the table wont charge (there is no battery logo) and even the table wont powering on. I tried both with power and usb charging (for long hours).
The device is recognized by adb drivers (as unauthorized) hence could not do any modifications and not recognized at all by fastboot. I was wondering if someone had similar issue in the past with nexus 7 2013 (2nd gen) or similar android tablets/handsets.
I appreciate any help!
Thanks
attam9891 said:
Hi All,
I've been looking into the forum and came across couple of issue with 'dead' nexus 7 but none of them applies for mine. I was browsing the device, when suddenly it flashed and powered down. Now the table wont charge (there is no battery logo) and even the table wont powering on. I tried both with power and usb charging (for long hours).
The device is recognized by adb drivers (as unauthorized) hence could not do any modifications and not recognized at all by fastboot. I was wondering if someone had similar issue in the past with nexus 7 2013 (2nd gen) or similar android tablets/handsets.
I appreciate any help!
Thanks
Click to expand...
Click to collapse
How is it recognized in ADB or fastboot without powering on? My understanding is that the tab would not turn on if the battery is dead since it doesn't use the current supplied through USB directly. It could be something as simple as that; or the battery connector came off as it is rare one would go out abruptly like that.
graphdarnell said:
How is it recognized in ADB or fastboot without powering on? My understanding is that the tab would not turn on if the battery is dead since it doesn't use the current supplied through USB directly. It could be something as simple as that; or the battery connector came off as it is rare one would go out abruptly like that.
Click to expand...
Click to collapse
It is recognized in ADB as an unauthorized and every command is type the response is "error: device unauthorized ...." Is there a way to Enable USB debugging from command line (windows/linux)? There are no blinking leds, and cannot boot it up into recovery mode.
attam9891 said:
It is recognized in ADB as an unauthorized and every command is type the response is "error: device unauthorized ...." Is there a way to Enable USB debugging from command line (windows/linux)? There are no blinking leds, and cannot boot it up into recovery mode.
Click to expand...
Click to collapse
I understand your saying "it won't power on" to mean nothing happens when you try to turn it on- as in it's totally dead. In that state, PC won't even see anything, let alone recognize an ADB device. You might want to backtrack a bit and tell what you did, what happened, and what you're trying to accomplish now, and maybe someone can help.
Does it turn on at all, and if it does, how far would it get?
graphdarnell said:
I understand your saying "it won't power on" to mean nothing happens when you try to turn it on- as in it's totally dead. In that state, PC won't even see anything, let alone recognize an ADB device. You might want to backtrack a bit and tell what you did, what happened, and what you're trying to accomplish now, and maybe someone can help.
Does it turn on at all, and if it does, how far would it get?
Click to expand...
Click to collapse
Thank you for your reply.
After troubleshooting I noticed that its not dead since i am able to see the devices under adb devices. I also noticed that the device isnt dead because it rang when I clicked locate my device from my google account.
I think its the display which is faulty. I will buy an HDMI cable for the nexus 2013 device and connect it to hd tv to mirror the display.
Thanks

GN doesn't boot or turn on if unplugged

Hello I have a problem with my galaxy nexus. my dad's using it and yesterday while he was browsing the phone shut down e turned on only if plugged in. So today i'm trying to figure out what's the problem.
If unplugged it doesn't turn on in any way, it's like dead. When I plug it in i can only turn it on in fastboot mode but i can't enter recovery or boot the phone, if i try one of those it goes to the google logo and then turns off or return to fastboot and if i unplug the phone while it's in fastboot it turn off immediatly. I also tried to turn it on without battery and sim but nothing.
Oh and there is one thing my dad noticed yesterday. I gave my phone to my dad to subtitute his huawei y530 and copied on my GN photos, music and contacts. Yesterday when the phone turned off he said that for like half second he saw on the screen the huawei logo, and i can't understand why.
I also tried the procedure described there http://forum.xda-developers.com/galaxy-nexus/general/bricked-gnex-brought-to-life-t1760787 but nothing.
hope someone can help me, and sorry if english is not perfect.
It might sound a bit like a battery problem here. Try to take out the battery and plug in the phone the try to start it. If it does not work, via adb try to flash a Google Factory image for GNex. This is all I csn think of right now
Sent from my Galaxy Nexus
AdmiralulNipples said:
It might sound a bit like a battery problem here. Try to take out the battery and plug in the phone the try to start it. If it does not work, via adb try to flash a Google Factory image for GNex. This is all I csn think of right now
Sent from my Galaxy Nexus
Click to expand...
Click to collapse
I can only access fastboot mode (where you have to select to start the phone normally, in recovery or reboot bootloader) and if i remove the battery the phone shuts down, no matter if it is connected to AC or USB.
If i plug the phone in to my pc usb (with phone turned off) i can hear the sound of the usb connection and after a few seconds it disconnects and keeps doing that over and over.

Fastboot won't connect to Nexus 7

I have an issue very similar to this thread: https://forum.xda-developers.com/nexus-7-2013/nexus-7-2013-qa/unable-to-nexus-7-fastboot-mode-t3966600
I got mine for parts on ebay with "power issue." It had low battery and it charged up fine overnight, but when it boots up to either system or recovery it just stays on the Google logo.
It boots into Fastboot fine, but it will not connect to my computer. Computer has the lastest Manjaro linux with android-tools and connects to my Xiaomi Mix 2S fine, but neither "fastboot devices" or "lsusb" will show anything about the nexus, in USB 2 or 3 ports.
I opened it and reseated the silver cable between the boards, and also tried several different micro-usb cables, no dice. The port and circuit boards look completely fine. The screw seals show that it has been taken apart before.
I was not able to boot it to enable usb debugging, does fastboot need that?
Update: I did actually get it to boot, when I opened it I unplugged the battery and held the power button for a while to drain all the power. Fastboot still does not work, but I was able to factory reset it and install the last two updates. Curiously, I cannot connect to it with USB, maybe the data lanes are dead? And then after using it a half hour, it froze and I had to hold the power button to turn it off, and now its back stuck at the google logo.
Ekterm said:
I cannot connect to it with USB, maybe the data lanes are dead?
Click to expand...
Click to collapse
Measure the data lanes:
https://forum.xda-developers.com/showpost.php?p=80212550&postcount=4
and
https://forum.xda-developers.com/showpost.php?p=80218074&postcount=6
It's a different USB issue but the measurements must be the same.

Categories

Resources