CN107544659B - Mobile terminal, sensor and display screen common power control method and storage medium - Google Patents

Mobile terminal, sensor and display screen common power control method and storage medium Download PDF

Info

Publication number
CN107544659B
CN107544659B CN201710895496.7A CN201710895496A CN107544659B CN 107544659 B CN107544659 B CN 107544659B CN 201710895496 A CN201710895496 A CN 201710895496A CN 107544659 B CN107544659 B CN 107544659B
Authority
CN
China
Prior art keywords
direction sensor
power supply
display screen
sensor
turned
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
CN201710895496.7A
Other languages
Chinese (zh)
Other versions
CN107544659A (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.)
Shenzhen Yinghu Technology Co ltd
Original Assignee
Huizhou TCL Mobile Communication Co 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 Huizhou TCL Mobile Communication Co Ltd filed Critical Huizhou TCL Mobile Communication Co Ltd
Priority to CN201710895496.7A priority Critical patent/CN107544659B/en
Publication of CN107544659A publication Critical patent/CN107544659A/en
Application granted granted Critical
Publication of CN107544659B publication Critical patent/CN107544659B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Telephone Function (AREA)
  • Power Sources (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

The invention discloses a mobile terminal, a sensor and display screen common power control method and a storage medium, wherein the method comprises the following steps: the method comprises the steps that the mobile terminal detects whether the operation of opening or closing the touch screen exists or not, and when the operation of opening or closing the touch screen is detected, whether the frequency of the operation of opening or closing the touch screen reaches a preset frequency upper limit value or not is counted in a first preset time period; when the number of times of counting the opening or closing operations of the touch screen in the first preset time period is judged to reach a preset upper limit value, the power-down function of the touch screen is automatically forbidden; and after the touch screen power-off function is forbidden to wait for a second preset time period, the power-off function of the touch screen is automatically recovered if no new touch screen opening or closing operation is detected. The invention can avoid the problems that continuous complex power-on and power-off operation easily causes the abnormal work of the touch screen, which easily causes the failure of the processing on the mobile terminal software and the crash in severe cases.

Description

Mobile terminal, sensor and display screen common power control method and storage medium
Technical Field
The invention relates to the field of mobile terminals, in particular to a mobile terminal, a sensor and display screen common power control method and a storage medium.
Background
At present, the mobile terminal is provided with a direction sensor, and the current direction of the mobile terminal can be sensed through the direction sensor, so that the display of the mobile terminal is controlled according to the direction sensor, for example, when the mobile terminal rotates 180 degrees, the action can be sensed by the direction sensor, and the display content is controlled to rotate 180 degrees accordingly. In the prior art, the power supply of the display screen and the power supply of the direction sensor are mutually independent, the two power supplies are respectively controlled, however, two paths of power supplies are needed, the power consumption is high, and the battery endurance of the mobile terminal is influenced.
Therefore, the prior art has defects and needs to be improved and developed.
Disclosure of Invention
The present invention provides a mobile terminal, a method for controlling a common power supply of a sensor and a display, and a storage medium, which are used to solve the above-mentioned drawbacks of the prior art. The invention provides a control method of a common power supply of a direction sensor and a display screen, which aims to ensure that the direction sensor and the display screen of a mobile terminal only need to use one path of power supply, reduce the power consumption of the mobile terminal in a working state, provide the battery endurance of the mobile terminal and provide convenience for users.
The technical scheme adopted by the invention for solving the technical problem is as follows:
a common power control method for a mobile terminal sensor and a display screen comprises the following steps:
connecting a direction sensor of a mobile terminal with a display screen in advance to supply power;
when the power supply of the display screen is turned on, detecting whether the direction sensor is turned on, if so, depriving the direction sensor of the control right of the power supply of the direction sensor, and controlling the power supply of the direction sensor to output all the time;
when the power supply of the display screen is turned off, detecting whether the direction sensor is turned on, and if the direction sensor is turned on, returning the control right of the power supply of the direction sensor to the direction sensor;
when the direction sensor is started, detecting whether the power supply of the display screen is started, if so, depriving the direction sensor of the control right of the power supply of the direction sensor, and controlling the power supply of the direction sensor to output all the time; if the power supply of the display screen is not started, the control right of the power supply of the direction sensor is given to the direction sensor, namely, the power supply of the direction sensor is automatically controlled by the direction sensor;
and when the direction sensor is turned off, controlling the power supply of the direction sensor to be turned off.
The mobile terminal sensor and display screen share power supply control method, wherein the display screen power supply and the input power supply of a module where the display screen is located are adopted; the input power supply of the display screen is the display screen power supply, and the input power supply is always output to a module where the display screen is located by the processor after the display screen is started; and when the display screen is turned on, the power supply of the display screen is also turned on, and when the display screen is turned off, the power supply of the display screen is turned off.
The power control method for the mobile terminal sensor and the display screen is characterized in that the direction sensor works in an interruption mode, the power supply of the direction sensor is frequently turned on and off, and the input power supply of a module where the direction sensor is located; the input power supply of the direction sensor is the direction sensor power supply, and the control right of the direction sensor is mastered by the direction sensor under the condition that the display screen power supply is turned off;
the direction sensor sends a request for turning on the power supply of the direction sensor to the processor, so that the processor outputs the power supply of the direction sensor to a module where the direction sensor is located; the direction sensor sends a request for turning off the power supply of the direction sensor to the processor, so that the processor stops outputting the power supply of the direction sensor to the module where the direction sensor is located.
The power control method for the mobile terminal sensor and the display screen is shared, wherein the step of depriving the direction sensor of the control right of the direction sensor to the power supply of the direction sensor comprises the following steps:
depriving the direction sensor of control over the direction sensor power means that the processor ignores the request of the module in which the direction sensor is located to turn on or off the direction sensor power.
The method for controlling the power sharing of the sensor and the display screen of the mobile terminal comprises the following steps that the control right of the power supply of the direction sensor is returned to the direction sensor, namely a processor receives a request of a module where the direction sensor is located for turning on or turning off the power supply of the direction sensor; if the module where the direction sensor is located sends a request for turning on the power supply of the direction sensor to the processor, the processor outputs the power supply of the direction sensor; and if the module where the direction sensor is located sends a request for turning off the power supply of the direction sensor to the processor, the processor stops outputting the power supply of the direction sensor.
A mobile terminal comprises a processor and a memory connected with the processor, wherein the memory stores a sensor and display screen common power control program, and the sensor and display screen common power control program realizes the following steps when executed by the processor:
when the power supply of the display screen is turned on, detecting whether the direction sensor is turned on, if so, depriving the direction sensor of the control right of the power supply of the direction sensor, and controlling the power supply of the direction sensor to output all the time;
when the power supply of the display screen is turned off, detecting whether the direction sensor is turned on, and if the direction sensor is turned on, returning the control right of the power supply of the direction sensor to the direction sensor;
when the direction sensor is started, detecting whether the power supply of the display screen is started, if so, depriving the direction sensor of the control right of the power supply of the direction sensor, and controlling the power supply of the direction sensor to output all the time; if the power supply of the display screen is not started, the control right of the power supply of the direction sensor is given to the direction sensor, namely, the power supply of the direction sensor is automatically controlled by the direction sensor;
when the direction sensor is turned off, controlling the power supply of the direction sensor to be turned off;
the processor is used for calling the common power supply control program instruction of the sensor and the display screen.
The mobile terminal further comprises a display screen and a direction sensor which are respectively connected with the processor;
the processor also comprises a display screen power supply control module, a direction sensor power supply control module, a display screen control module and a direction sensor control module:
the display screen power supply control module is connected with the display screen and provides a power supply signal for the display screen;
the direction sensor power supply control module is connected with the direction sensor and provides a power supply signal for the direction sensor;
the display screen control module is used for receiving the operation of starting and closing the display screen by a user;
the direction sensor control module is used for receiving the operation of starting and closing the direction sensor by a user.
The mobile terminal comprises a display screen power supply and an input power supply of a module where the display screen is located; the input power supply of the display screen is the display screen power supply, and the input power supply is always output to a module where the display screen is located by the processor after the display screen is started; the power supply of the display screen is turned on when the display screen is turned on, and the power supply of the display screen is turned off when the display screen is turned off;
the direction sensor works in an interruption mode, the power supply of the direction sensor is a power supply which is frequently switched on and off, and the input power supply of a module where the direction sensor is located; the input power supply of the direction sensor is the direction sensor power supply, and the control right of the direction sensor is mastered by the direction sensor under the condition that the display screen power supply is turned off;
the direction sensor sends a request for turning on the power supply of the direction sensor to the processor, so that the processor outputs the power supply of the direction sensor to a module where the direction sensor is located; the direction sensor sends a request for turning off the power supply of the direction sensor to the processor, so that the processor stops outputting the power supply of the direction sensor to the module where the direction sensor is located.
The mobile terminal deprives the control right of the direction sensor to the direction sensor power supply, and the processor ignores the request of a module where the direction sensor is located to turn on or turn off the direction sensor power supply;
the step of returning the control right of the power supply of the direction sensor to the direction sensor means that the processor receives a request of a module where the direction sensor is located for turning on or turning off the power supply of the direction sensor; if the module where the direction sensor is located sends a request for turning on the power supply of the direction sensor to the processor, the processor outputs the power supply of the direction sensor; and if the module where the direction sensor is located sends a request for turning off the power supply of the direction sensor to the processor, the processor stops outputting the power supply of the direction sensor.
A storage medium stores a sensor and display screen common power control program, and the sensor and display screen common power control program realizes the steps of the mobile terminal sensor and display screen common power control method when executed by a processor.
Has the advantages that: the method comprises the steps that when the power supply of the display screen is started, whether the direction sensor is started or not is detected, if the direction sensor is started, the control right of the direction sensor to the power supply of the direction sensor is deprived, and the power supply of the direction sensor is controlled to output all the time; when the power supply of the display screen is turned off, detecting whether the direction sensor is turned on, and if the direction sensor is turned on, returning the control right of the power supply of the direction sensor to the direction sensor; when the direction sensor is started, detecting whether the power supply of the display screen is started, if so, depriving the direction sensor of the control right of the power supply of the direction sensor, and controlling the power supply of the direction sensor to output all the time; if the power supply of the display screen is not started, the control right of the power supply of the direction sensor is given to the direction sensor, namely, the power supply of the direction sensor is automatically controlled by the direction sensor; and when the direction sensor is turned off, controlling the power supply of the direction sensor to be turned off. The method provided by the invention aims to ensure that the direction sensor and the display screen of the mobile terminal only need to use one path of power supply, reduce the power consumption of the mobile terminal in the working state, provide the battery endurance of the mobile terminal and provide convenience for users.
Drawings
FIG. 1 is a flowchart illustrating a method for controlling power sharing between a sensor and a display screen of a mobile terminal according to a preferred embodiment of the present invention.
Fig. 2 is a block diagram of a power supply shared by a sensor and a display screen of the mobile terminal according to the present invention.
Fig. 3 is a functional block diagram of a mobile terminal according to a preferred embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention clearer and clearer, the present invention is further described in detail below with reference to the accompanying drawings and examples. It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
Example one
Referring to fig. 1, fig. 1 is a flowchart illustrating a method for controlling a common power supply of a sensor and a display screen of a mobile terminal according to a preferred embodiment of the present invention. As shown in fig. 1, the method for controlling the common power supply of the sensor and the display screen of the mobile terminal according to the embodiment of the present invention includes the following steps:
step S10, connecting a direction sensor of the mobile terminal with a display screen in advance to supply power;
in the embodiment of the present invention, as shown in fig. 2, the mobile terminal includes a processor 100 and a memory 400 connected to the processor 100.
The mobile terminal further comprises a display screen 200 and a direction sensor 300 respectively connected with the processor 100;
the processor 100 also includes a display power control module 120, a direction sensor power control module 140, a display control module 110, and a direction sensor control module 130.
The display screen power control module 120 is connected to the display screen 200 and provides a power signal to the display screen 200;
the direction sensor power control module 140 is connected to the direction sensor 300, which provides a power signal to the direction sensor.
The display screen control module 110 is configured to receive operations of starting and closing a display screen by a user;
the direction sensor control module 130 is used for receiving the operation of starting and closing the direction sensor by the user.
In the embodiment of the present invention, the direction sensor 300 of the mobile terminal is connected to the display screen 200 for power supply.
The display screen power supply is an input power supply of the module where the display screen is located; the input power supply of the display screen is the display screen power supply, and the input power supply is always output to a module where the display screen is located by the processor after the display screen is started; and when the display screen is turned on, the power supply of the display screen is also turned on, and when the display screen is turned off, the power supply of the display screen is turned off.
In the embodiment of the invention, the direction sensor works in an interruption mode, the power supply of the direction sensor is a power supply which is frequently turned on and off, and the input power supply of a module where the direction sensor is positioned; the input power of the direction sensor, namely the direction sensor power, is controlled by the direction sensor under the condition that the display screen power is turned off.
The direction sensor sends a request for turning on the power supply of the direction sensor to the processor, so that the processor outputs the power supply of the direction sensor to a module where the direction sensor is located; the direction sensor sends a request for turning off the power supply of the direction sensor to the processor, so that the processor stops outputting the power supply of the direction sensor to the module where the direction sensor is located.
It should be noted that:
the input power of the display screen 200, if the display screen control module 110 receives the operation of starting the display screen by the user, the display screen 200 is started, and meanwhile, the display screen power control module 120 provides a power signal to the display screen; if the display control module 110 receives an operation of turning off the display by the user, the display 200 is turned off, and the power supply signal to the display is stopped by the display power control module 120.
The input power of the direction sensor 300 is controlled by the direction sensor 300, if the direction sensor control module 130 receives the operation of starting the direction sensor by the user, the direction sensor 130 is started, when the direction sensor power control module 140 receives the power on request sent by the direction sensor 300, the direction sensor power control module 140 provides a power signal to the direction sensor 300, and when the direction sensor power control module 140 receives the power off request sent by the direction sensor 300, the direction sensor power control module 140 stops providing the power signal to the direction sensor 300; if the direction sensor control module 130 receives an operation of turning off the direction sensor by the user, the direction sensor 300 is turned off, and the power supply signal to the direction sensor is stopped by the direction sensor power supply control module 140.
And step S20, when the power supply of the display screen is turned on, detecting whether the direction sensor is turned on, if so, depriving the control right of the direction sensor to the power supply of the direction sensor, and controlling the power supply of the direction sensor to output all the time.
In the embodiment of the invention, when the power supply of the display screen is turned on, whether the direction sensor is turned on or not is detected, if the direction sensor is turned on, the control right of the direction sensor on the power supply of the direction sensor is deprived, and the power supply of the direction sensor is controlled to output all the time. The deprivation of the control right of the direction sensor to the direction sensor power supply means that the processor ignores the request of the module where the direction sensor is located to turn on or turn off the direction sensor power supply.
And step S30, when the power supply of the display screen is turned off, detecting whether the direction sensor is turned on, and if the direction sensor is turned on, returning the control right of the power supply of the direction sensor to the direction sensor.
In the embodiment of the invention, when the power supply of the display screen is turned off, whether the direction sensor is turned on or not is detected, and if the direction sensor is turned on, the control right of the power supply of the direction sensor is returned to the direction sensor.
The step of returning the control right of the power supply of the direction sensor to the direction sensor means that the processor receives a request of a module where the direction sensor is located for turning on or turning off the power supply of the direction sensor; if the module where the direction sensor is located sends a request for turning on the power supply of the direction sensor to the processor, the processor outputs the power supply of the direction sensor; and if the module where the direction sensor is located sends a request for turning off the power supply of the direction sensor to the processor, the processor stops outputting the power supply of the direction sensor.
Step S40, when the direction sensor is turned on, detecting whether the power supply of the display screen is turned on, if the power supply of the display screen is turned on, depriving the direction sensor of the control right of the power supply of the direction sensor, and controlling the power supply of the direction sensor to output all the time; if the power supply of the display screen is not turned on, the control right of the power supply of the direction sensor is given to the direction sensor, namely, the power supply of the direction sensor is controlled by the direction sensor.
In the embodiment of the invention, the direction sensor works in an interruption mode, the power supply of the direction sensor is a power supply which is frequently turned on and off, and the input power supply of a module where the direction sensor is positioned; the input power of the direction sensor, namely the direction sensor power, is controlled by the direction sensor under the condition that the display screen power is turned off.
And step S50, when the direction sensor is closed, controlling the power supply of the direction sensor to be closed.
In the embodiment of the invention, when the direction sensor is turned off, the power supply of the direction sensor is controlled to be turned off so as to save electric energy and prolong the standby time of the mobile terminal.
The invention is described in further detail below by means of specific application examples:
the method provided by the embodiment comprises the following steps:
when the user starts the display screen function:
step S101, when the display screen control module 110 receives an operation of opening the display screen by a user, whether the function of the direction sensor is already opened or not is obtained through the direction sensor control module 130; if the direction sensor function has been turned on, executing step S102; otherwise, step S103 is executed.
Step S102, setting the direction sensor power control module 140 to ignore the power request (including the power on request and the power off request) sent by the direction sensor 300; and, the direction sensor power control module 140 always outputs a power signal to the direction sensor 300; step S103 is then performed.
Step S103, the display power control module 120 outputs a power signal to the display 200, and the display control module 110 controls the display function to be turned on.
When the user turns off the display screen function:
step S201, when the display screen control module 110 receives the operation of closing the display screen by the user, whether the function of the direction sensor is already started is obtained through the direction sensor control module 130; if the direction sensor function has been turned on, step S202 is performed; otherwise, executing step S203;
step S202, the power supply control module 140 of the direction sensor is arranged to receive the power supply request (including the power supply turn-on request and the power supply turn-off request) sent by the direction sensor 300; that is, the direction sensor 300 controls whether the direction sensor power control module 140 outputs a power signal; then step S203 is executed;
step S203, the display power control module 120 outputs a power signal to the display 200, and the display control module 110 controls the display function to be turned off.
When the user turns on the direction sensor function:
step S301, when the direction sensor control module 130 receives an operation of opening the direction sensor by a user, acquiring whether the function of the display screen is already opened through the display screen control module 110; if the display screen function is already turned on, executing step S302; otherwise, step S303 is executed.
Step S302, the power control module 140 of the direction sensor is configured to ignore the power request (including the power on request and the power off request) sent by the direction sensor 300; and, the direction sensor power control module 140 always outputs a power signal to the direction sensor 300; step S304 is then performed.
Step S303, the power control module 140 of the direction sensor receives power requests (including power on request and power off request) sent by the direction sensor 300; that is, the direction sensor 300 controls whether the direction sensor power control module 140 outputs a power signal; step S304 is then performed.
Step S304, the direction sensor control module 130 controls the direction sensor function to be turned on.
When the user turns off the direction sensor function:
step S401, when the direction sensor control module 130 receives the operation of closing the direction sensor by the user, the direction sensor control module 130 controls the function of the direction sensor to be closed; the output of the power signal is stopped by the direction sensor power control module 140.
Therefore, the method detects whether the direction sensor is started or not when the power supply of the display screen is started, deprives the control right of the direction sensor to the power supply of the direction sensor if the direction sensor is started, and controls the power supply of the direction sensor to output all the time; when the power supply of the display screen is turned off, detecting whether the direction sensor is turned on, and if the direction sensor is turned on, returning the control right of the power supply of the direction sensor to the direction sensor; when the direction sensor is started, detecting whether the power supply of the display screen is started, if so, depriving the direction sensor of the control right of the power supply of the direction sensor, and controlling the power supply of the direction sensor to output all the time; if the power supply of the display screen is not started, the control right of the power supply of the direction sensor is given to the direction sensor, namely, the power supply of the direction sensor is automatically controlled by the direction sensor; and when the direction sensor is turned off, controlling the power supply of the direction sensor to be turned off. The method provided by the invention aims to ensure that the direction sensor and the display screen of the mobile terminal only need to use one path of power supply, reduce the power consumption of the mobile terminal in the working state, provide the battery endurance of the mobile terminal and provide convenience for users.
Of course, it will be understood by those skilled in the art that all or part of the processes of the methods of the above embodiments may be implemented by a sensor and display screen co-powered control program to instruct related hardware (such as a processor, a controller, etc.) to complete the processes. The storage medium may be a memory, a magnetic disk, an optical disk, etc.
Example two
As shown in fig. 3, the mobile terminal of the embodiment of the present invention may be a mobile phone, and as shown in fig. 3, the mobile terminal of the embodiment of the present invention includes a processor 100 and a memory 400 connected to the processor 100, where the memory 400 stores a sensor and display screen common power control program, and when the sensor and display screen common power control program is executed by the processor 100, the following steps are implemented:
when the power supply of the display screen is turned on, detecting whether the direction sensor is turned on, if so, depriving the direction sensor of the control right of the power supply of the direction sensor, and controlling the power supply of the direction sensor to output all the time;
when the power supply of the display screen is turned off, detecting whether the direction sensor is turned on, and if the direction sensor is turned on, returning the control right of the power supply of the direction sensor to the direction sensor;
when the direction sensor is started, detecting whether the power supply of the display screen is started, if so, depriving the direction sensor of the control right of the power supply of the direction sensor, and controlling the power supply of the direction sensor to output all the time; if the power supply of the display screen is not started, the control right of the power supply of the direction sensor is given to the direction sensor, namely, the power supply of the direction sensor is automatically controlled by the direction sensor;
when the direction sensor is turned off, controlling the power supply of the direction sensor to be turned off; as described above.
The processor 100 is configured to invoke the sensor and display screen common power control program instruction.
Further, the mobile terminal further includes a display screen 200 and a direction sensor 300 respectively connected to the processor 100;
the processor 100 further includes a display power control module 120, a direction sensor power control module 140, a display control module 110, and a direction sensor control module 130; as described above.
The display power control module 120 is connected to the display 200 and provides a power signal to the display 200.
The direction sensor power control module 140 is connected to the direction sensor 300, which provides a power signal to the direction sensor 300.
The display screen control module 110 is configured to receive operations of a user to start and close the display screen 200; as described above.
The direction sensor control module 130 is used for receiving the operation of starting and closing the direction sensor by the user.
Further, the display screen power supply is an input power supply of the module where the display screen 200 is located; the input power of the display screen 200, i.e. the display screen power, is always output to the module where the display screen is located by the processor 100 after the display screen is turned on; and when the display screen is turned on, the power supply of the display screen is also turned on, and when the display screen is turned off, the power supply of the display screen is turned off.
The direction sensor works in an interruption mode, the power supply of the direction sensor is a power supply which is frequently switched on and off, and the input power supply of a module where the direction sensor is located; the input power of the direction sensor, namely the direction sensor power, is controlled by the direction sensor under the condition that the display screen power is turned off.
The direction sensor sends a request for turning on the power supply of the direction sensor to the processor 100, so that the processor 100 outputs the power supply of the direction sensor to the module where the direction sensor is located; the direction sensor sends a direction sensor power-off request to the processor 100, thereby causing the processor 100 to stop outputting direction sensor power to the module in which the direction sensor is located.
Further, depriving the direction sensor of control over the direction sensor power means that the processor 100 ignores the request of the module in which the direction sensor is located for turning on or off the direction sensor power;
the returning of the control right of the direction sensor power to the direction sensor means that the processor 100 receives a request for turning on or off the direction sensor power from the module in which the direction sensor is located; if the module in which the direction sensor is located sends a request for turning on the power supply of the direction sensor to the processor 100, the processor 100 outputs the power supply of the direction sensor; if the module in which the direction sensor is located sends a request for turning off the power supply of the direction sensor to the processor 100, the processor 100 stops outputting the power supply of the direction sensor; as described above.
EXAMPLE III
The present embodiment provides a storage medium, where a sensor and display screen power sharing control program is stored, and when the sensor and display screen power sharing control program is executed by the processor 100, the steps of the mobile terminal sensor and display screen power sharing control method are implemented, which are specifically described above.
In summary, the mobile terminal, the sensor and display screen power sharing control method and the storage medium provided by the invention detect whether the direction sensor is turned on when the display screen power is turned on, deprive the direction sensor of the control right of the direction sensor to the direction sensor power if the direction sensor is turned on, and control the direction sensor power to output all the time; when the power supply of the display screen is turned off, detecting whether the direction sensor is turned on, and if the direction sensor is turned on, returning the control right of the power supply of the direction sensor to the direction sensor; when the direction sensor is started, detecting whether the power supply of the display screen is started, if so, depriving the direction sensor of the control right of the power supply of the direction sensor, and controlling the power supply of the direction sensor to output all the time; if the power supply of the display screen is not started, the control right of the power supply of the direction sensor is given to the direction sensor, namely, the power supply of the direction sensor is automatically controlled by the direction sensor; and when the direction sensor is turned off, controlling the power supply of the direction sensor to be turned off. The method provided by the invention aims to ensure that the direction sensor and the display screen of the mobile terminal only need to use one path of power supply, reduce the power consumption of the mobile terminal in the working state, provide the battery endurance of the mobile terminal and provide convenience for users.
It is to be understood that the invention is not limited to the examples described above, but that modifications and variations may be effected thereto by those of ordinary skill in the art in light of the foregoing description, and that all such modifications and variations are intended to be within the scope of the invention as defined by the appended claims.

Claims (10)

1. A common power control method for a mobile terminal sensor and a display screen is characterized by comprising the following steps:
connecting a direction sensor of a mobile terminal with a display screen in advance to supply power;
when the power supply of the display screen is turned on, detecting whether the direction sensor is turned on, if so, depriving the direction sensor of the control right of the power supply of the direction sensor, and controlling the power supply of the direction sensor to output all the time;
when the power supply of the display screen is turned off, detecting whether the direction sensor is turned on, and if the direction sensor is turned on, returning the control right of the power supply of the direction sensor to the direction sensor;
when the direction sensor is started, detecting whether the power supply of the display screen is started, if so, depriving the direction sensor of the control right of the power supply of the direction sensor, and controlling the power supply of the direction sensor to output all the time; if the power supply of the display screen is not started, the control right of the power supply of the direction sensor is given to the direction sensor, namely, the power supply of the direction sensor is automatically controlled by the direction sensor;
and when the direction sensor is turned off, controlling the power supply of the direction sensor to be turned off.
2. The method for controlling the power sharing of the sensor and the display screen of the mobile terminal according to claim 1, wherein the power supply of the display screen is an input power supply of a module where the display screen is located; the input power supply of the display screen is the display screen power supply, and the input power supply is always output to a module where the display screen is located by the processor after the display screen is started; and when the display screen is turned on, the power supply of the display screen is also turned on, and when the display screen is turned off, the power supply of the display screen is turned off.
3. The method for controlling the power sharing of the sensor and the display screen of the mobile terminal according to claim 1, wherein the direction sensor works in an interruption mode, the power supply of the direction sensor is a power supply which is frequently turned on and off, and the input power supply of a module in which the direction sensor is arranged; the input power supply of the direction sensor is the direction sensor power supply, and the control right of the direction sensor is mastered by the direction sensor under the condition that the display screen power supply is turned off;
the direction sensor sends a request for turning on the power supply of the direction sensor to the processor, so that the processor outputs the power supply of the direction sensor to a module where the direction sensor is located; the direction sensor sends a request for turning off the power supply of the direction sensor to the processor, so that the processor stops outputting the power supply of the direction sensor to the module where the direction sensor is located.
4. The method for controlling the power sharing of the sensor and the display screen of the mobile terminal according to claim 1, wherein the step of depriving the direction sensor of the control right of the power supply of the direction sensor comprises the steps of:
depriving the direction sensor of control over the direction sensor power means that the processor ignores the request of the module in which the direction sensor is located to turn on or off the direction sensor power.
5. The method for controlling the power sharing of the sensor and the display screen of the mobile terminal according to claim 1, wherein the step of returning the control right of the power supply of the direction sensor to the direction sensor means that the processor receives a request for turning on or off the power supply of the direction sensor from a module where the direction sensor is located; if the module where the direction sensor is located sends a request for turning on the power supply of the direction sensor to the processor, the processor outputs the power supply of the direction sensor; and if the module where the direction sensor is located sends a request for turning off the power supply of the direction sensor to the processor, the processor stops outputting the power supply of the direction sensor.
6. A mobile terminal is characterized by comprising a processor and a memory connected with the processor, wherein the memory stores a sensor and display screen common power supply control program, and the sensor and display screen common power supply control program realizes the following steps when being executed by the processor:
connecting a direction sensor of a mobile terminal with a display screen in advance to supply power;
when the power supply of the display screen is turned on, detecting whether the direction sensor is turned on, if so, depriving the direction sensor of the control right of the power supply of the direction sensor, and controlling the power supply of the direction sensor to output all the time;
when the power supply of the display screen is turned off, detecting whether the direction sensor is turned on, and if the direction sensor is turned on, returning the control right of the power supply of the direction sensor to the direction sensor;
when the direction sensor is started, detecting whether the power supply of the display screen is started, if so, depriving the direction sensor of the control right of the power supply of the direction sensor, and controlling the power supply of the direction sensor to output all the time; if the power supply of the display screen is not started, the control right of the power supply of the direction sensor is given to the direction sensor, namely, the power supply of the direction sensor is automatically controlled by the direction sensor;
when the direction sensor is turned off, controlling the power supply of the direction sensor to be turned off;
the processor is used for calling the common power supply control program instruction of the sensor and the display screen.
7. The mobile terminal of claim 6, further comprising a display screen and an orientation sensor respectively connected to the processor;
the processor also comprises a display screen power supply control module, a direction sensor power supply control module, a display screen control module and a direction sensor control module;
the display screen power supply control module is connected with the display screen and provides a power supply signal for the display screen;
the direction sensor power supply control module is connected with the direction sensor and provides a power supply signal for the direction sensor;
the display screen control module is used for receiving the operation of starting and closing the display screen by a user;
the direction sensor control module is used for receiving the operation of starting and closing the direction sensor by a user.
8. The mobile terminal of claim 6, wherein the display power supply is an input power supply of a module in which the display is located; the input power supply of the display screen is the display screen power supply, and the input power supply is always output to a module where the display screen is located by the processor after the display screen is started; the power supply of the display screen is turned on when the display screen is turned on, and the power supply of the display screen is turned off when the display screen is turned off;
the direction sensor works in an interruption mode, the power supply of the direction sensor is a power supply which is frequently switched on and off, and the input power supply of a module where the direction sensor is located; the input power supply of the direction sensor is the direction sensor power supply, and the control right of the direction sensor is mastered by the direction sensor under the condition that the display screen power supply is turned off;
the direction sensor sends a request for turning on the power supply of the direction sensor to the processor, so that the processor outputs the power supply of the direction sensor to a module where the direction sensor is located; the direction sensor sends a request for turning off the power supply of the direction sensor to the processor, so that the processor stops outputting the power supply of the direction sensor to the module where the direction sensor is located.
9. The mobile terminal of claim 6, wherein depriving the direction sensor of control over the direction sensor power means that the processor ignores a request from a module in which the direction sensor is located to turn on or off the direction sensor power;
the step of returning the control right of the power supply of the direction sensor to the direction sensor means that the processor receives a request of a module where the direction sensor is located for turning on or turning off the power supply of the direction sensor; if the module where the direction sensor is located sends a request for turning on the power supply of the direction sensor to the processor, the processor outputs the power supply of the direction sensor; and if the module where the direction sensor is located sends a request for turning off the power supply of the direction sensor to the processor, the processor stops outputting the power supply of the direction sensor.
10. A storage medium, wherein the storage medium stores a sensor and display screen power sharing control program, and the sensor and display screen power sharing control program, when executed by a processor, implements the steps of the mobile terminal sensor and display screen power sharing control method according to any one of claims 1 to 5.
CN201710895496.7A 2017-09-28 2017-09-28 Mobile terminal, sensor and display screen common power control method and storage medium Active CN107544659B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710895496.7A CN107544659B (en) 2017-09-28 2017-09-28 Mobile terminal, sensor and display screen common power control method and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710895496.7A CN107544659B (en) 2017-09-28 2017-09-28 Mobile terminal, sensor and display screen common power control method and storage medium

Publications (2)

Publication Number Publication Date
CN107544659A CN107544659A (en) 2018-01-05
CN107544659B true CN107544659B (en) 2021-09-14

Family

ID=60964645

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710895496.7A Active CN107544659B (en) 2017-09-28 2017-09-28 Mobile terminal, sensor and display screen common power control method and storage medium

Country Status (1)

Country Link
CN (1) CN107544659B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112968495A (en) * 2021-03-03 2021-06-15 惠州Tcl移动通信有限公司 Mobile terminal and method for controlling power on or off

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101465903A (en) * 2007-12-21 2009-06-24 希姆通信息技术(上海)有限公司 Method for processing foreign event during mobile phone GPS navigation process
CN103513749A (en) * 2012-06-15 2014-01-15 三星电子株式会社 Multi-cluster processing system and method of operating the same
CN103619056A (en) * 2013-12-02 2014-03-05 华为终端有限公司 Method and terminal for reporting sensor data
CN105793837A (en) * 2013-12-27 2016-07-20 英特尔公司 Electronic device having two processors to process data
CN106055069A (en) * 2016-05-23 2016-10-26 广东欧珀移动通信有限公司 Power saving control method and apparatus of mobile terminal, and mobile terminal
CN106569583A (en) * 2016-11-04 2017-04-19 惠州Tcl移动通信有限公司 Double-click awakening screen power supply control method and system based on mobile terminal
CN106681477A (en) * 2016-12-23 2017-05-17 上海斐讯数据通信技术有限公司 Method for controlling low power consumption motion mode and intelligent terminal

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101465903A (en) * 2007-12-21 2009-06-24 希姆通信息技术(上海)有限公司 Method for processing foreign event during mobile phone GPS navigation process
CN103513749A (en) * 2012-06-15 2014-01-15 三星电子株式会社 Multi-cluster processing system and method of operating the same
CN103619056A (en) * 2013-12-02 2014-03-05 华为终端有限公司 Method and terminal for reporting sensor data
CN105793837A (en) * 2013-12-27 2016-07-20 英特尔公司 Electronic device having two processors to process data
CN106055069A (en) * 2016-05-23 2016-10-26 广东欧珀移动通信有限公司 Power saving control method and apparatus of mobile terminal, and mobile terminal
CN106569583A (en) * 2016-11-04 2017-04-19 惠州Tcl移动通信有限公司 Double-click awakening screen power supply control method and system based on mobile terminal
CN106681477A (en) * 2016-12-23 2017-05-17 上海斐讯数据通信技术有限公司 Method for controlling low power consumption motion mode and intelligent terminal

Also Published As

Publication number Publication date
CN107544659A (en) 2018-01-05

Similar Documents

Publication Publication Date Title
RU2686673C1 (en) Device and method of terminal control and terminal
US8775845B2 (en) Information processing device, power supply control method and storage medium
JP5635628B2 (en) Power management method and apparatus for network access module
US8527799B2 (en) Information processing apparatus capable of being instructed to power off by a command from external apparatus, method of controlling the same, and storage medium
CN104142859A (en) Fast switching method and device for double systems and mobile terminal
US20140189397A1 (en) State control device, state control method and program
CN107885683B (en) Terminal and current testing method thereof
CN110430604B (en) Network control method, system, electronic equipment and storage medium
JP2001331242A (en) Information processor and method for controlling its power consumption
EP2903246B1 (en) Voice recognition function realizing method and device
US20100250972A1 (en) Reversible power transitions in a computing device
CN101017439A (en) Computer and control method thereof
CN105828140A (en) Main control equipment, controlled equipment and method for awakening controlled equipment
US20120235715A1 (en) Reset circuit and method of portable terminal
CN112713629A (en) Charging method and device and electronic equipment
TWI403889B (en) Protable electronic device and method for adjusting system performance thereof
CN107544659B (en) Mobile terminal, sensor and display screen common power control method and storage medium
KR102125507B1 (en) Method for charging battery and an electronic device thereof
CN107766218B (en) System optimization method and device, storage medium and terminal equipment
KR20170098467A (en) Apparatus and method for providing usb interface between potable device and external device
JP5925636B2 (en) Wireless communication apparatus and communication system
KR20190054708A (en) Method for reducing standby-power and electronic device thereof
JP2013039018A (en) Backup power supply system for portable electronic device and supply method for backup power
CN105138323A (en) Information processing method and electronic equipment
CN111831100B (en) Electronic device control method and device, storage medium and electronic device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20230606

Address after: Room 2103, Office Building 1, No. 213 Funing Road, Zumiao Street, Chancheng District, Foshan City, Guangdong Province, 528000, F008

Patentee after: Foshan Huayue Intellectual Property Operation Co.,Ltd.

Address before: 516006 Zhongkai hi tech Zone, Huizhou, Guangdong, 86 Chang seven Road West

Patentee before: HUIZHOU TCL MOBILE COMMUNICATION Co.,Ltd.

TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20240430

Address after: 518000 Shenzhen integrated circuit design and application Industrial Park, south of chaguang Road, Shuguang community, Xili street, Nanshan District, Shenzhen, Guangdong 518

Patentee after: Shenzhen Yinghu Technology Co.,Ltd.

Country or region after: China

Address before: Room 2103, Office Building 1, No. 213 Funing Road, Zumiao Street, Chancheng District, Foshan City, Guangdong Province, 528000, F008

Patentee before: Foshan Huayue Intellectual Property Operation Co.,Ltd.

Country or region before: China