Hibernate? - Defy General

Quite a few smartphones out there support hibernate. HTC is amongst the manufacturers that makes it possible to completely shutdown the phone and write all memory to a file on the nand which is put back in memory when the phone is turned back on. This way it only takes a few seconds to go from off to fully functioning, practically the same thing computers can do for years. Now I wonder if this could be done with the Defy (and possibly any other Android phone for that matter). I don't know how HTC does it but I guess it's pure software as in not an integrated Android feature. And if they can do it I'm sure some of the XDA guys can do it. Or is that wishful thinking??

Well if you want to save battery, then there are certain task killers which actually closes all the tasks which are not in use but running (excluding ignore list) and this way whenever the screen is turned off, it closes those tasks, that improves the battery. If that is what you meant?
I found this on google:
http://www.androidzoom.com/android_applications/tools/hibernate_ctp.html

No what I mean is in the event you have to shut down the phone entirely that all content in the RAM gets written to nand (or maybe sd). This way when it boots again it simply restores its RAM within seconds, effectively cutting boot time to only a few seconds instead of 40. Compare this with Windows' hibernate function for the pc.
Turns out HTC calls it Fast Boot. It's not a real hibernation function because if you put the phone to sleep with it and remove/replace the battery it would perform a normal cold boot. So it's more of a very low power sleep mode, guess more like a computer's S3 sleepstate where only the RAM stays powered while all the rest (cpu, chipset, video, audio etc) is turned off.

Sounds like a very interesting option, very curious if this would be possible on a defy.

This would be a nice feature.
Sent from my MB525 using XDA App

Totally pointless if you ask me. Just enable airplane mode if you want epic battery life?

sarge78 said:
Totally pointless if you ask me. Just enable airplane mode if you want epic battery life?
Click to expand...
Click to collapse
Or turn it all the way off and save even more power.
There are also plenty of 'smarter' ways to safe power, such as scheduling the handset to automatically disabling 3G overnight etc, which don't even require you to switch the handset off.

Airplane mode still leaves the cpu switched on. The purpose of that mode is to be still able to use the device without a working connection.
Say you are away from home and didn't bring the charger. Now the battery is almost dead. Then a very low power sleep mode would come in handy because it boots in only a few seconds and after a few more seconds you can turn it 'off' again. Fast and snappy, hardly using any power. And this is XDA so another extremely valid reason to have it is simply because we can. For pc's it's everyday technology so why not make it available on our pocket sized super computers?

I always disable hibernate in my PC.

Actually me too but I do use the sleep mode quite often with my laptop. Works great when you move your laptop a lot to other places but don't want long boot times. It could actually survive days in this mode on a full battery.

Related

[Q] Force WiFi to stay active when screen is off?

Hi everyone!
I'm using OpenDesire 4.0.4, and while it's more or less the perfect ROM for me, I'm getting a little annoyed at the WiFi. As the ROM is based on CyanogenMod, it has the same WiFi behaviour: When the screen turns off, the WiFi enters power saving mode, regardless of the apps that are active at the time, or the amount of traffic over WiFi at the time.
The problem here is that any application that's using WiFi pretty much just stops as soon as you turn the screen off.
1. Sipdroid during a call: Massive packet loss as soon as the screen turns off. You may hear a garble or two, but nothing intelligible.
2. SwiFTP and other FTP servers: Connecting to the FTP server and navigating to folders takes ages when the phone is in standby. Transferring files is more or less impossible (times out)... Everything's fine when the screen's on. If you transfer a big file and turn off the screen during the transfer, you basically pause the transer - turn the screen back on and the transfer goes back to full speed
3. Market: If you turn off the screen while a lot of apps are going to download, like after pressing "Update all" for a few apps, more often than not they'll just fail in the background.
Now, I could beg and ask the ROM developers (Kali for CyanogenMod on Desire, or AdamG for OpenDesire) to just change this behaviour, but it seems that most people are happy with the situation, as it causes the WiFi to use very little battery on standby... so I'm asking if anyone knows how I could change this myself. Is it even possible to do this at runtime without baking it into the ROM directly?
Or am I SOL until (or rather unless) AdamG or Kali takes pity on me?
I'd love to hear some input - hell, maybe I'm just doing it wrong ... Thanks in advance!
PS: Yes, my WiFi Sleep Policy is set to Never, and the Desire DOES stay connected when the screen is off. Just in a very low power mode...
-edit- Should have searched, sorry: http://forum.xda-developers.com/showthread.php?t=752856
-edit2- Looks like there really isn't a fix for this... Anyone found a way to completely disable PSP on the Desire/Nexus WiFi?
I'm on the same ROM as yourself. What value is your "screen-off lock screen delay" set to?
In my observations, the transfer in the state you mention still persists albeit at a very slow rate and the WiFi chip is certainly placed in the LOW power state, although on.
I'm unaware of any workaround but what I use myself when transferring bulk 1-7GB files through WiFi from my PC/Laptop, which is to change the value of the screen lock delay at screen off under Settings>OpenDesire>User Interface>(last option) to a high figure, like 10-30m, depending on how long I'm expecting the transfer to take. It's a trade-off but you'll still save over 95% of the power since your screen is off but the WiFi/SD/CPU remain working as when the screen is on. Maybe you've tried this already?
-----------------------------------
- Sent via my HTC Desire -
That's not a bad idea... brb testing .
-edit- Didn't work
As soon as the screen times out, my transfer speed drops to nearly 0 - even with the lock delay set to 30m... :'(
OK, that's confusing. I'll be back by tonight or morning... I have much testing to do on this since for sub-20mins, my connection runs plus 200Kbps according to the PowerTutor log in such a state. Usually it would drop to 0.3-8Kbps when the screen switched off.
-----------------------------------
- Sent via my HTC Desire -
th3 said:
OK, that's confusing. I'll be back by tonight or morning... I have much testing to do on this since for sub-20mins, my connection runs plus 200Kbps according to the PowerTutor log in such a state. Usually it would drop to 0.3-8Kbps when the screen switched off.
-----------------------------------
- Sent via my HTC Desire -
Click to expand...
Click to collapse
Mine drops to practically 0. So low that due to overhead, FTP transfers pretty much stop completely...
I've seen that the linked kernel module provides a temporary workaround for you guys now. During the course of my testing your concern I basically found my WiFi module isn't ever turning off nor switching any connections off - it's always awake and can always transfer some data. Even in the LOW state it is connected at 24Mbps. Whatever I did I couldn't change this behavior on 4.0.4. Time for another wipe...
OD has many user preferred options baked in working fine alongside the conventional options so it'd probably be best suited for a toggle of this feature to be implemented for you guys (if at all possible). Not sure if that WiFi module power state behaviour is write-able and changeable on-the-fly before a reboot, should be, as it's only changing a hardware state.
-----------------------------------
- Sent via my HTC Desire -
The new Wifi module is working perfectly here. No more performance problems, and my power consumption has actually gone DOWN. Probably because I have a bunch of connected apps running in the background and PSP is very inefficient for that.
Also, the delays in Chrome To Phone and Appbrain web installs are gone...
I'm loving this fix...

what would be the best kernal for me to have ?

my battery drains like a bugatti veyron doing 252mph constantly
so what would you advise . is the kernal i have now the best or should i change .. i dont want to reall lose much performance on what i have now but would like the battery to maybe improve if possible ...
from full charge taking plug out searching market for 2 mins the battery drains 5-8% in matter of mins
and i have only had the phone a week
With that kind of drains the problems the kernel won't change that much. There is probably a app that causes the battery drain so looking in to that will have more effect. Also the brightness/screen on is the biggest drain and kernel won't do much about that.
You said that you have the phone a week, the battery needs some time to reach it's full potential and you probably use the phone a lot because it's new. So use the phone normally for another week, after that week let the phone drain until it shuts itself off, leaf it off and charge it till it's full. (there is a different calibration method but this always worked for me)
What do you have now? Stock or rooted?
Sent from my HTC Desire using XDA App
First of all, I would assume that you don't use the phone non-stop (it would be justified to lose power in a few hours if you're on it non-stop).
I recently had issues with power consumption as well. What I did was:
1) check the built in battery monitor: menu-settings-about phone-battery-battery use. The bad thing about this monitor is that it does not differentiate well the apps consuming power, but you can still see if there's something wrong, as the most consumption should come normally from the screen and voice calls. For me, the most consumption was made by com.htc.bg, which, if I let the monitor on for a few seconds, would transform in the calendar app. Weird stuff. I unchecked the calednar auto sync from menu-settings-accounts and sync. It may have slowed the power loss down, but not significantly. I noticed a significant loss of battery by WiFi. I realized, I needed more information so:
2) I installed an app called 'Power Tutor'. What it does is, it calculates which apps consumes power, and it shows you in percentages. After install, you need to start the 'power profiler'. It will appear in your notification bar. If you let it run, after a few hours, you can see in "view application power usage" who is using power. That's how I discovered that my winamp app was really off the charts using power like crazy. So I went in the winamp settings, and I unchecked some options that could have determined this power consumption, like wireless sync, automatic mount as USB drive, etc. There was actually an option that was overriding the wifi power management, stating that the wifi does not stop after 180 seconds of standby. Basically, if you have wifi on, and you stop using the phone for 3 minutes, the phone automatically turns off the wifi. This was not happening any more, due to winamp. So I unchecked all those options, and voila. It worked, I have now normal battery life.
Good luck!
be aware of a couple of things
1. battery drain for the 1st few weeks are high because of a couple of factors, the battery "learns" and gets conditioned over a period of time (doesnt use the old 16hr charge process). its a new device for you so its a novelty, you probably mess about with it with the screen on more than you think.
2. there is a configuration within HTC's builds and in the memory chip of the battery to stop over charging. the device will charge to 100 and then slowly deplete to 90% while still saying full on the phone. as soon as you disconnect it recalibrates to the correct value which is anywhere between 90% and 100% depending at which part of the cycle you catch it
Some other tips to increase battery life, from a friend of mine in the Romanian forum:
1) use the app watchdog, it will warn you when an app is using too much of the processor and will ask you if you want to close it.
2) juice defender with the paid add-on 'ultimate juice' - with the correct settings... it's amazing.
3) Dial *#*#4636#*#* - phone information-network type: select gsm auto prl. The phone will stay on 3G when it has good signal, and switch to 2G when it doesnt, saving battery
4) Change the wallpaper to a static one, not a live one.
5) Go to menu-settings-accounts and sync and increase sync intervals for weather, news, or even set them to sync manually when you choose.
i will try and answer everything at once ..
ok my screen is on 13% brightness
i hardly ever use my phone , the only real use was to root , s-off, put ROM ETC ON
I reply to about 50 texts ish per day and search the market for literally 1-2 mins to see what new apps are in
i dont play games or anything
the thing the battery uses most is the screen and as i say i have it on monochrome theme with 13% brightness, there is nothing synced , i check automatically for email etc .. actually beautiful widgets is set to auto update every 4 hours
i never use wifi as i have a 3gb download/data usage, i dont use gps ...well i do but i have had no need to .. thats about all i can tell ya
rastaman the pt2 is a bit weird it should stay at 100 if just taken out of charge
I calibrated the battery and that made no difference.
Sent from my HTC Desire using XDA App

[Q] Save battery by turning off mobile data (Tasker)

I'm trying to figure out if it's worthwhile to turn off mobile data when the screen is off, and turn data back on when the screen is turned on. It would also be necessary for me to occasionally switch mobile data on even when the screen is off in order to check email. (I'm thinking something like 15 minutes off, 3 minutes on)
Does anybody have any success stories or advice whether I am likely to see any noticeable battery savings by doing this?
I started doing this from when I first got my evo. Just turn off mobile data, you can still get texts and make calls, and then turn it on when you need it. Also turning off background data in settings also adds additional battery, but just enable it when you need the market. I went most of all day with about 80% of my battery still good between it just being off, using the mobile data here and there, and some texting.
Edit: I don't use a tasker, I just use the power widget in my notification, so I can turn on my mobile data on/off with just a tap. And if you're like me you don't know when you actually need it or for how long. So I find it easier and more effective to do it manually.
teh roxxorz said:
I started doing this from when I first got my evo. Just turn off mobile data, you can still get texts and make calls, and then turn it on when you need it. Also turning off background data in settings also adds additional battery, but just enable it when you need the market. I went most of all day with about 80% of my battery still good between it just being off, using the mobile data here and there, and some texting.
Edit: I don't use a tasker, I just use the power widget in my notification, so I can turn on my mobile data on/off with just a tap. And if you're like me you don't know when you actually need it or for how long. So I find it easier and more effective to do it manually.
Click to expand...
Click to collapse
X2, i use switch pro to toggle mine. Battery drops about 2% per hr while data is of with screen off even when listening to music from my play lists.
I turn off the "always on " mobile data and noticed a big difference. The data turns on and off with the screen.
Sent from my Evo using Tapatalk
Over the months I have been an Evo user, I have collected some valuable information that all users should probably know in regards to maximizing battery life. Besides the stuff about 4G and a few specific options, these steps apply to pretty much any other android phone running 2.2, and a lot of them apply to versions below Froyo.
General Lithium Ion Battery Information
^^This link includes stuff about charging, including trickle charging aka SBC (Why NOT to use it, or at your own peril)
My tips for good battery life:
Tips for Non-Rooted users:
1. Turn off all radios when not in use.
(gps, Bluetooth, wifi, data, 4g) Use a widget like the default HTC power widget or Switchpro from the market. The radios of the phone draw power if on even if the user isn't actually utilizing the radio's functions.
To manually turn off radios without a toggle, go to menu>settings>wireless & networks.
Wifi uses less battery than 3G, so use wifi when you can.
**IMPORTANT DISCOVERY**When you turn on your 4G radio, then turn it off, it will keep scanning and turning off all by itself.
The problem is apparently exacerbated by a 4G toggle widget, which causes the phone to automatically turn on 4G at boot. This repeating of scanning and disconnecting severely drains battery life, and sadly, no matter what ROM or kernel you use, there is only one way to fix it:
-If you don’t use the toggle widget, then you have to reboot your phone after turning off 4G
-If you do use a toggle widget, then you have to remove the widget from your homescreens, then turn off 4G via settings, then reboot.
**To check to see if this is happening, download alogcat off of the market. Look for the lines saying: I/Wimax ( xxx): <DC> Try to establish a connection to DC server.
E/Wimax ( xxx): <DC CONNECT> IO error: msg=’/xxx.x.x.x:xxxx –
Connection refused’
Over and over again.
2. Juice Defender is one of my favorite apps. Basically it controls your data for you to maximize life.
More explanations are on their page, search it on the market for free, or upgrade for more features.
Here are my settings for it: Click me
Note that for me at least, juice defender likes to deny apps data privileges whether you allow them or not, so screen on = data on works best for me.
3. I love live wallpapers, and I’ve always been a fan of pixel zombies, but they are really only good for showing off due to their battery drain.
4. Go to menu<settings<wireless & networks<mobile networks<disable always on mobile data.
Product F(RED) said:
To clarify, "Always On Mobile Data", when turned off, lets the 3G modem go to sleep after the screen has been off for 5 minutes. It doesn't interfere with anything like email or any other application that requires an internet connection at that moment because it turns on on-demand rather than being on all the time and wasting battery.
Click to expand...
Click to collapse
5. Set your screen timeout to something that fits you
This will prevent your phone from staying on when you don’t manually turn off the screen. Also with this, manually turn off your screen when you’re done with your phone.
6. Everyone has that issue where the first ten percent go the fastest.
This is due to two things. One is that these types of batteries stop charging once they get to 100% to prevent damage, and begin charging again at 90%. This means that you could potentially unplug your seemingly fully charged phone at 90% actual charge. The second is number 7.5.
6.5. Use the trick described in this thread, it works.
My idea behind how often you should do it is once a month, if you flash a new ROM, or if you stop noticing the benefits.
This is the calibration technique recommended by HTC themselves. Check it out!​
7. Task killers used to be the shiz, but no longer.
Here is the ultimate, in depth, graphically assisted, explanation by the famous Fresh ROM's chef, Flipz. Shortly, in light of recent testing, really don’t do anything but force apps that the android OS needed to be open, and thus didn’t close, to re-open. So try not using them, unless for stuff like trying to figure out why your phone isn’t sleeping with system panel. You really won’t notice a performance difference, and the adverse effects you aren’t seeing will stop
+=+ A good alternative is the application SystemPanel Pro. It has a free version, but I highly reccomend purchasing the paid app. It basically monitors everything going on with your phone's usage both in real time an in terms of usage history. If your battery is draiging fast, it tells you what app was doing it, how much it was doing it, and allows you to stop it.
8. People posting screenshots of the Battery screen as proof of long lasting battery are giving statistically irrelevant information.
See HERE That screen shows time since last REBOOT, not last charge. This isn't always the case, but a lot of people will post a lot of things about battery life, but look for definitive screenshots and testing results before you break down and cry due to the poster's life and yours.
9. I'm sure you have all heard around that your phone isn't "sleeping".
This is referring to the phone's "awake" time, hence the name. When you go to menu>settings>about phone>battery, you can compare the two numbers, "up time" vs. "awake time." Generally, up time refers to the amount of time since the last reboot. The "awake time" is how long the screen has been active. The problem is, a lot of the time, due to the endless possibilities of inconsistencies between apps/ROMs/kernels/phones, the phone will not go to "sleep", drawing power proportionate to the screen being in use when it reality the phone is sitting idle.
If you compare these numbers, and they are the same, or if you note the difference, turn off the screen for a minute, then re-check and they are the same, then your phone is not sleeping.
One solution is to reboot.
Usually, SystemPanel will show an app that has gone "rouge" and is keeping your phone awake.
Uninstall applications/reinstalling them slowly, checking after every install to see what is causing it is one tedious but surefire solution.
Lastly,
Follow these steps that I have discovered almost always work.
1. Reboot phone.
2. Instantly upon reboot, as soon as you gain control, open up some type of monitor/taskkiller
3. "kill all" tasks on startup; about 5 times in quick succession should do the trick.
4. Turn off the screen and leave it for about five minutes.
5. Check the up time v. awake time and see if they are the same.
6. If they are, repeat steps 1-5. If they are different, you are good.
Tips for Rooted users:
1. Try out custom kernels.
By going to the EVO 4G Android Development section of the forums, you can see all of the different kernels being developed. These allow for all kinds of modifications like underclocking the CPU and undervolting, both of which save battery. To see how to use them, read the FAQ's in each thread's OPs.
Here is a great guide to custom kernel's by mroneeyedboh.
2. Use SetCPU in compliance with whatever your custom kernel allows.
This site will explain the basics of SetCPU: http://www.pokedev.com/setcpu/
-Profiles from SetCPU should usually involve these for battery life optimization:
-Screen off at the minimum clock speed for both, with the max raised on level if sluggishness is apparent
-A temperature greater than “X”
-General power related profiles that lower cpu speed at lower battery levels
-Here are my SetCPU profiles: 1 , 2 , 3
-My profiles change a lot as time goes by, because different kernel creators recommend different settings. I suggest reading up on whatever kernel you are using to gather settings.
------------------------------------------------------------------------------------------------------
NOTES:
*Some apps or processes begin to run at startup and keep the phone awake. These apps are not detected by things like spare parts or system panel, unless sometimes represented in the "system" process, in which case its usage will be unusually high.
This shouldn't take more than three repeats, and if it does, you need to factory reset, and slowly add apps back to see what's causing the problem.
___--- When it comes to actually "calibrating" one's battery, there are a couple of methods floating around. The method I first learned is to charge the phone all the way, boot into recovery immediately, and "wipe battery stats". Then reboot quickly, and run your phone all the way to death without charging it, then charge it all the way without interrupting it, and you should be good to go. Do this when changing ROMs/kernels for best results.
----When it comes to people claiming 20 plus hours of moderate/heavy use out of their current setup or other ridiculous absurdities, consider my position: No matter what you do, the Evo battery is the Evo battery. You can tweak it and customize it with kernels, ROMs, and settings, but none of that will turn it into a car battery. The main problem (besides a false sense of pride) that leads to these reports is the misunderstanding of what the usage levels are, so here’s my best summary:
* *Light usage – Phone screen actually on for maybe 4 hours. Things like a few texts, some emails, 20 minutes web browsing, etc.
* *Moderate usage – You watched a few youtube videos or similar apps, sustained web browsing, hundreds of texts, some games. Hours range from about 5-10 of screen on
* *Heavy usage – LOTS of video watching and games, or some high def gaming/movie watching for at least an hour to an hour and a half in total, with lots of emails and texts, browsing, and other app shenanigans
*I’m sure everyone doesn’t agree with all these numbers, but this is most likely a good average of what powerusers think. All specific hourage may vary due to differences in phones, batteries, ROMs, and kernels… Which also means that most battery comparisons are pointless; it’s only what you can improve on that counts!
I’ll update this whenever I see good stuff, people remind me, or I remember/come across things I do.
Hope it helps everybody!
Hit the "THANKS" button if I help you!
*All this is available in the link in my signature
hfuizo said:
I'm trying to figure out if it's worthwhile to turn off mobile data when the screen is off, and turn data back on when the screen is turned on. It would also be necessary for me to occasionally switch mobile data on even when the screen is off in order to check email. (I'm thinking something like 15 minutes off, 3 minutes on)
Does anybody have any success stories or advice whether I am likely to see any noticeable battery savings by doing this?
Click to expand...
Click to collapse
I am the owner of SuttCo. We developed the Locale Mobile Data Plugin (which can be used by Tasker). It has a condition that can keep tabs on your data use and a setting which can be used to shut off mobile data.
I know Tasker and Locale have screen off/on conditions. I don't have time to run any tests for you (busy working on a new plugin), but if you're willing to do a semi-scientific study and report the findings here... I'll comp you a copy of the plugin. Shoot me a PM.
Good stuff
Sent from my PC36100 using XDA App
glad i found this post... improving batt life all written up, great job!
Juice defender takes care of turning off ur mobile data and turning it on when needed, all by itself
Sent from my PC36100 using Tapatalk
Not to say that turning off mobile data when you're not using it is a bad idea but I've found during my own personal experience with trying to improve my battery life for daily use that using titanium backup to freeze Google Backup Transport.apk is also a helpful solution. Other things that helped are going into Accounts & Sync and turning off background data because believe it or not, that stuff eats your battery up like a fat kid eating cake...hahahaha...Anyways, another tip would be to hit up Display and turn off Automatic Brightness and play around with the scroll until you come to a setting where you can see because I've found that the Automatic brightness eats up your battery too, not as fast but it does! Another thing that I've done is this and although there are task killers that would do this for you....I've decided to do this myself and after using an app such as Facebook or the brand new CNN app, I've gone into Applications and force close them out just to save battery and all of this nonsense I'm talking about has helped me out alot......NOT TO BRAG but using these little tips of mine, I've gone from 2 and a half hours and I was at 70 percent to 4 hours, 36 minutes and 48 seconds and I'm at 68 percent.....and that's with out turning my phone off, that's talking on the phone, texting, checking my facebook, downloading some apps here and there and just leaving it on in front of me at my desk.
Please don't start posting "Oh what, you want a FUC%ing cookie now" and all of this....all I intend to do is help someone by sharing my story....that is all! I got to get my butt to working again...hahahahaha
hfuizo said:
I'm trying to figure out if it's worthwhile to turn off mobile data when the screen is off, and turn data back on when the screen is turned on. It would also be necessary for me to occasionally switch mobile data on even when the screen is off in order to check email. (I'm thinking something like 15 minutes off, 3 minutes on)
Does anybody have any success stories or advice whether I am likely to see any noticeable battery savings by doing this?
Click to expand...
Click to collapse
I have setup a few Tasker profiles to do this exactly. I did this instead of JD because the free JD doesn't do exactly what I want it to do, and I don't want to pay for JD when I can emulate it with Tasker.
The only thing I cannot do, that JD can, is keep data on while there is an active connection. With JD, if you turn off the screen while there is an active data transfer, it will wait until the transfer finishes to turn off data.
According to the Tasker website, there is plans to make a state/event "connection data rate" which would make it possible to do this. But that has been in their plans for quite some time. (I actually happened upon this post while searching for a way to check if there is an active data connection with Tasker.)
Also, with the way that Tasker views an "Open program", the program has to be open in the foreground in order to be considered open. This makes it tough to keep data on when a specific program is open, unless you're planning on keeping that program in the foreground all the time. To get around this, I created a profile that leaves data enabled while I have headphones plugged in, since I have headphones plugged in while using all the programs that I want to have constant data with.
EDIT: here are the profiles, and the tasks that go with them (I also included a profile that turns off the wifi antenna after disconnecting from a wifi access point.)
dl.dropbox dot com/u/4658512/profiles.zip
dl.dropbox dot com/u/4658512/tasks.zip
(It won't let me post links because I don't have enough posts, so just take out the spaces and replace dot with .)

[Q] Automatic wake up when connecting power or USB

I'm running Nova and CWM9 and whenever I connect the phone to USB or a charger the phone wakes up automatically forcing me to push the power button evey time I connect it to turn off the screen.
Anyone know if it's possible to disable this "feature"?
Thanks!
I believe stock does that too. That would be an interesting tweak if it's not already around! In terms of disabling, I'm not sure there is an option to do so.
Sent from my GNex running gummy v0.7.0
Confirm stock does it as does Apex; presumably it's set somewhere basic in ICS
Its in developer options. Untick 'stay awake' (if I understand the question!)
Sent from my Galaxy Nexus using XDA App
And this is a problem why? Its just indicating to you that its plugged in properly and charging... the screen will time out and turn off a few seconds later.
Thanks for checking!
It is interesting that Google would assume everytime you plug the phone in (and unplug the phone) you would want it to wake up. Considering the short battery life these phones have, lots of charging would be commonplace and therefore lots of connecting/disconnecting without the intent to actually use the phone.
I could see giving people the option to have the phone do that - but for me the unplug wakeup is especially annoying because I have to turn it off everytime I go to put it in my pocket.
cyberfreak95 said:
Thanks for checking!
It is interesting that Google would assume everytime you plug the phone in (and unplug the phone) you would want it to wake up. Considering the short battery life these phones have, lots of charging would be commonplace and therefore lots of connecting/disconnecting without the intent to actually use the phone.
I could see giving people the option to have the phone do that - but for me the unplug wakeup is especially annoying because I have to turn it off everytime I go to put it in my pocket.
Click to expand...
Click to collapse
Well considering by stock there's no charging LED indicator, turning the screen on momentarily to indicate a charging state is a smart idea.
Also, if you're plugging it in, why are you worried about the battery drained by keeping the screen on for 10 seconds? 10 seconds.
martonikaj said:
And this is a problem why? Its just indicating to you that its plugged in properly and charging... the screen will time out and turn off a few seconds later.
Click to expand...
Click to collapse
Well that's that I thought too, but sometimes it doesn't go back to sleep like it should and I'll notice my pocket getting quite warm pull it out and it's still on.
It could be a bug in the ROM I'm running (not going to sleep correctly all the time) but I don't remember my DINC doing that so I figured it was something that just needed to be disabled.
killyouridols said:
Its in developer options. Untick 'stay awake' (if I understand the question!)
Sent from my Galaxy Nexus using XDA App
Click to expand...
Click to collapse
Hmm, I did have this option enabled - mainly because when I connect it to the charger I do like it to stay on -prime example using Slacker Radio in my car when plugged into the dock.
Maybe I'll try a different ROM since it seems the problem isn't so much that I need to disable to wakeup on connect/disconnect but instead I need the sleep function to be more reliable so I don't have a mini oven on my pocket.
Thanks!
A great option for your car dock needs would be to introduce something like the app Tasker. Then you could leave the screen off but have tasker set it to constant on and load slacker when the Bluetooth connection to your car happens.
Sent from my Galaxy Nexus

[Q] Auto power on/off feature

Hello guys,
For years (since I bought my first Android phone) I've asked myself: "Why the heck these smartphones can not turn on at a given time, as did my old java / symbian phones?!?!?!. Man, its a must-have feature, for those like me, that use the phone's alarm clock to wake up every working day! With all my old non-android phones, I could simply turn the phone off and let it "sleep" over night, saving A LOT OF BATTERY JUICE!
But unfortunately, when I bought my first android phone (in 2009), I simply "learned" that, tecnically, it is "impossible" to make it fire an alarm when it is powered off. I simply took it as an undisputed truth, and resigned myself from trying to find a workaround, because the apps on Play Store that claim "auto power on/off" don't REALLY do it, they just make the phone a little bit more battery-friendly over night by disabling phone calls, wifi, bluetooth, etc., but they DONT POWER THE PHONE OFF. Yeah, its better than nothing, but it is NOT like it was on symbian phones.
Then, I bought my Lenovo Vibe K5, and... SURPRISE!!! In the stock rom's Settings pannel, there is a new option that let the user configure the phone to auto power on/off at a given date/time!!!! Then, I asked myself "why on eart this feature is not available on other Android Phones?!?!?!?!
- Edit: I know that, tecnically, to be able to turn a phone on automatically, the phone can not be completely off (the battery needs to be in place and with some juice available - duhhh!!!). I know that it needs a triggerer (in other words, something like a computer's bios), but the fact is that my K5 Stock Rom really starts the Android system from boot. I wrote this because there are a lot of "experts" out there who uses to blame those who ask for this feature, saying that it is an impossible thing to accomplish, and bla-bla-bla...
Back to subject: Fact is that, because of this feature, I became even more fond of my K5: it powers off at night, saves battery, powers back on at morning, and fires the alarm. Sweeeet!
But unfortunately, after installing the AOSP Extended Rom, I noticed that this feature is gone. To be fair, it's a rock-solid rom, that I recommend to every K5 Plus user - but I really miss the feature (hey, rom developers, what about it?)
Before I decide if I do or do not reverse to stock rom, I ask you guys:
Why on Earth isn't the auto-power on/off feature available on all Android Phones?!?!?!?!
Edit 2: Sorry for my bad English.
Edit 3: To moderators: Sorry for posting in this category. Feel free to change this thread to the "Qhestions & Answers" thread.
Well, that feature isn't exactly needed anymore. Android's Doze features make sure the phone doesn't lose a lot of battery when left unused for long periods of time. If you lose more than ~5% of battery juice overnight (when it's already below 90%) on Marshmallow or Nougat, that's something to worry about.
Of course, you can turn Airplane Mode on every night and turn it off when you wake up, or write a script to do it for you, if you want to get the best out of your battery life. The "auto power on/off" feature existed in the stock ROM because of popular demand, and I doubt it's that important a feature to people using other phones and ROMs.
piduca2011 said:
Hello guys, could simply turn the phone off and let it "sleep" over night, saving A LOT OF BATTERY JUICE!
Click to expand...
Click to collapse
Android's since Marshmallow takes care of idling sleep. (see Doze mode: https://www.bignerdranch.com/blog/diving-into-doze-mode-for-developers/)
If you have high drain during idle, you probably have an issue with wakelocks preventing your phone to sleep (i.e. enter Doze).
Naptime's great if you want to make sure the go on Doze early, and to make sure it's reapplied after waking up.
Can be found here (free): https://play.google.com/store/apps/details?id=com.franco.doze&hl=en
Resources on wakelocks:
https://youtu.be/reMau7d0yeg
https://forum.xda-developers.com/sho....php?t=1827676
https://forum.xda-developers.com/sho....php?t=2171461
Better Battery Stats:
https://forum.xda-developers.com/sho....php?t=1179809

Categories

Resources