Short answer is yes Android sometimes does lower the download rate when the screen turns off. According to this Android bug report (starred by 90 users) It seems that, even with "Wifi Sleep Policy" set to "Never", the wifi on some Android devices will enter Power Save mode (a.k.a. PSP mode) when the screen turns off PSP mode apparently causes the wifi device to sleep, but wake up periodically and ask its access point to deliver packets that were addressed to to the device while it was asleep.
This necessarily causes additional, "spiky" network latency. This additional latency means that some network-oriented applications experience problems when the screen turns off This more or less correlates with the behavior you're describing. This issue affects only some phones, not all, and only some versions of Android.
I suggest you visit the bug report above, there is a long discussion of this issue How to solve this issue There is a workaround for Android 2.3 at least: You need to acquire WIFI_MODE_HIGH_PERF lock : In this Wi-Fi lock mode, Wi-Fi will be kept active as in mode WIFI_MODE_FULL but it operates at high performance with minimum packet loss and low packet latency even when the device screen is off. This mode will consume more power and hence should be used only when there is a need for such an active connection CPU clock scaling in Android Android is based on Linux kernel, and uses CPUFreq Governors to adjust CPU frequency to conserve the battery. Exact policies and frequencies vary from vendor to vendor and are subject to change.
There are also utilities that let you adjust these policies, but they all require rooted phone. Usually, Android phones lower CPU frequency and use "powersave" governor when the screen is turned off However, I don't think network traffic on a phone is CPU-bound. That is, even when in power-safe mode, network throughput is a bottleneck, not CPU speed.
Short answer is yes, Android sometimes does lower the download rate when the screen turns off. According to this Android bug report (starred by 90 users), It seems that, even with "Wifi Sleep Policy" set to "Never", the wifi on some Android devices will enter Power Save mode (a.k.a. PSP mode) when the screen turns off.
PSP mode apparently causes the wifi device to sleep, but wake up periodically and ask its access point to deliver packets that were addressed to to the device while it was asleep. This necessarily causes additional, "spiky" network latency. This additional latency means that some network-oriented applications experience problems when the screen turns off.
This more or less correlates with the behavior you're describing. This issue affects only some phones, not all, and only some versions of Android. I suggest you visit the bug report above, there is a long discussion of this issue.
How to solve this issue There is a workaround for Android 2.3 at least: You need to acquire WIFI_MODE_HIGH_PERF lock: In this Wi-Fi lock mode, Wi-Fi will be kept active as in mode WIFI_MODE_FULL but it operates at high performance with minimum packet loss and low packet latency even when the device screen is off. This mode will consume more power and hence should be used only when there is a need for such an active connection. CPU clock scaling in Android Android is based on Linux kernel, and uses CPUFreq Governors to adjust CPU frequency to conserve the battery.
Exact policies and frequencies vary from vendor to vendor and are subject to change. There are also utilities that let you adjust these policies, but they all require rooted phone. Usually, Android phones lower CPU frequency and use "powersave" governor when the screen is turned off.
However, I don't think network traffic on a phone is CPU-bound. That is, even when in power-safe mode, network throughput is a bottleneck, not CPU speed.
1 Thank you for you response. I haven't noticed that. I make another simple experiment.
I run a native counter in an infinite while loop (while(1)) equipped with a signal handler. I run for 3 minutes and after this interval sent it a signal using the Android Alarm Manager and force it to dump the counter value. When the screen was off the counter value was almost 500.000.000 and when the screen was on was almost 1.000.000.000, that is the double value!
Is this happen for the same reason? Does Android under-clock the CPU when is in screen off mode too? – Thanasis Petsas Oct 18 at 13:45 Expaned my answer about CPU scaling – haimg Oct 18 at 16:11 1 The wifi WIFI_MODE_HIGH_PERF lock did not worked for us is a similar situation (we used ntpd and when screen was off the synch was destroyed due to the very big delays that wifi sleep policy caused), so we just adjust the screen off timeout.
Greetings from TNL Thanasis :P – Manos Oct 18 at 21:43 Thank you all for the answers! Manos, greetings from DCS :P – Thanasis Petsas Oct 180 at 12:20.
Short answer is yes, Android sometimes does lower the download rate when the screen turns off. It seems that, even with "Wifi Sleep Policy" set to "Never", the wifi on some Android devices will enter Power Save mode (a.k.a. PSP mode) when the screen turns off.
PSP mode apparently causes the wifi device to sleep, but wake up periodically and ask its access point to deliver packets that were addressed to to the device while it was asleep. This necessarily causes additional, "spiky" network latency. This additional latency means that some network-oriented applications experience problems when the screen turns off.
This more or less correlates with the behavior you're describing. This issue affects only some phones, not all, and only some versions of Android. I suggest you visit the bug report above, there is a long discussion of this issue.
In this Wi-Fi lock mode, Wi-Fi will be kept active as in mode WIFI_MODE_FULL but it operates at high performance with minimum packet loss and low packet latency even when the device screen is off. This mode will consume more power and hence should be used only when there is a need for such an active connection. Android is based on Linux kernel, and uses CPUFreq Governors to adjust CPU frequency to conserve the battery.
Exact policies and frequencies vary from vendor to vendor and are subject to change. There are also utilities that let you adjust these policies, but they all require rooted phone. Usually, Android phones lower CPU frequency and use "powersave" governor when the screen is turned off.
However, I don't think network traffic on a phone is CPU-bound. That is, even when in power-safe mode, network throughput is a bottleneck, not CPU speed.
I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.