Electricity saving method for terminal device, and terminal device
09769747 ยท 2017-09-19
Assignee
Inventors
- Guanjun Tan (Shenzhen, CN)
- Jianning Wu (Shenzhen, CN)
- Anli Zhong (Shenzhen, CN)
- Zuoyi Zhu (Shenzhen, CN)
Cpc classification
Y02D30/70
GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
International classification
Abstract
Disclosed are a power saving method for a terminal device and the terminal device thereof, wherein the method includes: a terminal device enabling a power saving mode and obtaining an adjusted central processing unit (CPU) clock speed set by a user and an adjusted screen resolution set by the user; if the terminal device obtains the adjusted CPU clock speed set by the user, the terminal device adjusting the CPU to operate according to the adjusted CPU clock speed set by the user; if the terminal device obtains the adjusted screen resolution set by the user, the terminal device adjusting a screen display according to the adjusted screen resolution set by the user. The embodiment of the present document saves the power consumption of a terminal device by downsizing the screen display and/or reducing the CPU clock speed, thereby effectively reducing power consumption of the terminal device.
Claims
1. A power saving method for a terminal device, comprising: the terminal device enabling a power saving mode, obtaining an adjusted central processing unit (CPU) clock speed set by a user and/or an adjusted screen resolution set by the user; the terminal device adjusting the CPU to operate according to the adjusted CPU clock speed set by the user if obtaining the adjusted CPU clock speed set by the user; and adjusting a screen display according to the adjusted screen resolution set by the user if obtaining the adjusted screen resolution set by the user; and the terminal device further judging whether the adjusted CPU clock speed set by the user is available if obtaining the adjusted CPU clock speed set by the user, wherein said judging comprises: the terminal judging whether the adjusted CPU clock speed set by the user exceeds a factory setting of the CPU clock speed, if not exceeding, then judging whether the adjusted CPU clock speed set by the user is lower than a clock speed of minimum processing capability supporting voice and short messaging service operations, if not lower, then judging that the adjusted CPU clock speed set by the user is available.
2. The method of claim 1, further comprising: the terminal device further adjusting whether the judged screen resolution set by the user is available if obtaining the adjusted screen resolution set by the user, wherein said judging comprises: the terminal device judging whether the adjusted screen resolution set by the user exceeds an original screen resolution, if not exceeding, then judging whether the adjusted screen resolution set by the user is lower than a minimum resolution for normal viewing, if not lower, then judging that the adjusted screen resolution set by the user is available.
3. The method of claim 1, wherein, the judgment further comprises: after the terminal device judges that the adjusted CPU clock speed set by the user is not lower than the clock speed of the minimum processing capability supporting voice and short messaging service operations, further judging whether an adjustment amplitude is an integer multiple of 10 Mbps, and if yes, then judging that the adjusted CPU clock speed set by the user is available.
4. The method of claim 1, further comprising: before the terminal device obtains the adjusted CPU clock speed set by the user and/or the adjusted screen resolution set by the user, the terminal device correspondingly obtaining and saving a current CPU clock speed and/or screen resolution; when the terminal device needs to exit from the power saving mode, if the CPU has been adjusted to operate according to the adjusted CPU clock speed set by the user, then restoring to the saved CPU clock speed; if the screen display has been adjusted according to the adjusted screen resolution set by the user, then restoring to the saved screen resolution.
5. A terminal device, comprising hardware performing instructions stored in a non-transitory computer readable medium to execute the following steps: the terminal device enabling a power saving mode, obtaining an adjusted central processing unit (CPU) clock speed set by a user and/or an adjusted screen resolution set by the user; the terminal device adjusting the CPU to operate according to the adjusted CPU clock speed set by the user if obtaining the adjusted CPU clock speed set by the user; and adjusting a screen display according to the adjusted screen resolution set by the user if obtaining the adjusted screen resolution set by the user; and the terminal device judging whether the adjusted CPU clock speed set by the user is available if obtaining the adjusted CPU clock speed set by the user, wherein said judging comprises: the terminal judging whether the adjusted CPU clock speed set by the user exceeds a factory setting of the CPU clock speed; and if the adjusted CPU clock speed does not exceed the factory setting, judging whether the adjusted CPU clock speed set by the user is lower than a clock speed of minimum processing capability supporting voice and short messaging service operations; and if the adjusted CPU clock speed is not lower than the clock speed of minimum processing capability supporting voice and short messaging service operations, judging that the adjusted CPU clock speed set by the user is available.
6. The terminal device of claim 5, wherein the hardware further performing instructions stored in a non-transitory computer readable medium to execute the following steps: if receiving the adjusted screen resolution set by the user, judging whether the adjusted screen resolution set by the user is available, wherein said judging comprises: judging whether the adjusted screen resolution set by the user exceeds an original screen resolution, and if the adjusted screen resolution does not exceed the original screen resolution, then judging whether the adjusted screen resolution set by the user is lower than a minimum resolution for normal viewing, and if the adjusted screen resolution is not lower than the minimum resolution for normal viewing, then judging that the adjusted screen resolution set by the user is available.
7. The terminal device of claim 5, the hardware further performing instructions stored in a non-transitory computer readable medium to execute the following steps: after judging that the adjusted CPU clock speed set by the user is not lower than the clock speed of the minimum processing capability supporting voice and short messaging service operations, further judging whether an adjustment amplitude is an integer multiple of 10 Mbps, and if yes, judge that the adjusted CPU clock speed set by the user is available.
8. The terminal device of claim 5, the hardware further performing instructions stored in a non-transitory computer readable medium to execute the following steps: before the terminal device obtains the adjusted CPU clock speed set by the user and/or the adjusted screen resolution set by the user, the terminal device correspondingly obtaining and saving a current CPU clock speed and/or screen resolution; and when the terminal device needs to exit from the power saving mode, if the CPU has been adjusted to operate according to the adjusted CPU clock speed set by the user, then restoring to the saved CPU clock speed; and if the screen display has been adjusted according to the adjusted screen resolution set by the user, then restoring to the saved screen resolution.
Description
BRIEF DESCRIPTION OF THE DRAWINGS
(1)
(2)
PREFERRED EMBODIMENTS OF THE INVENTION
(3) Hereinafter in conjunction with the accompanying drawings, the embodiments of the present application will be described in detail. It should be noted that in the case of no conflict, embodiments and features in the embodiments of the present application may be combined randomly with each other.
(4) As shown in
(5) The user interaction module provides an interface to interact with the user; obtains setting parameters input by the user; outputs the operating state of a power saving task; after the task control module enables the power saving mode, obtains the adjusted CPU clock speed set by the user and/or the adjusted screen resolution set by the user, and sends to the task control module.
(6) The task control module controls the terminal device to enter into or exit from the power saving mode; if receiving an adjusted CPU clock speed set by the user and sent by the user interaction module, then sends it to the CPU clock speed adjustment module, if receiving the adjusted screen resolution set by the user, then sends it to the screen adjustment module;
(7) It judges whether the screen adjustment parameter and the CPU clock speed adjustment parameter set by the user are available; if receiving the adjusted CPU clock speed set by the user, judges whether the adjusted CPU clock speed set by the user is available, said judging comprises: judging whether the adjusted CPU clock speed set by the user exceeds the factory setting of the CPU clock speed, if not exceeding, judging whether it is lower than the clock speed of the minimum processing capability supporting the voice and short messaging service operations, if not lower, then judging that adjusted CPU clock speed set by the user is available; or judging whether the adjustment amplitude is an integer multiple of 10 Mbps after judging that the adjusted CPU clock speed set by the user is not lower than the clock speed of the minimum processing capability supporting the voice and short messaging service operations, and if yes, judging that the adjusted CPU clock speed set by the user is available;
(8) if receiving the adjusted screen resolution set by the user, judges whether the adjusted screen resolution set by the user is available, and said judging comprises: judging whether the adjusted screen resolution set by the user exceeds the original screen resolution, if not exceeding, judging whether it is lower than the minimum resolution of normal viewing, if not lower, judging that the adjusted screen resolution set by the user is available.
(9) The CPU frequency adjustment module executes a CPU clock speed adjustment according to the adjusted CPU clock speed set by the user and sent by the task control module and feeds back a result.
(10) The screen adjustment module executes a screen adjustment according to the adjusted screen resolution set by the user and sent by the task control module and feeds back a result.
(11) The system interaction module is responsible for obtaining parameters such as the CPU clock speed and the screen resolution of the terminal device; is responsible for interacting with the terminal operating system; before the user interaction module obtains the adjusted CPU clock speed set by the user and/or the adjusted screen resolution set by the user, correspondingly obtaining the current CPU clock speed and/or screen resolution, and sending to the task control module to save.
(12) The task control module is further used to, when it needs to exit from the power saving mode, if the CPU has been adjusted to operate in accordance with the adjusted CPU clock speed set by the user, send the saved CPU clock speed to the CPU clock speed adjustment module; if the screen display has been adjusted according to the adjusted screen resolution set by the user, send the saved screen resolution to the screen adjustment module.
(13) The CPU clock speed adjustment module is further used to restore the CPU to the CPU clock speed sent by the task control module.
(14) The screen adjustment module is further used to restore the screen to the screen resolution sent by the task control module.
(15) The process of the terminal device entering into the power saving mode from the normal mode comprises:
(16) the task control module monitoring whether the user sets to enter into the power saving mode; if it detects that the user sets to enter into the power saving mode or the condition for entering into the power saving mode is met, the task control module enabling the power saving task, and the terminal device entering into the power saving mode for running.
(17) The condition for entering into the power saving mode detected by the task control module may be that the battery charge is lower than a predetermined value, and the like.
(18) The process of the terminal device entering into the normal mode from the power saving mode comprises:
(19) the task control module monitoring whether the user sets to enter into the normal mode; if it detects that the user sets to restore to the normal mode or the condition for restoring to the normal mode is met, the task control module first restores to the original CPU frequency and screen resolution of the terminal device, the task control module disables the power saving task, and the terminal device restores to the normal mode for running.
(20) The power saving method for terminal device in accordance with the present embodiment, as shown in
(21) in step 201, the task control module monitors whether the user sets to enter into the power saving mode; if the user sets to enter into the power saving mode, enables the power saving mode, and it proceeds to step 202; otherwise continues to monitor, and it proceeds to step 201;
(22) in step 202, the task control module completes initialization of each module that realizes the power saving mode;
(23) in step 203, the system interaction module obtains relevant parameters such as the current CPU clock speed and screen resolution of the terminal device, and sends them to the task control module to save;
(24) in step 204, the user interaction module prompts the user to set the adjusted CPU frequency, and displays the current CPU clock speed sent by the task control module and obtained by the system interaction module to the user for reference, and obtains the adjusted CPU clock speed set by the user;
(25) in step 205, the task control module judges whether the adjusted CPU clock speed set by the user is available, and if yes, it proceeds to 206, otherwise, it proceeds to step 204;
(26) specific judgment conditions are: a) not exceeding the factory setting of the CPU clock speed of the terminal; b) not lower than the processing operation capability of 100 Mbps supporting the minimum operations of the voice call and short messaging services; c) the adjustment amplitude is an integer multiple of 10 Mbps.
(27) In step 206, the CPU clock speed adjustment module adjusts the CPU to operate according to the adjusted CPU clock speed set by the user;
(28) in step 207, the user interaction module prompts the user to set the adjusted screen resolution, displays the screen resolution obtained by the system interaction module to the user for reference, and obtains the adjusted screen resolution set by the user;
(29) in step 208, the task control module judges whether the adjusted screen resolution input by the user is available, and if yes, it proceeds to step 209; otherwise, it proceeds to step 207;
(30) specific judgment conditions are: a) not exceeding the original resolution screen; b) not lower than the minimum resolution for normal viewing 200*300.
(31) In step 209, the screen adjustment module adjusts (reduces) the screen display according to the adjusted screen resolution set by the user, and does not display the rest or displays the rest as black that is close to the screen color;
(32) in step 210, the system interaction module notifies the terminal operating system module of the adjusted CPU clock speed and screen resolution;
(33) in step 211, the terminal is in the power saving mode;
(34) in step 212, the task control module monitors whether the user sets to restore to the normal mode, if the user sets to restore to the normal mode, it proceeds to step 213; otherwise continues to monitor, and it proceeds to step 212;
(35) in step 213, the CPU clock speed adjustment module restores to the original CPU clock speed of the terminal device, and the screen adjustment module restores to the original screen resolution;
(36) in step 214, the task control module disables each module realizing the power saving task, and the process ends.
(37) In the above, after the terminal device enables the power saving mode, the terminal device respectively adjusts the CPU clock speed and the screen resolution according to the user settings, in different application modes, it may also adjust the CPU clock speed only, or adjust the screen resolution only.
(38) Those ordinarily skilled in the art can understand that all or some of steps of the abovementioned method may be completed by the programs instructing the relevant hardware, and the programs may be stored in a computer-readable storage medium, such as read only memory, magnetic or optical disk. Alternatively, all or some of the steps of the abovementioned embodiments may also be implemented by using one or more integrated circuits. Accordingly, each module/unit in the abovementioned embodiments may be realized in a form of hardware, or in a form of software function modules. The present application is not limited to any specific form of hardware and software combinations.
(39) The above description is only preferred embodiments of the present application and is not used to limit the present application, for a person skilled in the art, the present application may have a variety of modifications and changes. Any changes, equivalent replacements and improvements made within the spirit and principle of the present application should be included within the protection scope of the present application.
INDUSTRIAL APPLICABILITY
(40) The embodiment of the present document saves power consumption of a terminal device by reducing the screen display and/or reducing the CPU clock speed, which has the following beneficial effects:
(41) (1) the applicability is strong: it proposes a solution for the problem that the battery life of the current large-screen mobile intelligent terminal is short;
(42) (2) the effect is significant: it effectively reduces the power consumption of the terminal, and the power saving efficiency is above 30%;
(43) (3) the compatibility is good: it can simultaneously be used with other existing power saving methods, so that the effect is more obvious;
(44) (4) the operation is easy, the power saving task in the present document can work as a process of the terminal operating system, the user can enable and disable a power saving task at any time without affecting the normal operation of the terminal operating system.