CN106331864A - Method and device for forced standby for set-top box - Google Patents
Method and device for forced standby for set-top box Download PDFInfo
- Publication number
- CN106331864A CN106331864A CN201610804949.6A CN201610804949A CN106331864A CN 106331864 A CN106331864 A CN 106331864A CN 201610804949 A CN201610804949 A CN 201610804949A CN 106331864 A CN106331864 A CN 106331864A
- Authority
- CN
- China
- Prior art keywords
- standby
- wake
- field
- lock
- inner nuclear
- 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
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/40—Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
- H04N21/43—Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
- H04N21/443—OS processes, e.g. booting an STB, implementing a Java virtual machine in an STB or power management in an STB
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/40—Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
- H04N21/43—Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
- H04N21/443—OS processes, e.g. booting an STB, implementing a Java virtual machine in an STB or power management in an STB
- H04N21/4436—Power management, e.g. shutting down unused components of the receiver
Abstract
The invention provides a method and a device for forced standby for a set-top box. The method comprises steps: a first forced standby interface is added to an architecture layer, wherein the first forced standby interface is used for connecting an upper-layer application and a system; a second forced standby interface of a hardware layer is called through the first forced standby interface and a preset calling method; through the second forced standby interface, a first field and a second field are written in a kernel layer, wherein the first field is used for screen off operation, and the second field is used for forced standby operation; and through a forced standby function in a third forced standby interface of the kernel layer, the forced standby operation is carried out. The set-top box can realize forced standby; as long as a power key is pressed, no matter whether an application or a process exists to acquire an awakening lock, the set-top box can enter real standby, and the power consumption and the service life of the set-top box can be ensured.
Description
Technical field
The present embodiments relate to the technical field of Set Top Box, particularly relate to a kind of Set Top Box and force standby method and dress
Put.
Background technology
Android standby wakeup ultimate principle: when starting an application program, can apply for that a wake_lock calls out
Wake up and lock, all can register once in kernel after often applying for successfully, to notify system kernel, lock and be applied, system
The wake_lock_store of kernel is added in RBTree.When application program discharges wake_lock under certain conditions
Wait, apllied wake_lock before nullifying.It is important to note that: as long as system has a wake_lock time
Waiting, system the most all can not be slept.But now modules can carry out early_suspend.When all of in system
After wake_lock is released, system will enter the sleep state of real kernel.
Can create a master system start-up when and wake up lock main_wake_lock up, this lock is kernel initialization and holds
The non-of the WAKE_LOCK_SUSPEND attribute having wakes up lock in limited time up.Therefore, during system worked well, will be all the time because should
Lock is held by kernel and be cannot be introduced into sleep state.I.e. in the case of without new lock, only main_wake_lock need to be solved
Lock, system just can enter sleep state.
The Set Top Box after switch having a lot of reasons that user can be caused to press remote controller at present cannot be introduced into prototype,
Chief reason is applied exactly or process obtains and wakes up lock up, standby front not release, results in Set Top Box and cannot be introduced into really treating
Machine, box do not enter the most standby if power consumption naturally will be higher, be exactly power consumption for user.If box is long-time
Work and be introduced into the most standby also can result in box temperature drift;Also box can be made to have the longevity it addition, components and parts work long hours
Life loss.
Summary of the invention
The purpose of the embodiment of the present invention is that proposing a kind of Set Top Box forces how standby method and device aims to solve the problem that
Ensure that Set Top Box can enter the most standby problem.
For reaching this purpose, the embodiment of the present invention by the following technical solutions:
First aspect, the method that the pressure of a kind of Set Top Box is standby, described method includes:
Increasing by the first standby interface of pressure in framework layer, described first forces standby interface to be used for connecting upper layer application and being
System;
Standby interface and default call method is forced to call the second standby interface of pressure of hardware layer by described first;
Standby interface is forced to write the first field and the second field, described first field in inner nuclear layer by described second
For closing screen operation, described second field is used for forcing standby operation;
Described pressure standby operation is carried out by the standby function of pressure in the 3rd standby interface of pressure of described inner nuclear layer.
Preferably, described by the described first the second pressure forcing standby interface and default call method to call hardware layer
Standby interface, including:
By the PowerManagerService of described framework layer, then it is transferred to the power.c of described hardware layer by jni
In second pressure standby interface.
Preferably, described by described second force standby interface in inner nuclear layer, write the first field and the second field,
Described first field is used for closing screen operation, and described second field is used for forcing standby operation, including:
Interface write in "/sys/class/amhdmitx/amhdmitx0/config " is forced by described second
" video_off " field, described " video_off " field is used for closing screen operation;
Write " force_suspend " field in "/sys/power/wake_unlock " again.
Preferably, described by inner nuclear layer the 3rd pressure standby interface in standby function carry out the standby behaviour of described pressure
Make, including:
Field whether is had to write by described inner nuclear layer detection "/sys/power/wake_unlock ";
If detecting, "/sys/power/wake_unlock " has field to write, then by the wake_ in described inner nuclear layer
Unlock_store function is called back.
Preferably, before the wake_unlock_store function in described inner nuclear layer is called back, also include:
First in red-black number chained list, search described wake_lock by described inner nuclear layer and wake up whether lock exists up;
If not existing, the most do not continue operation.
Preferably, detect that "/sys/power/wake_unlock " has field to write if described, then recall to described kernel
Wake_unlock_store function in Ceng, including:
If detecting, "/sys/power/wake_unlock " has " force_suspend " field to write, then not be used in red
Searching described wake_lock in black several chained list and wake up whether lock exists up, directly invoke described inner nuclear layer the 3rd forces standby connecing
Mouthful, enter the most standby;
Wherein, if the standby function of described pressure for there being the default overall situation to force to treat when detecting wake_lock and waking up lock up
Machine mark does not the most detect described wake_lock and wakes up lock up, directly invokes the 3rd standby interface of pressure of described inner nuclear layer, enters true
Standby.
Preferably, described in directly invoke described inner nuclear layer the 3rd pressure standby interface, enter the most standby before, also wrap
Include:
The global variable arranging described inner nuclear layer is true standby mode.
Preferably, described method also includes:
When system enters described true standby mode, recall power_suspend_late function by described inner nuclear layer
Detect described wake_lock and wake up whether lock exists up;
If described wake_lock wakes up up it is latched in, then wakes up described system up.
Second aspect, the device that the pressure of a kind of Set Top Box is standby, described device includes:
Increasing module, for increasing by the first standby interface of pressure in framework layer, described first forces standby interface for even
Connect upper layer application and system;
Calling module, for forcing standby interface and default call method to call the last the second of hardware layer by described first
Make standby interface;
Writing module, for forcing standby interface to write the first field and the second word in inner nuclear layer by described second
Section, described first field is used for closing screen operation, and described second field is used for forcing standby operation;
Standby module, for carrying out described by the standby function of pressure in the 3rd of described inner nuclear layer the standby interface of pressure
Force standby operation.
Preferably, described calling module, specifically for:
By the PowerManagerService of described framework layer, then it is transferred to the power.c of described hardware layer by jni
In second pressure standby interface.
Preferably, said write module, specifically for:
Interface write in "/sys/class/amhdmitx/amhdmitx0/config " is forced by described second
" video_off " field, described " video_off " field is used for closing screen operation;
Write " force_suspend " field in "/sys/power/wake_unlock " again.
Preferably, described standby module, specifically for:
Field whether is had to write by described inner nuclear layer detection "/sys/power/wake_unlock ";
If detecting, "/sys/power/wake_unlock " has field to write, then by the wake_ in described inner nuclear layer
Unlock_store function is called back.
Preferably, described device also includes:
Search module, before the wake_unlock_store function in described inner nuclear layer is called back, by described
Inner nuclear layer is first searched described wake_lock in red-black number chained list and is waken up whether lock exists up;If not existing, the most do not continue operation.
Preferably, described standby module, also particularly useful for:
If detecting, "/sys/power/wake_unlock " has " force_suspend " field to write, then not be used in red
Searching described wake_lock in black several chained list and wake up whether lock exists up, directly invoke described inner nuclear layer the 3rd forces standby connecing
Mouthful, enter the most standby;
Wherein, if the standby function of described pressure for there being the default overall situation to force to treat when detecting wake_lock and waking up lock up
Machine mark does not the most detect described wake_lock and wakes up lock up, directly invokes the 3rd standby interface of pressure of described inner nuclear layer, enters true
Standby.
Preferably, described device also includes:
Module is set, for directly invoke described inner nuclear layer the 3rd pressure standby interface, enters the most standby before, setting
The global variable of described inner nuclear layer is true standby mode.
Preferably, described device also includes:
Wake module, for when system enters described true standby mode, recalling power_ by described inner nuclear layer
Wake_lock described in suspend_late function check wakes up whether lock exists up;If described wake_lock wakes up up it is latched in,
Then wake up described system up.
The embodiment of the present invention provides a kind of Set Top Box to force standby method and device, increases by the first pressure in framework layer and treats
Machine interface, described first forces standby interface to be used for connecting upper layer application and system;By described first force standby interface and
Default call method calls the second standby interface of pressure of hardware layer;Standby interface is forced to be write in inner nuclear layer by described second
Entering the first field and the second field, described first field is used for closing screen operation, and described second field is used for forcing standby operation;Logical
The standby function of pressure crossed in the 3rd standby interface of pressure of described inner nuclear layer carries out described pressure standby operation.In the present invention
Set Top Box can realize forcing standby, as long as pressing power key, no matter currently whether having application or process to obtain and wake up lock up,
Set Top Box can enter the most standby, so that it is guaranteed that the power consumption of Set Top Box and service life.
Accompanying drawing explanation
Fig. 1 is the schematic flow sheet that a kind of Set Top Box that the embodiment of the present invention provides forces standby method;
Fig. 2 is that a kind of Set Top Box that the embodiment of the present invention provides forces standby method schematic diagram;
Fig. 3 is the schematic flow sheet that the another kind of Set Top Box that the embodiment of the present invention provides forces standby method;
Fig. 4 is the schematic flow sheet that the another kind of Set Top Box that the embodiment of the present invention provides forces standby method;
Fig. 5 is the schematic flow sheet that the another kind of Set Top Box that the embodiment of the present invention provides forces standby method;
Fig. 6 is the high-level schematic functional block diagram that a kind of Set Top Box that the embodiment of the present invention provides forces standby device.
Detailed description of the invention
With embodiment, the embodiment of the present invention is described in further detail below in conjunction with the accompanying drawings.It is understood that this
Specific embodiment described by place is used only for explaining the embodiment of the present invention, rather than the restriction to the embodiment of the present invention.Additionally also
It should be noted that for the ease of describing, accompanying drawing illustrate only the part relevant to the embodiment of the present invention rather than entire infrastructure.
It is the schematic flow sheet that a kind of Set Top Box that the embodiment of the present invention provides forces standby method with reference to Fig. 1, Fig. 1.
As it is shown in figure 1, described Set Top Box forces standby method to include:
Step 101, increases by the first standby interface of pressure in framework layer, and described first forces standby interface to be used for connecting upper strata
Application and system;
Step 102, is treated by the described first the second pressure forcing standby interface and default call method to call hardware layer
Machine interface;
Preferably, described by the described first the second pressure forcing standby interface and default call method to call hardware layer
Standby interface, including:
By the PowerManagerService of described framework layer, then it is transferred to the power.c of described hardware layer by jni
In second pressure standby interface.
Step 103, forces standby interface to write the first field and the second field in inner nuclear layer by described second, described
First field is used for closing screen operation, and described second field is used for forcing standby operation;
Preferably, described by described second force standby interface in inner nuclear layer, write the first field and the second field,
Described first field is used for closing screen operation, and described second field is used for forcing standby operation, including:
Interface write in "/sys/class/amhdmitx/amhdmitx0/config " is forced by described second
" video_off " field, described " video_off " field is used for closing screen operation;
Write " force_suspend " field in "/sys/power/wake_unlock " again.
Step 104, carries out described pressure by the standby function of pressure in the 3rd standby interface of pressure of described inner nuclear layer
Standby operation.
Preferably, described by inner nuclear layer the 3rd pressure standby interface in standby function carry out the standby behaviour of described pressure
Make, including:
Field whether is had to write by described inner nuclear layer detection "/sys/power/wake_unlock ";
If detecting, "/sys/power/wake_unlock " has field to write, then recall to the wake_ in described inner nuclear layer
Unlock_store function.
Preferably, detect that "/sys/power/wake_unlock " has field to write if described, then recall to described kernel
Wake_unlock_store function in Ceng, including:
If detecting, "/sys/power/wake_unlock " has " force_suspend " field to write, then not be used in red
Searching described wake_lock in black several chained list and wake up whether lock exists up, directly invoke described inner nuclear layer the 3rd forces standby connecing
Mouthful, enter the most standby;
Wherein, if the standby function of described pressure for there being the default overall situation to force to treat when detecting wake_lock and waking up lock up
Machine mark does not the most detect described wake_lock and wakes up lock up, directly invokes the 3rd standby interface of pressure of described inner nuclear layer, enters true
Standby.
Concrete, as in figure 2 it is shown, a kind of Set Top Box that Fig. 2 is the embodiment of the present invention to be provided forces standby method signal
Figure.
Adding in PowerManager and force standby interface forcesuspend, this interface is supplied directly to upper layer application
Call with system.
As the call flow of other interfaces such as reboot, the realization of forcesuspend also exists
In PowerManagerService, the force_suspend being transferred in the power.c of hardware layer eventually through jni connects
Mouthful.
Force_suspend interface is first toward write in "/sys/class/amhdmitx/amhdmitx0/config "
" video_off " field, i.e. carries out closing screen operation;Then toward "/sys/power/wake_unlock " the inside write " force_
Suspend " field.
In kernel, realize an interface force_suspend, inside this interface, suspend function is added work queue
And be immediately performed.
Once "/sys/power/wake_unlock " has field to write, and in kernel, wake_unlock_store function is
Can be called back eventually, before calling real wake_unlock, understand it here first can find whether this lock is deposited in red-black number chained list
, if there is no the most directly returning, do not continue operation.So, we here add a judgement, if the field come into
(field i.e. read out from "/sys/power/wake_unlock ") is " force_suspend ", then need not judge to be locked in
Existence in red-black number chained list, directly invokes the interface force_suspend that previous step realizes, enters the most standby.
Certainly, due to the difference of standby mode, kernel has individual global variable to control standby mode, strong due to us
Make and standby belong to the most standby, so, need to be set to true standby mode before calling suspend.
Kernel has the mechanism of many places detection lock, though no exception in suspend function, so also to transform
Suspend function a: overall situation is set in force_suspend function and forces standby mark, lock at suspend function check
Place newly add a judgement, pressure standby mark once detected, the most do not detect lock, continue down to perform.
It addition, every standby preparation is ready will enter system standby when, kernel also can be adjusted for the last time
With the existence of power_suspend_late function check lock, if there being lock, then wake up system up.So the most also will be by upper
The newly added judgement of pressure standby mark that one step is added judges that no needs detects lock.
Aforesaid way can realize normal Standby success, and checking includes normal condition and abnormal conditions, and normal condition includes
Force when playing various video standby, include forcing during each interface operation standby, plug peripheral hardware.Abnormal conditions include by answering
Carry out forcing with not discharging lock after obtaining lock standby, obtained by application circulation and lock and carry out forcing standby.
The embodiment of the present invention provides a kind of Set Top Box to force standby method, increases by first in framework layer and forces standby connecing
Mouthful, described first forces standby interface to be used for connecting upper layer application and system;Force standby interface by described first and preset
Call method calls the second standby interface of pressure of hardware layer;Standby interface is forced to write the in inner nuclear layer by described second
One field and the second field, described first field is used for closing screen operation, and described second field is used for forcing standby operation;By institute
The standby function of pressure stated in the 3rd standby interface of pressure of inner nuclear layer carries out described pressure standby operation.
It is the flow process signal that the another kind of Set Top Box that the embodiment of the present invention provides forces standby method with reference to Fig. 3, Fig. 3
Figure.
As it is shown on figure 3, described Set Top Box forces standby method to include:
Step 301, increases by the first standby interface of pressure in framework layer, and described first forces standby interface to be used for connecting upper strata
Application and system;
Step 302, by the PowerManagerService of described framework layer, then is transferred to described hardware layer by jni
The second standby interface of pressure in power.c;
Step 303, forces interface to "/sys/class/amhdmitx/amhdmitx0/config " by described second
Middle write " video_off " field, described " video_off " field is used for closing screen operation;Again to "/sys/power/wake_
Unlock " middle write " force_suspend " field;
Whether step 304, have field to write by described inner nuclear layer detection "/sys/power/wake_unlock ";
Step 305, first searches described wake_lock in red-black number chained list by described inner nuclear layer and wakes up whether lock is deposited up
?;If not existing, the most do not continue operation;
Step 306, if detecting, "/sys/power/wake_unlock " has " force_suspend " field to write, then
It not be used in red-black number chained list and search described wake_lock and wake up whether lock exists up, directly invoke the three strongest ones of described inner nuclear layer
Make standby interface, enter the most standby.
It is the flow process signal that the another kind of Set Top Box that the embodiment of the present invention provides forces standby method with reference to Fig. 4, Fig. 4
Figure.
As shown in Figure 4, described Set Top Box forces standby method to include:
Step 401, increases by the first standby interface of pressure in framework layer, and described first forces standby interface to be used for connecting upper strata
Application and system;
Step 402, by the PowerManagerService of described framework layer, then is transferred to described hardware layer by jni
The second standby interface of pressure in power.c;
Step 403, forces interface to "/sys/class/amhdmitx/amhdmitx0/config " by described second
Middle write " video_off " field, described " video_off " field is used for closing screen operation;Again to "/sys/power/wake_
Unlock " middle write " force_suspend " field;
Whether step 404, have field to write by described inner nuclear layer detection "/sys/power/wake_unlock ";
Step 405, first searches described wake_lock in red-black number chained list by described inner nuclear layer and wakes up whether lock is deposited up
?;If not existing, the most do not continue operation;
Step 406, if detecting, "/sys/power/wake_unlock " has " force_suspend " field to write, then
It not be used in red-black number chained list and search described wake_lock and wake up whether lock exists up, directly invoke the three strongest ones of described inner nuclear layer
Make standby interface;
Step 407, the global variable arranging described inner nuclear layer is true standby mode;
Step 408, enters the most standby.
It is the flow process signal that the another kind of Set Top Box that the embodiment of the present invention provides forces standby method with reference to Fig. 5, Fig. 5
Figure.
As it is shown in figure 5, described Set Top Box forces standby method to include:
Step 501, increases by the first standby interface of pressure in framework layer, and described first forces standby interface to be used for connecting upper strata
Application and system;
Step 502, by the PowerManagerService of described framework layer, then is transferred to described hardware layer by jni
The second standby interface of pressure in power.c;
Step 503, forces interface to "/sys/class/amhdmitx/amhdmitx0/config " by described second
Middle write " video_off " field, described " video_off " field is used for closing screen operation;Again to "/sys/power/wake_
Unlock " middle write " force_suspend " field;
Whether step 504, have field to write by described inner nuclear layer detection "/sys/power/wake_unlock ";
Step 505, first searches described wake_lock in red-black number chained list by described inner nuclear layer and wakes up whether lock is deposited up
?;If not existing, the most do not continue operation;
Step 506, if detecting, "/sys/power/wake_unlock " has " force_suspend " field to write, then
It not be used in red-black number chained list and search described wake_lock and wake up whether lock exists up, directly invoke the three strongest ones of described inner nuclear layer
Make standby interface, enter the most standby;
Step 507, when system enters described true standby mode, recalls power_suspend_ by described inner nuclear layer
Wake_lock described in late function check wakes up whether lock exists up;If described wake_lock wakes up up it is latched in, then wakes up institute up
State system.
It is the functional module signal that a kind of Set Top Box that the embodiment of the present invention provides forces standby device with reference to Fig. 6, Fig. 6
Figure.
As shown in Figure 6, described device includes:
Increasing module 601, for increasing by the first standby interface of pressure in framework layer, described first forces standby interface to be used for
Connect upper layer application and system;
Calling module 602, for forcing standby interface and default call method to call the of hardware layer by described first
Two force standby interface;
Preferably, described calling module 602, specifically for:
By the PowerManagerService of described framework layer, then it is transferred to the power.c of described hardware layer by jni
In second pressure standby interface.
Writing module 603, for forcing standby interface to write the first field and second in inner nuclear layer by described second
Field, described first field is used for closing screen operation, and described second field is used for forcing standby operation;
Preferably, said write module 603, specifically for:
Interface write in "/sys/class/amhdmitx/amhdmitx0/config " is forced by described second
" video_off " field, described " video_off " field is used for closing screen operation;
Write " force_suspend " field in "/sys/power/wake_unlock " again.
Standby module 604, for carrying out by the standby function of pressure in the 3rd of described inner nuclear layer the standby interface of pressure
Described pressure standby operation.
Preferably, described standby module 604, specifically for:
Field whether is had to write by described inner nuclear layer detection "/sys/power/wake_unlock ";
If detecting, "/sys/power/wake_unlock " has field to write, then by the wake_ in described inner nuclear layer
Unlock_store function is called back.
Preferably, described standby module 604, also particularly useful for:
If detecting, "/sys/power/wake_unlock " has " force_suspend " field to write, then not be used in red
Searching described wake_lock in black several chained list and wake up whether lock exists up, directly invoke described inner nuclear layer the 3rd forces standby connecing
Mouthful, enter the most standby;
Wherein, if the standby function of described pressure for there being the default overall situation to force to treat when detecting wake_lock and waking up lock up
Machine mark does not the most detect described wake_lock and wakes up lock up, directly invokes the 3rd standby interface of pressure of described inner nuclear layer, enters true
Standby.
Preferably, described device also includes:
Search module, before the wake_unlock_store function in described inner nuclear layer is called back, by described
Inner nuclear layer is first searched described wake_lock in red-black number chained list and is waken up whether lock exists up;If not existing, the most do not continue operation.
Preferably, described device also includes:
Module is set, for directly invoke described inner nuclear layer the 3rd pressure standby interface, enters the most standby before, setting
The global variable of described inner nuclear layer is true standby mode.
Preferably, described device also includes:
Wake module, for when system enters described true standby mode, recalling power_ by described inner nuclear layer
Wake_lock described in suspend_late function check wakes up whether lock exists up;If described wake_lock wakes up up it is latched in,
Then wake up described system up.
The embodiment of the present invention provides a kind of Set Top Box to force standby device, increases by first in framework layer and forces standby connecing
Mouthful, described first forces standby interface to be used for connecting upper layer application and system;Force standby interface by described first and preset
Call method calls the second standby interface of pressure of hardware layer;Standby interface is forced to write the in inner nuclear layer by described second
One field and the second field, described first field is used for closing screen operation, and described second field is used for forcing standby operation;By institute
The standby function of pressure stated in the 3rd standby interface of pressure of inner nuclear layer carries out described pressure standby operation.
The know-why of the embodiment of the present invention is described above in association with specific embodiment.These describe and are intended merely to explain this
The principle of inventive embodiments, and the restriction to embodiment of the present invention protection domain can not be construed to by any way.Based on herein
Explanation, those skilled in the art need not to pay performing creative labour, and can to associate other of the embodiment of the present invention concrete
Embodiment, within these modes fall within the protection domain of the embodiment of the present invention.
Claims (16)
1. a Set Top Box forces standby method, it is characterised in that described method includes:
Increasing by the first standby interface of pressure in framework layer, described first forces standby interface to be used for connecting upper layer application and system;
Standby interface and default call method is forced to call the second standby interface of pressure of hardware layer by described first;
Forcing standby interface to write the first field and the second field in inner nuclear layer by described second, described first field is used for
Guan Ping operates, and described second field is used for forcing standby operation;
Described pressure standby operation is carried out by the standby function of pressure in the 3rd standby interface of pressure of described inner nuclear layer.
Method the most according to claim 1, it is characterised in that described by the described first standby interface of pressure and default tune
Standby interface is forced with the second of method call hardware layer, including:
By the PowerManagerService of described framework layer, then it is transferred in the power.c of described hardware layer by jni
Second forces standby interface.
Method the most according to claim 1, it is characterised in that described by described second force standby interface at inner nuclear layer
Middle write the first field and the second field, described first field is used for closing screen operation, and described second field is used for forcing standby behaviour
Make, including:
Interface write " video_ in "/sys/class/amhdmitx/amhdmitx0/config " is forced by described second
Off " field, described " video_off " field is used for closing screen operation;
Write " force_suspend " field in "/sys/power/wake_unlock " again.
4. according to the method described in claims 1 to 3 any one, it is characterised in that described the 3rd pressure by inner nuclear layer
Standby function in standby interface carries out described pressure standby operation, including:
Field whether is had to write by described inner nuclear layer detection "/sys/power/wake_unlock ";
If detecting, "/sys/power/wake_unlock " has field to write, then recall to the wake_ in described inner nuclear layer
Unlock_store function.
Method the most according to claim 4, it is characterised in that the wake_unlock_store function in described inner nuclear layer
Before being called back, also include:
First in red-black number chained list, search described wake_lock by described inner nuclear layer and wake up whether lock exists up;
If not existing, the most do not continue operation.
Method the most according to claim 4, it is characterised in that "/sys/power/wake_unlock " detected if described
There is field to write, then recall to the wake_unlock_store function in described inner nuclear layer, including:
If detecting, "/sys/power/wake_unlock " has " force_suspend " field to write, then not be used in red-black number
Chained list is searched described wake_lock and wakes up whether lock exists up, directly invoke the 3rd standby interface of pressure of described inner nuclear layer, enter
Enter the most standby;
Wherein, if the standby function of described pressure is for having the default overall situation to force standby mark when detecting wake_lock and waking up lock up
Knowledge does not the most detect described wake_lock and wakes up lock up, directly invokes the 3rd standby interface of pressure of described inner nuclear layer, enters and really treat
Machine.
Method the most according to claim 6, it is characterised in that described in directly invoke described inner nuclear layer the 3rd pressure standby
Interface, enter the most standby before, also include:
The global variable arranging described inner nuclear layer is true standby mode.
Method the most according to claim 6, it is characterised in that described method also includes:
When system enters described true standby mode, recall power_suspend_late function check by described inner nuclear layer
Described wake_lock wakes up whether lock exists up;
If described wake_lock wakes up up it is latched in, then wakes up described system up.
9. a Set Top Box forces standby device, it is characterised in that described device includes:
Increasing module, for increasing by the first standby interface of pressure in framework layer, described first forces standby interface for connecting
Layer application and system;
Calling module, for treating by the described first the second pressure forcing standby interface and default call method to call hardware layer
Machine interface;
Writing module, for forcing standby interface to write the first field and the second field, institute in inner nuclear layer by described second
Stating the first field and operate for closing screen, described second field is used for forcing standby operation;
Standby module, for carrying out described pressure by the standby function of pressure in the 3rd of described inner nuclear layer the standby interface of pressure
Standby operation.
Device the most according to claim 9, it is characterised in that described calling module, specifically for:
By the PowerManagerService of described framework layer, then it is transferred in the power.c of described hardware layer by jni
Second forces standby interface.
11. devices according to claim 9, it is characterised in that said write module, specifically for:
Interface write " video_ in "/sys/class/amhdmitx/amhdmitx0/config " is forced by described second
Off " field, described " video_off " field is used for closing screen operation;
Write " force_suspend " field in "/sys/power/wake_unlock " again.
12. according to the device described in claim 9 to 11 any one, it is characterised in that described standby module, specifically for:
Field whether is had to write by described inner nuclear layer detection "/sys/power/wake_unlock ";
If detecting, "/sys/power/wake_unlock " has field to write, then recall to the wake_ in described inner nuclear layer
Unlock_store function.
13. devices according to claim 12, it is characterised in that described device also includes:
Search module, before the wake_unlock_store function in described inner nuclear layer is called back, by described kernel
Layer is first searched described wake_lock in red-black number chained list and is waken up whether lock exists up;If not existing, the most do not continue operation.
14. devices according to claim 12, it is characterised in that described standby module, also particularly useful for:
If detecting, "/sys/power/wake_unlock " has " force_suspend " field to write, then not be used in red-black number
Chained list is searched described wake_lock and wakes up whether lock exists up, directly invoke the 3rd standby interface of pressure of described inner nuclear layer, enter
Enter the most standby;
Wherein, if the standby function of described pressure is for having the default overall situation to force standby mark when detecting wake_lock and waking up lock up
Knowledge does not the most detect described wake_lock and wakes up lock up, directly invokes the 3rd standby interface of pressure of described inner nuclear layer, enters and really treat
Machine.
15. devices according to claim 14, it is characterised in that described device also includes:
Module is set, for directly invoke described inner nuclear layer the 3rd pressure standby interface, enters the most standby before, arrange described in
The global variable of inner nuclear layer is true standby mode.
16. devices according to claim 14, it is characterised in that described device also includes:
Wake module, for when system enters described true standby mode, recalling power_ by described inner nuclear layer
Wake_lock described in suspend_late function check wakes up whether lock exists up;If described wake_lock wakes up up it is latched in,
Then wake up described system up.
Priority Applications (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610804949.6A CN106331864B (en) | 2016-09-06 | 2016-09-06 | A kind of set-top box forces standby method and device |
PCT/CN2017/099233 WO2018045887A1 (en) | 2016-09-06 | 2017-08-28 | Method and apparatus for force standby of set top box |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610804949.6A CN106331864B (en) | 2016-09-06 | 2016-09-06 | A kind of set-top box forces standby method and device |
Publications (2)
Publication Number | Publication Date |
---|---|
CN106331864A true CN106331864A (en) | 2017-01-11 |
CN106331864B CN106331864B (en) | 2019-05-07 |
Family
ID=57787972
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201610804949.6A Active CN106331864B (en) | 2016-09-06 | 2016-09-06 | A kind of set-top box forces standby method and device |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN106331864B (en) |
WO (1) | WO2018045887A1 (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2018045887A1 (en) * | 2016-09-06 | 2018-03-15 | 深圳创维数字技术有限公司 | Method and apparatus for force standby of set top box |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20090316796A1 (en) * | 2006-05-30 | 2009-12-24 | Nds Technologies France | Digital Television Decoder |
US20100217968A1 (en) * | 2009-02-20 | 2010-08-26 | Lenovo (Singapore) Pte, Ltd. | Apparatus, System, and Method for Accurate Automated Scheduling of Computer Suspend and Resume |
CN101964861A (en) * | 2010-10-11 | 2011-02-02 | 深圳市九洲电器有限公司 | Standby control method and device of set-top box and set-top box |
US8305249B2 (en) * | 2008-07-18 | 2012-11-06 | EchoStar Technologies, L.L.C. | Systems and methods for controlling power consumption in electronic devices |
CN105354491A (en) * | 2015-10-12 | 2016-02-24 | 广东小天才科技有限公司 | Standby state detection method and device of intelligent terminal |
CN105376645A (en) * | 2014-08-25 | 2016-03-02 | 深圳市中兴微电子技术有限公司 | Set-top box and power consumption reduction method |
Family Cites Families (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101282431B (en) * | 2008-05-06 | 2012-04-04 | 华为技术有限公司 | Set-top box and standby, awakening method thereof |
CN101715045B (en) * | 2009-11-25 | 2012-06-06 | 福建新大陆通信科技股份有限公司 | Method for realizing low power consumption and true standby function of set-top box |
CN103024543A (en) * | 2012-12-21 | 2013-04-03 | 青岛海信宽带多媒体技术有限公司 | Implementation method and implementation device for low power consumption of set top box |
CN104394458A (en) * | 2014-11-19 | 2015-03-04 | 四川长虹电器股份有限公司 | Flat television Wi-Fi (Wireless Fidelity) module passive standby power supply control method and circuit |
CN106331864B (en) * | 2016-09-06 | 2019-05-07 | 深圳创维数字技术有限公司 | A kind of set-top box forces standby method and device |
-
2016
- 2016-09-06 CN CN201610804949.6A patent/CN106331864B/en active Active
-
2017
- 2017-08-28 WO PCT/CN2017/099233 patent/WO2018045887A1/en active Application Filing
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20090316796A1 (en) * | 2006-05-30 | 2009-12-24 | Nds Technologies France | Digital Television Decoder |
US8305249B2 (en) * | 2008-07-18 | 2012-11-06 | EchoStar Technologies, L.L.C. | Systems and methods for controlling power consumption in electronic devices |
US20100217968A1 (en) * | 2009-02-20 | 2010-08-26 | Lenovo (Singapore) Pte, Ltd. | Apparatus, System, and Method for Accurate Automated Scheduling of Computer Suspend and Resume |
CN101964861A (en) * | 2010-10-11 | 2011-02-02 | 深圳市九洲电器有限公司 | Standby control method and device of set-top box and set-top box |
CN105376645A (en) * | 2014-08-25 | 2016-03-02 | 深圳市中兴微电子技术有限公司 | Set-top box and power consumption reduction method |
CN105354491A (en) * | 2015-10-12 | 2016-02-24 | 广东小天才科技有限公司 | Standby state detection method and device of intelligent terminal |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2018045887A1 (en) * | 2016-09-06 | 2018-03-15 | 深圳创维数字技术有限公司 | Method and apparatus for force standby of set top box |
Also Published As
Publication number | Publication date |
---|---|
WO2018045887A1 (en) | 2018-03-15 |
CN106331864B (en) | 2019-05-07 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US10775875B2 (en) | Devices and methods for switching and communication among multiple operating systems and application management methods thereof | |
US9894605B2 (en) | Low-power wearable devices and methods for switching and communication among multiple operating systems and application management methods thereof | |
US7409537B2 (en) | Fast booting an operating system from an off state | |
KR20130127465A (en) | Fast computer startup | |
WO2014166231A1 (en) | Method and device for setting application program state | |
EP1946215A1 (en) | Direct computing experience | |
CN101539803A (en) | Standby management method and relevant standby management module thereof | |
CN108446199A (en) | A kind of detection method and device using interim card | |
US20170269984A1 (en) | Systems and methods for improved detection of processor hang and improved recovery from processor hang in a computing device | |
US20190004818A1 (en) | Method of UEFI Shell for Supporting Power Saving Mode and Computer System thereof | |
CN102968174A (en) | Deep sleep awakening method of android device | |
CN109670349A (en) | The hardware structure of trusted computer and the credible starting method of computer | |
CN105353864A (en) | Static power consumption management method and system for electronic device | |
CN103885565A (en) | Dormancy method and dormancy system for intelligent equipment | |
CN104506362A (en) | Method for system state switching and monitoring on CC-NUMA (cache coherent-non uniform memory access architecture) multi-node server | |
CN106371938A (en) | Automatic intelligent delaying shutdown system and method | |
US10248486B2 (en) | Memory monitor | |
CN105242770B (en) | A kind of method and system of Android device folding lid | |
CN106331864A (en) | Method and device for forced standby for set-top box | |
CN104331388B (en) | Microprocessor and the method for the internuclear synchronization of processing in microprocessor | |
CN104238997B (en) | Microprocessor and its execution method | |
CN101436097B (en) | Electronic device and wake-up method thereof | |
CN103376877B (en) | A kind of multi-core processor clock control device and control method | |
US20170308154A1 (en) | Fast system setting changes | |
CN102023887B (en) | Power supply management method of computer system and computer system |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |