Related
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.
I just wanted to confirm my understanding of eugene's sleeper script since I never fully got a handle on it. As I understand it, prior to this our phones second core never truly went offline (even though system tuner read it as offline). Now, our second core always goes offline when the screen is off (even though system tuner reads it as running at 192mhz). Is this right? Also, does it go offline at low load time periods when the screen is off?
yoft1 said:
I just wanted to confirm my understanding of eugene's sleeper script since I never fully got a handle on it. As I understand it, prior to this our phones second core never truly went offline (even though system tuner read it as offline). Now, our second core always goes offline when the screen is off (even though system tuner reads it as running at 192mhz). Is this right? Also, does it go offline at low load time periods when the screen is off?
Click to expand...
Click to collapse
On stock rooted ICS (though de-bloted) second core goes into deep sleep no problem when task scheduler/governor commands so and regardless if screen is On or Off.
What Eugene's script is doing: constantly looping every 2/4 sec (or whatever) and checking if screen is On or Off and then force CPU1 to go offline regardless what Linux Governor think is appropriate for current CPU load.
It might very much happened that next moment (in between loop cycles) governor would turn CPU1 back online if load on CPU0 is above threshold.
If script loop would be too short then script itself would burn battery juice... so, I think best thing to improve battery life is just keep phone clean from unwanted background processes.
Also, it might happened in reverse, when screen is on and there is no load - governor would turn CPU1 off, but script will continue to force CPU1 online.
Vlad_z said:
On stock rooted ICS (though de-bloted) second core goes into deep sleep no problem when task scheduler/governor commands so and regardless if screen is On or Off.
What Eugene's script is doing: constantly looping every 2/4 sec (or whatever) and checking if screen is On or Off and then force CPU1 to go offline regardless what Linux Governor think is appropriate for current CPU load.
It might very much happened that next moment (in between loop cycles) governor would turn CPU1 back online if load on CPU0 is above threshold.
If script loop would be too short then script itself would burn battery juice... so, I think best thing to improve battery life is just keep phone clean from unwanted background processes.
Also, it might happened in reverse, when screen is on and there is no load - governor would turn CPU1 off, but script will continue to force CPU1 online.
Click to expand...
Click to collapse
So if I understand you right, the script does nothing radically different, all it does is override the original cpu handling to force cpu1 offline when screen is off? It doesn't put cpu1 offline a different way than before?
yoft1 said:
So if I understand you right, the script does nothing radically different, all it does is override the original cpu handling to force cpu1 offline when screen is off? It doesn't put cpu1 offline a different way than before?
Click to expand...
Click to collapse
What do you mean by "different way"? (Script writes 1/0 into Linux CPU driver)
Vlad_z said:
What do you mean by "different way"? (Script writes 1/0 into Linux CPU driver)
Click to expand...
Click to collapse
I'm not sure, I just remember Eugene saying that cpu1 wasn't truly going offline before his script?
I don't pretend to understand any of it, but I will tell you that when the screen is off, it eats much less battery then before using it.
Vibrantnew-b said:
I don't pretend to understand any of it, but I will tell you that when the screen is off, it eats much less battery then before using it.
Click to expand...
Click to collapse
that's very possible. If you have some background processes, using this script, you basically trying to make from dual core CPU single.
or this is just placebo effect... how did you test it? My phone goes to deep sleep no problem, overnight 4% for 8 hours.
I tried everything to get rid of this untraceable wakelocks.
Anyone found any solution than restarting the phone?
Restarting the phone doesn't work for me but read on in forum.
What wakelock, i9192 has a terrible battery drain, 2-3% per hour, i haven't found any wakelock and still have drain
Sent from my GT-I9192 using Tapatalk
try another battery, i think some phone has the same problems like some s4, the battery
b0g said:
try another battery, i think some phone has the same problems like some s4, the battery
Click to expand...
Click to collapse
I had mentioned wakelocks.
Did you read it?
It has nothing to do with Battery.
Did you try this - https://play.google.com/store/apps/details?id=com.uzumapps.wakelockdetector&hl=en ?
Btw, even I am facing way too much battery drain in I9192. I have disabled **** load of built in bloatware. Time to root I guess.
Even I have noticed 3% battery drain in complete standby mode...
also lag or stutter in mine I9192
coz of this, there isnt any feel of 1.7Ghz dual core processor..
i mean its not at all diff from grand duos processor.. nothing better.. rather more laggy!! Dont know what the reason may be...
chemicalrage said:
Did you try this - https://play.google.com/store/apps/details?id=com.uzumapps.wakelockdetector&hl=en ?
Btw, even I am facing way too much battery drain in I9192. I have disabled **** load of built in bloatware. Time to root I guess.
Click to expand...
Click to collapse
I said, I had tried everything.
Somehow my knox status is now reset.
I have now managed to root without knox trigger.
SandeepEmekar said:
I said, I had tried everything.
Somehow my knox status is now reset.
I have now managed to root without knox trigger.
Click to expand...
Click to collapse
Do you remember the steps you took?
That would be of great help to every one
Sent from my GT-I9192 using Tapatalk
fburgos said:
Do you remember the steps you took?
That would be of great help to every one
Sent from my GT-I9192 using Tapatalk
Click to expand...
Click to collapse
First of all I played with following things.
1. Rooted the phone and changed the Kernel.
2. TricksterMod: Changed Governor, Changed IO Scheduler.
3. Installed PurePerformance Script Pack.
3. Changed to different region firmware. (This is where my knox status reset to 0x0)
4. Rooted again and created profile in SetCPU to underclock to 486mhz when display is off.
5. Edited build.prop for some tweaks.
Now battery drain in idle time is 1.7% per hour.( I keep data off)
SandeepEmekar said:
Now battery drain in idle time is 1.7% per hour.( I keep data off)
Click to expand...
Click to collapse
Can you install BetterBatteryStats app and share day or night usage dump from it. I want to see
c0bain said:
Can you install BetterBatteryStats app and share day or night usage dump from it. I want to see
Click to expand...
Click to collapse
I'll give you when I get my hands on that phone.
I'll post both betterbatterystats and battery drain analyzer dump.:good:
Thanks!
@c0bain:
Here are the dump files.
There is significant less battery drain compared to last time because I have underclocked the processor on display off profile with SetCPU.
@c0bain:
What does this code means of dmesg?
Is it related with CPU core?
"<4>[ 1282.913199] Restarting tasks ...
<4>[ 1282.934289] QSEECOM: qseecom_receive_req: Interrupted: exiting wait_rcv_req loop
<3>[ 1282.934319] QSEECOM: qseecom_ioctl: failed qseecom_receive_req: -512
<4>[ 1282.934533] QSEECOM: qseecom_receive_req: Interrupted: exiting wait_rcv_req loop
<3>[ 1282.934563] QSEECOM: qseecom_ioctl: failed qseecom_receive_req: -512
<6>[ 1282.936120] report_state_of_charge: Reported SOC = 79"
It's Qualcomm Secure Execution Environment Communicator driver for DRM.
I took a look into your BBS log and that's what I think:
- uninstall JuiceDefender, RAM Booster Pro, you dont't need them,
- freeze Battery Monitor Widget Pro (for a tests),
- use newest BBS (1.15 afair),
- leave a phone at least for 2-3h untouched, no calling, no messaging, no any usage,
- make a dump using "screen of -> current" references.
rufik said:
It's Qualcomm Secure Execution Environment Communicator driver for DRM.
I took a look into your BBS log and that's what I think:
- uninstall JuiceDefender, RAM Booster Pro, you dont't need them,
- freeze Battery Monitor Widget Pro (for a tests),
- use newest BBS (1.15 afair),
- leave a phone at least for 2-3h untouched, no calling, no messaging, no any usage,
- make a dump using "screen of -> current" references.
Click to expand...
Click to collapse
I had used the phone in factory setting.
i.e. no apps installed but issue still persist.
i don't know why, but there are so many alarm_rtc interrupts and alarm wakeups from android platform.
later I'll post my dump for comparison
@rufik:
Here is the new dump of 1hour.
Phone was in 96% Deep Sleep maybe because I forgot to switch back to "Ondemand" Governor.
It was set to "Interactive".
SandeepEmekar said:
@rufik:
Here is the new dump of 1hour.
Phone was in 96% Deep Sleep maybe because I forgot to switch back to "Ondemand" Governor.
It was set to "Interactive".
Click to expand...
Click to collapse
Make a dump using "screen of -> current" references with no usage of phone. And not just after reboot, let the media scanner service end up.
Other way dump is pretty useless...
@rufik:
Here is the dump of "Screen Off->Current'.
Phone is perfectly staying 96% in deep sleep but hits 810mhz frequency rest of the time.
Better but I need longer period, at least 2-3h.
This short log looks perfectly Check PlayStore settings for auto update.
Hello,
My phone began to get hot since 1 week and the battery drains very quickly. I investigated and found out that it's the ksm deamon that is causing that (30% + cpu usage all time). The ksm deamon scans all the memory at an interval to do things with it... It is a normal linux process but :
The problem is that the interval is set to 20ms ! And that the run value is at 1. The files are here : /sys/kernel/mm/ksm/run
I changed run from 1 to 0 with the terminal emulator, it fixes the problem, but then it goes back to 1 after some minutes. Same for the interval, I set it manually to 10000000000000000000 and then it goes back to 20.
It's like there's a virus changing the value or something like that.
Help me please, I can't use my phone anymore, it lags, gets hot and the battery drains very quickly :crying:
Thanks.
I'm having the same damn problem on my oneplus. It get's so hot it causes the touchpad to stop working and the phone becomes unresponsive and I have to force shutdown. Did you find a solution to this problem? I might try a custom ROM on here, I didn't have this problem with my last oneplus so not sure if it was a recent kernel update to CM11 that did this or what.
skini26 said:
Hello,
My phone began to get hot since 1 week and the battery drains very quickly. I investigated and found out that it's the ksm deamon that is causing that (30% + cpu usage all time). The ksm deamon scans all the memory at an interval to do things with it... It is a normal linux process but :
The problem is that the interval is set to 20ms ! And that the run value is at 1. The files are here : /sys/kernel/mm/ksm/run
I changed run from 1 to 0 with the terminal emulator, it fixes the problem, but then it goes back to 1 after some minutes. Same for the interval, I set it manually to 10000000000000000000 and then it goes back to 20.
It's like there's a virus changing the value or something like that.
Help me please, I can't use my phone anymore, it lags, gets hot and the battery drains very quickly :crying:
Thanks.
Click to expand...
Click to collapse
into_311 said:
I'm having the same damn problem on my oneplus. It get's so hot it causes the touchpad to stop working and the phone becomes unresponsive and I have to force shutdown. Did you find a solution to this problem? I might try a custom ROM on here, I didn't have this problem with my last oneplus so not sure if it was a recent kernel update to CM11 that did this or what.
Click to expand...
Click to collapse
I kept disabling it manually with the terminal and was monitoring my phone with a process manager. Then it stopped by itself I don't know how....
But it may come back one day I really don't know why, I didn't even uninstalled an application. This is very weird and it's a core functionnality of linux, why is it designed like that ?
skini26 said:
I kept disabling it manually with the terminal and was monitoring my phone with a process manager. Then it stopped by itself I don't know how....
But it may come back one day I really don't know why, I didn't even uninstalled an application. This is very weird and it's a core functionnality of linux, why is it designed like that ?
Click to expand...
Click to collapse
I've noticed KSMD only pegs out like crazy on my phone when it's active. While the phone is asleep it does nothing.
I can tell it's not at all related to running the TOP process either to monitor things because if you do a ps -ef --sort +time, you can see KSMD process constantly climbing a few seconds of a time of CPU use the longer your phone uptime\Screen-on-time goes on. It's not growing at a massive rate, but like 1 second of CPU time for every 30 seconds of screen on time.
I did a little digging and apparently this is an issue on many Linux distributions and is generally seen as a bug from the user community(unsure how the dev community feels about it, but it's pretty old.. you'd think they would address it by now). It's possible that the Gamma kernel is based on a Linux kernel distro that has that bug in it.
https://puu.sh/jMdi4/3e2894fad6.png
I can't enable it, my g4 is constantly running stupidly hot now.
Eagle1337 said:
https://puu.sh/jMdi4/3e2894fad6.png
I can't enable it, my g4 is constantly running stupidly hot now.
Click to expand...
Click to collapse
That's big cpu, what about little one..4 cores
faizalotai said:
That's big cpu, what about little one..4 cores
Click to expand...
Click to collapse
They stay on. I've managed to get core 2 to actually turn on. Wait for phone to phone let it be a sluggish mess for about 10 minutes re-enable core 2. It'll turn on and then instantly off and kick back on slightly after. (I've done this after re-flashing my rooted image, flash fireing xposed.)
Eagle1337 said:
https://puu.sh/jMdi4/3e2894fad6.png
I can't enable it, my g4 is constantly running stupidly hot now.
Click to expand...
Click to collapse
What app are you using to access those settings?
thats very weird you are seeming to get that issue! Try another cpu control app perhaps. I havent had that issue of core 2. Maybe change the gov. or freqs of cpu and what not to see if it finally enables.