I'm configuring an old Galaxy Fame to serve as sat navigator fixed on my car dashboard, aiming at using the always-up-to-date and free OpenStreetMap.
When I turn the key, the phone's usb is powered at 5V, when I turn off the car, the usb has no power. The phone is able to detect these events and I scripted some actions upon them, aiming at providing an instant-on and instant-off navigator service.
The phone remains always on, just switches to a power-save status when the car is off. The navigator app – OsmAnd – starts automatically at boot, but boot does not occur between a car-on / car-off cycle, because the phone remains on to detect the mentioned usb changes.
Currently, what happens when I start the car and the usb gets powered:
Display is lit (echo 200 >/sys/class/backlight/panel/brightness)
Sat receiver is activated
Cpu frequency set to max
What happens when I turn off the car and usb loses power:
Display's backlight off
Sat receiver goes off, along with wify and bluetooth, in case they might have been active
Cpu frequency set to minimum
Up to this point everything is working. My problem now is that, when the car goes off and the phone enters this quasi-standby mode, the touchscreen still accepts input and, if the phone is handled or touched for whatever reason, it will stealthily react to those commands while the screen is unlit.
So I'm looking for a practical way to disable and re-enable the touchscreen – and possibly some or all the physical buttons – via the command line. Maybe I can unmount some kernel module?
Related
This is a really frustrating problem and I have like 50 tabs open trying to find a solution... no dice. If the device goes into standby while connected to my computer, the usb connection is lost. Never saw this behavior with my TP2. I must've screwed with something stupid. For what its worth, I have been able to keep wifi alive and have sound continue playing upon timeout and/or forced standby (endkey).
Right now I'm just looking over HKLM\System\CurrentControlSet\Power\State
wav1 is sound. Easy to enable that to play during standby - set dword of 4 to 0 in both unattended and resuming nodes.
It seems like the reg key of default in each node assigns a value/power state to functions not explicitly defined in that node.. Better put as an example... if wav1 key was deleted from unattended node, it would be set to whatever the value of Default regkey was. Thats more of a question than a definitive statement.
Its the little things that kill... I could've sworn I had the usb connection functioning correctly when the device was off/sleeping.
I have the same problem with USB disconnect. I figure out it`s comes with Energy.Leo.23569.Sense2.5.Cookie.DinikGlass ROM
Pushing end key to turn screen off enters the phone into standby/sleep mode. The phone will only go into standby/sleep if you push the end button a few times. The phone won't by itself because its waiting for syncing or data if hooked up for disk storage. If the phone went to standby/sleep mode by itself and you were syncing or transfering data you would be screwed. The only time the phone will turn the screen off is while hooked to a computer in tether mode, and its not going into sleep mode at that time either.
It's my understanding that the wifi on this phone has a very low power usage when inactive in standby. I'm going to guess, however, that the power usage goes up when it "wakes up" to scan for open and/or configured AP's. I'd also guess that it'd have to take the phone processor out of "sleep" and wakelock in order to perform that function
I'm wondering how often android (or this phone's default ROM in particular) will wake up to perform a scan of access points when it's NOT currently connected (but the wifi radio is left on at all times), and configured to only connected to known AP's.
Anyone?
Thanks
Gary
Im looking for a Android powered GSM phone that will automatically turn itself back on if the battery is dead and power is reconnected.
I want to stash this in my vintage automobile and use tracking software to locate the vehicle in the unfortunate event its stolen. The only issue I need to solve is if the battery dies and the phone turns off how to turn it back on automatically. I plan to put the device in the door panels so access will be difficult.
Does anyone know of a phone that does this?
Not sure where to post a question like this so I figured I'd start here.
psychoholica said:
Im looking for a Android powered GSM phone that will automatically turn itself back on if the battery is dead and power is reconnected.
I want to stash this in my vintage automobile and use tracking software to locate the vehicle in the unfortunate event its stolen. The only issue I need to solve is if the battery dies and the phone turns off how to turn it back on automatically. I plan to put the device in the door panels so access will be difficult.
Does anyone know of a phone that does this?
Not sure where to post a question like this so I figured I'd start here.
Click to expand...
Click to collapse
Please check NoMoarPowah! app from Chainfire - https://play.google.com/store/apps/details?id=eu.chainfire.nomoarpowah&hl=en
NoMoarPowah! can automatically reboot into Android when charging is done. Either when fully charged, or when the battery level reaches 15% and Android has enough juice to run.
The app is known to work on the following devices -
Tested on the following devices:
- Samsung Galaxy S (I9000) and family
- Samsung Galaxy S2 (I9100) and family
- Samsung Galaxy Tab 7" (P1000) and family
- Samsung Droid Charge
- Samsung/T-Mobile Sidekick 4G
- Samsung Continuum (ticker overlaps)
Awesome thank you!!
Kind of a useless app, since you have to select your option each use. May as well just plug in and power up.
Note 2 > Deodexed Stock ROM > Tapatalk 2
you should try with Tasker (but that's not a free app, unfortunately)
Car Charging
Intelligent Approach,
I have also did the same thing but with some alteration and continue improvements to it for my vehicle security, i also did the same but putted the phone in dashboard and connected it to car cigarette lighter socket internally,(simple wiring), whenever car starts, it will start charging and Battery Booster apps Prevents Overcharge.
But currently i have hidden my Phone Near Speakers at the Back, and integrated it with Car Key less entry Remote (Car Security), so when ever some Opens my Car Doors, Car security Sends 12v Current to Siren as well as Car Charger that is connected to Mobile.
My Mobile is Programmed using an simple App that Call my Phone Number whenever It detects "Car Charger Connected" Event.
In short I get informed by my car in case of Un Authorize Access simple.
Keep it Up.
Anjum
how do you detect car charger connected event programmatically?
hi greatanjum,
thanks for your interesting post.
how do you detect car charger connected event programmatically?
could you please post a source code snippet about this?
Thank you
silvio
P.S. : I think I've gotted myself ... Using BatteryManager and its BATTERY_PLUGGED_* and EXTRA PLUGGED ...
Am I right?
psychoholica said:
Im looking for a Android powered GSM phone that will automatically turn itself back on if the battery is dead and power is reconnected.
I want to stash this in my vintage automobile and use tracking software to locate the vehicle in the unfortunate event its stolen. The only issue I need to solve is if the battery dies and the phone turns off how to turn it back on automatically. I plan to put the device in the door panels so access will be difficult.
Does anyone know of a phone that does this?
Not sure where to post a question like this so I figured I'd start here.
Click to expand...
Click to collapse
if you flash TWRP and turn your phone off soon as it is connected to a charger it will boot into recovery, with that being said you easily the partition it boots into from recovery to system
i know this is a tad old post but it was near the top of google search so others may still find this thread useful
but samsung galaxy europa (its quite old and cheap £/$20 or less unlocked and locked) phone seem to work well for me only modification you have to make to the phone is the power button needs to be held down (at the start i used a clamp or large paperclip), so soon as power is received it turns on even after full power drain as when the charger is powered up it starts the auto charge which then checks the keys and sees the power/hangup button is pressed (power button is ignored as long as its left constantly held down so it not turn off) o and make sure sound is set to silent or the low battery warning will blaring away when it is running low (i do believe there is a extended battery you can get for the phone as well)
i use FollowMee for tracking and wheresmydroid as backup (has sms keyword triggering) FollowMee me never failed me) only issue is you need lots of account with wheresmydroid if you have more then 2 devices (assuming you want to use it to track via website if not the SMS keyword GPS one off tracking can be useful and it will use google WiFi Geolocation if GPS fails to work and a wifi access point is in range and you have mobile data) FollowMee does have a one off $3 or $6 payment for full 15-30 day history unlock (but works fine as free as well but will only show one current location at a time no history)
and disabled all automatic updates on google play (make sure you open google play a number of times with 5 minute delay between each open so it installs the newer version and let it update or it might get stuck in a loop and eat all mobile data) on the phone and push updates so only the app uses data (you could probably get away with a M2M sim as well), also set the phone to 2G only as 3G is bit flaky on samsung phones and 2G uses nearly no power as well
My Note is dead:
http://forum.xda-developers.com/showthread.php?t=2197422
and probably not worth fixing at this stage. So I'm repurposing it to an in-car installation; the old crappy factory satnav is being ripped out, the bezel modified, and the Note clipped in in its place. Permanently wired to power through USB of course. Hoping to get a couple of tips on this:
1. Since the power button won't be easily accessible once installed, I hope not to have to touch it too often. Any suggested tweaks, mods, or settings to make the phone:
- go into the lowest possible power sleep mode (network, bluetooth etc. off) automatically when power goes off. (i.e. ignition off)
- wake up fully (network, bluetooth etc. on) automatically when power restored. (i.e. ignition on)
- (hard one) power on automatically if phone battery is flat and power is switched on
2. The Note doesn't work as a phone (dead SIM socket). But it's going to be there as part of the dashboard. Is there any… remote app or protocol that would allow it to use the network connectivity of another Android device to make and receive phone calls? Just like you can set up a portable hotspot to allow another device to use your phones data connection, can you allow another device to use your phones modem to make a voice connection? Idea is I would take my regular phone, shove it on a charger in the glove compartment, then make and receive calls on that phone via the Note built-in to the dashboard.
Or failing that, some kind of VNC remote desktop for Android, so I can *control* my regular phone in the glove compartment, without touching it, from the Note?
3. It's going to be in landscape mode permanently of course. Is there an app that will allow me to tell the phone to disregard the hardware buttons (home/back/menu etc.) and replace those with soft buttons on the bottom of the landscape oriented screen?
Running 4.0.4 / Seraphim Mesosphere ROM.
Thanks
Mike
I believe you might be asking for a bit too much. I dont think there is a way to make calls from your note through your other phone but another solution would be to buy a bluetooth hands free kit for your car. that way the phone can be stuffed in your glove compartment. And if your phone has wifi tethering, you can use that to connect your note to the internet. Just my 2 cents
I'm new to using Tasker but figured out how to make my GPS turn on high accuracy mode and bluetooth on and off when it is plugged in to the car.
All I did was create a new profile > State > power > changed source to AC, then using secure settings plugin had it enable GPS, then changed state to inverted to have it turn off ( I could of used exit state which I just figured out). It works, changes to high accuracy when it's plugged in then battery saving mode when it's not.
Thing is, I'd like a 5 minute delay before it turns off and I can't figure out how to do it. I did find a profile on the Tasker Wiki that turns BlueTooth off with a 5 minute delay that works fine, I figured I could learn from it and do the same with the GPS, but nope.
Can anyone help me figure this out? Thanks for any help