CN104965759A - Method for controlling terminal and terminal - Google Patents
Method for controlling terminal and terminal Download PDFInfo
- Publication number
- CN104965759A CN104965759A CN201510319496.3A CN201510319496A CN104965759A CN 104965759 A CN104965759 A CN 104965759A CN 201510319496 A CN201510319496 A CN 201510319496A CN 104965759 A CN104965759 A CN 104965759A
- Authority
- CN
- China
- Prior art keywords
- power consumption
- terminal
- state
- consumption state
- run
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
Classifications
-
- Y—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
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02D—CLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
- Y02D10/00—Energy efficient computing, e.g. low power processors, power management or thermal management
Landscapes
- Power Sources (AREA)
Abstract
The embodiment of the present invention discloses a method for controlling a terminal. The method comprises: when the terminal is in a first power consumption state and preset duration is reached, switching to a second power consumption state, wherein power consumption of the terminal in the second power consumption state is higher than that of the terminal in the first power consumption state, the step of switching to the second power consumption state comprises of operating a kernel mode process of the terminal, awakening a first part device in the terminal and keeping stopping the operation of a user mode process of the terminal, and the first part device is used for implementing a presetting function; and executing a presetting instruction, calling the kernel mode process and the first part device and after completing the presetting function, stopping the operation of the kernel mode process and controlling the first part device to stop working, so that the terminal enters the first power consumption state again. The embodiment of the present invention also discloses the terminal.
Description
Technical field
The present invention relates to terminal control field, particularly relate to a kind of method and terminal of control terminal.
Background technology
Along with the development of science and technology, electronic technology have also been obtained development at full speed, and the kind of electronic product also gets more and more, and people have also enjoyed the various facilities that development in science and technology brings.Present people can pass through various types of intelligent terminal, enjoy the comfortable life along with development in science and technology brings.
At present, increasing intelligent terminal, if smart mobile phone, panel computer, somatic sensation television game machine etc. are in order to reduce power consumption, all possesses sleep mode.When intelligent terminal is according to user instruction or when user operation not detected for a long time, obtains and perform a dormancy instruction, carrying out dormancy preparation, the all processes of freezing system, and close all devices, finally, close CUP, so, intelligent terminal just enters dormant state.In the process of intelligent terminal dormancy, in order to receive external data, or upgrade self information, intelligent terminal can in backstage timing wake-up system, all processes of thawing, to carry out as upgraded the functions such as display.But be all processes of thawing because intelligent terminal carries out waking up at every turn, no matter process is the need of operation, all can be thawed and continue to run until again frozen, so, considerably increasing the power consumption of intelligent terminal, affect the battery durable ability of intelligent terminal.
So, just there is the technical matters that intelligent terminal timing wake-up power consumption is large in prior art.
Summary of the invention
In view of this, the embodiment of the present invention expects the method and the terminal that provide a kind of control terminal, to reduce the power consumption that intelligent terminal timing wake-up produces, improves the battery durable ability of intelligent terminal, provides good Consumer's Experience.
For achieving the above object, technical scheme of the present invention is achieved in that
First aspect, the embodiment of the present invention provides a kind of method of control terminal, comprise: when terminal is in the first power consumption state, and preset duration is when reaching, switch to the second power consumption state, wherein, power consumption when power consumption when described terminal is in described second power consumption state is in described first power consumption state higher than described terminal; Describedly switch to the second power consumption state, comprise: the kernel state process running described terminal and the Part I device waken up in described terminal, and keep the User space process stopped in described terminal to run, wherein, described Part I device is used for realizing preset function; Perform preset instructions, call described kernel state process and described Part I device, after completing described preset function, stop described kernel state process and run, and control described Part I device and quit work, make described terminal again enter described first power consumption state.
Second aspect, the embodiment of the present invention provides a kind of terminal, comprising: Part I device, for realizing preset function corresponding to preset instructions; Controller, for being in the first power consumption state when described terminal, and when preset duration reaches, switches to the second power consumption state, wherein, and power consumption when power consumption when described terminal is in described second power consumption state is in described first power consumption state higher than described terminal; Describedly switch to the second power consumption state, comprise: the kernel state process running described terminal and the Part I device waken up in described terminal, and keep the User space process stopped in described terminal to run, wherein, described Part I device is used for realizing preset function; Perform preset instructions, call described kernel state process and described Part I device, after completing described preset function, stop described kernel state process and run, and control described Part I device and quit work, make described terminal again enter described first power consumption state.
In the method for the control terminal that the embodiment of the present invention provides and terminal, terminal has the first power consumption state and the second power consumption state, wherein, and power consumption when power consumption when terminal is in the second power consumption state is in the first power consumption state higher than terminal.When terminal is in the first power consumption state, and preset duration reaches, namely when timing arrives, switch to the second power consumption state, specifically, switch to the second power consumption state, comprise: the kernel state process running terminal and the Part I device for realizing preset function waken up in terminal, and keep the User space process in terminating terminal to run, that is terminal only wakes kernel state process up and the Part I device relevant to realizing preset function, and User space process keeps freezing, then, terminal performs preset instructions, call kernel state process and Part I device, complete preset function, next, stop kernel state process to run, and control Part I device and quit work, namely freeze kernel state process at this, and dormancy Part I device, terminal is made again to enter the first power consumption state.So, terminal, when carrying out timing wake-up, just can only wake kernel state process and part of devices up, and without the need to waking all processes and all devices up, greatly reduce the power consumption that intelligent terminal timing wake-up produces, improve the battery durable ability of intelligent terminal, good Consumer's Experience is provided.
Accompanying drawing explanation
Fig. 1 is the method flow schematic diagram of the control terminal in the embodiment of the present invention one;
Fig. 2 is the method flow schematic diagram of the control terminal in the embodiment of the present invention two;
Fig. 3 is the structural representation of the terminal in the embodiment of the present invention three.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is clearly and completely described.
Embodiment one:
The present embodiment provides a kind of method of control terminal, the method is applied to as terminals such as smart mobile phone, panel computer, intelligent watch, intelligent glasses, these terminals at least have three power consumption states, i.e. the first power consumption state, the second power consumption state and the 3rd power consumption state, wherein, power consumption when terminal is in the first power consumption state is lower than the power consumption of end when the second power consumption state, and power consumption when terminal is in the second power consumption state is less than power consumption when terminal is in the 3rd power consumption state.
In the present embodiment, when terminal is in the first power consumption state, all processes in terminal, namely kernel state process and User space process all stop running, namely frozen, device quits work at least partially, wherein, this at least partially device can, for all devices except the device relevant to clocking capability except in terminal, also can be the part of devices in terminal except the device relevant to clocking capability; When terminal is in the second power consumption state, the kernel state process in terminal and Part I device are work, and User space process is still frozen, and other device at least partially in device still quits work; When terminal is in the 3rd power consumption state, kernel state process in terminal and User space process are normally run, Part II proper device operation, wherein, the quantity of Part II device is greater than the quantity of Part I device, and when entering the first power consumption state with terminal, out-of-work device at least partially can be the same or different.
Fig. 1 is the method flow schematic diagram of the control terminal in the embodiment of the present invention one, and shown in Figure 1, the method comprises:
S101: when terminal is in the first power consumption state, and when preset duration reaches, switch to the second power consumption state; Wherein, switch to the second power consumption state, comprising: the kernel state process running terminal and the Part I device waken up in terminal, and keep the User space process in terminating terminal to run, wherein, Part I device is used for realizing preset function;
Specifically, terminal is after being controlled by the user or being certainly advanced into the first power consumption state, according to preset duration, start timing, when preset duration reaches, namely when timing reaches, the kernel state process of terminal operating self and wake Part I device up, namely controls Part I devices function, now, User space process keeps stopping running, and namely User space process keeps freezing.
In specific implementation process, Part I device is the preset function that will carry out to terminal timing wake-up is corresponding.Such as, terminal timing wake-up is to communicate with server, and so, Part I device can comprise the radio-frequency module, baseband processor etc. of terminal; For another example, terminal timing wake-up is to upgrade display, and so, Part I device can comprise video-stream processor, display module etc., and the present invention does not do concrete restriction, is as the criterion with practical application.
More preferably, Part I device at least comprises a display module, and so, when terminal is in the first power consumption state, display module work also keeps display.Such as, terminal is intelligent watch, and display module is LCDs, so, when intelligent watch is in the first power consumption state, and the long bright and displaying time of LCDs.Certainly, display module can also be touch display screen, electronic ink screen, Electronic Paper etc., and the present invention is not specifically limited.
Further, above-mentioned wake Part I device up before, the method also comprises: according to preset function, determines corresponding Part I device.That is, terminal also needs according to preset function, determines which the Part I device needing to wake up has.
In another embodiment, before S101, user can control terminal, or terminal triggers voluntarily and enters the first power consumption state, and so, the method also comprises: obtain second system power consumption switching command; Perform second system power consumption switching command, stop User space process and the operation of kernel state process, and after termination kernel state process is run, control terminal enters the first power consumption state.
Specifically, user can pass through as screen locking in the process using terminal, the operations such as offline mode, control terminal enters the first power consumption state, certainly, terminal also automatically can trigger and enter the first power consumption state, now, terminal obtains second system power consumption switching command, and namely indicating terminal switches to the first power consumption state.So, terminal stops run user state process and kernel state process, and after kernel state procedure termination is run, control above-mentioned device at least partially and quit work, so, control terminal enters the first power consumption state, as dormant state.
Further, because User space process is run in the user space, kernel state process is run in kernel spacing, can think that User space process and kernel state process are separate, so, above-mentioned execution second system power consumption switching command, the step stopping User space process and the operation of kernel state process can also comprise: perform second system power consumption switching command, stop User space process and the operation of kernel state process successively, that is, terminal performs second system power consumption switching command, first stop the operation of User space process in the user space, then, the operation of kernel state process is stopped again in kernel spacing, and when stopping kernel state process and running, for timer setting preset duration, start timing.
Preset duration mentioned here refers to the timing duration of terminal timing wake-up, and can be 1 second, 5 seconds, 8 seconds, 10 seconds, 1 minute etc., be as the criterion with practical application, the present invention be not specifically limited.
In actual applications, as mentioned above, suppose that terminal is intelligent watch, Part I device at least comprises a display module, now, preset duration just can set according to the time showing mode of intelligent watch, if last position of the clock display of intelligent watch is minute, so, preset duration just can be set to 1 minute; If last position of the clock display of intelligent watch is second, so, preset duration just can be set to 1 second.
In such scheme, preset duration is fixing duration, preset, and in another case, preset duration can also adjust according to current system time by terminal system developer or manufacturer before terminal is dispatched from the factory.Such as, still suppose that terminal is intelligent watch, after the screen locking of intelligent watch 30 points of 45 seconds response users 9 time operates and enters the first power consumption state, according to current system time, preset duration can be configured to 15 seconds, then, after preset duration arrives, intelligent watch performs S101.And after this, intelligent watch still according to the preset duration that system development business or manufacturer preset before it dispatches from the factory, as 1 minute carries out timing.Certainly, in specific implementation process, can also there is other setting situation in preset duration, the present invention is not specifically limited.
Further, switch in the process of the second power consumption state in terminal by the first power consumption state, user also can thoroughly wake terminal up by such as unlocking, closing the wake operation such as offline mode, now, timer reset, waits for that terminal enters the first power consumption state again, again starts timing.
S102: perform preset instructions, call kernel state process and Part I device, after completing preset function, stops kernel state process and runs, and controls Part I device and quit work, and makes terminal again enter the first power consumption state.
Specifically, after terminal switches to the second power consumption state by S101, terminal performs preset instructions, calls kernel state process and Part I device to complete preset function.After preset function completes, control kernel state procedure termination and run, namely again freeze kernel state process, and control Part I device quits work again, like this, terminal enters the first power consumption state again.
For example, suppose that preset function is for upgrading display, so, terminal calls kernel state process and display module, upgrades the displaying contents that display module is current.Further, if terminal is intelligent watch, upgrading the current displaying contents of display module just can for upgrading the clock of display module display.
So far, terminal just completes the process of timing wake-up.
From the above, terminal is when carrying out timing wake-up, just can only wake kernel state process and part of devices up, and without the need to waking all processes and all devices up, greatly reduce the power consumption that intelligent terminal timing wake-up produces, improve the battery durable ability of intelligent terminal, good Consumer's Experience is provided.
Embodiment two:
The present embodiment provides a kind of method of control terminal, the method is applied to as terminals such as smart mobile phone, panel computer, intelligent watch, intelligent glasses, these terminals at least have three power consumption states, i.e. the first power consumption state, the second power consumption state and the 3rd power consumption state, wherein, power consumption when terminal is in the first power consumption state is lower than the power consumption of end when the second power consumption state, and power consumption when terminal is in the second power consumption state is less than power consumption when terminal is in the 3rd power consumption state.
In the present embodiment, when terminal is in the first power consumption state, all processes in terminal, namely kernel state process and User space process all stop running, namely frozen, device quits work at least partially, wherein, device can for all devices except the device relevant to clocking capability except in terminal at least partially for these, also can be in terminal except the device relevant to clocking capability part of devices; When terminal is in the second power consumption state, the kernel state process in terminal and Part I device are work, and User space process is still frozen, and other device at least partially in device still quits work; When terminal is in the 3rd power consumption state, kernel state process in terminal and User space process are normally run, Part II proper device operation, wherein, the quantity of Part II device is greater than the quantity of Part I device, and when entering the first power consumption state with terminal, out-of-work device at least partially can be the same or different.
Fig. 2 is the method flow schematic diagram of the control terminal in the embodiment of the present invention two, and shown in Figure 2, the method comprises:
S201: when terminal is in the first power consumption state, and when preset duration reaches, switch to the second power consumption state; Wherein, switch to the step of the second power consumption state, comprising: the kernel state process running terminal and the Part I device waken up in terminal, and keep the User space process in terminating terminal to run, wherein, Part I device is used for realizing preset function;
Specifically, terminal is after being controlled by the user or being certainly advanced into the first power consumption state, according to preset duration, start timing, when preset duration reaches, namely when timing reaches, the kernel state process of terminal operating self and wake Part I device up, namely controls Part I devices function, now, User space process keeps stopping running, and namely User space process keeps freezing.
In specific implementation process, Part I device is the preset function that will carry out to terminal timing wake-up is corresponding.Such as, terminal timing wake-up is to communicate with server, and so, Part I device can comprise the radio-frequency module, baseband processor etc. of terminal; For another example, terminal timing wake-up is to upgrade display, and so, Part I device can comprise video-stream processor, display module etc., and the present invention does not do concrete restriction, is as the criterion with practical application.
More preferably, Part I device at least comprises display module, and so, when terminal is in the first power consumption state, display module work also keeps display.Such as, terminal is intelligent watch, and display module is LCDs, so, when intelligent watch is in the first power consumption state, and the long bright and displaying time of LCDs.Certainly, display module can also be touch display screen, electronic ink screen, Electronic Paper etc., and the present invention is not specifically limited.
Further, above-mentioned wake Part I device up before, the method also comprises: according to preset function, determines corresponding Part I device.That is, terminal also needs according to preset function, determines which the Part I device needing to wake up has.
In another embodiment, before S201, user can control terminal, or terminal triggers voluntarily and enters the first power consumption state, and so, the method also comprises: obtain second system power consumption switching command; Perform second system power consumption switching command, stop User space process and the operation of kernel state process, and after termination kernel state process is run, control terminal enters the first power consumption state.
Specifically, user can pass through as screen locking in the process using terminal, the operations such as offline mode, control terminal enters the first power consumption state, certainly, terminal also automatically can trigger and enter the first power consumption state, now, terminal obtains second system power consumption switching command, and namely indicating terminal switches to the first power consumption state.So, terminal stops run user state process and kernel state process, and after kernel state procedure termination is run, control above-mentioned device at least partially and quit work, so, control terminal enters the first power consumption state, as dormant state.
Further, because User space process is run in the user space, kernel state process is run in kernel spacing, can think that User space process and kernel state process are separate, so, above-mentioned execution second system power consumption switching command, the step stopping User space process and the operation of kernel state process can also comprise: perform second system power consumption switching command, stop User space process and the operation of kernel state process successively, that is, terminal performs second system power consumption switching command, first stop the operation of User space process in the user space, then, the operation of kernel state process is stopped again in kernel spacing, and when stopping kernel state process and running, for timer setting preset duration, start timing.
Preset duration mentioned here refers to the timing duration of terminal timing wake-up, and can be 1 second, 5 seconds, 8 seconds, 10 seconds, 1 minute etc., be as the criterion with practical application, the present invention be not specifically limited.
In actual applications, as mentioned above, still suppose that terminal is intelligent watch, Part I device at least comprises a display module, now, preset duration just can set according to the time showing mode of intelligent watch, if last position of the clock display of intelligent watch is minute, so, preset duration just can be set to 1 minute; If last position of the clock display of intelligent watch is second, so, preset duration just can be set to 1 second.
In such scheme, preset duration is fixing duration, preset, and in another case, preset duration can also adjust according to current system time by terminal system developer or manufacturer before terminal is dispatched from the factory.Such as, still suppose that terminal is intelligent watch, after the screen locking of intelligent watch 30 points of 45 seconds response users 9 time operates and enters the first power consumption state, according to current system time, preset duration can be configured to 15 seconds, then, after preset duration arrives, intelligent watch performs S201.And after this, intelligent watch still according to the preset duration that system development business or manufacturer preset before it dispatches from the factory, as 1 minute carries out timing.Certainly, in specific implementation process, can also there is other setting situation in preset duration, the present invention is not specifically limited.
Further, switch in the process of the second power consumption state in terminal by the first power consumption state, user also can thoroughly wake terminal up by such as unlocking, closing the wake operation such as offline mode, now, timer reset, waits for that terminal enters the first power consumption state again, again starts timing.
S202: perform preset instructions, call kernel state process and Part I device, after completing preset function, stops kernel state process and runs, and controls Part I device and quit work, and makes terminal again enter the first power consumption state.
Specifically, after terminal switches to the second power consumption state by S201, terminal performs preset instructions, calls kernel state process and Part I device to complete preset function.Such as, preset function is for upgrading display, and so, terminal calls kernel state process and display module, upgrades the displaying contents that display module is current.After preset function completes, control kernel state procedure termination and run, namely again freeze kernel state process, and control Part I device quits work again, like this, terminal enters the first power consumption state again.
For example, suppose that preset function is for upgrading display, so, terminal calls kernel state process and display module, upgrades the displaying contents that display module is current.Further, if terminal is intelligent watch, upgrading the current displaying contents of display module just can for upgrading the clock of display module display.
So far, terminal just completes the process of timing wake-up.
Still see Fig. 2, after terminal enters the first power consumption state, terminal thoroughly may be waken up by wake operation by user, and namely enter the 3rd power consumption state, now, the method also comprises:
S203: obtain the first system power consumption switching command;
Specifically, after terminal enters the first power consumption state, receive the first system power consumption switching command, this instruction is used to indicate terminal switch and enters the 3rd power consumption state;
S204: perform the first system power consumption switching command, judge whether kernel state process is run;
Specifically, because the first system power consumption switching command can be that user triggers at any time, so now terminal may be in the first power consumption state, also may the second power consumption state.When terminal is in the first power consumption state, terminal is waken up all processes and device with regard to needs, and when terminal is in the second power consumption state, terminal only needs to wake up Partial Process and device.
So in order to reduce the data processing amount of terminal, avoid repeatedly waking up, terminal, after receiving the first system power consumption switching command, performs this instruction, judges whether kernel state process is run, determine the current residing power consumption state of terminal thus.
S205a: when kernel state process off-duty, runs kernel state process and User space process, and wakes the Part II device in terminal up, make terminal enter the 3rd power consumption state;
Specifically, when terminal determination kernel state process off-duty, illustrate that terminal is in the first power consumption state, now, terminal operating kernel state process and User space process, and wake the Part II device in terminal up, make terminal enter the 3rd power consumption state.
S205b: when kernel state process is run, run user state process, and wake the Part III device in terminal up, make terminal enter the 3rd power consumption state.
Specifically, when terminal determination kernel state process is run, illustrate that terminal is in the second power consumption state, now, terminal only needs run user state process, and the Part III device waken up in terminal, the device namely in Part II device except Part I device, makes terminal enter the 3rd power consumption state.
From the above, terminal is when carrying out timing wake-up, just can only wake kernel state process and part of devices up, and without the need to waking all processes and all devices up, greatly reduce the power consumption that intelligent terminal timing wake-up produces, improve the battery durable ability of intelligent terminal, good Consumer's Experience is provided.
Embodiment three:
This enforcement provides a kind of terminal, consistent with the terminal in above-described embodiment one and two.
Fig. 3 is the structural representation of the terminal in the invention process three, shown in Figure 3, and this terminal comprises: Part I device 31, for realizing preset function corresponding to preset instructions; Controller 32, for being in the first power consumption state when terminal, and when preset duration reaches, switches to the second power consumption state, wherein, and power consumption when power consumption when terminal is in the second power consumption state is in the first power consumption state higher than terminal; Switch to the second power consumption state, comprising: the kernel state process running terminal and the Part I device 31 waken up in terminal, and keep the User space process in terminating terminal to run, wherein, Part I device 31 is for realizing preset function; Perform preset instructions, call kernel state process and Part I device 31, after completing preset function, stop kernel state process and run, and control Part I device 31 and quit work, make terminal again enter the first power consumption state.
In the present embodiment, when terminal is in the first power consumption state, all processes in terminal, namely kernel state process and User space process all stop running, namely frozen, device quits work at least partially, wherein, this at least partially device can, for all devices except the device relevant to clocking capability except in terminal, also can be the part of devices in terminal except the device relevant to clocking capability; When terminal is in the second power consumption state, the kernel state process in terminal and Part I device 31 are work, and User space process is still frozen, and other device at least partially in device still quits work; When terminal is in the 3rd power consumption state, kernel state process in terminal and User space process are normally run, Part II proper device operation, wherein, the quantity of Part II device is greater than the quantity of Part I device 31, and when entering the first power consumption state with terminal, out-of-work device at least partially can be the same or different.
Further, controller 32, also for before running kernel state process and waking Part I device 31 up, according to preset function, determines corresponding Part I device 31.
In specific implementation process, Part I device 31 is the preset functions that will carry out to terminal timing wake-up is corresponding.Such as, terminal timing wake-up is to communicate with server, and so, Part I device 31 can comprise the radio-frequency module, baseband processor etc. of terminal; For another example, terminal timing wake-up is to upgrade display, and so, Part I device 31 can comprise video-stream processor, display module etc., and the present invention does not do concrete restriction, is as the criterion with practical application.
More preferably, Part I device 31 at least comprises a display module, and so, when terminal is in the first power consumption state, display module work also keeps display.Such as, terminal is intelligent watch, and display module is LCDs, so, when intelligent watch is in the first power consumption state, and the long bright and displaying time of LCDs.Certainly, display module can also be touch display screen, electronic ink screen, Electronic Paper etc., and the present invention is not specifically limited.
Further, terminal also comprises: Part II device and Part III device, and wherein, the quantity of Part II device is greater than the quantity of Part I device 31; Part III device is the device in Part II device except Part I device 31;
Correspondingly, controller 32, also for obtaining the first system power consumption switching command; Perform the first system power consumption switching command, judge whether kernel state process is run; When kernel state process off-duty, run kernel state process and User space process, and wake Part II device up, make terminal enter the 3rd power consumption state, power consumption when power consumption when terminal is in the 3rd power consumption state is in the second power consumption state higher than terminal; When kernel state process is run, run user state process, and wake the Part III device in terminal up, make terminal enter the 3rd power consumption state.
Further, controller 32, also for when stopping kernel state process and running, setting preset duration, and start timing.
Further, controller 32, also for obtaining second system power consumption switching command; Perform second system power consumption switching command, stop User space process and the operation of kernel state process, and after termination kernel state process is run, all devices in control terminal quit work, and make terminal enter the first power consumption state.
Further, because User space process is run in the user space, kernel state process is run in kernel spacing, can think that User space process and kernel state process are separate, controller 32, also for stopping User space process and the operation of kernel state process successively.
Further, Part I device 31 comprises a display module, is connected with controller 32; Wherein, when terminal is in the first power consumption state, display module work also keeps display;
Correspondingly, controller 32, specifically for performing preset instructions, calls kernel state process and display module, upgrades the displaying contents that display module is current.
In another embodiment, when terminal is wearable device, terminal also comprises: body, is provided with controller 32 and Part I device 31; Fixed part, is connected with body, and body is fixed on an object by fixed part.
Further, fixed part at least has stationary state, when fixed part is in stationary state, at least as an annulus at least partially, or as meeting a pre-conditioned not closed hoop space at least partially.
Be intelligent watch below with terminal for example is described.
Such as, terminal is intelligent watch, comprising: body and fixed part, and wherein, fixed part is used for wrist place intelligent watch being fixed on user, namely watchband; Multiple device is provided with, as display controller, LCDs, controller, timer etc. in body.
In actual applications, intelligent watch can carry out displaying time by periodic points brightness liquid crystal display screen; First, intelligent watch performs screen locking instruction after receiving the screen locking operation of user, and control intelligent watch and enter the first power consumption state, freeze all processes, all devices controlled except timer quit work, and meanwhile, timer starts timing.Then, when the preset duration of timer arrives, control intelligent watch and switch to the second power consumption state, namely only run the kernel state process of terminal, and wake the Part I device relevant to displaying time up, i.e. display controller, LCDs, controller work, now, User space process keeps stopping running, and all devices except Part I device keep quitting work.Next, because controller is waken up, so, controller generates and performs preset instructions, namely upgrade idsplay order, call the display controller in kernel state process and above-mentioned Part I device and LCDs, realize display update, current time is updated to by displaying time, now, LCDs is lighted, and is controlled to be updated to current time by display controller, so, user just can know current time by intelligent watch.After this, in order to reduce power consumption, controller again stops kernel state process and runs, and the Part I device controlling just now to wake up quits work, and makes terminal again enter the first power consumption state.
In another embodiment, in order to the Consumer's Experience more close to general wristwatch, intelligent watch also can keep LCDs often bright come displaying time, like this, user just can lift wrist at any time and check current time, but the real-time update so existed due to LCDs long bright and time, causes that intelligent watch power consumption is large, battery durable ability.So, in order to take into account Consumer's Experience and power consumption, intelligent watch is after the screen locking operation receiving user, perform screen locking instruction, control intelligent watch and enter the first power consumption state, freeze all processes, all devices controlled except timer, LCDs quit work, meanwhile, timer starts timing.Then, when the preset duration of timer, when namely within 1 minute, arriving, control intelligent watch and switch to the second power consumption state, namely only run the kernel state process of terminal, and wake the Part I device relevant to displaying time except LCDs up, i.e. display controller, controller work, now, User space process keeps stopping running, and other device keeps quitting work.Next, because controller is waken up, so, controller generates and performs preset instructions, namely upgrades idsplay order, calls the display controller in kernel state process and above-mentioned Part I device, realize display update, namely upgrade displaying time, now, LCDs keeps long bright, and controlled to be updated to current time by display controller, so, user just can lift wrist at any time and check current time, obtains the Consumer's Experience the same with general wristwatch.After this, in order to reduce power consumption further, controller again stops kernel state process and runs, and the Part I device controlling just now to wake up quits work, and makes terminal again enter the first power consumption state, and meanwhile, LCDs still keeps long bright.
Visible, because intelligent watch is real-time displaying time, so the preset duration of timer is set as 1 minute, like this, intelligent watch upgrades and once shows for every 1 minute, make to freeze the operations such as kernel state process is transparent for user, and user still can acquisition time in real time, simultaneously, reduce the power consumption of intelligent watch, improve the flying power of battery.
Those skilled in the art should understand, embodiments of the invention can be provided as method, system or computer program.Therefore, the present invention can adopt the form of hardware embodiment, software implementation or the embodiment in conjunction with software and hardware aspect.And the present invention can adopt in one or more form wherein including the upper computer program implemented of computer-usable storage medium (including but not limited to magnetic disk memory and optical memory etc.) of computer usable program code.
The present invention describes with reference to according to the process flow diagram of the method for the embodiment of the present invention, equipment (system) and computer program and/or block scheme.Should understand can by the combination of the flow process in each flow process in computer program instructions realization flow figure and/or block scheme and/or square frame and process flow diagram and/or block scheme and/or square frame.These computer program instructions can being provided to the processor of multi-purpose computer, special purpose computer, Embedded Processor or other programmable data processing device to produce a machine, making the instruction performed by the processor of computing machine or other programmable data processing device produce device for realizing the function of specifying in process flow diagram flow process or multiple flow process and/or block scheme square frame or multiple square frame.
These computer program instructions also can be stored in can in the computer-readable memory that works in a specific way of vectoring computer or other programmable data processing device, the instruction making to be stored in this computer-readable memory produces the manufacture comprising command device, and this command device realizes the function of specifying in process flow diagram flow process or multiple flow process and/or block scheme square frame or multiple square frame.
These computer program instructions also can be loaded in computing machine or other programmable data processing device, make on computing machine or other programmable devices, to perform sequence of operations step to produce computer implemented process, thus the instruction performed on computing machine or other programmable devices is provided for the step realizing the function of specifying in process flow diagram flow process or multiple flow process and/or block scheme square frame or multiple square frame.
The above, be only preferred embodiment of the present invention, be not intended to limit protection scope of the present invention.
Claims (14)
1. a method for control terminal, comprising:
When terminal is in the first power consumption state, and when preset duration reaches, switch to the second power consumption state, wherein, power consumption when power consumption when described terminal is in described second power consumption state is in described first power consumption state higher than described terminal; Describedly switch to the second power consumption state, comprise: the kernel state process running described terminal and the Part I device waken up in described terminal, and keep the User space process stopped in described terminal to run, wherein, described Part I device is used for realizing preset function;
Perform preset instructions, call described kernel state process and described Part I device, after completing described preset function, stop described kernel state process and run, and control described Part I device and quit work, make described terminal again enter described first power consumption state.
2. method according to claim 1, is characterized in that, in the kernel state process of the described terminal of described operation and before waking in described terminal Part I device up, described method also comprises:
According to described preset function, determine corresponding described Part I device.
3. method according to claim 1, is characterized in that, described method also comprises:
Obtain the first system power consumption switching command;
Perform described the first system power consumption switching command, judge whether described kernel state process is run;
When described kernel state process off-duty, run described kernel state process and described User space process, and the Part II device waken up in described terminal, described terminal is made to enter the 3rd power consumption state, wherein, the quantity of described Part II device is greater than the quantity of described Part I device, power consumption when power consumption when described terminal is in the 3rd power consumption state is in described second power consumption state higher than described terminal;
When described kernel state process is run, run described User space process, and wake the Part III device in described terminal up, make described terminal enter described 3rd power consumption state, wherein, described Part III device is the device in described Part II device except described Part I device.
4. method according to claim 1, is characterized in that, described method also comprises:
When stopping described kernel state process and running, set described preset duration, and start timing.
5. method according to claim 1, is characterized in that, is describedly in the first power consumption state when described terminal, and when preset duration reaches, before switching to the second power consumption state, described method also comprises:
Obtain second system power consumption switching command;
Perform described second system power consumption switching command, stop described User space process and the operation of described kernel state process, and after the described kernel state process of termination is run, control described terminal and enter described first power consumption state.
6. the method according to any one of claim 1-5, is characterized in that, described Part I device at least comprises a display module, and wherein, when described terminal is in the first power consumption state, described display module work also keeps display;
Described execution preset instructions, call described kernel state process and described Part I device, complete described preset function, comprising:
Perform described preset instructions, call described kernel state process and described display module, upgrade the displaying contents that described display module is current.
7. a terminal, comprising:
Part I device, for realizing preset function corresponding to preset instructions;
Controller, for being in the first power consumption state when described terminal, and when preset duration reaches, switches to the second power consumption state, wherein, and power consumption when power consumption when described terminal is in described second power consumption state is in described first power consumption state higher than described terminal; Describedly switch to the second power consumption state, comprise: the kernel state process running described terminal and the Part I device waken up in described terminal, and keep the User space process stopped in described terminal to run, wherein, described Part I device is used for realizing preset function; Perform preset instructions, call described kernel state process and described Part I device, after completing described preset function, stop described kernel state process and run, and control described Part I device and quit work, make described terminal again enter described first power consumption state.
8. terminal according to claim 7, is characterized in that, described controller, also for before running described kernel state process and waking described Part I device up, according to described preset function, determines corresponding described Part I device.
9. terminal according to claim 7, is characterized in that, described terminal also comprises Part II device and Part III device, and wherein, the quantity of described Part II device is greater than the quantity of described Part I device; Described Part III device is the device in described Part II device except described Part I device;
Described controller, also for obtaining the first system power consumption switching command; Perform described the first system power consumption switching command, judge whether described kernel state process is run; When described kernel state process off-duty, run described kernel state process and described User space process, and wake described Part II device up, described terminal is made to enter the 3rd power consumption state, power consumption when power consumption when described terminal is in the 3rd power consumption state is in described second power consumption state higher than described terminal; When described kernel state process is run, run described User space process, and wake the Part III device in described terminal up, make described terminal enter described 3rd power consumption state.
10. terminal according to claim 7, is characterized in that, described controller, also for when stopping described kernel state process and running, sets described preset duration, and starts timing.
11. terminals according to claim 7, is characterized in that, described controller, also for obtaining second system power consumption switching command; Perform described second system power consumption switching command, stop described User space process and the operation of described kernel state process, and after the described kernel state process of termination is run, control described terminal and enter described first power consumption state.
12. terminals according to claim 7, is characterized in that, described Part I device at least comprises a display module, is connected with described controller; Wherein, when described terminal is in the first power consumption state, described display module work also keeps display;
Described controller, specifically for performing described preset instructions, calling described kernel state process and described display module, upgrading the displaying contents that described display module is current.
13. terminals according to claim 7, is characterized in that, described terminal also comprises: body, are provided with described controller and described Part I device; Fixed part, is connected with described body, and described body is fixed on an object by described fixed part.
14. terminals according to claim 13, it is characterized in that, described fixed part at least has stationary state, when described fixed part is in stationary state, at least as an annulus at least partially, or as meeting a pre-conditioned not closed hoop space at least partially.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510319496.3A CN104965759B (en) | 2015-06-11 | 2015-06-11 | A kind of method and terminal of control terminal |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510319496.3A CN104965759B (en) | 2015-06-11 | 2015-06-11 | A kind of method and terminal of control terminal |
Publications (2)
Publication Number | Publication Date |
---|---|
CN104965759A true CN104965759A (en) | 2015-10-07 |
CN104965759B CN104965759B (en) | 2018-10-12 |
Family
ID=54219795
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201510319496.3A Active CN104965759B (en) | 2015-06-11 | 2015-06-11 | A kind of method and terminal of control terminal |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN104965759B (en) |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106293008A (en) * | 2016-08-15 | 2017-01-04 | 宇龙计算机通信科技(深圳)有限公司 | A kind of application program freezing method and terminal unit |
CN109582268A (en) * | 2018-12-11 | 2019-04-05 | 浪潮(北京)电子信息产业有限公司 | A kind of display panel control method, device and system |
CN116185159A (en) * | 2023-01-13 | 2023-05-30 | 赛昂斯(深圳)智能科技有限公司 | Switch awakening method and device based on low-power-consumption control technology |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104169859A (en) * | 2013-12-11 | 2014-11-26 | 华为终端有限公司 | Screen control method, screen control device and touch terminal |
CN104216500A (en) * | 2013-05-29 | 2014-12-17 | 纬创资通股份有限公司 | Embedded controller and power-saving control method |
US20150026647A1 (en) * | 2013-07-22 | 2015-01-22 | Lg Electronics Inc. | Mobile terminal and control method thereof |
CN104679253A (en) * | 2015-03-20 | 2015-06-03 | 联想(北京)有限公司 | Electronic equipment and data processing method |
-
2015
- 2015-06-11 CN CN201510319496.3A patent/CN104965759B/en active Active
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104216500A (en) * | 2013-05-29 | 2014-12-17 | 纬创资通股份有限公司 | Embedded controller and power-saving control method |
US20150026647A1 (en) * | 2013-07-22 | 2015-01-22 | Lg Electronics Inc. | Mobile terminal and control method thereof |
CN104169859A (en) * | 2013-12-11 | 2014-11-26 | 华为终端有限公司 | Screen control method, screen control device and touch terminal |
CN104679253A (en) * | 2015-03-20 | 2015-06-03 | 联想(北京)有限公司 | Electronic equipment and data processing method |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106293008A (en) * | 2016-08-15 | 2017-01-04 | 宇龙计算机通信科技(深圳)有限公司 | A kind of application program freezing method and terminal unit |
CN106293008B (en) * | 2016-08-15 | 2019-06-11 | 宇龙计算机通信科技(深圳)有限公司 | A kind of application program freezing method and terminal device |
CN109582268A (en) * | 2018-12-11 | 2019-04-05 | 浪潮(北京)电子信息产业有限公司 | A kind of display panel control method, device and system |
CN116185159A (en) * | 2023-01-13 | 2023-05-30 | 赛昂斯(深圳)智能科技有限公司 | Switch awakening method and device based on low-power-consumption control technology |
CN116185159B (en) * | 2023-01-13 | 2023-08-29 | 赛昂斯(深圳)智能科技有限公司 | Switch awakening method and device based on low-power-consumption control technology |
Also Published As
Publication number | Publication date |
---|---|
CN104965759B (en) | 2018-10-12 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN110058889B (en) | Application awakening method and device | |
CN107168508B (en) | Low-power-consumption normally-displayed information implementation method and device | |
CN107809793B (en) | Awakening control method and device of intelligent terminal | |
CN105373207B (en) | A kind of idle method of wireless communication terminal | |
CN102821207B (en) | Implementation method for alarm clock under shutdown state and mobile terminal | |
CN104615097B (en) | Method and device for remotely controlling mobile terminal | |
CN106648025A (en) | Always on display method and terminal | |
US20020180744A1 (en) | Display frame buffer update method and device | |
CN110908496A (en) | System interaction method and wearable device | |
US8108006B2 (en) | Method for displaying time on a mobile telephone | |
CN112530056A (en) | Method for reducing power consumption of intelligent door lock, intelligent door lock and storage medium | |
CN106802551A (en) | Intelligent wearable device control method and intelligent wearable device | |
CN105388991A (en) | Timing wake-up processing system and method | |
WO2018072411A1 (en) | Screen control method, device and terminal | |
WO2018171236A1 (en) | Display method and terminal | |
CN104965759A (en) | Method for controlling terminal and terminal | |
CN104267992A (en) | Method and device for shielding wake-up program of mobile terminal | |
CN107231386B (en) | Application state conversion method and device and mobile terminal | |
US9417679B2 (en) | Adaptive connected standby for a computing device | |
CN108445737A (en) | A kind of control method of smartwatch, device and smartwatch | |
CN107969009B (en) | Method and device for controlling terminal communication and terminal | |
WO2014176893A1 (en) | Method and device for powering off mobile terminal | |
US20240168779A1 (en) | Display method and electronic device | |
CN105094575A (en) | Information processing method and electronic device | |
CN102044201B (en) | Device and method for constant brightness display of mobile equipment screen |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |