Related
I installed @dwitherell's TweakStock 1.4 on my Charge about 5 weeks ago, and I've mostly been happy with it. The one problem I kept running into was deteriorating performance over time, leading to frequent hard lockups requiring hard reboots. I'd gotten to the point where I needed to reboot the phone nearly every day. Having multiple active apps also tended to cause problems, for example Cardiotrainer + Rhapsody music.
Sometimes when the lag hit I was able to get a CPU usage report before the phone fully locked up. At such times I'd see kswapd0 eating a large portion of CPU. That suggested memory problems. I tried tweaking my OOM kill thresholds, to no avail.
This morning, based on some research, I took a look through my build.prop and noticed that this ROM's default VM heap size is a whopping 72MB. That sounded very high, compared to my previous phones where it was 24-32MB. I installed the VM Heap tool, knocked the heap size down to 48MB, and rebooted. My phone has been running as smooth as silk since, even with multiple simultaneously active apps running.
I'll keep watching to see how this holds up over time, but the difference even over a few hours is noticeable enough that I thought I'd report my findings right away. Regrettably, XDA discriminates against new members, so I can't post into the TweakStock developer thread as I would prefer. HTH!
thanks for the tip... just installed Eclipse, at its VM is 48MB.
tweakstock was running great for me though, so real problems like you said. my only problem (minor) was my Scrabble app being such a battery and data hog...
Thanks for the tip -- I had noticed this too, will give it a try. Though I'm on a different version of TweakStock I noticed the heap size is 72 here as well. Trying 48 for a while... will chime in if there's improvement.
- A
It is likely set high because it was found that increasing the VM heap size helped curb hot boots on heavily modified ROMs.
Interesting, thanks for the history @imnuts! I did encounter the hot boot issues some months back on earlier iterations of Gingerbread ROMs for the Charge. I will keep an eye out for hot boots to see if my 48Mb VM heap size is too low, or swap lag if it is still too high. Perhaps we will all have to try to find the best heap size for our usage patterns, as there may be no best one-size-fits-all setting.
Can't remember where, but I think I once read something that said 40 MB is the absolute best size to go with for a variety of reasons. For what that's worth...
Back on tweak stock.... can I just edit the build.prop or do I have to download VM heap?
Thanks!
tappin' that....
jco23 said:
Back on tweak stock.... can I just edit the build.prop or do I have to download VM heap?
Thanks!
tappin' that....
Click to expand...
Click to collapse
Just set the value in the build.prop.
jco23 said:
Back on tweak stock.... can I just edit the build.prop or do I have to download VM heap?
Thanks!
tappin' that....
Click to expand...
Click to collapse
Only change back only when you have issue. I currently using 72m since day one and it's working fine, super fast launching apps.
Fwiw stock settings are 64
Was so thrilled to see this recommendation, as I observed that my phone is really struggling to memory, and then kswapd0 kicks in. Tried to change it to 48MB, then to 64MB. Did not see any improvements. It looks like all apps get pre-loaded into memory, and once free memory hits less than ~80MB, the phone becomes sluggish. Once I kill all apps, the phone is back to normal snappy lag-free operation. Free memory at that point is around 135MB. This is even worse when I insert the phone into car dock. Re-draw takes about 5-7 seconds, swiping is about 2-3 seconds. In few moments it becomes ok, but still laggy.
No problems here
Been on TS1.4 w/ PBJ for about a month now, everything is still as snappy as day one. Thought I was having issues at one point but it turned out it was actually an app, Stitcher Radio, that was eating CPU and draining battery (even though I never launched it). I've over/under clocked with SetCPU at various times but never messed with the voltages.
Nonetheless, thanks to OP for this little tidbit, I'll remember it if I ever start experiencing problems.
ddavv said:
Was so thrilled to see this recommendation, as I observed that my phone is really struggling to memory, and then kswapd0 kicks in. Tried to change it to 48MB, then to 64MB. Did not see any improvements. It looks like all apps get pre-loaded into memory, and once free memory hits less than ~80MB, the phone becomes sluggish. Once I kill all apps, the phone is back to normal snappy lag-free operation. Free memory at that point is around 135MB. This is even worse when I insert the phone into car dock. Re-draw takes about 5-7 seconds, swiping is about 2-3 seconds. In few moments it becomes ok, but still laggy.
Click to expand...
Click to collapse
ddavv, sorry it didn't work for you. Some of the other things I've done to my Charge to help with the lag:
Changed io scheduler to bfq (from sio)
Tweaked my memory manager kill thresholds to 6,8,20,28,32,40 (WIP, YMMV!)
Removed some apps that kept heavy services in memory all the time, e.g. Accuweather & Lookout Security, and streaming media services I didn't use much (Last.fm, Slacker)
Turned off Google location services to stop the k3g_wq CPU runaway bug (this may be fixed in Google Maps > 6.4.0)
Switched to ADW.Launcher
Trimmed widgets I wasn't using frequently (down from 20 to 15)
I still do get a bit of lag after the phone has run for a while, so daily reboots are still a good idea for me - but I'm slowly improving my situation. I'm probably going to take a few hours to do a full wipe & reload once the FP1 ROMs start dropping, and be much more careful about indiscriminate app restoring from Titanium Backup this time. Good luck!
Purchased the shield tablet with controller yesterday. It came with 4.4 and seemed to run fine (wifi speed very fast etc) Soon after upgraded to 5.01 and the problems started..
There seems to be the Miscellaneous entry under the battery settings which is using around 40% of the battery according to the info. Battery drain seems to be quite fast.
Since then, today I decided to unlock bootloader and root the device which was successful. Miscellaneous entry does not seem to appear anymore
However there is the wifi issue that has occurred since I updated to 5.01. When the tablet goes to sleep and when I wake it up, connection is lost (and rather annoying where a game needs to download 1gb+ of data). It does also occur while I am using the tablet. Wifi sometimes just disconnects (and the entry on the wifi list for my router is showing as "saved" - clicking on connect, starts it up again..
I have checked through the settings and disabled the wifi off when sleep option as well as gps only for location etc, but still to no avail.
Has anyone encountered and solved this issue on lollipop? Or is this also an issue with 4.4? I did not use it for long before updating to 5.01 hence not sure If that problem would occur then (but seemed blistering fast for the hour or so when I was testing it)
I'm having the same issue. I looked on the forums on their website and it seems this is still a problem for a good amount of people. Can't find any solutions though. Thought maybe a hard reset might do the trick but that didn't help. Pretty frustrating...
Wifi connectivity seems ok when I am near the access point, but seems that the sensitivity somewhat has been reduced since the update (as the connection was more stable and reliable further away from the router on 4.4)
Hows your battery after rooting? Does it still drain horribly?
I have the same problem
thealgorithm said:
Purchased the shield tablet with controller yesterday. It came with 4.4 and seemed to run fine (wifi speed very fast etc) Soon after upgraded to 5.01 and the problems started..
There seems to be the Miscellaneous entry under the battery settings which is using around 40% of the battery according to the info. Battery drain seems to be quite fast.
Since then, today I decided to unlock bootloader and root the device which was successful. Miscellaneous entry does not seem to appear anymore
However there is the wifi issue that has occurred since I updated to 5.01. When the tablet goes to sleep and when I wake it up, connection is lost (and rather annoying where a game needs to download 1gb+ of data). It does also occur while I am using the tablet. Wifi sometimes just disconnects (and the entry on the wifi list for my router is showing as "saved" - clicking on connect, starts it up again..
I have checked through the settings and disabled the wifi off when sleep option as well as gps only for location etc, but still to no avail.
Has anyone encountered and solved this issue on lollipop? Or is this also an issue with 4.4? I did not use it for long before updating to 5.01 hence not sure If that problem would occur then (but seemed blistering fast for the hour or so when I was testing it)
Click to expand...
Click to collapse
THAT DRIVE ME CRRAAZZZYYYY!!!! the same happens to me everyday and I can't find anything about it online.. somebody please solve our problem!
I think I have partially solved the problem. The below is what I have done (Will at some point activate some of these options one by one and see which one would be the main culprit)
Settings->Wifi->Advanced Wifi - Turn off Ethernet override and turn off "scanning always available"
Settings->Wifi->Advanced Wifi - Keep on "turn wifi on during sleep" - Can turn this option off for some additional battery life
Settings->Controller->Disable "enable gamepad mapper" - From other sources it seems that this may be one of the main culprits in battery power sucking
Settings->Location->Turn this off (If wanting to keep on, leave it on GPS only)
Using the above settings, and charging the tablet approximately 15 hours ago, the battery life of the tablet has decreased by only 6% (and currently there is no - miscellaneous showing on the battery option)
There is still the issue with weak wifi (It works perfectly well when the device is near the access point) perhaps a future update may increase the sensitivity somewhat
One other important thing.. I decided to hard reset the tablet after upgrading from 4.4 to 5.01. This may help. Once this is done, then follow the steps above
Did miscellaneous ever come back for you? I did reset and changed all the settings and miscellaneous wasn't there for about 2 hours and then came back. Down to 50% battery with miscellaneous taking up 17%. I'm now wondering if this is an issue with the software or my tablet in particular...
For me, once I disabled the gamepad mapper, I no longer experience the outrageous battery drain issue, and misc. no longer appears in the battery status page and has not returned.
Sent from my SHIELD Tablet using Tapatalk
I didn't experience this miscellaneous battery drain until the most recent 2.2 update. When I upgraded to lollipop I did a complete wipe, rooted and unlocked the boot loader. When I updated to 2.2 I just flashed via recovery and wiped dalvic/cache.
I'm wondering if I need to do a complete wipe. I haven't seen any solutions to this, but it's strange that it just now started to be a problem for me.
sky.walker said:
I didn't experience this miscellaneous battery drain until the most recent 2.2 update. When I upgraded to lollipop I did a complete wipe, rooted and unlocked the boot loader. When I updated to 2.2 I just flashed via recovery and wiped dalvic/cache.
I'm wondering if I need to do a complete wipe. I haven't seen any solutions to this, but it's strange that it just now started to be a problem for me.
Click to expand...
Click to collapse
The main culprit seems to be the "game mapper". - the system that maps the controller to touch screen controls. I guess perhaps updating to 2.2 turned it back on. Turn it off via settings and reboot and see if that makes any difference.
thealgorithm said:
The main culprit seems to be the "game mapper". - the system that maps the controller to touch screen controls. I guess perhaps updating to 2.2 turned it back on. Turn it off via settings and reboot and see if that makes any difference.
Click to expand...
Click to collapse
Thanks for the reply,
I turned the game mapper off via settings, and still got the misc. drain, so I froze the nvidia game mapper and a few other nvdia controller system apps via titanium back up and I'm still getting the misc. battery drain. I just wiped the cache, and dalvik cache 3 times, but I doubt that will do anything. It's looking like I will have to wipe and do a clean install, just seems so weird that something that didn't even change the android version number would give me this problem.
It's really annoying as the battery drains soo fast (like 20% just reading a book in my e-reader app)
before I wipe I just wanted to see if others had this problem with the latest update, as it doesn't appear too common I will do a full wipe later when I have time. I hope that fixes it.
sky.walker said:
Thanks for the reply,
I turned the game mapper off via settings, and still got the misc. drain, so I froze the nvidia game mapper and a few other nvdia controller system apps via titanium back up and I'm still getting the misc. battery drain. I just wiped the cache, and dalvik cache 3 times, but I doubt that will do anything. It's looking like I will have to wipe and do a clean install, just seems so weird that something that didn't even change the android version number would give me this problem.
It's really annoying as the battery drains soo fast (like 20% just reading a book in my e-reader app)
before I wipe I just wanted to see if others had this problem with the latest update, as it doesn't appear too common I will do a full wipe later when I have time. I hope that fixes it.
Click to expand...
Click to collapse
I have the exact same issues as you describe. WiFi is about 25% of what it should be even standing right next to my netgear nighthawk. All other wifi devices work fine in the house. Disabled game mapper and my misc is still running the battery down. Tried wiping to factory with no luck. System UI crashes sometimes and the tablet freezes up constantly (especially when using Chrome and Google search). I'm thinking it could be Google play services related but not definitely sure.
Sheild LoLi screen changes orientation, goes black then to homescren
So seems you peeps having same problems I have experienced and troubleshot as well, but here is one I can't figure out...
Playing game (TaiChi Panda mmorpg) which only runs in landscape mode. I will be playing and all of a sudden tablet tries to change orientation away from landscape, the screen goes black (or has game shrunk and stuck in middle of screen) then will go black and puts me at my homescreen which is non-responsive and most times I have to hard power down. I've turned off screen/device rotation and still does it. The problem also happens with other apps and stuff at times as well. I've even turned all notifications etc I could cause thought maybe something was trying to interfere.
I have the screen flicker as well at times, feel like watching old black and white movie way it flickers.
Battery lifes went up with some tweaks found here (ty vm!).
Sorry to bump such an old thread, but has anyone figured out what it causing these issues on Lollipop?
I have a Samsung Galaxy S7 and the battery was doing fine. A few weeks ago the phone started getting quite slow and the battery life went way down. I had installed a few apps around then, so I removed them and still battery life was bad. I tried restarting the phone and that didn't help. At the time I was running Marshmellow and I was using OSMonitor to watch the system. I was finding that Android OS was taking most of my battery and 30% of the CPU all of the time. Not long after that Nougat became available and I upgraded thinking that might help. It didn't help and OSMonitor no longer worked. I switched to GSam Battery Monitor and used adb to give it the permissions to see all app information. I'm still finding that the Kernel is taking 28% of my battery and Android System is taking 37% of my battery and I can't figure out why. I would rather not need to do a full reset and install all of my apps and settings again, so I'm asking if anyone out there has ideas on things to try and fix this. This is a non-rooted phone running the stock image from Samsung/Verizon.
Thanks for any help.
try activate the Battery Saving option and use it for a day and see if helps
I've had this happen to me before. The phone was getting seriously hot while it was happening too. I decided to do all I can without doing a factory reset (I was on vacation at the time, so no access to something to backup my data).
I cleared the cache of all apps. Then I disabled all of the stock apps I didn't need (like Gear VR). I also shuttered apps running in the background to about a max of 3 apps open at any given time. That stopped the insane heat issue, but Android System was still sucking 30% of the battery. I turned off Always On Display, that got me down to about 25%. A factory reset got the phone down to around 10%, and I never saw the issue again.
Before you do that I would recommend checking out this thread below as there does appear to be a bunch of other possible solutions provided by others.
https://forum.xda-developers.com/s7-edge/help/how-experiencing-android-battery-drain-t3327730/page51
Djuganight said:
try activate the Battery Saving option and use it for a day and see if helps
Click to expand...
Click to collapse
But then my background syncing is turned off too...
I didn't need this before, so wondering why I should need it now.
I had same issues and was able to fix it. See the following thread for details.
https://forum.xda-developers.com/showthread.php?p=71558514
Try this , it helped me a lot .
Download from the XDA forums the Kernel named : "Apollo Kernel" v7
Just flash it , and when you install it , if you dont use your phone for high end games or hard work,that requires high end specs , then you can underclock the cpu/gpu .
It s a battery life saver, plus , your components will be much better in terms of thermals/life
I have a stock tmobile s7. It's running the latest OTA no root. Using cpuz, I identified that my CPU has been running at 90-100 percent non stop. It's making my phone warm all the time, killing my 7300 mha zerolemon battery in less then 2 hours because of how much energy it's using. I don't have the issue in safe mode. I know the phone gets super cold when running in safe mode. I haven't been able to find what process is causing this issue. Most cpu task managers no longer currently work in Nougat according to what i've seen due to a bug that prevents apps from seeing other app's usage. If I don't have another option. I'll just factory reset tomorrow and start from scratch completely. I started removing a ton of apps but still no luck. I've attached a screenshot of cpuz.
There's a "Show CPU usage" option under the monitoring section of the developer options.
CurtisMJ said:
There's a "Show CPU usage" option under the monitoring section of the developer options.
Click to expand...
Click to collapse
That option is also broken by the 7.0 bug. It only shows the system process which is low cpu usage but won't show all running apps. (https://code.google.com/p/android/issues/detail?id=213571) According to google, they have already fixed the bug internally and it's pending a public release. That feature would have definitely helped me pin point the cpu heavy process.
GOVATENT said:
I have a stock tmobile s7. It's running the latest OTA no root. Using cpuz, I identified that my CPU has been running at 90-100 percent non stop. It's making my phone warm all the time, killing my 7300 mha zerolemon battery in less then 2 hours because of how much energy it's using. I don't have the issue in safe mode. I know the phone gets super cold when running in safe mode. I haven't been able to find what process is causing this issue. Most cpu task managers no longer currently work in Nougat according to what i've seen due to a bug that prevents apps from seeing other app's usage. If I don't have another option. I'll just factory reset tomorrow and start from scratch completely. I started removing a ton of apps but still no luck. I've attached a screenshot of cpuz.
Click to expand...
Click to collapse
Search xda for better battery stats, without root you need to give it a permission via adb
Hello everyone, I'm in trouble.
22 Ultra is simply eating battery at indescribable levels. Yesterday we went on a trip from work, I left my home with 100%. During the day I did not touch the phone, a bit of a camera but beyond that really nothing. My battery was about 40% after about 3 hours, with no screen use at all! On the other hand, a friend at work with Xiaomi came out with 100% and after 3 hours was on 85, and he did touch the phone here and there.
I don't know how that makes sense, and it's no longer clear to me what to do to solve the problem. I debloat, deleted and disabled a number of irrelevant apps but still, the battery is being eaten. How can I solve it? Please help me!
Draining battery so fast, 20% per hour while idle is not normal, so you definitely have a problem.
It looks that there are two possibilities here:
- Battery malfunction
- Some active process in the background that is using lots of processor power constantly.
If battery is damaged / not working properly, the only solution is to replace it. Still, this doesn't look like a case of duying battery.
If you have some persistent process running in the background that you can't get rid of by debloating, it can't be stopped by restarting the phone, and its not visible in the battery usage section, i would say that factory reset is the most effective option here, since you stated that you tried to deal with it in a various ways already.
You could also wait a bit until you get chance to update to OneUI 5 / Android 13, which should solve your problem, if it's software related.
Hope that you will find solution soon
draskome said:
Draining battery so fast, 20% per hour while idle is not normal, so you definitely have a problem.
It looks that there are two possibilities here:
- Battery malfunction
- Some active process in the background that is using lots of processor power constantly.
If battery is damaged / not working properly, the only solution is to replace it. Still, this doesn't look like a case of duying battery.
If you have some persistent process running in the background that you can't get rid of by debloating, it can't be stopped by restarting the phone, and its not visible in the battery usage section, i would say that factory reset is the most effective option here, since you stated that you tried to deal with it in a various ways already.
You could also wait a bit until you get chance to update to OneUI 5 / Android 13, which should solve your problem, if it's software related.
Hope that you will find solution soon
Click to expand...
Click to collapse
I want to keep the factory reset as the last option....
Every single app that I don't need at the background I disabled from running in background.
Deleted
maor23 said:
I want to keep the factory reset as the last option....
Every single app that I don't need at the background I disabled from running in background.
Click to expand...
Click to collapse
Try to wipe your system cache.....it won't do a factory reset but might solve the issue while keeping your phone as it is.
Volume UP button along with the power button until you see Android screen
Scroll down with volume down until you reach wipe system cache and reboot
sometimes, it won't show up while you press the buttons....in that case, connect your phone to your PC/Laptop with any USB C cable and then do it.
Second solution, you can try Samsungs App Booster.....get an apk from the net. It generally helps as well.