Android 睡眠模式和深度睡眠模式有什么区别?
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/10119034/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
what is the difference between Sleep mode and Deep sleep mode?
提问by piks
I would like to know what is the difference between Sleep mode and Deep sleep mode in android phone and what will be the impact of when phone goes to sleep mode and deep sleep mode.
我想知道android手机中的睡眠模式和深度睡眠模式有什么区别,手机进入睡眠模式和深度睡眠模式会有什么影响。
Please provide me the answer in details.
请给我详细的答案。
regards, Piks
问候,皮克斯
回答by thiagolr
Deep sleep mode doesn't have anything to do with hibernate and boot time, as somebody wrote in deleted answer.
正如有人在已删除的答案中所写,深度睡眠模式与休眠和启动时间没有任何关系。
You should not avoid the phone sleep, this will drain your battery very fast. To receive messages from server, you should use [C2DM]GCMwhich has the same basic characteristics as old fashion deprecated C2DM.
您不应该避免手机休眠,这会很快耗尽您的电池电量。要从服务器接收消息,您应该使用[C2DM] GCM,它与旧式已弃用的 C2DM具有相同的基本特征。
More info about the android sleep here: http://developer.android.com/reference/android/os/PowerManager.html
有关 android 睡眠的更多信息:http: //developer.android.com/reference/android/os/PowerManager.html
回答by wwawrzy
You can use WAKE_LOCK to prevent device going to deep sleep. But you must take into account battery drain. More info: http://developer.android.com/reference/android/os/PowerManager.html
您可以使用 WAKE_LOCK 来防止设备进入深度睡眠。但是您必须考虑电池消耗。更多信息:http: //developer.android.com/reference/android/os/PowerManager.html
回答by Sahil Malik
Deep sleep: turns your phone CPU central processing unit ie brainto the lowest clock cycle speed. On mine it is 200mhz, where max is 1600mhz.
深度睡眠:将您的手机 CPU中央处理器(即大脑)调至最低时钟周期速度。我的是 200mhz,最大是 1600mhz。
it also disables some sensors it figures you might not be using, such as dependin on phonecamera, gyro, etc. some of it gets shut off to save power.
它还会禁用一些它认为您可能不会使用的传感器,例如依赖于手机摄像头、陀螺仪等。其中一些传感器会被关闭以节省电量。
When you wake up your phone depending on governer, it rams cpu clock cycle up to 500mhz, or 800mhz, or 1600mhz, and re activates the sensors, sending power back to the camera, cyro, magnet, etc that your phone may have proxi sensor
当您根据调节器唤醒手机时,它会将 CPU 时钟周期提升至 500mhz、800mhz 或 1600mhz,并重新激活传感器,将电源送回相机、cyro、磁铁等,您的手机可能具有proxi 传感器
This is more or less what deep sleep really IS. program, to save power, by disableing unused sensors, and clocking cpu way down to minimum.
这或多或少就是深度睡眠的真正含义。程序,通过禁用未使用的传感器并将 CPU 时钟降至最低来节省电量。
Credits: vrigil kellogg http://forums.androidcentral.com/sprint-galaxy-s-iii/247066-what-deep-sleep.htmlpost#14
学分:vrigil kellogg http://forums.androidcentral.com/sprint-galaxy-s-iii/247066-what-deep-sleep.htmlpost#14