CN110413098B - Control method and device - Google Patents

Control method and device Download PDF

Info

Publication number
CN110413098B
CN110413098B CN201910704320.8A CN201910704320A CN110413098B CN 110413098 B CN110413098 B CN 110413098B CN 201910704320 A CN201910704320 A CN 201910704320A CN 110413098 B CN110413098 B CN 110413098B
Authority
CN
China
Prior art keywords
application
information
processor
state
mode
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
CN201910704320.8A
Other languages
Chinese (zh)
Other versions
CN110413098A (en
Inventor
彭金刚
朱正义
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Lenovo Beijing Ltd
Original Assignee
Lenovo Beijing Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Lenovo Beijing Ltd filed Critical Lenovo Beijing Ltd
Priority to CN201910704320.8A priority Critical patent/CN110413098B/en
Publication of CN110413098A publication Critical patent/CN110413098A/en
Application granted granted Critical
Publication of CN110413098B publication Critical patent/CN110413098B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F1/00Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
    • G06F1/26Power supply means, e.g. regulation thereof
    • G06F1/32Means for saving power
    • G06F1/3203Power management, i.e. event-based initiation of a power-saving mode
    • G06F1/3234Power saving characterised by the action undertaken
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F1/00Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
    • G06F1/26Power supply means, e.g. regulation thereof
    • G06F1/32Means for saving power
    • G06F1/3203Power management, i.e. event-based initiation of a power-saving mode
    • G06F1/3234Power saving characterised by the action undertaken
    • G06F1/3293Power saving characterised by the action undertaken by switching to a less power-consuming processor, e.g. sub-CPU

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Power Sources (AREA)
  • Telephone Function (AREA)

Abstract

The application discloses a control method and a control device, which are used for detecting an information reading state of a first application of an electronic device, responding to the fact that the information reading state meets a specific condition, generating a control instruction, controlling mode switching of the electronic device, and realizing that the electronic device can be switched in different modes to meet the information reading of the first application, so that processors with different power consumptions can respond to the information reading of the first application, the power consumption of the electronic device is enabled to be in an optimal state, the service life of the electronic device can be prolonged, and the experience effect of a user is improved.

Description

Control method and device
Technical Field
The present application relates to the field of information processing technologies, and in particular, to a control method and apparatus.
Background
With the development of electronic device technology, electronic devices can bear more and more applications for users to use. Different states of different applications in the using process are different, and the processor is usually required to be in a working state to meet the requirements of the applications in the using process, but the working mode of the processor can enable the power consumption of the electronic equipment to be in a higher state, and the better experience effect cannot be brought to a user.
Disclosure of Invention
In view of this, the present application provides the following technical solutions:
a control method, comprising:
detecting an information reading state of a first application of the electronic equipment;
responding to the information reading state meeting a specific condition, and generating a control instruction;
and switching the electronic equipment between a first mode and a second mode according to the control instruction, wherein the first mode characterizes that a first processor of the electronic equipment responds to the first application, the second mode characterizes that a second processor of the electronic equipment responds to the first application, and the working power consumption of the first processor and the working power consumption of the second processor are different.
Optionally, the detecting an information reading state of a first application of the electronic device includes:
and judging whether the first application is in the target application list, and if so, detecting the information reading state of the first application of the electronic equipment.
Optionally, the generating a control instruction in response to the information reading state meeting a specific condition includes:
acquiring the read information quantity of the information reading state of the first application;
and if the read information amount is smaller than a first quantity threshold value, generating a control instruction for the first application.
Optionally, the generating a control instruction in response to the information reading state meeting a specific condition includes:
detecting the information quantity to be read corresponding to the information reading state of the first application;
and generating a control instruction based on that the information quantity to be read meets a specific condition.
Optionally, the generating a control instruction based on that the amount of information to be read meets a specific condition includes:
if the information quantity to be read is not less than a second quantity threshold value, generating a first control instruction;
and if the information quantity to be read is smaller than a second quantity threshold value, generating a second control instruction.
Optionally, the switching the electronic device between the first mode and the second mode according to the control instruction includes:
controlling the electronic equipment to be switched from a first mode to a second mode according to the first control instruction;
controlling the electronic equipment to be switched from a second mode to a first mode according to the second control instruction;
wherein the first mode characterizes the first processor as being in an active state; the second mode is characterized in that the first processor enters a sleep state, and the second processor is in a working state; and the working power consumption of the second processor is smaller than that of the first processor.
Optionally, the second processor being in an operating state includes:
the second processor reads the information content to be read of the first application from a preset cache region;
the first processor being in an active state comprises: the first processor responds to a notification instruction of a second processor, obtains reading information aiming at the first application, and stores the reading information to the preset cache region.
Optionally, the electronic device includes a first screen and a second screen, and the detecting an information reading state of a first application of the electronic device includes:
detecting whether the state of the second screen is a target state in response to the first application being in the first screen;
and if so, detecting the information reading state of the first application of the first screen.
Optionally, the method further comprises:
in the first mode and the second mode, the state of a second screen of the electronic device remains unchanged.
A control device, comprising:
the detection unit is used for detecting the information reading state of a first application of the electronic equipment;
the generating unit is used for responding to that the information reading state meets a specific condition and generating a control instruction;
and the switching unit is used for switching the electronic equipment between a first mode and a second mode according to the control instruction, wherein the first mode indicates that a first processor of the electronic equipment responds to the first application, the second mode indicates that a second processor of the electronic equipment responds to the first application, and the working power consumption of the first processor and the working power consumption of the second processor are different.
According to the technical scheme, the control method and the control device are used for detecting the information reading state of the first application of the electronic equipment, responding to the fact that the information reading state meets the specific conditions, generating the control instruction, controlling the mode switching of the electronic equipment, and enabling the electronic equipment to be switched in different modes to meet the information reading of the first application.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings needed to be used in the description of the embodiments are briefly introduced below, and it is obvious that the drawings in the following description are only embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings based on the provided drawings without creative efforts.
Fig. 1 is a schematic flowchart of a control method according to an embodiment of the present disclosure;
fig. 2 is a schematic flow chart of another control method provided in the embodiment of the present application;
FIG. 3 is a diagram illustrating a control manner of a reading application according to an embodiment of the present application;
fig. 4 is a schematic flowchart of a control method of a dual-screen electronic device according to an embodiment of the present application;
fig. 5 is a schematic structural diagram of a dual-screen notebook according to an embodiment of the present application;
fig. 6 is a schematic structural diagram of a control device according to an embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present application, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
In the embodiment of the present application, the electronic device includes different electronic devices such as a mobile phone, a tablet computer (PAD), a Personal Digital Assistant (PDA), and a notebook computer, and the specific type of the electronic device is not limited in the present application.
In order to better understand the technical solution, the technical solution will be described in detail with reference to the drawings and the specific embodiments.
Referring to fig. 1, a flowchart of a control method provided by an embodiment of the present application is shown, where the method may be applied to the electronic device, that is, an execution subject of each step in the method may be the electronic device. The flow of the method is described below.
S101, detecting an information reading state of a first application of the electronic equipment;
a plurality of application programs (which may be applications or APPs) of various types may be installed in the electronic device, for example, a chat application, a map application, a payment application, an online shopping application, a game application, a reading application, and the like. And the first application may be any one of a plurality of applications installed in the electronic device.
The method comprises the steps that a user can detect an information reading state of a first application in the process of using the first application, namely the electronic equipment in the process of running the first application, wherein the information reading state represents the state of reading target information in the background of the first application in the running process, and the target information is matched with the type of the first application, for example, the first application is a map application, and the target information can be navigation route information; if the first application is an online shopping application, the target information can be information of recommended commodities to be displayed; if the first application is a reading application, the target information may be text information to be displayed.
The information reading state represents a reading state of the current first application to the target information, and can represent a state of reading information from different information storage areas, a state of reading information in different time periods, and a state of reading the target information according to different information reading instructions. For example, the first application is a reading application, and the information reading state may be a state in which information is read in a cache area or a state in which information is read in a network storage area.
And S102, responding to the information reading state meeting the specific condition, and generating a control instruction.
The information reading state of the first application is not the only unchanged state but a state which changes with time or an indication instruction in the running process. For example, the first application is a map application, the information reading state of the first application can be changed according to a navigation instruction of a user, when the navigation instruction of the user is not received, the first application may read real-time road condition information or peripheral information of the current position, and when the navigation instruction of the user is received, the information read by the first application is information matched with a navigation route. Correspondingly, if the navigation route is used for the first time by the user, the first application needs to obtain target information matched with the navigation route in real time through the network server; correspondingly, if the navigation route is a navigation route which is not used by the user for the first time, the navigation route may be cached in a local cache area, or a cache area of the server, and target information matched with the navigation route may be acquired through the cache area.
Therefore, the control instruction is not generated in real time after the information reading state of the first application is detected and obtained. But only generates the control command when the information reading state meets the specific condition. The specific condition is determined according to the type of the first application and the information reading state of the first application. Which may represent the condition of the information reading time, the condition of the information reading frequency, and/or the condition of the information reading amount. For example, if the first application is a payment application, the information reading state of the first application may represent a reading state of the first application on the information to be paid, and due to the configuration of the first application, the first application may be set to read the information to be paid in the target time period, so as to remind the current user of the first application of information of a related commodity or an order that needs to be paid. Correspondingly, when the time reaches the target time period, a control command is generated. The control command may be used to instruct a reading mode of information, a response device that performs reading of information, or the like.
S103, switching the electronic equipment between the first mode and the second mode according to the control instruction.
Wherein the first mode characterizes a first processor of the electronic device as responding to the first application, the second mode characterizes a second processor of the electronic device as responding to the first application, and the first processor and the second processor have different operating power consumption.
In the embodiment of the application, the electronic device comprises at least two processors, and the power consumption of the two processors for different information reading states of the first application is different. Since the information reading state of the first application is a changing process, the mode switching of the electronic device controlled by the control instruction is also a changing process, and the electronic device is switched between the first mode and the second mode according to the change of the information reading state. A first processor of the electronic device responds to the first application in a first mode and a second application of the electronic device responds to the first application in a second mode. It should be noted that, in this embodiment, the first pattern and the second pattern match different information reading states of the first application, and the power consumption of the first process is not necessarily higher than the power consumption of the second process. Preferably, each time the mode of the electronic device is switched, the power consumption of the electronic device in the corresponding mode is made lower. However, for some special applications, it should be preferable to ensure the experience effect of the user, so that the power consumption of the electronic device is in an optimal state, i.e. a state with relatively low power consumption, during the continuous use of the first application by the user, rather than the power consumption of the electronic device being low at each moment. For example, the first processor mainly controls the first application to obtain information through the network server, the second processor mainly controls the first application to obtain information in the local cache region, the power consumption state of the electronic device is higher due to a series of operations such as obtaining information through the network server and necessarily needing to connect the network connection interface, sending a service request and the like, therefore, when network information is obtained, the network information is cached in real time, when the network information obtaining amount meets the information reading of the first application, the first processor is controlled to enter a dormant state, the second processor obtains the cache information to ensure the normal operation of the first application, so that the overall power consumption of the electronic device is lower than that of the first processor in the real-time working state in the process of operating the first application by a user, and the operation time of the electronic device is longer, the experience effect of the user is better.
It should be noted that, if only one processor responds to the first application of the electronic device, the processor may execute different control modes to implement power consumption control on the electronic device, or control different execution chips to implement power consumption control on the electronic device, which is not limited in this embodiment of the application.
The embodiment of the application provides a control method, which includes detecting an information reading state of a first application of an electronic device, generating a control instruction in response to the fact that the information reading state meets a specific condition, controlling mode switching of the electronic device, and enabling the electronic device to be switched in different modes to meet information reading of the first application.
Since a plurality of types of applications are installed in the electronic device, on one hand, in order to achieve effective control over the applications and on the other hand, in order to reduce the amount of computation before control, in this embodiment of the present application, the detecting an information reading state of the application further includes:
s201, judging whether the first application is in a target application list, and if so, executing S202;
s202, detecting an information reading state of a first application of the electronic equipment.
By pre-storing a target application list, where the target application list includes multiple applications, and correspondingly, the identification information of the applications may be stored in the target application list, and information such as running conditions of the applications may also be stored, so that when the control method is executed by the electronic device, it is possible to know which applications need to be detected.
If the first application operated by the current electronic equipment is in the target application list, the information reading state of the first application is detected, and a subsequent control method is executed according to the information reading state. Correspondingly, if the current application running by the electronic device is not in the target application list, the original control process is executed on the current application.
For example, if the stored target application list includes a reading application, a map application, and an online shopping application, and the application operated by the current electronic device is the reading application, the reading application is in the target application list, and the information reading state of the reading application of the electronic device is detected, and the mode of the electronic device is switched according to the information reading state.
On the basis of the foregoing embodiment, in another embodiment of the present application, in order to generate a more accurate control instruction, it is further required to verify whether an information reading state of the first application meets a specific condition, where the specific condition is set according to an amount of read information, and correspondingly, the verification process includes:
s301, obtaining the read information quantity of the information read state of the first application;
s302, if the read information amount is smaller than a first quantity threshold value, generating a control instruction for a first application.
The read information amount of the information reading state of the first application may represent an information amount that needs to be read when the first application runs, may also represent an information amount that is read within a certain time period, or may also represent an information amount to be read that can be cached. And the specific condition determined according to the operating efficiency of the processor of the electronic device is a quantity threshold, i.e. the first quantity threshold can reflect the capacity of the processor of the electronic device to obtain the quantity of read information.
For example, taking the read information amount to represent the information amount read in a certain time period as an example, if the read information amount of the first application in a unit time is a first quantity value, and if the first quantity value is greater than a first quantity threshold, it indicates that the information amount that the first application needs to acquire in the unit time is large, so that a processor of the electronic device needs a high information acquisition capability. If the first processor acquires the real-time read information and stores the real-time read information in the cache region, and the second processor reads the information amount from the cache region, because the information amount required to be acquired by the first application in unit time is large, and the information amount capable of being stored in the cache region cannot meet the information required by the first application in unit time, in order to ensure that a user of the first application can acquire the information and present an uninterrupted experience effect, the first processor needs to read the information in real time to ensure that the information acquired by the second processor from the cache region is uninterrupted, so that the first processor and the second processor work simultaneously under the requirement, and the electronic device cannot be switched between the first mode and the second mode. Therefore, in order to realize accurate control, it is necessary to determine in advance whether the read information amount of the information read state of the first application is smaller than a number threshold, and if so, a control instruction for the first application is generated, so that the electronic device can switch between the first mode and the second mode based on the control instruction.
On the basis of the above embodiment, another control method is also provided in another embodiment of the present application, and referring to fig. 2, the control method may include the following steps:
s401, detecting the information quantity to be read corresponding to the information reading state of the first application;
s402, judging whether the information quantity to be read is not less than a second quantity threshold value, if so, executing S403, otherwise, executing S404;
s403, generating a first control instruction;
s404, generating a second control instruction;
s405, controlling the electronic equipment to be switched from a first mode to a second mode according to a first control instruction;
and S406, controlling the electronic equipment to be switched from the second mode to the first mode according to the second control instruction.
In this embodiment, the specific condition is determined according to the amount of information to be read, that is, the specific condition is set according to the second quantity threshold, which may be set according to the second quantity threshold in a preset time period, may also be set according to the second quantity threshold in a unit time, or may also be set according to the second quantity threshold in the whole operation process of the first application.
The information amount to be read indicates an information amount that a user of the first application has not acquired through the first application, for example, the information amount to be displayed or played through the first application may be an information amount that needs to be stored or sent through the first application. For example, the amount of information to be read is the amount of information in the cache area corresponding to the first application. And then controlling the mode switching of the electronic equipment according to the comparison result of the information quantity to be read and the second quantity threshold value.
It will be appreciated that the first mode is indicative of the first processor being in an active state, the second mode is indicative of the first processor entering a sleep state, the second processor being in an active state, and the operating power consumption of the second processor being less than the operating power consumption of the first processor. In the first mode and the second mode of the electronic device, because the working power consumption of the second processor is low, the second processor can monitor the amount of information to be read of the first application, when the monitored amount of information to be read is not less than a second threshold, the second processor can read the amount of information to be read from the cache region, and when the monitored amount of information to be read is less than the second threshold, the second processor can notify the first processor, so that the first processor can acquire the information to be read from the network server or the information storage region of other first applications according to the notification instruction and store the information to be read in the cache region.
Therefore, the second processor may be in a working state that the second processor reads the information content to be read of the first application from the preset cache region. The first processor may be in a working state, and the first processor acquires read information for the first application in response to a notification instruction of the second processor, and stores the read information in a preset cache region. Of course, the first processor may also respond to the notification instruction of the third processor, or the first processor monitors the state of the first application and automatically enters the corresponding working state according to the state of the first application.
Referring to fig. 3, a schematic diagram of the control of one reading application in the embodiment of the present application is shown. Running in the electronic device 50 is a reading application through which a user of the electronic device reads a novel, the reading display interface in the electronic device 50 currently displaying the contents of the first chapter of the novel. Correspondingly, the contents of the second, third and fourth chapters of the novel to be read by the reading application are stored in the buffer area 51. When the content in the buffer area 51 meets the reading requirement and speed of the current user, the second processor 52 reads the content of the corresponding chapter from the buffer area 51 and sends the content to the reading application of the electronic device for displaying, as shown in fig. 3, the second processor 52 reads the content of the second chapter and sends the content to the electronic device 50.
Correspondingly, when the reading application running in the electronic device 50 displays the content of the third chapter, it indicates that the user of the electronic device has read the content of the third chapter, that is, only the content of the fourth chapter in the cache area 51 is not read, and indicates that the content of the cache area is quickly read, the first processor 53 is notified to enter a working state, the content of the fifth chapter, the sixth chapter, and the like is obtained from the network server 54 and cached in the cache area 51, and when the amount of information cached in the cache area 51 meets the reading requirement of the user, the second processor 52 reenters the working state, and the cached information is read from the cache area 51. Therefore, the first processor is not always in the working state, but the second processor with lower power consumption responds to the reading application in a certain time period in the reading process, so that the overall power consumption of the electronic equipment in the running process of the reading application is lower, the reading time of a user can be prolonged, and the reading experience effect of the user is improved.
With the development of electronic devices, double-screen notebooks are also increasingly appearing in the work and life of people. The dual-screen electronic device has two screens, namely a first screen and a second screen, and in another embodiment of the present application, a method for controlling the dual-screen electronic device is further provided, and referring to fig. 4, the method may include the following steps:
s601, responding to the first screen of the first application, and detecting whether the state of the second screen is a target state;
s602, if the state of the second screen is a target state, detecting the information reading state of the first application of the first screen;
s603, responding to the information reading state meeting a specific condition, and generating a control instruction;
s604, switching the electronic equipment between a first mode and a second mode according to the control instruction.
Since the electronic device has two screens, when the first application is on the first screen, the first screen displays the relevant content of the first application. Before the control instruction is generated, the state of the second screen needs to be detected, and the related information of the application running on the second screen needs to be detected to judge whether the state of the second screen meets the target state, wherein the target state does not influence the mode switching of the electronic equipment.
The first mode characterizes a first processor of the electronic device as responding to the first application and the second mode characterizes a second processor of the electronic device as responding to the first application. Since the different processors respond to the first application in different modes, when the electronic device has two screens, it is necessary to ensure that the current state of the second screen is not affected when the different processors respond to the first application of the first screen. If the current state of the second screen needs to be realized by the first processor, no matter what mode the information reading state of the first application is in, the first processor is in a working state in the process of responding to the first application, and even if the first application can acquire the information to be read in the cache region through the second processing, the first processor is in the working state because the first processor needs to maintain the current state of the second screen.
When the state of the second screen is detected to be the target state, the state of the second screen of the electronic equipment is kept unchanged when the electronic equipment is subjected to switching control between the first mode and the second mode. If the state of the second screen is changed in the switching process and is not in the matching target state, the mode of the electronic device is switched again, and the electronic device may be switched to the first mode or the third mode responded by other control modules.
Referring to fig. 5, a schematic structural diagram of a dual-screen notebook according to an embodiment of the present invention is provided, where the dual-screen notebook includes a first screen 70 and a second screen 71, where the first screen 70 is an EINK screen (electronic ink screen), and the second screen 71 is an LCD screen (liquid crystal display). For the LCD + EINK dual-screen scheme, for the EINK usage mode, the current practice is to always need the X86 system to be in an active state to realize the use of the EINK mode. In the embodiment of the application, in the EINK working mode, the state of the X86 system can be managed according to the EINK state used by a user, and the X86 system is in the AOAC mode to the greatest extent, so that the service time of the EINK mode is prolonged. It should be noted that the X86 system can be implemented under the control of a first processor, such as a Central Processing Unit (CPU). The AOAC mode refers to that the electronic device still maintains network connection and data transmission, such as sending and receiving mails, downloading and uploading files, and the like, after entering a sleep mode or a sleep mode after connecting to a network through a WLAN or a WWAN, so that a greater amount of battery endurance can be obtained while providing network connection for a user.
Specifically, a target application list used by a user of the electronic device in the ENIK mode may be set, and a TCON (Timer Control Register, logic board, also referred to as a screen driver board or a central Control board) of the electronic device sets a Control rule of the X86 system operating mode according to the target application list. When the TCON monitors that ENIK is in the reading mode, the TCON notifies an EC (embedded Controller) through I2C (Inter-Integrated Circuit), and the EC notifies the X86 system to enter the AOAC mode. When the TCON monitors that the cache content corresponding to the reading mode is read completely, the TCON informs the EC to wake up the X86 system, and then re-caches the relevant content according to the requirement of the user on the reading mode, and after the caching is completed, the TCON informs the EC to enable the X86 system to enter the AOAC mode. When the TCON monitors that the application operated by the EINK is not in the target application list, such as the EINK is in a use mode of pictures, internet access and the like, the TCON and the EC control the X86 system to be in a mode of switching back to an active state and an idle state.
It should be noted that, in the above embodiment, the X86 system is determined by the mode of the first processor (e.g., CPU), and in this embodiment, the electronic device mainly detects the state of the ENIK running application through the TCON, and based on the state, the EC corresponds to the second processor to notify the X86 system to switch the operation mode to meet the requirement of the current ENIK running application. It can be understood that, when performing relevant control on the ENIK screen, if the current application is a reading application, the X86 system can be directly controlled to enter a low power consumption state, and the state switching can also be performed according to the change of the information amount of the reading application, specifically, when the file is cached to a certain amount, which is available for the user to read for a period of time, the X86 is switched to the low power consumption mode, and when the caching amount is insufficient, the file is waken up or the X86 is enabled to enter the active state to continue caching, and the mode switching process is a dynamically changing process. It should be noted that this state is the whole state of the electronic device, and is different from the state of controlling the LCD that is not used when the dual-screen electronic device is controlled in the prior art.
There is also provided in an embodiment of the present application a control apparatus, see fig. 6, comprising:
a detection unit 80 for detecting an information reading state of a first application of the electronic device;
a generating unit 81 for generating a control instruction in response to the information reading state meeting a specific condition;
a switching unit 82, configured to switch the electronic device between a first mode and a second mode according to the control instruction, where the first mode indicates that a first processor of the electronic device responds to the first application, and the second mode indicates that a second processor of the electronic device responds to the first application, and operating power consumptions of the first processor and the second processor are different.
The embodiment of the application provides a control device, a detection unit detects an information reading state of a first application of an electronic device, a generation unit responds that the information reading state meets a specific condition, generates a control instruction, and controls mode switching of the electronic device in a switching unit, so that the electronic device can be switched in different modes to meet the information reading of the first application, and processors with different power consumptions can respond to the information reading of the first application, so that the power consumption of the electronic device is in an optimal state, the service life of the electronic device can be prolonged, and the experience effect of a user is improved.
On the basis of the above embodiment, the detection unit includes:
and the first judging subunit is used for judging whether the first application is in the target application list, and if so, detecting the information reading state of the first application of the electronic equipment.
On the basis of the above embodiment, the generating unit includes:
a first obtaining subunit, configured to obtain a read information amount of an information read state of the first application;
and the second judging subunit is configured to generate a control instruction for the first application if the read information amount is smaller than a first number threshold.
On the basis of the above embodiment, the generating unit further includes:
the first detection subunit is used for detecting the information quantity to be read corresponding to the information reading state of the first application;
and the generating subunit is used for generating a control instruction based on that the information quantity to be read meets a specific condition.
On the basis of the foregoing embodiment, the generating subunit is specifically configured to:
if the information quantity to be read is not less than a second quantity threshold value, generating a first control instruction;
and if the information quantity to be read is smaller than the second quantity threshold value, generating a second control instruction.
On the basis of the above embodiment, the switching unit includes:
the first switching subunit is used for controlling the electronic equipment to be switched from a first mode to a second mode according to the first control instruction;
the second switching subunit is used for controlling the electronic equipment to be switched from the second mode to the first mode according to the second control instruction;
wherein the first mode characterizes the first processor as being in an active state; the second mode is characterized in that the first processor enters a sleep state, and the second processor is in a working state; and the working power consumption of the second processor is smaller than that of the first processor.
On the basis of the above embodiment, the second processor being in the working state includes:
the second processor reads the information content to be read of the first application from a preset cache region;
the first processor being in an active state comprises: the first processor responds to a notification instruction of a second processor, obtains reading information aiming at the first application, and stores the reading information to the preset cache region.
On the basis of the above embodiment, the control device is applied to an electronic apparatus including a first screen and a second screen, and the detection unit further includes:
the second detection subunit is used for responding to the first application in the first screen and detecting whether the state of the second screen is a target state;
and the third detection subunit is used for detecting the information reading state of the first application of the first screen if the first application of the first screen is the first application of the first screen.
On the basis of the above embodiment, in the first mode and the second mode, the state of the second screen of the electronic device remains unchanged.
There is also provided in an embodiment of the present application a storage medium having a program stored thereon, the program implementing the control method when executed by a processor.
An embodiment of the present application further provides an electronic device, where the electronic device includes a processor, a memory, and a program stored in the memory and executable on the processor, and the processor implements the following steps when executing the program:
detecting an information reading state of a first application of the electronic equipment;
responding to the information reading state meeting a specific condition, and generating a control instruction;
and switching the electronic equipment between a first mode and a second mode according to the control instruction, wherein the first mode characterizes that a first processor of the electronic equipment responds to the first application, the second mode characterizes that a second processor of the electronic equipment responds to the first application, and the working power consumption of the first processor and the working power consumption of the second processor are different.
Further, the detecting an information reading state of a first application of the electronic device includes:
and judging whether the first application is in the target application list, and if so, detecting the information reading state of the first application of the electronic equipment.
Further, the generating a control instruction in response to the information reading state meeting a specific condition includes:
acquiring the read information quantity of the information reading state of the first application;
and if the read information amount is smaller than a first quantity threshold value, generating a control instruction for the first application.
Further, the generating a control instruction in response to the information reading state meeting a specific condition includes:
detecting the information quantity to be read corresponding to the information reading state of the first application;
and generating a control instruction based on that the information quantity to be read meets a specific condition.
Further, the generating a control instruction based on that the amount of the information to be read meets a specific condition includes:
if the information quantity to be read is not less than a second quantity threshold value, generating a first control instruction;
and if the information quantity to be read is smaller than the second quantity threshold value, generating a second control instruction.
Further, the switching the electronic device between the first mode and the second mode according to the control instruction includes:
controlling the electronic equipment to be switched from a first mode to a second mode according to the first control instruction;
controlling the electronic equipment to be switched from a second mode to a first mode according to the second control instruction;
wherein the first mode characterizes the first processor as being in an active state; the second mode is characterized in that the first processor enters a sleep state, and the second processor is in a working state; and the working power consumption of the second processor is smaller than that of the first processor.
Further, the second processor being in an operational state comprises:
the second processor reads the information content to be read of the first application from a preset cache region;
the first processor being in an active state comprises: the first processor responds to a notification instruction of a second processor, obtains reading information aiming at the first application, and stores the reading information to the preset cache region.
Further, the electronic device includes a first screen and a second screen, and the detecting an information reading state of a first application of the electronic device includes:
detecting whether the state of the second screen is a target state in response to the first application being in the first screen;
and if so, detecting the information reading state of the first application of the first screen.
Further, the method further comprises:
in the first mode and the second mode, the state of a second screen of the electronic device remains unchanged.
The emphasis of each embodiment in the present specification is on the difference from the other embodiments, and the same and similar parts among the various embodiments may be referred to each other. The device disclosed by the embodiment corresponds to the method disclosed by the embodiment, so that the description is simple, and the relevant points can be referred to the method part for description.
The previous description of the disclosed embodiments is provided to enable any person skilled in the art to make or use the present application. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the generic principles defined herein may be applied to other embodiments without departing from the spirit or scope of the application. Thus, the present application is not intended to be limited to the embodiments shown herein but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.

Claims (8)

1. A control method, comprising:
detecting an information reading state of a first application of the electronic equipment;
responding to the information reading state meeting a specific condition, and generating a control instruction;
switching the electronic device between a first mode and a second mode according to the control instruction, wherein the first mode characterizes that a first processor of the electronic device responds to the first application, the second mode characterizes that a second processor of the electronic device responds to the first application, and the working power consumption of the first processor and the second processor is different;
the generating a control instruction in response to the information reading state meeting a specific condition includes:
acquiring the read information quantity of the information reading state of the first application;
if the read information amount is smaller than a first quantity threshold value, generating a control instruction for the first application;
or the like, or, alternatively,
the generating a control instruction in response to the information reading state meeting a specific condition includes:
detecting the information quantity to be read corresponding to the information reading state of the first application;
and generating a control instruction based on that the information quantity to be read meets a specific condition.
2. The method of claim 1, the detecting an information reading status of a first application of an electronic device, comprising:
and judging whether the first application is in the target application list, and if so, detecting the information reading state of the first application of the electronic equipment.
3. The method according to claim 1, wherein the generating a control instruction based on the amount of the information to be read meeting a specific condition comprises:
if the information quantity to be read is not less than a second quantity threshold value, generating a first control instruction;
and if the information quantity to be read is smaller than the second quantity threshold value, generating a second control instruction.
4. The method of claim 3, the switching the electronic device between a first mode and a second mode according to the control instruction, comprising:
controlling the electronic equipment to be switched from a first mode to a second mode according to the first control instruction;
controlling the electronic equipment to be switched from a second mode to a first mode according to the second control instruction;
wherein the first mode characterizes the first processor as being in an active state; the second mode is characterized in that the first processor enters a sleep state, and the second processor is in a working state; and the working power consumption of the second processor is smaller than that of the first processor.
5. The method of claim 4, the second processor being in an operational state comprising:
the second processor reads the information content to be read of the first application from a preset cache region;
the first processor being in an active state comprises: the first processor responds to a notification instruction of a second processor, obtains reading information aiming at the first application, and stores the reading information to the preset cache region.
6. The method of claim 1, the electronic device comprising a first screen and a second screen, the detecting an information reading status of a first application of the electronic device comprising:
detecting whether the state of the second screen is a target state in response to the first application being in the first screen, the target state being a state in which the second screen does not need to be controlled by the first processor;
and if so, detecting the information reading state of the first application of the first screen.
7. The method of claim 6, further comprising:
in the first mode and the second mode, the state of a second screen of the electronic device remains unchanged.
8. A control device, comprising:
the detection unit is used for detecting the information reading state of a first application of the electronic equipment;
the generating unit is used for responding to that the information reading state meets a specific condition and generating a control instruction;
the switching unit is used for switching the electronic equipment between a first mode and a second mode according to the control instruction, wherein the first mode is characterized in that a first processor of the electronic equipment responds to the first application, the second mode is characterized in that a second processor of the electronic equipment responds to the first application, and the working power consumption of the first processor and the working power consumption of the second processor are different;
the generating a control instruction in response to the information reading state meeting a specific condition includes:
acquiring the read information quantity of the information reading state of the first application;
if the read information amount is smaller than a first quantity threshold value, generating a control instruction for the first application;
or the like, or, alternatively,
the generating a control instruction in response to the information reading state meeting a specific condition includes:
detecting the information quantity to be read corresponding to the information reading state of the first application;
and generating a control instruction based on that the information quantity to be read meets a specific condition.
CN201910704320.8A 2019-07-31 2019-07-31 Control method and device Active CN110413098B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910704320.8A CN110413098B (en) 2019-07-31 2019-07-31 Control method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910704320.8A CN110413098B (en) 2019-07-31 2019-07-31 Control method and device

Publications (2)

Publication Number Publication Date
CN110413098A CN110413098A (en) 2019-11-05
CN110413098B true CN110413098B (en) 2021-11-16

Family

ID=68364886

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910704320.8A Active CN110413098B (en) 2019-07-31 2019-07-31 Control method and device

Country Status (1)

Country Link
CN (1) CN110413098B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114693292A (en) * 2020-12-30 2022-07-01 Oppo广东移动通信有限公司 Payment method, payment device, electronic equipment and computer-readable storage medium
CN113050781B (en) * 2021-03-31 2024-08-23 联想(北京)有限公司 Functional equipment and switching method

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101145080A (en) * 2007-11-07 2008-03-19 威盛电子股份有限公司 Computer system and computer system power management method
CN101689106A (en) * 2007-06-12 2010-03-31 松下电器产业株式会社 Multiprocessor control device, multiprocessor control method, and multiprocessor control circuit
CN101751114A (en) * 2008-12-22 2010-06-23 联想(北京)有限公司 Display switching method for mobile terminal and mobile terminal
CN101937363A (en) * 2009-07-01 2011-01-05 联想(北京)有限公司 Mobile terminal operating mode switching method and mobile terminal
CN103207659A (en) * 2012-01-16 2013-07-17 联想(北京)有限公司 Switching method and electronic equipment
CN105474129A (en) * 2013-08-22 2016-04-06 三星电子株式会社 Method for performing power saving mode in electronic device and electronic device thereof
CN105759935A (en) * 2016-01-29 2016-07-13 华为技术有限公司 Terminal control method and terminal
CN106406493A (en) * 2015-07-30 2017-02-15 华为技术有限公司 Electronic apparatus capable of reducing power consumption and method for reducing power consumption of the electronic apparatus
CN106604369A (en) * 2016-10-26 2017-04-26 惠州Tcl移动通信有限公司 Terminal device with dual-mode switching function

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN100489737C (en) * 2006-04-11 2009-05-20 微星科技股份有限公司 Data processing electronic device possessing double CPU
US8418187B2 (en) * 2010-03-01 2013-04-09 Arm Limited Virtualization software migrating workload between processing circuitries while making architectural states available transparent to operating system
JP2017201456A (en) * 2016-05-02 2017-11-09 株式会社リコー Information processing apparatus and information processing method
JP6784204B2 (en) * 2017-03-22 2020-11-11 カシオ計算機株式会社 Information processing equipment, information processing methods and programs
CN107015629B (en) * 2017-03-30 2022-05-31 联想(北京)有限公司 Processing method and electronic device

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101689106A (en) * 2007-06-12 2010-03-31 松下电器产业株式会社 Multiprocessor control device, multiprocessor control method, and multiprocessor control circuit
CN101145080A (en) * 2007-11-07 2008-03-19 威盛电子股份有限公司 Computer system and computer system power management method
CN101751114A (en) * 2008-12-22 2010-06-23 联想(北京)有限公司 Display switching method for mobile terminal and mobile terminal
CN101937363A (en) * 2009-07-01 2011-01-05 联想(北京)有限公司 Mobile terminal operating mode switching method and mobile terminal
CN103207659A (en) * 2012-01-16 2013-07-17 联想(北京)有限公司 Switching method and electronic equipment
CN105474129A (en) * 2013-08-22 2016-04-06 三星电子株式会社 Method for performing power saving mode in electronic device and electronic device thereof
CN106406493A (en) * 2015-07-30 2017-02-15 华为技术有限公司 Electronic apparatus capable of reducing power consumption and method for reducing power consumption of the electronic apparatus
CN105759935A (en) * 2016-01-29 2016-07-13 华为技术有限公司 Terminal control method and terminal
CN106604369A (en) * 2016-10-26 2017-04-26 惠州Tcl移动通信有限公司 Terminal device with dual-mode switching function

Also Published As

Publication number Publication date
CN110413098A (en) 2019-11-05

Similar Documents

Publication Publication Date Title
CN106020990B (en) Control method of central processing unit and terminal equipment
US8233000B1 (en) System and method for switching between graphical processing units
CN107851042B (en) Using command stream hints to characterize GPU workload and power management
US10007316B2 (en) State control method and apparatus and portable terminal
JP5251188B2 (en) Information processing apparatus, information processing apparatus control method, and computer program
CN110716631B (en) Power supply management method, device, equipment and readable storage medium
US20110163977A1 (en) Mode Dependent Configuration of Portable Electronic Device
US20130125126A1 (en) Information processing apparatus and method for controlling information processing apparatus
CN104076903A (en) Postponing suspend
CN110413098B (en) Control method and device
US9128891B2 (en) Method, mobile terminal and computer program product for sharing storage device
US20090300396A1 (en) Information processing apparatus
JP4231041B2 (en) Information processing apparatus and operation control method
JP2005018229A (en) Document browsing terminal, document display control method, and document display control program
JP5044961B2 (en) Client device and program
CN113840003A (en) Synchronization method and device
US20110258429A1 (en) System and Method for Information Handling System Low Power Network Communications
KR102048897B1 (en) Backlight driving time controlling method, and apparatus thereof
JP2007102669A (en) Information processing apparatus and operation control method
US10871875B2 (en) Cursor identification on an IHS display
CN111225242A (en) Video playing disaster tolerance method and device and computer storage medium
US7782313B2 (en) Reducing power during idle state
US20140306973A1 (en) Method, module and electronic apparatus for updating contents to be displayed before turning on display device
JP2004152068A (en) System and method for controlling operating frequency
JP4742888B2 (en) Server device, client device, and program

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