晚暂停,早期恢复和wakelocks。请解释 [英] late suspend, early resume and wakelocks. please explain

查看:209
本文介绍了晚暂停,早期恢复和wakelocks。请解释的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

什么是功能,为什么它在Android的内核引入? 通过引入这是电源管理以任何方式作出有效的? 这些是我所遇到的,因为我正在学习在Android的内核PM模块的几个问题。

what is the functionality and why is it introduced in Android Kernel? By introducing this is the power management made efficient in any way? These are a few questions that I have come across since I am studying the PM module in Android kernel.

推荐答案

Android的分裂成2层

Android is split into 2 layers

  • 应用程序
  • 在Linux内核

所有的低级别访问硬件,CPU,内存由linux内核完成。内核又提供了系统调用和驱动程序作为一种机制,应用程序能够与硬件。

All the low level accesses to Hardware, CPU, Memory is done by the linux kernel. Kernel in turn provides system calls and drivers as a mechanism for applications to talk to hardware.

现在的任何智能手机,电池的寿命是最重要的,因此需要电源管理。想法是保持设备的消耗功率较小尽可能在主动和待机情况下。这将意味着更高的电池寿命。

Now for any smartphone, battery life is of prime importance, hence the need for power management. Idea is to keep the device consume as less power as possible in active as well as standby cases. This would mean higher battery life.

Wakelocks是由哪些应用程序可以让系统在高功率状态的机制。不同wakelocks保持系统的不同部分上,如屏幕,CPU,键盘等。当Android已经进入低功耗状态,它检查是否有任何wakelocks采取。如果没有的话,就进入深度睡眠状态。因此,它是不好的应用程序举行wakelock太久。

Wakelocks are a mechanism by which applications can ask the system to be in a high power state. Different wakelocks keep different parts of the system on, e.g. Screen, CPU, keypads etc. When Android has to go to a low power state, it checks if any wakelocks are taken. If no then, it goes to a deep sleep state. Hence it's bad for apps to hold a wakelock for too long.

Android的控制哪些设备应该是。特定设备驱动程序将打开/关闭的基础上wheter它们是必需的。

Android controls which device should be on. Specific Device drivers will turn On/Off based on wheter they are required.

建议您阅读为这个伟大的信息链接

这篇关于晚暂停,早期恢复和wakelocks。请解释的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆