CN104965759B - A kind of method and terminal of control terminal - Google Patents

A kind of method and terminal of control terminal Download PDF

Info

Publication number
CN104965759B
CN104965759B CN201510319496.3A CN201510319496A CN104965759B CN 104965759 B CN104965759 B CN 104965759B CN 201510319496 A CN201510319496 A CN 201510319496A CN 104965759 B CN104965759 B CN 104965759B
Authority
CN
China
Prior art keywords
terminal
power consumption
state
kernel
consumption state
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.)
Active
Application number
CN201510319496.3A
Other languages
Chinese (zh)
Other versions
CN104965759A (en
Inventor
尹萍
周晓煜
颜毅强
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Lenovo Beijing Ltd
Original Assignee
Lenovo Beijing Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Lenovo Beijing Ltd filed Critical Lenovo Beijing Ltd
Priority to CN201510319496.3A priority Critical patent/CN104965759B/en
Publication of CN104965759A publication Critical patent/CN104965759A/en
Application granted granted Critical
Publication of CN104965759B publication Critical patent/CN104965759B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • YGENERAL 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
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE 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/00Energy efficient computing, e.g. low power processors, power management or thermal management

Landscapes

  • Power Sources (AREA)

Abstract

The embodiment of the invention discloses a kind of method of control terminal, this method includes:When terminal is in the first power consumption state, and preset duration reaches, the second power consumption state is switched to, wherein the power consumption when terminal is in second power consumption state is in power consumption when first power consumption state higher than the terminal;It is described to switch to the second power consumption state, including:It runs the kernel state process of the terminal and wakes up first part's device in the terminal, and keep terminating the operation of the User space process in the terminal, wherein first part's device is for realizing preset function;Execute preset instructions, the kernel state process and first part's device are called, after completing the preset function, terminates the kernel state process operation, and control first part's device and be stopped so that the terminal is again introduced into first power consumption state.The embodiment of the invention also discloses a kind of terminals.

Description

A kind of method and terminal of control terminal
Technical field
The present invention relates to terminal control field more particularly to the methods and terminal of a kind of control terminal.
Background technology
With the continuous development of science and technology, electronic technology has also obtained development at full speed, and the type of electronic product is also got over Come more, people have also enjoyed the various facilities that development in science and technology is brought.Present people can be by various types of intelligence eventually The comfortable life brought with development in science and technology is enjoyed at end.
Currently, more and more intelligent terminals, such as smart mobile phone, tablet computer, somatic sensation television game machine are in order to reduce power consumption, All has sleep mode.When intelligent terminal is according to user instruction or user's operation is not detected for a long time, obtains and execute One dormancy instruction carries out suspend mode preparation, all processes of freezing system, and closes all devices, finally, CUP is closed, in this way, intelligence Energy terminal just enters dormant state.During intelligent terminal suspend mode, in order to receive external data, or itself is updated Information, intelligent terminal can show function in backstage timing wake-up system, all processes of thawing to carry out such as update.But by It is all processes of thawing to be waken up every time all in intelligent terminal, and no matter whether process needs to run, and can all be defrosted and continue It runs up to and is frozen again, in this way, considerably increasing the power consumption of intelligent terminal, influence the battery durable ability of intelligent terminal.
So there is the big technical problem of intelligent terminal timing wake-up power consumption in the prior art.
Invention content
In view of this, an embodiment of the present invention is intended to provide a kind of method of control terminal and terminal, to reduce intelligent terminal Power consumption caused by timing wake-up improves the battery durable ability of intelligent terminal, provides good user experience.
In order to achieve the above objectives, the technical proposal of the invention is realized in this way:
In a first aspect, the embodiment of the present invention provides a kind of method of control terminal, including:When terminal is in the first power consumption shape State, and when preset duration reaches, switch to the second power consumption state, wherein when the terminal is in second power consumption state Power consumption is in power consumption when first power consumption state higher than the terminal;It is described to switch to the second power consumption state, including:Operation The kernel state process of the terminal and first part's device in the wake-up terminal, and keep terminating the use in the terminal Family state process operation, wherein first part's device is for realizing preset function;Preset instructions are executed, the kernel is called State process and first part's device after completing the preset function, terminate the kernel state process operation, and control First part's device is stopped so that the terminal is again introduced into first power consumption state.
Second aspect, the embodiment of the present invention provide a kind of terminal, including:First part's device, for realizing preset instructions Corresponding preset function;Controller is switched to for being in the first power consumption state when the terminal, and when preset duration reaches Second power consumption state, wherein the power consumption when terminal is in second power consumption state is in described the higher than the terminal Power consumption when one power consumption state;It is described to switch to the second power consumption state, including:It runs the kernel state process of the terminal and calls out First part's device in the terminal of waking up, and keep terminating the operation of the User space process in the terminal, wherein described first Part of devices is for realizing preset function;Preset instructions are executed, the kernel state process and first part's device are called, After completing the preset function, the kernel state process operation is terminated, and control first part's device and be stopped, made It obtains the terminal and is again introduced into first power consumption state.
In the method and terminal of the control terminal that the embodiment of the present invention is provided, terminal has the first power consumption state and second Power consumption state, wherein power consumption when terminal is in the second power consumption state is in power consumption when the first power consumption state higher than terminal.When Terminal is in the first power consumption state, and preset duration reaches, i.e., when timing reaches, switches to the second power consumption state, specifically, The second power consumption state is switched to, including:Run terminal kernel state process and wake up terminal in for realizing preset function First part's device, and the User space process in terminating terminal is kept to run, that is to say, that terminal only wakes up kernel state process And with realize the relevant first part's device of preset function, and the holding of User space process is freezed, and then, terminal executes default refer to It enables, calls kernel state process and first part's device, complete preset function, next, terminating the operation of kernel state process, and control First part's device processed is stopped, that is, freezes kernel state process and suspend mode first part device herein so that terminal It is again introduced into the first power consumption state.In this way, terminal is when being timed wake-up, so that it may only to wake up kernel state process and part Device greatly reduces power consumption caused by intelligent terminal timing wake-up, carries without waking up all processes and all devices The battery durable ability of very intelligent terminal provides good user experience.
Description of the drawings
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 schematic diagram of the terminal in the embodiment of the present invention three.
Specific implementation mode
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete Site preparation describes.
Embodiment one:
The present embodiment provides a kind of method of control terminal, this method is applied to such as smart mobile phone, tablet computer, intelligent hand The terminals such as table, intelligent glasses, these terminals at least have there are three power consumption state, i.e. the first power consumption state, the second power consumption state and Third power consumption state, wherein power consumption when terminal is in the first power consumption state is in work(when the second power consumption state less than terminal Consumption, power consumption when terminal is in the second power consumption state are less than power consumption when terminal is in third power consumption state.
In the present embodiment, when terminal is in the first power consumption state, all processes in terminal, i.e. kernel state process and User space process all terminates operation, that is, frozen, and at least part device is stopped, wherein at least part Device can be all devices in addition to the relevant device of clocking capability in terminal, or be removed in terminal and timing Part of devices other than the relevant device of function;When terminal is in the second power consumption state, the kernel state process in terminal and A part of device is work, and User space process is still frozen, and the other devices at least part device are still stopped;When When terminal is in third power consumption state, the kernel state process in terminal and User space process normal operation, second part device is just Often work, wherein the quantity of second part device is more than the quantity of first part's device, when entering the first power consumption state with terminal At least part device being stopped 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, shown in Figure 1, this method packet It includes:
S101:When terminal is in the first power consumption state, and preset duration reaches, the second power consumption state is switched to;Wherein, The second power consumption state is switched to, including:It runs the kernel state process of terminal and wakes up first part's device in terminal, and protect Hold the User space process operation in terminating terminal, wherein first part's device is for realizing preset function;
Specifically, terminal, according to preset duration, is opened after being controlled by the user or being advanced into the first power consumption state certainly Beginning timing when periodically reaching, the kernel state process of terminal operating itself and wakes up first part's device when preset duration reaches Part controls first part's device work, at this point, User space process keeps terminating operation, i.e. User space process holding is freezed.
In specific implementation process, first part's device is that the preset function to be carried out to terminal timing wake-up is corresponding 's.For example, terminal timing wake-up is to be communicated with server, then, first part's device may include penetrating for terminal Frequency module, baseband processor etc.;For another example, terminal timing wake-up be in order to update display, then, first part's device may include Video-stream processor, display module etc., the present invention is not especially limited, and is subject to practical application.
More preferably, first part's device includes at least a display module, then, when terminal is in the first power consumption state, Display module works and keeps showing.For example, terminal is smartwatch, display module is liquid crystal display, then, when intelligent hand When table is in the first power consumption state, liquid crystal display length is bright and shows the time.Certainly, display module can also be to touch display Screen, electronic ink screen, Electronic Paper etc., the present invention is not specifically limited.
Further, before above-mentioned wake-up first part device, this method further includes:According to preset function, determining pair The first part's device answered.That is, terminal also needs to, according to preset function, determine the first part's device for needing to wake up Which part has.
In another embodiment, before S101, user can voluntarily be triggered with control terminal or terminal enters the first work( Consumption state, then, this method further includes:Obtain second system power consumption switching command;Second system power consumption switching command is executed, eventually Only User space process and the operation of kernel state process, and after terminating the operation of kernel state process, control terminal enters the first power consumption shape State.
Specifically, user can pass through such as screen locking, the operations such as offline mode, control terminal during using terminal Into the first power consumption state, certainly, terminal can also automatic trigger enter the first power consumption state, at this point, terminal obtain the second system System power consumption switching command, i.e. instruction terminal switch to the first power consumption state.So, terminal terminates operation User space process and kernel State process, and after kernel state process terminates operation, control above-mentioned at least part device and be stopped, in this way, control terminal Into the first power consumption state, such as dormant state.
Further, since User space process is run in the user space, kernel state process is run in kernel spacing, can To think that User space process and kernel state process are independent from each other, so, above-mentioned execution second system power consumption switching command, eventually The step of only User space process and kernel state process are run can also include:Second system power consumption switching command is executed, successively eventually Only User space process and the operation of kernel state process, that is to say, that terminal executes second system power consumption switching command, first in user's sky Between the middle operation for terminating User space process, then, then the operation of kernel state process is terminated in kernel spacing, and in termination When core state process is run, preset duration is set for timer, starts timing.
Preset duration mentioned here refers to the timing duration of terminal timing wake-up, can be 1 second, 5 seconds, 8 seconds, 10 seconds, 1 Minute etc., it is subject to practical application, the present invention is not specifically limited.
In practical applications, as described above, it is assumed that terminal is smartwatch, and first part's device includes at least a display mould Block, at this point, preset duration can be set according to the time showing mode of smartwatch, if the clock of smartwatch is aobvious Last position shown is minute, then, preset duration can be set as 1 minute;If the clock display of smartwatch is most Latter position be second, then, preset duration can be set as 1 second.
In the above scheme, preset duration is fixed duration, is by terminal system developer or manufacturer in terminal It is preset before manufacture, and in another case, preset duration can also be adjusted according to current system time.Example Such as, it will again be assumed that terminal is smartwatch, and smartwatch 30 divides the screen locking of 45 seconds response users to be operated into the first power consumption shape at 9 After state, preset duration can be configured to 15 seconds according to current system time, then, after preset duration reaches, intelligent hand Table executes S101.And hereafter, smartwatch is still preset default before its manufacture according to system development quotient or manufacturer Duration is such as timed for 1 minute.Certainly, in specific implementation process, there may also be other setting situations for preset duration, originally Invention is not specifically limited.
Further, during terminal switches to the second power consumption state by the first power consumption state, user is also possible to lead to Cross such as unlock, close offline mode wake operation thoroughly wake up terminal, at this point, timer reset, wait for terminal be again introduced into First power consumption state, starts again at timing.
S102:Preset instructions are executed, kernel state process and first part's device are called, after completing preset function, eventually Only kernel state process is run, and is controlled first part's device and be stopped so that terminal is again introduced into the first power consumption state.
Specifically, after terminal switches to the second power consumption state by S101, terminal executes preset instructions, in calling Core state process and first part's device complete preset function.After the completion of preset function, control kernel state process terminates fortune Row, that is, freezes kernel state process again, and control first part device is stopped again, in this way, terminal again into Enter the first power consumption state.
It is shown as an example it is assumed that preset function is update, then, terminal calls kernel state process and display module, Update the current display content of display module.Further, if terminal is smartwatch, the current display of update display module Content can be with for the clock that shows of update display module.
So far, terminal just completes the process of timing wake-up.
It can be seen from the above, terminal is when being timed wake-up, so that it may only to wake up kernel state process and part of devices, and Without waking up all processes and all devices, power consumption caused by intelligent terminal timing wake-up is greatly reduced, intelligence is improved The battery durable ability of terminal provides good user experience.
Embodiment two:
The present embodiment provides a kind of method of control terminal, this method is applied to such as smart mobile phone, tablet computer, intelligent hand The terminals such as table, intelligent glasses, these terminals at least have there are three power consumption state, i.e. the first power consumption state, the second power consumption state and Third power consumption state, wherein power consumption when terminal is in the first power consumption state is in work(when the second power consumption state less than terminal Consumption, power consumption when terminal is in the second power consumption state are less than power consumption when terminal is in third power consumption state.
In the present embodiment, when terminal is in the first power consumption state, all processes in terminal, i.e. kernel state process and User space process all terminates operation, that is, frozen, and at least part device is stopped, wherein at least part Device can be all devices in addition to the relevant device of clocking capability in terminal, or be removed in terminal and timing Part of devices other than the relevant device of function;When terminal is in the second power consumption state, kernel state process in terminal and First part's device is work, and User space process is still frozen, and the other devices at least part device are still stopped; When terminal is in third power consumption state, the kernel state process in terminal and User space process normal operation, second part device Normal work, wherein the quantity of second part device is more than the quantity of first part's device, enters the first power consumption state with terminal When at least part device for being stopped 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, shown in Figure 2, this method packet It includes:
S201:When terminal is in the first power consumption state, and preset duration reaches, the second power consumption state is switched to;Wherein, The step of switching to the second power consumption state, including:It runs the kernel state process of terminal and wakes up first part's device in terminal Part, and the User space process in terminating terminal is kept to run, wherein first part's device is for realizing preset function;
Specifically, terminal, according to preset duration, is opened after being controlled by the user or being advanced into the first power consumption state certainly Beginning timing when periodically reaching, the kernel state process of terminal operating itself and wakes up first part's device when preset duration reaches Part controls first part's device work, at this point, User space process keeps terminating operation, i.e. User space process holding is freezed.
In specific implementation process, first part's device is that the preset function to be carried out to terminal timing wake-up is corresponding 's.For example, terminal timing wake-up is to be communicated with server, then, first part's device may include penetrating for terminal Frequency module, baseband processor etc.;For another example, terminal timing wake-up be in order to update display, then, first part's device may include Video-stream processor, display module etc., the present invention is not especially limited, and is subject to practical application.
More preferably, first part's device includes at least display module, then, when terminal is in the first power consumption state, show Show that module works and keeps showing.For example, terminal is smartwatch, display module is liquid crystal display, then, work as smartwatch When in the first power consumption state, liquid crystal display length is bright and shows the time.Certainly, display module can also be touch display screen, Electronic ink screen, Electronic Paper etc., the present invention is not specifically limited.
Further, before above-mentioned wake-up first part device, this method further includes:According to preset function, determining pair The first part's device answered.That is, terminal also needs to, according to preset function, determine the first part's device for needing to wake up Which part has.
In another embodiment, before S201, user can voluntarily be triggered with control terminal or terminal enters the first work( Consumption state, then, this method further includes:Obtain second system power consumption switching command;Second system power consumption switching command is executed, eventually Only User space process and the operation of kernel state process, and after terminating the operation of kernel state process, control terminal enters the first power consumption shape State.
Specifically, user can pass through such as screen locking, the operations such as offline mode, control terminal during using terminal Into the first power consumption state, certainly, terminal can also automatic trigger enter the first power consumption state, at this point, terminal obtain the second system System power consumption switching command, i.e. instruction terminal switch to the first power consumption state.So, terminal terminates operation User space process and kernel State process, and after kernel state process terminates operation, control above-mentioned at least part device and be stopped, in this way, control terminal Enter the first power consumption state, such as dormant state.
Further, since User space process is run in the user space, kernel state process is run in kernel spacing, can To think that User space process and kernel state process are independent from each other, so, above-mentioned execution second system power consumption switching command, eventually The step of only User space process and kernel state process are run can also include:Second system power consumption switching command is executed, successively eventually Only User space process and the operation of kernel state process, that is to say, that terminal executes second system power consumption switching command, first in user's sky Between the middle operation for terminating User space process, then, then the operation of kernel state process is terminated in kernel spacing, and in termination When core state process is run, preset duration is set for timer, starts timing.
Preset duration mentioned here refers to the timing duration of terminal timing wake-up, can be 1 second, 5 seconds, 8 seconds, 10 seconds, 1 Minute etc., it is subject to practical application, the present invention is not specifically limited.
In practical applications, as described above, it will again be assumed that terminal is smartwatch, and first part's device includes at least a display Module, at this point, preset duration can be set according to the time showing mode of smartwatch, if the clock of smartwatch Last position of display is minute, then, preset duration can be set as 1 minute;If the clock display of smartwatch Last position be second, then, preset duration can be set as 1 second.
In the above scheme, preset duration is fixed duration, is by terminal system developer or manufacturer in terminal It is preset before manufacture, and in another case, preset duration can also be adjusted according to current system time.Example Such as, it will again be assumed that terminal is smartwatch, and smartwatch 30 divides the screen locking of 45 seconds response users to be operated into the first power consumption shape at 9 After state, preset duration can be configured to 15 seconds according to current system time, then, after preset duration reaches, intelligent hand Table executes S201.And hereafter, smartwatch is still preset default before its manufacture according to system development quotient or manufacturer Duration is such as timed for 1 minute.Certainly, in specific implementation process, there may also be other setting situations for preset duration, originally Invention is not specifically limited.
Further, during terminal switches to the second power consumption state by the first power consumption state, user is also possible to lead to Cross such as unlock, close offline mode wake operation thoroughly wake up terminal, at this point, timer reset, wait for terminal be again introduced into First power consumption state, starts again at timing.
S202:Preset instructions are executed, kernel state process and first part's device are called, after completing preset function, eventually Only kernel state process is run, and is controlled first part's device and be stopped so that terminal is again introduced into the first power consumption state.
Specifically, after terminal switches to the second power consumption state by S201, terminal executes preset instructions, in calling Core state process and first part's device complete preset function.It is shown for example, preset function is update, then, terminal is called Kernel state process and display module, the current display content of update display module.After the completion of preset function, kernel state is controlled Process terminates operation, that is, freezes kernel state process again, and control first part device is stopped again, in this way, Terminal is again introduced into the first power consumption state.
It is shown as an example it is assumed that preset function is update, then, terminal calls kernel state process and display module, Update the current display content of display module.Further, if terminal is smartwatch, the current display of update display module Content can be with for the clock that shows of update display module.
So far, terminal just completes the process of timing wake-up.
Referring also to Fig. 2, after terminal enters the first power consumption state, terminal may thoroughly be called out by user by wake operation It wakes up, that is, enters third power consumption state, at this point, this method further includes:
S203:Obtain the first system power consumption switching command;
Specifically, after terminal enters the first power consumption state, the first system power consumption switching command, the instruction are received It is used to indicate terminal and switches into third power consumption state;
S204:The first system power consumption switching command is executed, judges whether kernel state process runs;
Specifically, since the first system power consumption switching command can be that user triggers at any time, so, terminal can at this time The first power consumption state can be in, it is also possible to the second power consumption state.When terminal is in the first power consumption state, terminal is just needed to institute There are process and device to be waken up, and when terminal is in the second power consumption state, terminal only needs to carry out Partial Process and device It wakes up.
So in order to reduce the data processing amount of terminal, avoid waking up repeatedly, terminal is cut receiving the first system power consumption It changes after instruction, executes the instruction, judge whether kernel state process runs, thereby determine that the power consumption state that terminal is presently in.
S205a:When kernel state process not running, kernel state process and User space process are run, and wake up in terminal Second part device so that terminal enters third power consumption state;
Specifically, when terminal determines kernel state process not running, illustrate that terminal is in the first power consumption state, at this point, Terminal operating kernel state process and User space process, and wake up the second part device in terminal so that terminal enters third work( Consumption state.
S205b:When kernel state process is run, User space process is run, and wake up the Part III device in terminal, made It obtains terminal and enters third power consumption state.
Specifically, when terminal determines the operation of kernel state process, illustrate that terminal is in the second power consumption state, at this point, eventually End only needs to run User space process, and wakes up the Part III device in terminal, that is, first is removed in second part device Device outside part of devices so that terminal enters third power consumption state.
It can be seen from the above, terminal is when being timed wake-up, so that it may only to wake up kernel state process and part of devices, and Without waking up all processes and all devices, power consumption caused by intelligent terminal timing wake-up is greatly reduced, intelligence is improved The battery durable ability of terminal provides good user experience.
Embodiment three:
This implementation provides a kind of terminal, consistent with the terminal in above-described embodiment one and two.
Fig. 3 is the structural schematic diagram for the terminal that the present invention is implemented in three, and shown in Figure 3, which includes:First part Device 31, for realizing the corresponding preset function of preset instructions;Controller 32, for being in the first power consumption state when terminal, and When preset duration reaches, the second power consumption state is switched to, wherein power consumption when terminal is in the second power consumption state is higher than at terminal Power consumption when the first power consumption state;The second power consumption state is switched to, including:It runs the kernel state process of terminal and wakes up eventually First part's device 31 in end, and the User space process in terminating terminal is kept to run, wherein first part's device 31 is used for Realize preset function;Preset instructions are executed, kernel state process and first part's device 31 are called, after completing preset function, The operation of kernel state process is terminated, and controls first part's device 31 and is stopped so that terminal is again introduced into the first power consumption state.
In the present embodiment, when terminal is in the first power consumption state, all processes in terminal, i.e. kernel state process and User space process all terminates operation, that is, frozen, and at least part device is stopped, wherein at least part Device can be all devices in addition to the relevant device of clocking capability in terminal, or be removed in terminal and timing Part of devices other than the relevant device of function;When terminal is in the second power consumption state, the kernel state process in terminal and A part of device 31 is work, and User space process is still frozen, and the other devices at least part device are still stopped; When terminal is in third power consumption state, the kernel state process in terminal and User space process normal operation, second part device Normal work, wherein the quantity of second part device is more than the quantity of first part's device 31, enters the first power consumption shape with terminal At least part device being stopped when state can be the same or different.
Further, controller 32 are additionally operable in operation kernel state process and before waking up first part's device 31, root According to preset function, corresponding first part's device 31 is determined.
In specific implementation process, first part's device 31 is that the preset function to be carried out with terminal timing wake-up is phase It answers.For example, terminal timing wake-up is to be communicated with server, then, first part's device 31 may include terminal Radio-frequency module, baseband processor etc.;For another example, terminal timing wake-up be in order to update display, then, first part's device 31 can To include video-stream processor, display module etc., the present invention is not especially limited, and is subject to practical application.
More preferably, first part's device 31 includes at least a display module, then, when terminal is in the first power consumption state When, display module works and keeps showing.For example, terminal is smartwatch, display module is liquid crystal display, then, work as intelligence When energy wrist-watch is in the first power consumption state, liquid crystal display length is bright and shows the time.Certainly, display module can also be to touch to show Display screen, electronic ink screen, Electronic Paper etc., the present invention is not specifically limited.
Further, terminal further includes:Second part device and Part III device, wherein the number of second part device Quantity of the amount more than first part's device 31;Part III device is the device in addition to first part's device 31 in second part device Part;
Correspondingly, controller 32 are additionally operable to obtain the first system power consumption switching command;The switching of the first system power consumption is executed to refer to It enables, judges whether kernel state process runs;When kernel state process not running, kernel state process and User space process are run, and Wake up second part device so that terminal enters third power consumption state, and power consumption when terminal is in third power consumption state is higher than eventually Power consumption when end is in the second power consumption state;When kernel state process is run, run User space process, and wake up in terminal the Three parts device so that terminal enters third power consumption state.
Further, controller 32 are additionally operable to, when terminating the operation of kernel state process, set preset duration, and start to count When.
Further, controller 32 are additionally operable to obtain second system power consumption switching command;Execute the switching of second system power consumption Instruction terminates User space process and the operation of kernel state process, and after terminating the operation of kernel state process, all in control terminal Device is stopped so that terminal enters the first power consumption state.
Further, since User space process is run in the user space, kernel state process is run in kernel spacing, can To think that User space process and kernel state process are independent from each other, controller 32, be additionally operable to terminate successively User space process and Kernel state process is run.
Further, first part's device 31 includes a display module, is connect with controller 32;Wherein, when terminal is in When the first power consumption state, display module works and keeps showing;
Correspondingly, controller 32 are specifically used for executing preset instructions, call kernel state process and display module, update The current display content of display module.
In another embodiment, when terminal is wearable device, terminal further includes:Ontology, be provided with controller 32 with And first part's device 31;Fixed part is connect with ontology, and ontology is fixed on by fixed part on an object.
Further, fixed part at least has stationary state, when fixed part is in stationary state, is at least used as a cyclic annular sky Between at least part, or as meet a preset condition not closed hoop space at least part.
It is illustrated so that terminal is smartwatch as an example below.
For example, terminal is smartwatch, including:Ontology and fixed part, wherein fixed part is for smartwatch to be fixed on At the wrist of user, that is, watchband;Multiple devices are provided in ontology, as display controller, liquid crystal display, controller, Timer etc..
In practical applications, smartwatch can show the time with periodic points brightness liquid crystal display screens;First, smartwatch Receive user screen locking operation after, execute screen locking instruction, control smartwatch enter the first power consumption state, freeze it is all into Journey controls all devices other than timer and is stopped, meanwhile, timer starts timing.Then, pre- when timer If duration reaches, control smartwatch switches to the second power consumption state, that is, only runs the kernel state process of terminal, and calls out The first part's device waken up with display time correlation, i.e. display controller, liquid crystal display, controller work, at this point, User space Process keeps terminating operation, and all devices holding in addition to first part's device is stopped.Next, due to controller It is waken up, then, controller generates and executes preset instructions, that is, updates idsplay order, calls kernel state process and above-mentioned the Display controller in a part of device and liquid crystal display, to realize display update, i.e., when the display time being updated to current Between, at this point, liquid crystal display is lighted, and is updated to current time by display controller control, in this way, user can pass through intelligence Energy wrist-watch knows current time.Hereafter, in order to reduce power consumption, controller terminates the operation of kernel state process again, and controls just now First part's device of wake-up is stopped so that terminal is again introduced into the first power consumption state.
In another embodiment, in order to which more close to the user experience of general wristwatch, smartwatch can also keep liquid crystal Display screen is always on to show the time, in this way, user can lift wrist at any time checks current time, but thus exists Since liquid crystal display grows bright and the time real-time update, lead to that smartwatch power consumption is big, battery durable ability is poor.So User experience and power consumption in order to balance, smartwatch execute screen locking instruction, control intelligence after the screen locking operation for receiving user Wrist-watch enters the first power consumption state, freezes all processes, controls all devices other than timer, liquid crystal display and stops Work, meanwhile, timer starts timing.Then, when the preset duration of timer, i.e., when reaching within 1 minute, control smartwatch is cut Shift to the second power consumption state, that is, only run the kernel state process of terminal, and wake up in addition to liquid crystal display with display First part's device of time correlation, i.e. display controller, controller work, at this point, User space process keeps terminating operation, The holding of its device is stopped.Next, since controller has woken up, then, controller generates and executes preset instructions, Idsplay order is updated, the display controller in kernel state process and above-mentioned first part's device is called, realizes display update, I.e. update shows the time, at this point, liquid crystal display keeps length bright, and is updated to current time by display controller control, in this way, User can lift wrist and check current time at any time, obtain the user experience as general wristwatch.Hereafter, in order into one Step reduces power consumption, and controller terminates the operation of kernel state process again, and controls the first part's device waken up just now and be stopped, So that terminal is again introduced into the first power consumption state, meanwhile, liquid crystal display still keeps long bright.
As it can be seen that since smartwatch is the real-time display time, so, the preset duration of timer is set as 1 minute, this Sample, the primary display of every 1 minute of smartwatch update so that freeze the operations such as kernel state process for a user and be it is transparent, User still can obtain the time in real time, meanwhile, the power consumption of smartwatch is reduced, the cruising ability of battery is improved.
It should be understood by those skilled in the art that, the embodiment of the present invention can be provided as method, system or computer program Product.Therefore, the shape of hardware embodiment, software implementation or embodiment combining software and hardware aspects can be used in the present invention Formula.Moreover, the present invention can be used can use storage in the computer that one or more wherein includes computer usable program code The form for the computer program product implemented on medium (including but not limited to magnetic disk storage and optical memory etc.).
The present invention be with reference to according to the method for the embodiment of the present invention, the flow of equipment (system) and computer program product Figure and/or block diagram describe.It should be understood that can be realized by computer program instructions every first-class in flowchart and/or the block diagram The combination of flow and/or box in journey and/or box and flowchart and/or the block diagram.These computer programs can be provided Instruct the processor of all-purpose computer, special purpose computer, Embedded Processor or other programmable data processing devices to produce A raw machine so that the instruction executed by computer or the processor of other programmable data processing devices is generated for real The device for the function of being specified in present one flow of flow chart or one box of multiple flows and/or block diagram or multiple boxes.
These computer program instructions, which may also be stored in, can guide computer or other programmable data processing devices with spy Determine in the computer-readable memory that mode works so that instruction generation stored in the computer readable memory includes referring to Enable the manufacture of device, the command device realize in one flow of flow chart or multiple flows and/or one box of block diagram or The function of being specified in multiple boxes.
These computer program instructions also can be loaded onto a computer or other programmable data processing device so that count Series of operation steps are executed on calculation machine or other programmable devices to generate computer implemented processing, in computer or The instruction executed on other programmable devices is provided for realizing in one flow of flow chart or multiple flows and/or block diagram one The step of function of being specified in a box or multiple boxes.
The foregoing is only a preferred embodiment of the present invention, is not intended to limit the scope of the present invention.

Claims (14)

1. a kind of method of control terminal, including:
When terminal is in the first power consumption state, and preset duration reaches, the second power consumption state is switched to, wherein the terminal Power consumption when in second power consumption state is in power consumption when first power consumption state higher than the terminal;The switching To the second power consumption state, including:It runs the kernel state process of the terminal and wakes up first part's device in the terminal, And keep terminating the operation of the User space process in the terminal, wherein first part's device is for realizing preset function;
Preset instructions are executed, the kernel state process and first part's device are called, after completing the preset function, The kernel state process operation is terminated, and controls first part's device and is stopped so that the terminal is again introduced into institute State the first power consumption state.
2. according to the method described in claim 1, it is characterized in that, in the kernel state process for running the terminal and calling out Before first part's device in the terminal of waking up, the method further includes:
According to the preset function, corresponding first part's device is determined.
3. according to the method described in claim 1, it is characterized in that, the method further includes:
Obtain the first system power consumption switching command;
The first system power consumption switching command is executed, judges whether the kernel state process runs;
When the kernel state process not running, the kernel state process and the User space process are run, and wake up the end Second part device in end so that the terminal enters third power consumption state, wherein the quantity of the second part device is big In the quantity of first part's device, the power consumption when terminal is in third power consumption state is in described higher than the terminal Power consumption when the second power consumption state;
When the kernel state process is run, the User space process is run, and wake up the Part III device in the terminal, So that the terminal enters the third power consumption state, wherein the Part III device is to be removed in the second part device Device outside first part's device.
4. according to the method described in claim 1, it is characterized in that, the method further includes:
When terminating the kernel state process operation, the preset duration is set, and start timing.
5. according to the method described in claim 1, it is characterized in that, described when the terminal is in the first power consumption state and pre- If duration reaches, switch to before the second power consumption state, the method further includes:
Obtain second system power consumption switching command;
The second system power consumption switching command is executed, the User space process is terminated and the kernel state process is run, and After terminating the kernel state process operation, controls the terminal and enter first power consumption state.
6. according to claim 1-5 any one of them methods, which is characterized in that it is aobvious that first part's device includes at least one Show module, wherein when the terminal is in the first power consumption state, the display module works and keeps showing;
The execution preset instructions call the kernel state process and first part's device, complete the preset function, Including:
The preset instructions are executed, the kernel state process and the display module is called, it is current to update the display module Display content.
7. a kind of terminal, including:
First part's device, for realizing the corresponding preset function of preset instructions;
Controller switches to the second power consumption shape for being in the first power consumption state when the terminal, and when preset duration reaches State, wherein the power consumption when terminal is in second power consumption state is in first power consumption state higher than the terminal When power consumption;It is described to switch to the second power consumption state, including:It runs the kernel state process of the terminal and wakes up the terminal In first part's device, and keep terminating the operation of the User space process in the terminal, wherein first part's device is used In realization preset function;Preset instructions are executed, the kernel state process and first part's device are called, are completed described pre- If after function, terminating the kernel state process operation, and control first part's device and be stopped so that the terminal It is again introduced into first power consumption state.
8. terminal according to claim 7, which is characterized in that the controller, be additionally operable to run the kernel state into Before journey and wake-up first part's device, according to the preset function, corresponding first part's device is determined.
9. terminal according to claim 7, which is characterized in that the terminal further includes second part device and Part III Device, wherein the quantity of the second part device is more than the quantity of first part's device;The Part III device is Device in the second part device in addition to first part's device;
The controller is additionally operable to obtain the first system power consumption switching command;The first system power consumption switching command is executed, is sentenced Whether the kernel state process of breaking runs;When the kernel state process not running, the kernel state process and the use are run Family state process, and wake up the second part device so that the terminal enters third power consumption state, and the terminal is in third Power consumption when power consumption state is in power consumption when second power consumption state higher than the terminal;When the kernel state process is run When, the User space process is run, and wake up the Part III device in the terminal so that the terminal enters the third Power consumption state.
10. terminal according to claim 7, which is characterized in that the controller, be additionally operable to when terminate the kernel state into When Cheng Yunhang, the preset duration is set, and start timing.
11. terminal according to claim 7, which is characterized in that the controller is additionally operable to acquisition second system power consumption and cuts Change instruction;The second system power consumption switching command is executed, the User space process and kernel state process operation are terminated, and After terminating the kernel state process operation, controls the terminal and enter first power consumption state.
12. terminal according to claim 7, which is characterized in that first part's device includes at least a display module, It is connect with the controller;Wherein, when the terminal is in the first power consumption state, the display module works and keeps aobvious Show;
The controller is specifically used for executing the preset instructions, calls the kernel state process and the display module, more The current display content of the new display module.
13. terminal according to claim 7, which is characterized in that the terminal further includes:Ontology is provided with the control Device and first part's device;Fixed part is connect with the ontology, and the ontology is fixed on an object by the fixed part On body.
14. terminal according to claim 13, which is characterized in that the fixed part at least has stationary state, described solid When determining portion and being in stationary state, at least at least part as an annulus, or as meeting not closing for a preset condition Close at least part of annulus.
CN201510319496.3A 2015-06-11 2015-06-11 A kind of method and terminal of control terminal Active CN104965759B (en)

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 CN104965759A (en) 2015-10-07
CN104965759B true 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)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
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
CN116185159B (en) * 2023-01-13 2023-08-29 赛昂斯(深圳)智能科技有限公司 Switch awakening method and device based on low-power-consumption control technology

Citations (3)

* Cited by examiner, † Cited by third party
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
CN104679253A (en) * 2015-03-20 2015-06-03 联想(北京)有限公司 Electronic equipment and data processing method

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9606721B2 (en) * 2013-07-22 2017-03-28 Lg Electronics Inc. Mobile terminal and control method thereof

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104216500A (en) * 2013-05-29 2014-12-17 纬创资通股份有限公司 Embedded controller and power-saving control method
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

Also Published As

Publication number Publication date
CN104965759A (en) 2015-10-07

Similar Documents

Publication Publication Date Title
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
CN105354044B (en) A kind of application awakening method and device
CN106256116B (en) A kind of method and terminal controlling application program
CN105388991B (en) Timing wake-up processing system and method
CN107302789B (en) Method and system for improving battery endurance of android device
CN107168508B (en) Low-power-consumption normally-displayed information implementation method and device
ATE279082T1 (en) WIRELESS PHONE WITH QUICK RECOVERY OF A TIME REFERENCE FROM A WIRELESS NETWORK AFTER A SLEEP MODE
CN104375929B (en) A kind of information processing method and electronic equipment
CN106648025A (en) Always on display method and terminal
JP2008263520A (en) Portable electronic device, and program
TWI441083B (en) Apparatus for performing timer management and associated method
CN104965759B (en) A kind of method and terminal of control terminal
WO2018072411A1 (en) Screen control method, device and terminal
CN112530056A (en) Method for reducing power consumption of intelligent door lock, intelligent door lock and storage medium
CN105573461A (en) Intelligent power-saving method and device and terminal
CN110493855A (en) Communication mode control method, device, storage medium and terminal
CN105549720A (en) Power energy-saving control method and system for intelligent wearable device
CN106802551A (en) Intelligent wearable device control method and intelligent wearable device
CN108628560A (en) A kind of display methods and terminal
CN107132905A (en) Terminal communication control method and terminal
CN100505796C (en) Time displaying method for cell phone
CN107678871A (en) A kind of electronic equipment starting-up method and electronic equipment
CN103377071B (en) A kind of batch data delet method and system

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