[Q] phone process priority - Droid Eris Q&A, Help & Troubleshooting

Is it possible to raise the process priority for the phone app? I've noticed that when the processor is under heavy load and I try to place a call it can take up to a minute between pressing the call button and the call to actually go through. Since this is a phone, after all, I would like the phone parts to take priority over whatever app happens to be hogging the processor at the moment. Can this be done?

Possible, probably not worth the trouble.
I've only discovered one tool that will change process priority, it is part of the SDK, which leads me to believe the process priority it written into the Java script for the program, the list of applicable code I found here. There is a somewhat easier alternative which I believe will help you with your desired end result, use the free Market app AutoKiller Memory Optimizer. It allows to control at what level of available memory the system will automatically kill a process based on the process class. The developer page has sufficiently detailed information about what each class is and there are varoius default settings as well it is fully customizable.

It seems that Autokiller Memory Optimizer came with my ROM (KaosFroyo). Any suggestions on what the optimal settings are? I see the listings on the developer website, but it seems like most people are just using the defaults (or maybe what the ROM set).

Which ROM are you on? It doesn't lag making calls on XTRSense. It is slightly overclocked and runs good.
Sent from my Eris using XDA App

KaosFroyo. I have had this lag with every ROM I've tried.

Define what you mean by a heavy load and what you are doing to make it work hard. Our phones aren't high end at all and although it does run faster on these ROMs, it still can be choked.
Sent from my Eris using XDA App

Any process that slows the phone down. Installing a new app is a common culprit. I often don't know what it's doing because it's doing it in the background.
I am more than aware of the phone's limitations, but I think that, given that it is a phone, the phone's processor scheduler should ensure that the parts that make it function as a phone get highest priority, even to the point of totally stopping other processes.
One other thing I've noticed is that the lag is often correlated with the data indicator being active. I know that on CDMA the data connection can't be active during a call, so could it be waiting for the data connection to turn off? Is there a way to make this happen faster? For some reason this happens even when the phone is on wifi, but I'm not clear on whether the 3G connection is turned off when the phone is on wifi.

shoofy123 said:
Any process that slows the phone down. Installing a new app is a common culprit. I often don't know what it's doing because it's doing it in the background.
I am more than aware of the phone's limitations, but I think that, given that it is a phone, the phone's processor scheduler should ensure that the parts that make it function as a phone get highest priority, even to the point of totally stopping other processes.
One other thing I've noticed is that the lag is often correlated with the data indicator being active. I know that on CDMA the data connection can't be active during a call, so could it be waiting for the data connection to turn off? Is there a way to make this happen faster? For some reason this happens even when the phone is on wifi, but I'm not clear on whether the 3G connection is turned off when the phone is on wifi.
Click to expand...
Click to collapse
You can use Systempanel to see what processes are running. In my case Youtube, Maps, Google search, Pandora, and Shazam randomly start backup processes. I downloaded Autokiller to see if it keeps them ended. The only concern I have is I want to be reasonably sure it wont end the alarm process.

The thing is I don't particularly care about these processes running. Given the limited resources of the phone I think it is a fruitless task to try to keep it from ever getting slow and still enjoy all of the awesomeness of Android. I just want the actual calling parts to be able to take top priority no matter how slow the rest of the phone is running, just like most desktop OSes give the mouse high priority.

Related

[Q] About Android....

Guys, don't ask me to search again... i really did... and didn't found any answer....
i am new on android.... and it's regarding the battery's life time...
i hope someone give me an answer here....
there're a lot android user saying about advanced task manager, juicedefender, v6 supercharger, cell standby, phone idle.... anyway... i got no answer at all....
few people using ATaskMan and improve their battery life, but few people said it just drain my battery... anyway...i don't see any improvement using that....
i used juice defender to keep the connectivity.... better than keep it all the time...
didn't see any improvement also....
i used setCpu too... keep it low at night.... i don't really know if it works....
all i want is keeping the data on as long as possible.... even on sleep.... to keep apps like viber, whatsapp, im+ and sometime to sync the apps like weather, facebook, twitter and email...
weather, facebook, twitter and email... these apps were set to manual... not automatic....
i don't call and messaging a lot.... just stay on in internet...
i don't play games a lot... maybe few minutes....
so my questions here...
1. did the apps on background really drain up the battery? because they are, who using v6 supercharger didn't have a problem with battery.... and it's not like ATaskMan... it's didn't kill the apps at all.... just manage the background apps...
2. did the widget also drain the battery? some people said so....
3. keep the data on all the time? i read in this forum... they keep their data on.... but, still having their phone more than a day... moveover... some guys get it over 2 till 4 days...
if it's about ROM, it should be same with other, who uses the same ROM...
and if it's about hardware... it should be from the first time i bought this phone....
i just want keep my phone as long as possible with data on.....
anyway.... i still keep tracking what drain my battery the most....
hope someone come with answer for this....
and sorry for my english.....
1. That depends on which apps are running in the background, but when your device is in standby it should go to "sleep", but if you've set some apps to update every 15 minutes, the phone will wake up (without turning the screen on of course) to update them. This will naturally use some battery. And remember that Android can handle all processes itself. You don't need to kill them yourself. That will actually decrease batterylife since the phone has to start the apps again everytime you kill them. A task manager is nice to have if an app is going rogue.
2. Widgets do use battery, and the widgets who are set to automatically update itself uses more battery (Facebook, Twitter, Weather etc.)
3. "This tip is one that seems counter-intuitive, but you can save a lot of wear and tear on your Android phone's battery if you tell it to keep the Wifi radio turned on and connected while the phone is sleeping. Your phone needs a lot of juice to keep pinging those cell towers, and even more to transmit data to and from them. Wifi radios use much less power because of their design, and they don't have to keep searching for a better access point. It's the way cellular data communication was designed, and it's a necessary evil.
But what if you're spending all day (or all evening) in one place, connected to Wifi? If you tell your phone to shut off Wifi when idle, it bounces back to cellular data (be it 2G, 3G, or 4G) and starts sucking down the electrons again when the screen shuts off. That's no good, and easy to fix:
Open the advanced Wifi settings by pressing the menu button, then Settings, Wireless & networks, Wi-Fi settings, and tapping the menu button again. You'll have a choice to either Scan, or go Advanced -- go Advanced.
Tap the Wi-Fi sleep policy entry, and you'll get a pop up dialog with the choices you see in the picture above. Choose Never.
Now even when your phone goes into standby mode, you'll stay connected to Wifi and be able to get mail and messages without turning the cell radio back on and trouncing your battery life. And for the times when you're not in an area with a Wifi connection, just shut Wifi off, either through the menu or with a handy toggle widget. Your battery will thank you for it."
Source: AndroidCentral
Follow the two guides below, this will help you out.
1. Complete Guide to Maximizing Your Android Phone’s Battery Life
2. How to Save Battery Power on an Android
And of course the easiest solution that is often overlooked:
Carry a spare battery and/or charger.
BazookaAce said:
1. That depends on which apps are running in the background, but when your device is in standby it should go to "sleep", but if you've set some apps to update every 15 minutes, the phone will wake up (without turning the screen on of course) to update them. This will naturally use some battery. And remember that Android can handle all processes itself. You don't need to kill them yourself. That will actually decrease batterylife since the phone has to start the apps again everytime you kill them. A task manager is nice to have if an app is going rogue.
2. Widgets do use battery, and the widgets who are set to automatically update itself uses more battery (Facebook, Twitter, Weather etc.)
3. "This tip is one that seems counter-intuitive, but you can save a lot of wear and tear on your Android phone's battery if you tell it to keep the Wifi radio turned on and connected while the phone is sleeping. Your phone needs a lot of juice to keep pinging those cell towers, and even more to transmit data to and from them. Wifi radios use much less power because of their design, and they don't have to keep searching for a better access point. It's the way cellular data communication was designed, and it's a necessary evil.
But what if you're spending all day (or all evening) in one place, connected to Wifi? If you tell your phone to shut off Wifi when idle, it bounces back to cellular data (be it 2G, 3G, or 4G) and starts sucking down the electrons again when the screen shuts off. That's no good, and easy to fix:
Open the advanced Wifi settings by pressing the menu button, then Settings, Wireless & networks, Wi-Fi settings, and tapping the menu button again. You'll have a choice to either Scan, or go Advanced -- go Advanced.
Tap the Wi-Fi sleep policy entry, and you'll get a pop up dialog with the choices you see in the picture above. Choose Never.
Now even when your phone goes into standby mode, you'll stay connected to Wifi and be able to get mail and messages without turning the cell radio back on and trouncing your battery life. And for the times when you're not in an area with a Wifi connection, just shut Wifi off, either through the menu or with a handy toggle widget. Your battery will thank you for it."
Source: AndroidCentral
Click to expand...
Click to collapse
thanks a lot.... i just read all article from androidcentral.... i thought, i found all my answer there... searching in the google doesn't really bring me to the best source... it's just too many choice....
anyway... i got another website to spend my time
febycv said:
Follow the two guides below, this will help you out.
1. Complete Guide to Maximizing Your Android Phone’s Battery Life
2. How to Save Battery Power on an Android
Click to expand...
Click to collapse
thanks for another source...
it's really helpfull...
DirkGently1 said:
And of course the easiest solution that is often overlooked:
Carry a spare battery and/or charger.
Click to expand...
Click to collapse
yeah.... it's the last choice.... carring them is not the problem.... im just kind person who can't leave my stuff behind on the socket... and i spend too much time out there... where doesn't really have socket... except... library... plug the charger for 5 minutes, doesn't really help.... thanks anyway....
The android OS has a built in task manger so using ATK or ATM is actually worse than if you don't.
But honestly rooting has made all of the difference. If you have time for it READ about what it means to root and the how-to's, youtube instrutional videos, etc.... just get your feet wet a lil bit. When/if you feel like it is something that you might be interested in, go ahead and do it. You wont regret it and you will diffidently be able to improve battery life with titanium backup which allows you to freeze apps that you dont need running.
Warning 1) you might become addicted to flashing ROMS... and 2) if you screw up your phone you can't blame anyone but yourself.
petecraig612 said:
The android OS has a built in task manger so using ATK or ATM is actually worse than if you don't.
But honestly rooting has made all of the difference. If you have time for it READ about what it means to root and the how-to's, youtube instrutional videos, etc.... just get your feet wet a lil bit. When/if you feel like it is something that you might be interested in, go ahead and do it. You wont regret it and you will diffidently be able to improve battery life with titanium backup which allows you to freeze apps that you dont need running.
Warning 1) you might become addicted to flashing ROMS... and 2) if you screw up your phone you can't blame anyone but yourself.
Click to expand...
Click to collapse
1. I did already.... waiting the new rom everyday....
2. Yes it is....
I need root to back up my phone... and it's already rooted... and there're a lot useless program coming with stock rom... need root to clean it also....
Sent from my LG-P920 using XDA App
at least for my phone: regarding setcpu, you can raise the minimum frequency, increasing performance while hardly affecting battery life (at stock i had 245/600; now i have 480/600). turns out that if you set the minimum frequency low, it will take some juice to ramp the cpu back up
just a little tip
Just wanted to add: besides titanium backup, I'd also recommend gemini app manager and better battery stats. You can use gemini to edit an app's autorun permissions (ie, automatically starting at boot) for those apps you don't, can't or shouldn't uninstall/freeze. If you're having issues with your phone not sleeping better battery stats will help you identify what's keeping your phone awake.
Lastly, there is only so much you can do to optimize your battery life. In the end you're going to have to sacrifice some functionality for better battery life or vice versa. You just need to find the right balance you can live with.
What is the longest running time did you had on your phone? I reckon batteries are getting thinner and thinner and will not last long.
Apps are there to help you avoid manual work. If you switch of automation on all the apps then you will have to spent time and do it all manually and on the other hand how much life will you save lets say %15. Not worth it!
Best solution is to stick your handset to the charger while you are going to sleep!
sweetnsour said:
at least for my phone: regarding setcpu, you can raise the minimum frequency, increasing performance while hardly affecting battery life (at stock i had 245/600; now i have 480/600). turns out that if you set the minimum frequency low, it will take some juice to ramp the cpu back up
just a little tip
Click to expand...
Click to collapse
i set it 300/300 at night... it's from 00.00 til 06.00 which i don't touch it.... i don't know, if it is a good idea.... i guess, background apps wouldn't using cpu so badly.... would it?
arsalan.haqs said:
What is the longest running time did you had on your phone? I reckon batteries are getting thinner and thinner and will not last long.
Apps are there to help you avoid manual work. If you switch of automation on all the apps then you will have to spent time and do it all manually and on the other hand how much life will you save lets say %15. Not worth it!
Best solution is to stick your handset to the charger while you are going to sleep!
Click to expand...
Click to collapse
im trying tasker right now... 15% fair enough for me.... without losing data....
i am almost 12 hours out there every day.... i wanna figure out, how to spare the battery life... cause i wanna buy tablet.... which consume more battery than a phone....

What happens to TCP connections when phone sleeps?

I have a Star A3 running 2.3.4
The question is more of a general question to the android platform, I don't suspect the hardware matters.
I am running Ttorrent Pro on the phone, and the speeds are less than impressive (everyone else says the same thing) I am on a very fast connection, using speed guide I literally max out the speedtest servers in my local area (20Mb up/down which is the max they let you go to, I would get 100/100 if my speedtest server would allow it) and I have a port forwarded correctly.
but anyways, what I have noticed is, when wake the phone, and open the torrent application the speeds are down to around 3Kbps if I leave it open the speeds immediately start ramping up to 200-300Kbps if I keep it awake.
So this makes me think, when the phone is sleeping a lot of the connections are being closed, or when the phone is asleep it won't try and open new connections to new peers (and the current peer list may go stale while its asleep)
this is with all torrents, now the exact same torrent on another PC with a DSL connection (3Mb down 300Kb up) is downloading faster than the phone.
Are there any developers out there than can explain what processes are going to sleep that may be useful to keep awake for downloading, and also what are the tcp limits on the phone, ie. max open connections, max half open etc?
When the phone clocks down its CPU, of course it'll make your apps run slower. Is that so strange? Leaving it connected to the power seems to keep the CPU at high speed on my devices at least, but I guess that may vary from phone to phone.
A torrent client have a quite intelligent algorithm choosing the numbers of peers it connects to depending on several parameter such as effective bandwidth and so, and if your device lower its CPU frequency, the bandwidth will suffer.
There's also another possibility. Running the task in the background, i.e. without its main window visible, and Android may kill the app. More than 15 hidden apps (e.g. background running), and Android begin to kill the oldest. This is quite invisible to you, because Android must restart them as well. The problem with a torrent app, is that setting up the torrent, connecting to pears etc takes a while, and if the app gets killed and restarted once up running, you'll never achieve great speed. If this is the case, leaving the main activity visible prevents Android killing/restarting it.

[Q] G3 gets really warm

Anyone know why my g3 gets really warm even when doing simple tasks like texting and basic web browsing. Ive restored I've also had the latest update I installed a different rom the only thing I haven't tried is aosp rom but I don't know how good that works. When I've looked in battery status or cpu apps there's nothing really using my resources it just warms up like if I was charging the battery I don't know if it's normal anyone have a clue?
Sent from my LGLS990 using XDA Free mobile app
Turn down your brightness and when your done with a app clear it from your recents. You could also go into g3 tool box and make it to when you long press something it totally closes the app. Just try to closes every single app when your done and also make sure to keep your ram down.
Closing every app when you're done is bad advice. Android isn't Windows. Android abhors a [memory] vacuum, and will simply keep reloading apps into unused memory to keep them available for rapid use. Background apps, with few exceptions, aren't really "running." They just in standby mode, ready to be activated when called upon, and use no cpu. Constantly killing and reloading apps uses more CPU and battery than just letting Android do it's thing.
If your device is running really warm when not doing much, it could be a hardware issues, it could be an app or process running out of control. GPS will heat up the phone when actually in use, but shouldn't have any impact otherwise. What's your battery life like? In the battery screen, what apps are shown as using the most battery?
My brightness is down and I don't really do much on My phone it starts getting warm when I open an app and I've used it for at least 5 minutes it gets warm gps is always off only things I have on is either wifi or data everything else is usually off
Sent from my LGLS990 using XDA Free mobile app
Your data may be the problem, lets say you set your phone to "lte only" mode. Then the phone has to try harder to get lte. So maybe try changing network mode(s).

Wifi Icon keeps turning to white and orange within seconds

Hi all,
I am getting a strange issue with my Google Play services and GCM_Reconnect wakelock.
My wifi icon keeps changing from white to orange within seconds and this creates lots of GCM_Reconnect wakelocks and eats my battery too much.
I tried to go deeper to see what exactly it's happening but other than watching few connecting and disconnected errors I couldn't find any relative helpful information to sort it out and searching didn't provide me any info about this specific issue too. I tried google as well as xda too.
If I disable my wifi, my phone is fine and these wakelocks doesn't occur anymore but as soon as I activate my wifi, these wakelocks come back and wifi icons start going from white to orange and white and then orange thus showing how aggressively my phone connects and disconnects with google servers.
I couldn't find a reason to this or how to sort it out, any help is greatly appreciated.
PS. I have removed every kind of restriction through Privacy guard but no positive result.
Thank you.
how did you get to the screen that shows the "Ping, Connect, Disconnect, Events"?
I'll explain something but you have to apply it to your situation.
These apps you can get that protect privacy, control wakelocks, control network aspects of apps, startups, processes etc etc that people claim to save battery are all, to put it in a reasonable term, crap.
They do exactly what they say they do but one thing that is never explained is that android is its own entity and will do what it does regardless of what anyone tells it to do, or not do.
An example of this would be, you run an app that changes the running status of another app. The problem is that android will always run the closed app and the app that was used to close the app will always use wakelocks to determine if the app is running or not. If it IS running the app closes it, android picks this up and runs it again so the app wakelocks and finds the app is running so closes it again. Rinse and repeat, you have a war going on in your phone!.
Android will automatically close unnecessary apps and apps you dont use or need over time. But it will ALWAYS FILL THE RAM WITH APPS. Android is natured for that.
So the be all and end all is to get rid of the apps that attempt to control your device as they are the ones responsible for the battery issues by causing app wars on your phone.
Beamed in by telepathy.

What is the best way to control the software of my Z5C? Do I need root?

I like my compact Z5 (international E5823) but the stock software is constantly updating, and updating the bloatware. The updates have slowly disabled all my apps. Plus it performs badly, I can rarely get cellular data now.
I am experienced with rooting Motorola and Nokia, but it’s so complicated with this phone. I rely on those DRM keys for the camera and fingerprint scanner.
I have Flashtool on my PC.
I would like to root it, maybe to run Adaway, but that is not mandatory. I mostly want the phone to perform well with cellular data and be able to control some other things like to eliminate the sound when I plug it in. Maybe I don’t need root.
What is the best way for me to gain control over the software to stop updates, block or eliminate bloatware, and be able to control sounds etc?
Go into the bloat, and turn off all the options regarding updates and notifications.
Use the System Tuner UI to get power notifications options and turn the notifications for the bloat.
Go into your data options, and turn off background data for the bloat.
Go into the software update and turn off the checking for updates, switch it to off, or manual.
You will not hear or see anything from your bloat again (whatsnew).
You will need to switch cellular providers if you want better 3g/4g data service.
No idea about sound when plugging it in. I have turned my phone to do not disturb mode, so it makes no sound.
Thanks for the tips. Switching off background data for each, I had not done yet.
I am wondering if I misdiagnosed the problems. 1) the phone uses the battery quickly, months ago it lasted 2 days, now barely 1 day; more than battery wear should be. 2) data signal is intermittent and rare now, months ago it got excellent cellular data, I had never even switched on wifi until recently.
Any advice to solve these 2 problems?
A while, back I tried to rebuff an update. Then the phone kept calling the home base trying to get that software update; interfering with my call signal and consuming the battery. Current problems seem similar to that but not as intense.
Also, as a silly question, I am a noob with obeying the rules and using stock android, is it normal to have your standard apps, like note taking or internet speed apps, just go obsolete when the os updates itself? Do I have to track down and update apps for each new os “security update”?
I just want to let you know that even if bloatware is removed, unless you resize the partition, the free space you gain is in the partition you don't have user access to.
also, unless you strip down most of the pre-installed apps, the most you really gain is about 500mb
you would have liked the guide I had on the sony forums for first boot out of box, it basically stepped you through the process to limit data and apps, and it gave about 2 1/2 days standby, no root required.

Categories

Resources