Can this be done?
Can you explain a bit more? The screen remains off until you turn it on.
I noticed this too. Unplug your phone and the screen turns on. Never happened on my previous android phones.
RogerPodacter said:
I noticed this too. Unplug your phone and the screen turns on. Never happened on my previous android phones.
Click to expand...
Click to collapse
Yep, this is what I'm talking about.
I did the Touchstone mod, and while at work I always grab my phone and go right into my pocket. I'd like to keep the screen off so I don't hit anything on the screen.
RogerPodacter said:
I noticed this too. Unplug your phone and the screen turns on. Never happened on my previous android phones.
Click to expand...
Click to collapse
Hmmm, this happens on EVERY phone or tablet I've used... Even my iOS devices do this. Same when plugging in... The screen will turn on.
I've wondered this myself. I'll attempt to make a tasker profile that shuts off the screen after a delay of a second or so after it detects being unplugged from the charger. I'll post if I have any luck with it.
I had a D2G and it would turn the screen on when plugged in, but not when unplugged.
I've created some tasker profiles that will turn the screen off after a three-second delay when plugged into (or unplugged from) USB or AC power. These rules are ignored when the phone has been unlocked and is currently in use.
I haven't tested them extensively so there could certainly be some bugs, but they've worked for me the past hour or so.
Just need a dev to do it.
<!-- If this is true, the screen will come on when you unplug usb/power/whatever. -->
<bool name="config_unplugTurnsOnScreen">false</bool>
frameworks/base/core/res/res/values/config.xml
adrynalyne said:
Just need a dev to do it.
<!-- If this is true, the screen will come on when you unplug usb/power/whatever. -->
<bool name="config_unplugTurnsOnScreen">false</bool>
frameworks/base/core/res/res/values/config.xml
Click to expand...
Click to collapse
This interests me more than a Tasker profile....
adrynalyne said:
Just need a dev to do it.
<!-- If this is true, the screen will come on when you unplug usb/power/whatever. -->
<bool name="config_unplugTurnsOnScreen">false</bool>
frameworks/base/core/res/res/values/config.xml
Click to expand...
Click to collapse
Could we just do the edit ourselves using something like Root Explorer?
No. It is compiled into resource.asrc.
All someone has to do is change that line and recompile that individual package. Easy for anyone already setup to compile and is synced to the repo.
Btw ard is on top of things for posting that so quick. He prob has every line of code memorized!
I've compiled AOKP with
<!-- If this is true, the screen will come on when you unplug usb/power/whatever. -->
<bool name="config_unplugTurnsOnScreen">false</bool>
I can upload it if anyone is interested
Sorry for waking up this thread from the dead, but I have 2 questions:
1) Could someone explain why if the current CM10 build I have on my GS3 (10-20121124-NIGHTLY-i9300) apparently has the value for config_unplugTurnsOnScreen set to false (according to the current github file: https://github.com/CyanogenMod/android_frameworks_base/blob/jellybean/core/res/res/values/config.xml), but still the screen turns on when unplugging from charge?
2) I actually also want this to happen when starting to charge (so that the screen keeps off when put to charge instead of turning on...), yet I didn't find a config_plugTurnsOnScreen configuration... Does anyone know where else (and if) this option could be found and tinkered with?
As a side note, I have modded my gs3 with the touchstone wireless charging trick and I put it on and off the touchstone charging base quite oftenly and would like to prevent it from turning on the screen each time I put it to charge or remove it from charging... maybe there's a general android option that handles wireless charging options so that the screen is not affected on those events? (something like these WebOS options intended for the original use of the touchstone on WebOS: http://www.webosnation.com/keep-screen-while-touchstone)
Thanks!
rgonzruiz said:
Sorry for waking up this thread from the dead, but I have 2 questions:
1) Could someone explain why if the current CM10 build I have on my GS3 (10-20121124-NIGHTLY-i9300) apparently has the value for config_unplugTurnsOnScreen set to false (according to the current github file: https://github.com/CyanogenMod/android_frameworks_base/blob/jellybean/core/res/res/values/config.xml), but still the screen turns on when unplugging from charge?
2) I actually also want this to happen when starting to charge (so that the screen keeps off when put to charge instead of turning on...), yet I didn't find a config_plugTurnsOnScreen configuration... Does anyone know where else (and if) this option could be found and tinkered with?
As a side note, I have modded my gs3 with the touchstone wireless charging trick and I put it on and off the touchstone charging base quite oftenly and would like to prevent it from turning on the screen each time I put it to charge or remove it from charging... maybe there's a general android option that handles wireless charging options so that the screen is not affected on those events? (something like these WebOS options intended for the original use of the touchstone on WebOS: http://www.webosnation.com/keep-screen-while-touchstone)
Thanks!
Click to expand...
Click to collapse
You might have better luck over in the galaxy s3 forum
http://forum.xda-developers.com/forumdisplay.php?f=1563
Darunion said:
You might have better luck over in the galaxy s3 forum
http://forum.xda-developers.com/forumdisplay.php?f=1563
Click to expand...
Click to collapse
Thanks... I thought the questions were generic-android enough to be answered right here....
adrynalyne said:
No. It is compiled into resource.asrc.
Click to expand...
Click to collapse
Ah, so we can decompile the framework-res.apk, change that value, then recompile it?:laugh::good:
EP2008 said:
Hmmm, this happens on EVERY phone or tablet I've used... Even my iOS devices do this. Same when plugging in... The screen will turn on.
Click to expand...
Click to collapse
FYI, it didn't happen on the N1. It did at first, but it was fixed after one of the updates. I hoped that was a sign that someone figured out how dumb it is to automatically turn on the screen right before I put it in my pocket, but apparently it was just an accident
Related
Anyone know if there's a setting somewhere to keep the screen on when Xoom is in the standard dock? I don't see anything anywhere.
Settings>Applications>Development>Stay Awake
cobraextreme said:
Anyone know if there's a setting somewhere to keep the screen on when Xoom is in the standard dock? I don't see anything anywhere.
Click to expand...
Click to collapse
Its easy enough to set the display to remain on while docked and CHARGING. See above post.
If you want it to remain on whether you are charging or not, it would probably be easiest to just create a widget using Extended Controls that you could toggle with ease.
screeble (If it works on honeycomb) allows you to keep the screen on or off based on the angle.
All great suggestions, thanks guys!
Sent from my Xoom using XDA App
I'm surprised there is no auto launch for the clock app when docked. My N1 has this and its great. I've used it as my alarm clock since I got it.
Aaron636r said:
Settings>Applications>Development>Stay Awake
Click to expand...
Click to collapse
I'm having trouble with this when developing apps using my Xoom while only connected via the micro usb port. The screen shuts off after my allotted window. Now, when charging, the screen does stay on. Still, kinda a pain.
jondwillis said:
I'm having trouble with this when developing apps using my Xoom while only connected via the micro usb port. The screen shuts off after my allotted window. Now, when charging, the screen does stay on. Still, kinda a pain.
Click to expand...
Click to collapse
thats interesting, android must be using its charging status as a way of identifying if its connected or not and thus ignoring the usb connection since it does not believe itself to be charging. obviously you can just put a toggle on there to leave screen always on manually (with something like power widget) but good to know.
Running Winnner00 CM9 + Franco kernel (tried nightly 160 and stable M3)
Using Franco's app I am unable to enable force fast charging. The checkbox in Settings seems to be ignored. Tried both nightly and stable kernels, reboots, etc. It does work from command line, so I think the issue is in the app itself. Am I missing something here?
Any suggestions?
Does CM9 have the option built in? I know AOKP does. I leave them both fc options enabled (rom & kernel) because I charge my phone in the car waaay more often then I plug it up to the comp. If CM9 has an option for it enable it there.
hichhiker said:
Running Winnner00 CM9 + Franco kernel (tried nightly 160 and stable M3)
Using Franco's app I am unable to enable force fast charging. The checkbox in Settings seems to be ignored. Tried both nightly and stable kernels, reboots, etc. It does work from command line, so I think the issue is in the app itself. Am I missing something here?
Any suggestions?
Click to expand...
Click to collapse
did you unplug before turning it on? you cant be plugged in while enabling fast charge.
Also, try updating your superuser (even if it says it is up to date). Just a thought as I've read this can cause issues.
Afaik, CM doesnt support fastcharge.
Sent from my i9250
simms22 said:
did you unplug before turning it on? you cant be plugged in while enabling fast charge.
Click to expand...
Click to collapse
Yeah, basically it is a combination of a few things - one is that even though it says it is enabled at boot time, it is not. You have to turn it off and back on. The second is what you mentioned, you have to unplug it and plug it back in if you turned it on while plugged in.
I ended up using a plug-in for Tasker to manage it, though it is wierdly hard to GET the current state (how hard is it to read a file, apparently hard) from Tasker, though setting state works.
hichhiker said:
Yeah, basically it is a combination of a few things - one is that even though it says it is enabled at boot time, it is not. You have to turn it off and back on. The second is what you mentioned, you have to unplug it and plug it back in if you turned it on while plugged in.
I ended up using a plug-in for Tasker to manage it, though it is wierdly hard to GET the current state (how hard is it to read a file, apparently hard) from Tasker, though setting state works.
Click to expand...
Click to collapse
I'm having the same problem.. I've tried all things u suggested, still no luck.. I read somewhere that when we use fast charge, u cant connect ur phone through MTP, is this the case ?? Coz mine gets connected immediately even though app says fast charge is enabled
Can u give some more details about the tasker plugin ??
I'm well acquainted with tasker as i use it for couple of things..
Any help is much appreciated
u4atharva said:
I'm having the same problem.. I've tried all things u suggested, still no luck.. I read somewhere that when we use fast charge, u cant connect ur phone through MTP, is this the case ?? Coz mine gets connected immediately even though app says fast charge is enabled
Can u give some more details about the tasker plugin ??
I'm well acquainted with tasker as i use it for couple of things..
Any help is much appreciated
Click to expand...
Click to collapse
This thread is a year old and the guy you quoted only has 3 posts. I dont think you are going to get much out of him. lol
And sorry, I dont use tasker so I cant help you.
jsgraphicart said:
This thread is a year old and the guy you quoted only has 3 posts. I dont think you are going to get much out of him. lol
And sorry, I dont use tasker so I cant help you.
Click to expand...
Click to collapse
lol i figured that..was just taking a shot in the dark :laugh:
Yeah, that guy's a ghost, you'll never get a response from him.
You can check out Secure Settings plugin (sorry, can't post links yet, but search it) - it is great for a LOT of things including this (its under Custom ROM options)
u4atharva said:
lol i figured that..was just taking a shot in the dark :laugh:
Click to expand...
Click to collapse
hichhiker said:
Yeah, that guy's a ghost, you'll never get a response from him.
You can check out Secure Settings plugin (sorry, can't post links yet, but search it) - it is great for a LOT of things including this (its under Custom ROM options)
Click to expand...
Click to collapse
"THANK YOU" (For ur thanks meter)
But, on a serious note, i got the solution for the problem already..
For others out there seeking the solution to the problem, the trick is to unplug and then again plugin the USB cable after you enable the fast charge..
And then in battery stats it should show charging(AC) instead of charging(USB)
u4atharva said:
For others out there seeking the solution to the problem, the trick is to unplug and then again plugin the USB cable after you enable the fast charge..
And then in battery stats it should show charging(AC) instead of charging(USB)
Click to expand...
Click to collapse
Sorry, I missed that this was the issue you were trying to solve. Yeah, when you switch the charging mode, it only takes effect after you next plug in. It will not change your current connection - which can be especially tricky if you reboot while plugged in.
I wanted it to be on by default since I hardly ever use USB for data. I would love to have the ability to have it come up enabled and to disable it, but that does not seem to be how it works - which, I guess, makes sense as you would loose any ability to debug in case of emergency, as in fast charge mode all data communication over USB is off.
-HH
hichhiker said:
Sorry, I missed that this was the issue you were trying to solve. Yeah, when you switch the charging mode, it only takes effect after you next plug in. It will not change your current connection - which can be especially tricky if you reboot while plugged in.
I wanted it to be on by default since I hardly ever use USB for data. I would love to have the ability to have it come up enabled and to disable it, but that does not seem to be how it works - which, I guess, makes sense as you would loose any ability to debug in case of emergency, as in fast charge mode all data communication over USB is off.
-HH
Click to expand...
Click to collapse
If you keep the fast charge option enabled, it would always be on by default, (the way YOU need it), and when ever u want to use the USB, turn it off..
There are plenty of apps on google play which support simple toggle between fast charge on/off.. many of them have widgets too.. which makes it more than easy, just a tap away..
u4atharva said:
If you keep the fast charge option enabled, it would always be on by default, (the way YOU need it), and when ever u want to use the USB, turn it off..
There are plenty of apps on google play which support simple toggle between fast charge on/off.. many of them have widgets too.. which makes it more than easy, just a tap away..
Click to expand...
Click to collapse
Not entirely true - first of all for this to stay on you have to have Franco's app (or another app that turns it on at boot time) to auto-turn it on on boot - it does NOT keep state across reboots. At the time of the original posting in this thread, the Franco's app did NOT work for this, so you had to manually go into it and turn it off and back on again before it worked - so I automated this via Tasker. Just tested, seems like it is working now (although it takes a while after boot before the setting is applied, Tasker/Secure Settings route is MUCH faster). Secondly, if you boot up with the USB cable in, it will ALWAYS boot into USB mode because of what I said before. (Unplugging it and plugging back in once it is fully booted and fast charge is on, will turn then register it as AC).
But yes, there are a number of other routes and apps to do this.
-HH
hichhiker said:
Not entirely true - first of all for this to stay on you have to have Franco's app (or another app that turns it on at boot time) to auto-turn it on on boot - it does NOT keep state across reboots. At the time of the original posting in this thread, the Franco's app did NOT work for this, so you had to manually go into it and turn it off and back on again before it worked - so I automated this via Tasker. Just tested, seems like it is working now (although it takes a while after boot before the setting is applied, Tasker/Secure Settings route is MUCH faster). Secondly, if you boot up with the USB cable in, it will ALWAYS boot into USB mode because of what I said before. (Unplugging it and plugging back in once it is fully booted and fast charge is on, will turn then register it as AC).
But yes, there are a number of other routes and apps to do this.
-HH
Click to expand...
Click to collapse
I said that because mine stays on across reboots..
If your option turns off, Tasker is no doubt the next option..
And regarding booting with USB cable plugged in, i already mentioned in a previous post that you will have to unplug and plug in the USB cable again to enter into fast charge mode with stats as Charging(AC)
Still learning my way around the HTC world and Android 4.2.2. On my old Droid 3 there was a setting to leave the screen on when plugged in. Does anyone know if there is something like this on the One? If so where do I find it??
that's interesting. Can't find it either. Maybe its disabled like power savings. On my note 2, it was under developer options (of all places).
I was also looking to enable this option. On my previous phone (Galaxy S4), it was under developer options. When I enabled Developer Options on my HTC One, the option isn't there to stay awake while charging. I'm not sure where else this option would be in settings.
Anthrax79 said:
Still learning my way around the HTC world and Android 4.2.2. On my old Droid 3 there was a setting to leave the screen on when plugged in. Does anyone know if there is something like this on the One? If so where do I find it??
Click to expand...
Click to collapse
my screen stayed on while playing pandora unplugged and plugged in. i locked the screen in order to not see it on and drain more! not while charging
Anthrax79 said:
Still learning my way around the HTC world and Android 4.2.2. On my old Droid 3 there was a setting to leave the screen on when plugged in. Does anyone know if there is something like this on the One? If so where do I find it??
Click to expand...
Click to collapse
I enabled developer options in hopes the setting would be there on my One but was a little worried when I didn't find it. I still configured Widgetsoid on my home screen with the "Stay awake when plugged in" and it seems to work.
Been searching for hours on this issue. It's easy to make the Nexus 7 boot on power with a simple fastboot command. Does anyone know anyway to make this happen with this tablet? I am planning on using it as a gauge cluster in my car and would prefer not to have to go back to my nexus 7. The screen size is amazing. If there was anyone with any ideas, that would be helpful. I have tried searching for where the plug in screen was held, but I haven't found anything yet. I was thinking about just replacing loading that screen, with rebooting the device. Maybe something like that would work.
Let me know if you guys have any ideas please! Getting kind of desperate here. Thanks!
112 views and no suggestions! Ha, anyone have any ideas?
deadaim00 said:
112 views and no suggestions! Ha, anyone have any ideas?
Click to expand...
Click to collapse
So, what you want is for your tablet to come on when the car is started, and off when off?
sleekmason said:
So, what you want is for your tablet to come on when the car is started, and off when off?
Click to expand...
Click to collapse
Yep! I've already got the off part taken care of, just need the on!
deadaim00 said:
Yep! I've already got the off part taken care of, just need the on!
Click to expand...
Click to collapse
Only thing I can think of is to allow your tablet to stay in suspend, even force it with power off,
then use tasker to create a script to wake from suspend when plugged in!
sleekmason said:
Only thing I can think of is to allow your tablet to stay in suspend, even force it with power off,
then use tasker to create a script to wake from suspend when plugged in!
Click to expand...
Click to collapse
That's how I currently have it setup. The problem is if it were to ever run out of battery and shut off, I'd have to take my "cluster" out to be able to turn it back on when it's plugged in and charged.
deadaim00 said:
That's how I currently have it setup. The problem is if it were to ever run out of battery and shut off, I'd have to take my "cluster" out to be able to turn it back on when it's plugged in and charged.
Click to expand...
Click to collapse
Run a loop with a breaker in it for power and use a dedicated power source with a switch?
sleekmason said:
Run a loop with a breaker in it for power and use a dedicated power source with a switch?
Click to expand...
Click to collapse
As I do appreciate the ideas, I have already thought about all of these. However I would like it to operate exactly how I had my previous tablet, except with this specific piece of hardware. If it's not possible it's not possible, or I'll just keep looking. Thanks though!
Now that the source has been released and there is a recovery and such, anyone have any other ideas on this? It would really be helping me out! Thanks guys!
Hi,
Ive googled about this matter and cant seem to find a solution for the galaxy tab s lte but for other samsung devices since s3 is possible.
Ive also tried the Auto Power On app (paid apps) both of them didnt work and requested a refund.
It seems that we have to modify the file /system/bin/playlpm or /system/bin/lpm or /system/bin/ipod for this to work.
Ive tried everything and still doesnt work on the galaxy tab s lte.
What i need is for the tablet to boot upon connected to charger when the state is off. Now all i can see is the battery icon stating its charging but never boot into android.
Anyone have any idea how to make this work for the galaxy tab s lte?
Cheers.
Well it begs the question as to why in the world would anyone want this?
I wouldn't want my tab on every time I charge it.
I think you would need a custom rom, don't the apps you can download/buy, need your device to be already running so they can shutdown or run an app or change a mode when they detect you plugging in or removing the charger.
John.
ashyx said:
Well it begs the question as to why in the world would anyone want this?
I wouldn't want my tab on every time I charge it.
Click to expand...
Click to collapse
ashyx said:
Well it begs the question as to why in the world would anyone want this?
I wouldn't want my tab on every time I charge it.
Click to expand...
Click to collapse
Why would anyone need this? Let me answer you.
Some of us use our android tablets in cars ... There's app to make the tablet shutdown when u turn off the engine and the power is disconnected (tons of them).
But when u start the engine back and the power is re-connected, the tablet wont turn on. Right now the only solution i can do is to use tasker to airplane mode on the device when the display is off, and airplane mode off when the display turns back on. This saves power so that the tablet doesnt run out of juice overnight in the car.
So most of this has to do with in-car tablet systems that you want it to boot up as you start your engine. I can custom rom my tablet to run CM12 however even CM12 doesnt boot up, some settings needs to be changed and im not sure which part so i need some help on this.
Cheers.
ashyx said:
Well it begs the question as to why in the world would anyone want this?
I wouldn't want my tab on every time I charge it.
Click to expand...
Click to collapse
And btw .... iPhone iOS Behavior is exactly like this ... So no body is begging the question of why anyone would want this ... Just you i guess
arsyan said:
And btw .... iPhone iOS Behavior is exactly like this ...
Click to expand...
Click to collapse
Another reason not to want it then
LOL thats a good one ....
Anyway back to serious matter ... Any one out here can help me with this problem? I think it would help a lot others too that are looking for a solution. a CM12 solution would be great also coz i can flash the tablet with CM12.
Thanks in advance.
arsyan said:
And btw .... iPhone iOS Behavior is exactly like this ... So no body is begging the question of why anyone would want this ... Just you i guess
Click to expand...
Click to collapse
C'mon. You and I both know that this is a niche scenario, and normally it's a bad idea. If your running low enough on battery to run you device dead, you want it to charge a while before turning on. We've all been waiting on a dead phone to get a few percentage points charged so that way it doesn't die immediately upon startup.
I've been leaving my Tab S on a constant power supply in the car. This means I have to turn it on and off manually. I have been toying with using Tasker to turn the screen on/off based on connection with a BT device that would be powered by an switched power source.
The problem I get is warning messages about trying to charge the battery while it is too hot or too cold.
stm8 said:
I've been leaving my Tab S on a constant power supply in the car. This means I have to turn it on and off manually. I have been toying with using Tasker to turn the screen on/off based on connection with a BT device that would be powered by an switched power source.
The problem I get is warning messages about trying to charge the battery while it is too hot or too cold.
Click to expand...
Click to collapse
Why dont u try this app https://play.google.com/store/apps/details?id=com.as.powerchecker it will close the android once ur power is disconnected from the car ...
As for turning it back on when u start. Still no solution ...
Any help guys? Last time asking ...
Using Tasker and Secure Settings, I can get the tablet to turn the screen on and off when the power is connected. If rooted, you could turn Airplane Mode on and off in Tasker also. But short of a change in the firmware, I have no idea how to power off and restart based on external power connection.
From what I remember, when CM12 was still buggy... when you connect a charger when it was powered off, it would show the battery icon and automatically reboot into recovery. Of course that was a bug, so I don't really know.
-DUHA
Same here, did you find an answer?
Same here but no solution found
Iam trying to set my tablet to auto start/boot when charger is connected in mini usb port. I didnot find lpm.sh in root\system\bin folder to modify. But i found ilm file with below script. Plz tell how to modify to make powered off tablet to boot when charger is connected.
Script to start "pm" on the device, which has a very rudimentary
# shell.
#
base=/system
export CLASSPATH=$base/framework/ime.jar
exec app_process $base/bin com.android.commands.ime.Ime "[email protected]"
You can instruct init to reboot the device whenever charger mode is detected. Create a new .rc file or edit any existing one:
# /system/etc/init/off_mode_charge.rc
on charger
setprop sys.powerctl reboot,leaving-off-mode-charging
Source: https://android.stackexchange.com/q...ower-on-android-when-the-charger-is-connected