Auto boot on power? - Samsung Galaxy Nexus

Hi!
I am planning to repurpose my Galaxy Nexus (Maguro) running CM13 as a media player/rear view camera viewer for my car.
I want to use a USB OTG camera, so I cannot use the micro USB port to charge the phone at the same time (or can I), so I tried ironing the power wires of the USB cable directly to he pins of the battery and it worked
I use a charger which provides power to the phone when the car engine is on, but the problem is that I need to turn on the phone manually every time...
Is there a way to make the phone boot automatically when it gets power?
I saw some threads for other phones which wanted to boot the phone when the charger was connected (not sure if that would be helpful for me but anyway). They achieved that by modifying a file called lpm in system/bin. However my phone doesn't have such file...
Thanks in advance for your help!

I found a file called pm and editted that one but nothing changed...
Help please!!!

Related

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

Galaxy S3: Using My Phone As Car Media Player

Just the basics . . . recommendation requested
Ok, I'm looking to turn my not active Sprint S3 into a 'monitor only' (no carrier data needed) for an on vehicle dash project. I'd like to have feedback on best means to accomplish the following (based on desired priority):
- have the S3 boot when power is rec'd from the vehicle power (usb from vehicle accessory power)
- boot fast (instead of the 50+secs it takes to boot w/ standard Sprint/Sammy boot process)
- normal use of existing apps (currently on 4.4.x, but will bring to newer if need be)
- have tasker (or similar app) to run certain apps automatically after startup
- retain wifi and BT functions
- have the S3 turn-off after power is lost
- remove all the BS bloatware from when it was a full blown sammy/sprint device
So I have the setup now running as the screen for my OBDII info with the Torque (Pro) app. It works fine, but the turn-on/turn-off steps make it less than desirable. I've read where the capabilities exist, but haven't found a good simple source. I don't need radio, or the other things I've seen for in-vehicle 'screen' capabilities.
Assumptions, will require custom-ROM and additional app's. My question(s) are: 1) best simple ROM 2) apps that can make it 'mo betta' 3)links to solution for some1 who hasn't rooted Android before [I see the links for choosing root/how to root --- awesome info] if a specific ROM is perfect solution.
Thx in advance ~
dec2015 said:
Ok, I'm looking to turn my not active Sprint S3 into a 'monitor only' (no carrier data needed) for an on vehicle dash project. I'd like to have feedback on best means to accomplish the following (based on desired priority):
- have the S3 boot when power is rec'd from the vehicle power (usb from vehicle accessory power)
- boot fast (instead of the 50+secs it takes to boot w/ standard Sprint/Sammy boot process)
- normal use of existing apps (currently on 4.4.x, but will bring to newer if need be)
- have tasker (or similar app) to run certain apps automatically after startup
- retain wifi and BT functions
- have the S3 turn-off after power is lost
- remove all the BS bloatware from when it was a full blown sammy/sprint device
So I have the setup now running as the screen for my OBDII info with the Torque (Pro) app. It works fine, but the turn-on/turn-off steps make it less than desirable. I've read where the capabilities exist, but haven't found a good simple source. I don't need radio, or the other things I've seen for in-vehicle 'screen' capabilities.
Assumptions, will require custom-ROM and additional app's. My question(s) are: 1) best simple ROM 2) apps that can make it 'mo betta' 3)links to solution for some1 who hasn't rooted Android before [I see the links for choosing root/how to root --- awesome info] if a specific ROM is perfect solution.
Thx in advance ~
Click to expand...
Click to collapse
Interesting. Hope to see some info on how this turns out.
Sent from my LGLS990 using Tapatalk
definitelyjoe said:
Interesting. Hope to see some info on how this turns out.
Sent from my LGLS990 using Tapatalk
Click to expand...
Click to collapse
I've settled on just turning on when I get in the truck . . . and just let it turn off when bat goes out. I do have CONDI starting the SAMMY starting the Torque APP (after turning on BT and WIFI --- sometimes I let it connect to my N6 via HOTSPOT) when USB power is recognized (on start via acc bus of truck), and when power not recognized to dim screen, turn off BT and WIFI in an effort to save battery power [reverses when power recognized]. As you can tell no solutions popped on this thread and I've got comfortable with setup.
My S3 is hardwired to the car's battery. I made a battery replacement pack that taps the OEM battery circuitry and filled it with epoxy, made an adapter to plug into a downstep power supply (from 12v to 4.9v), and the device is plugged in all the time.
I use the Car stereo's bluetooth to tether to it, I can download files/music from YoutubeRed and watch/listen while on the road. I could also preload the device's SD card with music, or even better, plug in a USB otg and plug in a USB hard disk if I needed to. But I so far use it for a dashcam (auto records on bluetooth) using AutoGuard (com.hovans.autoguard) dash cam
Been in multiple accidents, and it has protected me with the auto startup, and auto upload to youtube:
<can't show external links, too new>
Here is the battery I made:
<can't show external links, too new>
But the adapter to convert the car's 12v to the battery's 4.9 (so it thinks it's 100% and fully charged and not attempt to charge it if you want to plug in a charger as the event notification):
Buck Step-down LM2596 Power Converter Module DC 4.0~40 to 1.3-37V LED Voltmeter
You can search that on Ebay or Google for more on that.

how do I get otg 100% of the time

on CM 12.1 and I can get SOME flashdrive to work otg, SOME of the time.
I tried stickmount and ex kernel, but it's the same (worst on ex kernel, can't even detect otg)
I tried using a powered usb hub to see if that was the issue (for some reason, the microusb port isn't giving power to the drive. is this normal?)
after several more testing, seems like there are 2 issues that is causing otg not to work all the time.
1. Power. Doesn't seem to be able to provide enough power for self powered usb devices (ie. flash drive, dac, etc..) or enough to maintain connection.
2. Microusb port. might be one of the reason why devices aren't getting enough power and/or not being detected.
I really think it's a power issue cause everything seems to run fine if I connect it to an external powered usb hub. I tried the same setup (flash drive and dac to an usb hub, no power) with my 1st gen Nexus 7 and it had zero issues.
so is there a way to raise or maintain 5v OUTPUT out the microusb port so it doesn't randomly disconnect otg devices?
I've been able to power A pretty heavy duty usb audio interface. I think I may have had that issue A couple times, but it was never A big deal for me.
I don't remember having the problem after enabling "OTG+Charging" in Elemental X kernels' aroma installer. Did you use that?
Also possibly (not likely) A Cyanogenmod issue. I haven't used that on the nexus 7 in A while though.
Wierd that flash drives don't stay on. Does it do that frequently? I've looked into "overvolting" the usb port A long time ago, it seemed to need A kernel change

Power to USB with HU off MTCB-KLD6 - is it posible ?

Hello,
i use the Malaysk rom for several days now and is okay except the acc issue (waiting for the update).
I have a question : is there any way to make the unit to keep the usb port powered after the unit had shut down? The only solution i have right now is to modifi the usb cable to take the pins 1 and 4 and connect them (with power adapter) directly to the battery (The memory wire of the HU witch is always powered). I realy do not want to make this modification, so if someone has a ideea how to keep power to USB port all the time by software config method please let me know.
HU - MTCB-KLD6 1024X600 Quad core version.
Marmalux said:
Hello,
i use the Malaysk rom for several days now and is okay except the acc issue (waiting for the update).
I have a question : is there any way to make the unit to keep the usb port powered after the unit had shut down? The only solution i have right now is to modifi the usb cable to take the pins 1 and 4 and connect them (with power adapter) directly to the battery (The memory wire of the HU witch is always powered). I realy do not want to make this modification, so if someone has a ideea how to keep power to USB port all the time by software config method please let me know.
HU - MTCB-KLD6 1024X600 Quad core version.
Click to expand...
Click to collapse
Out of curiosity - why do you want to do that?
The USB is still powered when the unit is in sleep mode, so you can increase the time it spends in sleep mode before it shuts down to 2 hours, which is the maximum.
After it has shut down, there is no software solution to keeping the USB port powered.
Hello,
Beacuase of the issues with the 3G dongles I choosed a mobile wifi hotspot. The problem is the device act's just like a phone (when it's own battery discharges it shut down it self. When it gets power to USB port again it goes in a battery charging mode (it does not start automatically)). That is why I want constant power to the USB port (to prevent the device to shut itself down).
Try this.
USB Wingle

autoboot S9 on charge

Hello there !
I want to make a car installation with my galaxy S9, so I need it to shutdown at the same time of the car (solved with root and tasker) but despite of all my research an attemps, I can't figure out how to boot when usb charge on.
I tried lpm method, but no way, the lpm file comes back as new and as there is no fastboot, the so-called method don't work either.
As this phone will only stream music to my car with bubble upnp, I don't mind if I need another OS, but as I paid for rooting, if I could keep the actual one it would be nice.
Thanks for your help and take care !

Categories

Resources