The invention is applicable to the technical field of terminal power saving, and provides a method and terminal for waking up the terminal system. The method includes: loading the preset blacklist into the internal memory of the terminal after detecting the shutdown of the display screen of the terminal where the terminal system is located, recording the application program of the terminal system which is prohibited to wake up when the terminal system is in the dormant mode, and determining whether there is an application program that needs to wake up the terminal system after the terminal system enters the dormant mode; If an application needs to wake up the terminal system, it is determined whether the application needs to wake up the terminal system is on the blacklist. If the application needs to wake up the terminal system is on the blacklist, it is forbidden to wake up the terminal system. When the terminal system is in the dormant mode, the invention can effectively reduce the number of times the system is awakened, thereby reducing the consumption of electricity.
【技术实现步骤摘要】
一种唤醒终端系统的方法及终端
本专利技术属于终端省电领域,尤其涉及一种唤醒终端系统的方法及终端。
技术介绍
目前的智能终端由于具有大显示屏、通信网络待机(2G/3G)、Wifi和蓝牙等功能,所以其电池的电量消耗也很快,在灭屏待机后,终端系统被频繁唤醒也加快了终端电池电量消耗。以手机为例,一般情况下,在手机灭屏后,系统为了省电,在一段时间后就会使系统进入休眠状态,以Android系统为例,在安装有Android系统的手机灭屏后,当检测到没有应用程序需要占用CPU后,Android系统会将系统中当前运行的各种应用程序状态保存下来,然后进入休眠模式;待系统被唤醒时,重新加载恢复各个应用程序休眠前的状态。每次系统被唤醒时,都需要重新加载和恢复休眠前的状态。手机休眠后,频繁的唤醒系统会导致手机耗电量大,缩短手机的续航时间。一般系统唤醒的方式有两种,第一种为硬件唤醒方式,即通过按电源键、插拔USB等通过电源管理芯片向CPU发起中断请求(IRQ)唤醒CPU;第二种为通过唤醒定时器定期唤醒的方式,一般终端系统都设置有唤醒定时器,在系统休眠时,如果唤醒定时器时器到达预设时间即会唤醒系统,一些需要与网络服务器进行数据交换的应用如QQ、微信、天气时钟、新浪微博、搜狐新闻等可以通过调用终端系统提供的唤醒定时器以实现定期与网络服务器进行通信,以提供及时的服务。由于目前很多应用程序为了提供比较好的服务,会频繁的启动系统定时器,而在实际使用过程中,在终端处于休眠模式时,大部分应用程序都是不需要频繁唤醒来提供及时消息的,如天气时钟、搜狐新闻等。如此,终端处于休眠模式时各种应用程序频繁唤醒 ...
【技术保护点】
1.一种唤醒终端系统的方法,其特征在于,所述方法包括:设置白名单应用程序和黑名单应用程序,所述白名单应用程序为所述终端系统处于第一模式时,允许唤醒所述终端系统的应用程序,所述黑名单应用程序为所述终端系统处于所述第一模式时,禁止唤醒所述终端系统的应用程序;所述终端系统处于所述第一模式,第一应用程序需要唤醒所述终端系统时,当所述第一应用程序为白名单应用程序,唤醒所述终端系统;和/或,所述终端系统处于所述第一模式,第二应用程序需要唤醒所述终端系统时,当所述第二应用程序为黑名单应用程序,不唤醒所述终端系统。
【技术特征摘要】
1.一种唤醒终端系统的方法,其特征在于,所述方法包括:设置白名单应用程序和黑名单应用程序,所述白名单应用程序为所述终端系统处于第一模式时,允许唤醒所述终端系统的应用程序,所述黑名单应用程序为所述终端系统处于所述第一模式时,禁止唤醒所述终端系统的应用程序;所述终端系统处于所述第一模式,第一应用程序需要唤醒所述终端系统时,当所述第一应用程序为白名单应用程序,唤醒所述终端系统;和/或,所述终端系统处于所述第一模式,第二应用程序需要唤醒所述终端系统时,当所述第二应用程序为黑名单应用程序,不唤醒所述终端系统。2.如权利要求1所述的方法,其特征在于,所述当所述第一应用程序为白名单应用程序,唤醒所述终端系统包括:确定所述终端系统唤醒时间对应的所述第一应用程序为白名单应用程序,唤醒所述终端系统。3.如权利要求1或2所述的方法,其特征在于,所述当所述第二应用程序为黑名单应用程序,不唤醒所述终端系统包括:确定所述终端系统唤醒时间对应的所述第二应用程序为黑名单应用程序,不唤醒所述终端系统。4.如权利要求1-3所述的方法,其特征在于,所述方法还包括:记录所述第二应用程序,当所...
还没有人留言评论。发表了对其他浏览者有用的留言会获得科技券。