CN117193584A - Power consumption control method and device and storage medium - Google Patents

Power consumption control method and device and storage medium Download PDF

Info

Publication number
CN117193584A
CN117193584A CN202210612250.5A CN202210612250A CN117193584A CN 117193584 A CN117193584 A CN 117193584A CN 202210612250 A CN202210612250 A CN 202210612250A CN 117193584 A CN117193584 A CN 117193584A
Authority
CN
China
Prior art keywords
application
terminal
layer
determining
target
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.)
Pending
Application number
CN202210612250.5A
Other languages
Chinese (zh)
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.)
Beijing Xiaomi Mobile Software Co Ltd
Original Assignee
Beijing Xiaomi Mobile Software 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 Beijing Xiaomi Mobile Software Co Ltd filed Critical Beijing Xiaomi Mobile Software Co Ltd
Priority to CN202210612250.5A priority Critical patent/CN117193584A/en
Publication of CN117193584A publication Critical patent/CN117193584A/en
Pending legal-status Critical Current

Links

Abstract

The disclosure relates to a power consumption control method, a device and a storage medium, which relate to the technical field of communication and are used for reducing the power consumption of a terminal when full screen is applied so as to improve the cruising ability of equipment. The method comprises the following steps: determining an application operated by the terminal in response to determining that the terminal is in an application full-screen display state; determining a target application in applications running on the terminal, wherein the target application is an application in a non-full screen display state running on the terminal; and reducing the power consumption of the target application.

Description

Power consumption control method and device and storage medium
Technical Field
The disclosure relates to the field of communication technologies, and in particular, to a power consumption control method, a device and a storage medium.
Background
As the scenes of daily life are gradually covered by applications based on mobile terminals, mobile terminals have become an integral part of people's life. At present, applications installed on a mobile terminal by a user are rich and various, interface display patterns are complex, interactive functions among the applications and between the applications and the system are complex, and when a background is managed and controlled, accurate optimization can not be performed on the interface display only aiming at application processes with irrelevant functions, so that user experience is poor in partial scenes.
Disclosure of Invention
To overcome the problems in the related art, the present disclosure provides a power consumption control method, apparatus, and storage medium.
According to a first aspect of embodiments of the present disclosure, there is provided a power consumption control method applied to a terminal, including determining an application run by the terminal in response to determining that the terminal is in an application full-screen display state; determining a target application in applications running on the terminal, wherein the target application is an application in a non-full screen display state running on the terminal; and reducing the power consumption of the target application.
In one embodiment, determining that the terminal is in an application full screen display state includes: determining a rendered layer set in a terminal, and determining the display sequence and the display size of each layer in the layer set; the display sequence in the layer set is the last layer and is used as a target layer; and if the display size of the target layer is consistent with the screen size of the terminal, determining that the terminal is in an application full-screen display state.
In another embodiment, the power consumption control method further includes: when the target layers are subjected to layer synthesis, determining the layer generation frequency of the target layers, and determining the screen refresh rate of the terminal; and if the screen refresh rate is greater than the layer generation frequency, adjusting the screen refresh rate to be consistent with the layer generation frequency.
In yet another embodiment, determining a target application in a running application includes: determining an application meeting at least one of the following as a target application in applications running on a terminal: an application not displayed on the current full screen display interface; an application whose function is not perceived by the user; the running process is an application of unnecessary processes.
In yet another embodiment, reducing power consumption of the target application includes: and freezing the running process corresponding to the target application to limit the running process corresponding to the target application to use the system running resource.
According to a second aspect of embodiments of the present disclosure, there is provided a power consumption control apparatus applied to a terminal, including a determining module configured to determine an application run by the terminal in response to determining that the terminal is in an application full-screen display state; determining a target application in applications running on the terminal, wherein the target application is an application in a non-full screen display state running on the terminal; and the processing module is used for reducing the power consumption of the target application by the application.
In one embodiment, the determining module is further configured to determine a rendered layer set in the terminal, and determine a display order and a display size of each layer in the layer set; the display sequence in the layer set is the last layer and is used as a target layer; and if the display size of the target layer is consistent with the screen size of the terminal, determining that the terminal is in an application full-screen display state.
In another embodiment, the determining module is further configured to determine a layer generation frequency of the target layer and determine a screen refresh rate of the terminal when performing layer synthesis on the target layer; and the processing module is also used for adjusting the screen refresh rate to be consistent with the layer generation frequency if the screen refresh rate is greater than the layer generation frequency.
In yet another embodiment, the determining module is specifically configured to determine, among applications running in the terminal, an application that satisfies at least one of the following, as the target application: an application not displayed on the current full screen display interface; an application whose function is not perceived by the user; the running process is an application of unnecessary processes.
In yet another embodiment, the processing module is specifically configured to freeze the running process corresponding to the target application, so as to limit the running process corresponding to the target application from using the system running resource.
According to a third aspect of the embodiments of the present disclosure, there is provided a power consumption control apparatus including: a processor; a memory for storing processor-executable instructions; wherein the processor is configured to perform the power consumption control method as described in the first aspect and embodiments thereof.
According to a third aspect of embodiments of the present disclosure, there is provided a non-transitory computer-readable storage medium, which when executed by a processor, performs the power consumption control method according to the first aspect and embodiments thereof described above.
The technical scheme provided by the embodiment of the disclosure can comprise the following beneficial effects: when the application is in a full-screen state in the terminal, determining non-full-screen application from the applications running in the terminal, and reducing the power consumption of the non-full-screen application, thereby ensuring the fluency of the full-screen application, improving the cruising ability of the terminal and ensuring the use experience of a user.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the disclosure and together with the description, serve to explain the principles of the disclosure.
Fig. 1 is a flow chart illustrating a method of power consumption according to an exemplary embodiment.
Fig. 2 is a flow chart illustrating yet another power consumption method according to an exemplary embodiment.
Fig. 3 is a flow chart illustrating yet another power consumption method according to an exemplary embodiment.
Fig. 4 is a flow chart illustrating yet another power consumption method according to an exemplary embodiment.
Fig. 5 is a block diagram illustrating a power consumption control apparatus according to an exemplary embodiment.
Fig. 6 is a block diagram illustrating an apparatus for power consumption control according to an example embodiment.
Fig. 7 is a block diagram illustrating another apparatus for power consumption control according to an example embodiment.
Detailed Description
Reference will now be made in detail to exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, the same numbers in different drawings refer to the same or similar elements, unless otherwise indicated. The implementations described in the following exemplary examples are not representative of all implementations consistent with the present disclosure.
According to the background technology, applications installed on the mobile terminal by the current user are rich and various, the interface display patterns are complex, the interactive functions between the applications and the system are complex, and the user experience is poor in part of scenes because the accurate optimization can not be performed on the interface display only aiming at application processes with irrelevant functions when the background is controlled.
In the related art, when power consumption of an application is reduced, whether a process can be frozen is generally determined by a priority of the process, but when a priority of a process associated with some applications being used by a user is low, if the process with the low priority is frozen, a functional abnormality being used by the user is caused, so that a bad experience is brought to the user.
Aiming at the technical problems, when the application in the terminal is in a full-screen state, determining the non-full-screen application from the application running in the terminal, and reducing the power consumption of the non-full-screen application, thereby guaranteeing the fluency of the full-screen application, improving the endurance of the terminal and guaranteeing the use experience of a user.
The application control method provided by the embodiment of the disclosure is mainly applied to terminal equipment such as mobile phones, tablet computers, desktop computers, laptop computers, handheld computers, notebook computers, ultra-mobile personal computer (UMPC), netbooks and the like, and can perform man-machine interaction with users through input equipment such as keyboards, virtual keyboards, touch pads, touch screens, voice control equipment and the like.
Fig. 1 is a flowchart illustrating a power consumption method according to an exemplary embodiment, and as shown in fig. 1, a power consumption control method is used in a terminal, including the following steps.
In step S11, in response to determining that the terminal is in the application full-screen display state, an application run by the terminal is determined.
The application full-screen state indicates that the application is in the full-screen state in the terminal, and it is worth to say that even if a small window or a floating window exists above the application interface in the full-screen state, the embodiment of the disclosure is not influenced to determine whether the terminal is in the application full-screen display state.
Optionally, applications run by the terminal include, but are not limited to: and the application and the process run in the terminal interface and the terminal background.
In step S12, a target application is determined among applications run by the terminal.
The target application is an application in a non-full-screen display state operated by the terminal.
In step S13, the power consumption of the target application is reduced.
When the application is in the full-screen state in the terminal, the embodiment of the disclosure determines the non-full-screen application from the applications running in the terminal, and reduces the power consumption of the non-full-screen application, thereby guaranteeing the fluency of the full-screen application, improving the cruising ability of the terminal and guaranteeing the use experience of a user.
In some embodiments, the steps S21-S23 determine that the terminal is in the application full screen display state, as shown in fig. 2, including the steps of:
in step S21, a rendered layer set in the terminal is determined, and a display order and a display size of each layer in the layer set are determined.
Wherein the layers represent films containing text or graphics, and a sheet Zhang An of films are sequentially stacked together to form the final effect of the terminal interface. Elements on the page can be accurately positioned through the layer, texts, pictures, tables, plug-ins and the like can be added into the layer, and the layer can be further nested inside the layer.
In an exemplary embodiment, a layer including display content such as text, images or video may be displayed in the terminal interface, or a layer including various interface elements including a status bar, full-screen wallpaper, desktop rest, or navigation bar may be displayed, and of course, a layer including other types of display elements may also be displayed.
Optionally, because applications installed in the terminal device are various, a user may open multiple applications at the same time, and the display size of the terminal interface is limited, and the terminal interface generally cannot display all applications, so that a display order is set for the layers of each application, and when the user opens multiple applications, the display layer of the terminal interface is determined according to the display order of the layers of multiple applications.
Generally, the terminal interface is composed of four layers of status bar layer (power, base station signal strength, wifi strength), wall paper layer, application layer, and navigation bar layer (back button, main interface button, menu button).
The display order of the status bar layer, the navigation bar layer and the system window is higher, and is not easy to be covered, such as an incoming call window, a long-press shutdown key, a screen locking key and other key interfaces, the display order of an application window is relatively smaller, and the display order of a wall paper layer is the smallest.
It will be appreciated that the higher the display order of the layers, the more easily it is seen by the user at the terminal interface.
Optionally, after the layers are rendered, the rendered layers are synthesized in the image synthesis center, the display order of each layer in the layer set is determined during synthesis, and the interface displayed on the terminal interface is synthesized according to the display order of the layers.
In step S22, the display order of the layers in the layer set is the last layer, and the last layer is used as the target layer.
Alternatively, after the image composition center sequentially superimposes each layer in the layer set according to the display order of each layer, once the display portion of the terminal interface can be covered, the remaining layers cannot be displayed. Therefore, the display order of the layers capable of being displayed on the terminal interface in the layer set is the last layer, and the last layer is used as the target layer.
In step S23, if the display size of the target layer is consistent with the screen size of the terminal, it is determined that the terminal is in the application full-screen display state.
According to the embodiment of the disclosure, whether the image layer is in the full-screen display state is determined in the image layer combining stage, so that the power consumption of the target application can be directly controlled, and compared with a method that whether the application is in the full-screen display state and further the power consumption of the target application is controlled in the terminal display stage, the power consumption of the target application is controlled when a user sees the full-screen display application, and the fluency of the user using the terminal is improved.
In some embodiments, an application satisfying at least one of the following is determined as a target application in applications running on the terminal: an application not displayed on the current full screen display interface; an application whose function is not perceived by the user; the running process is an application of unnecessary processes.
The application which is not displayed on the full screen interface currently is an application which is not completely closed in the background of the terminal or is covered under the full screen display interface. Applications where functionality is not perceived by the user include, but are not limited to: audio playback without Audio resources, navigation without GPS resources, display without portlets, suspension balls without applications that interact data with the wearable device. Applications where the running process is an unnecessary process include, but are not limited to: the method comprises the steps of continuously and synchronously updating data with the networked backup of a server, frequently setting an RTC to trigger events, setting a plurality of Jobs to trigger activities in a specific scene, polling an aperiodic detection event state, constantly running background logic abnormality, and restarting the application in frequent breakdown caused by abnormal conditions.
Optionally, firstly, an application which is not perceived by the user is determined as a target application, further, an application which is not displayed on the current full-screen display interface is determined as a target application, and finally, an application which runs as an unnecessary process is determined as target music.
It should be noted that, in the embodiment of the present disclosure, the function is excluded from the target application if it is perceivable by the user, and if the function is perceivable by the user, the application perceivable by the function is not displayed on the current full screen display interface or the running process is an application of an unnecessary process.
As a possible implementation manner, system function rights of an application running in the terminal are acquired, and whether a process of the application is an unnecessary process is judged according to the system function rights.
Where system function rights are rights that an operating system gives an application the right to use a function. The service rights related to power consumption provided in the operating system include: the method comprises the steps of allowing a program to start up and automatically run, allowing the program to use a Bluetooth function, allowing positioning information to be acquired, allowing a WIFI state to be changed, allowing a flash lamp to be accessed, allowing an application program to run in a background after screen locking, allowing a network state to be changed, allowing the program to execute system service authorities such as short-distance communication operation and the like.
Optionally, acquiring a system function being used by an application running in the terminal, judging whether the system function being used by the application is a function being used by a user, has an irremovable notification, and is associated with a full-screen application being used currently, and if the system function being used by the application is not used by the user, does not have the irremovable notification, and is not associated with the full-screen application being used currently, determining the application as an application of which the process is an unnecessary process.
As another possible implementation, the target application may be determined according to the application type of the full-screen application.
In some embodiments, when the full screen application is a game scene, the system application update module updates the three-party application in the background, and although the update is increased to indicate that the three-party application is being downloaded, the update is a relatively important event, but network and performance smoothness are required in the game scene, at this time, the update application is not expected to occupy network resources to influence network interaction data of the game, and at the same time, the background intensive computing activity such as the album module of the system application for image recognition classification is not expected, and at this time, the cloud backup operation of the system is not expected to upload behavior of the interference game. The activity of these system applications may be normal and timely in non-full screen scenarios, but would be untimely in certain full screen scenarios. At this time, the process of updating the application, the process of classifying the image recognition, and the process of cloud backup are determined as processes that are not necessarily running, and the application corresponding thereto is determined as the target application.
In other embodiments, when a full screen application is playing video, the detected background behavior, dynamic update of status bars, etc. may be determined to be a non-running process, with its corresponding application determined to be a target application.
When the target application needing to be reduced in power consumption is determined, the method and the device do not judge according to the general process priority, but determine the target application from the angle of whether a user perceives and whether a running process is necessary, so that the problem that the power consumption of processes with lower priority is reduced when the user is using or the application used by the user needs to be reduced, the terminal function is abnormal, and the user cannot accurately use the terminal function is avoided.
Further, after the target application is determined, the running process corresponding to the target application is frozen, so that the running process corresponding to the target application is limited to use the system running resource.
Freezing refers to not allowing the application to run in the background of the mobile terminal, but retaining information applied in the memory and registers. The system operation resources comprise CPU resources, sensor resources, network resources and other subsystem resources.
Optionally, in addition to freezing the running process corresponding to the target application, other applications or processes may be kept alive, limited or cleaned, where keep alive refers to that the application may be allowed to run in the background of the mobile terminal, and the authority of the application is not limited; permission restriction means that an application can be allowed to run in the background of the mobile terminal, but part of the permission of the application is restricted; the method comprises the steps of carrying out a first treatment on the surface of the Cleaning refers to not allowing the application to run in the background of the mobile terminal and not retaining the information applied in the memory and registers.
Specifically, the management and control policies of different applications can be determined according to the running applications in the terminal.
As a possible implementation manner, management and control policies of different applications are preset according to different application scenes. For example, the determined management policy corresponding to the target application is set as a freezing process, and the management policy corresponding to the application which is perceivable by the user but is not displayed in the full-screen application is set as keep-alive.
The embodiment of the disclosure also provides a power consumption control method, as shown in fig. 3, comprising steps S31-S32:
in step S31, when layer composition is performed on the target layer, the layer generation frequency of the target layer is determined, and the screen refresh rate of the terminal is determined.
The layer generation frequency represents the refresh frequency of the layer when the layer is displayed on the terminal interface, and the generation frequency of each application layer is generally different. The screen refresh rate refers to the number of times that an image on a screen is repeatedly scanned from top to bottom, and the higher the refresh rate, the smoother the displayed picture.
Specifically, the information to be displayed of all layers in the current system is synthesized into one frame through the SurfaceFlinger class in the operating system, and then the Frame Buffer (FB) is controlled by the display driving module (Mobile Display Process, MDP) to send the synthesized one frame information to the terminal display screen according to the layer generating frequency, so that the display screen refreshes and displays the synthesized one frame information according to the layer generating frequency.
In step S32, if the screen refresh rate is greater than the layer generation frequency, the screen refresh rate is adjusted to be consistent with the layer generation frequency.
Furthermore, when the target layer is detected to exit the terminal screen, the screen refresh rate of the terminal needs to be restored because the generation frequency of each layer is different, so that the phenomenon that the next layer cannot be smoothly displayed due to the lower screen refresh rate when the next layer is displayed on the terminal is avoided.
In the embodiment of the disclosure, after a full-screen display scene is detected, power consumption is reduced from a system resource limiting the use of a target application, and also from a screen refresh rate, because the screen refresh rate and the generation frequency of the target layer are not necessarily the same, when the screen refresh rate is greater than the generation frequency of the target layer, the generation frequency of the target layer can meet the display flow of the full-screen application, if the screen refresh rate is greater than the generation frequency of the target layer, the optimization of the full-screen scene is excessive, and the use feeling of a user is poor, so that the screen refresh rate is adjusted to the generation screen of the target layer, and the power consumption of the terminal is further reduced on the basis of meeting the fluency of the full-screen scene.
In order to more specifically explain the power consumption control method provided by the disclosure, the description is made from the overall flow, as shown in fig. 4, layer B and layer C are applications displayed on the terminal interface, at this time, the operation that the user needs to open application a is received, first, rendering is performed on layer a corresponding to application a, after the rendering is completed, the layer a, layer B and layer C are synthesized in the image synthesis center according to the display order and the display size of each layer, if the display order of layer a is the last and the display size of layer a is equal to the display size of the terminal interface, it is determined that the application corresponding to layer a is full-screen application, and the applications and processes existing in the terminal at present are collected, the applications are traversed, non-full-screen applications (applications not displayed on the current full-screen display interface, applications not perceived by the user by the function, and applications not necessary to run the processes) are added into the management and control list, and the management and control center adopts the coup frezer subsystem in the Linux system to manage and control the applications and processes in the management and control list. When an external event occurs (e.g., a full screen application is exited), the management and control center manages the application and process contacts in the management and control list through the group freizer subsystem. If the full-screen application does not exist in the layer set, the subsequent operation is not executed.
When the application is in the full-screen state in the terminal, the embodiment of the disclosure determines the non-full-screen application from the applications running in the terminal, and reduces the power consumption of the non-full-screen application, thereby guaranteeing the fluency of the full-screen application, improving the cruising ability of the terminal and guaranteeing the use experience of a user.
Based on the same conception, the embodiment of the disclosure also provides a power consumption control device.
It may be appreciated that, in order to implement the above-mentioned functions, the power consumption control device provided in the embodiments of the present disclosure includes a hardware structure and/or a software module that perform respective functions. The disclosed embodiments may be implemented in hardware or a combination of hardware and computer software, in combination with the various example elements and algorithm steps disclosed in the embodiments of the disclosure. Whether a function is implemented as hardware or computer software driven hardware depends upon the particular application and design constraints imposed on the solution. Those skilled in the art may implement the described functionality using different approaches for each particular application, but such implementation is not to be considered as beyond the scope of the embodiments of the present disclosure.
Fig. 5 is a block diagram of a power consumption control apparatus according to an exemplary embodiment. Referring to fig. 5, the apparatus includes a determination module 501 and a processing module 502.
The determining module 501 is configured to determine an application run by the terminal in response to determining that the terminal is in an application full screen display state; determining a target application in applications running on the terminal, wherein the target application is an application in a non-full screen display state running on the terminal;
the processing module 502 is configured for the application to reduce power consumption of the target application.
In an embodiment, the determining module 501 is further configured to determine a rendered layer set in the terminal, and determine a display order and a display size of each layer in the layer set; the display sequence in the layer set is the last layer and is used as a target layer; and if the display size of the target layer is consistent with the screen size of the terminal, determining that the terminal is in an application full-screen display state.
In another embodiment, the determining module 501 is further configured to determine a layer generation frequency of the target layer and determine a screen refresh rate of the terminal when layer composition is performed on the target layer;
the processing module 502 is further configured to adjust the screen refresh rate to be consistent with the layer generation frequency if the screen refresh rate is greater than the layer generation frequency.
In yet another embodiment, the determining module 501 is specifically configured to determine, among applications run by the terminal, an application that satisfies at least one of the following as a target application: an application not displayed on the current full screen display interface; an application whose function is not perceived by the user; the running process is an application of unnecessary processes.
In yet another embodiment, the processing module 502 is specifically configured to freeze the running process corresponding to the target application, so as to limit the running process corresponding to the target application from using the system running resource.
The specific manner in which the various modules perform the operations in the apparatus of the above embodiments have been described in detail in connection with the embodiments of the method, and will not be described in detail herein.
Fig. 6 is a block diagram illustrating an apparatus 600 for power consumption control, according to an example embodiment. For example, apparatus 600 may be a mobile phone, computer, digital broadcast terminal, messaging device, game console, tablet device, medical device, exercise device, personal digital assistant, or the like.
Referring to fig. 6, apparatus 600 may include one or more of the following components: a processing component 602, a memory 604, a power component 606, a multimedia component 608, an audio component 610, an input/output (I/O) interface 612, a sensor component 614, and a communication component 616.
The processing component 602 generally controls overall operation of the apparatus 600, such as operations associated with display, telephone calls, data communications, camera operations, and recording operations. The processing component 602 may include one or more processors 620 to execute instructions to perform all or part of the steps of the methods described above. Further, the processing component 602 can include one or more modules that facilitate interaction between the processing component 602 and other components. For example, the processing component 602 may include a multimedia module to facilitate interaction between the multimedia component 608 and the processing component 602.
The memory 604 is configured to store various types of data to support operations at the apparatus 600. Examples of such data include instructions for any application or method operating on the apparatus 600, contact data, phonebook data, messages, pictures, videos, and the like. The memory 604 may be implemented by any type or combination of volatile or nonvolatile memory devices such as Static Random Access Memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic or optical disk.
The power component 606 provides power to the various components of the device 600. The power components 606 may include a power management system, one or more power sources, and other components associated with generating, managing, and distributing power for the device 600.
The multimedia component 608 includes a screen between the device 600 and the user that provides an output interface. In some embodiments, the screen may include a Liquid Crystal Display (LCD) and a Touch Panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive input signals from a user. The touch panel includes one or more touch sensors to sense touches, swipes, and gestures on the touch panel. The touch sensor may sense not only the boundary of a touch or slide action, but also the duration and pressure associated with the touch or slide operation. In some embodiments, the multimedia component 608 includes a front camera and/or a rear camera. The front camera and/or the rear camera may receive external multimedia data when the apparatus 600 is in an operational mode, such as a photographing mode or a video mode. Each front camera and rear camera may be a fixed optical lens system or have focal length and optical zoom capabilities.
The audio component 610 is configured to output and/or input audio signals. For example, the audio component 610 includes a Microphone (MIC) configured to receive external audio signals when the apparatus 600 is in an operational mode, such as a call mode, a recording mode, and a voice recognition mode. The received audio signals may be further stored in the memory 604 or transmitted via the communication component 616. In some embodiments, audio component 610 further includes a speaker for outputting audio signals.
The I/O interface 612 provides an interface between the processing component 602 and peripheral interface modules, which may be a keyboard, click wheel, buttons, etc. These buttons may include, but are not limited to: homepage button, volume button, start button, and lock button.
The sensor assembly 614 includes one or more sensors for providing status assessment of various aspects of the apparatus 600. For example, the sensor assembly 614 may detect the open/closed state of the device 600, the relative positioning of the components, such as the display and keypad of the device 600, the sensor assembly 614 may also detect a change in position of the device 600 or a component of the device 600, the presence or absence of user contact with the device 600, the orientation or acceleration/deceleration of the device 600, and a change in temperature of the device 600. The sensor assembly 614 may include a proximity sensor configured to detect the presence of nearby objects in the absence of any physical contact. The sensor assembly 614 may also include a light sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 614 may also include an acceleration sensor, a gyroscopic sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
The communication component 616 is configured to facilitate communication between the apparatus 600 and other devices in a wired or wireless manner. The device 600 may access a wireless network based on a communication standard, such as WiFi,2G or 3G, or a combination thereof. In one exemplary embodiment, the communication component 616 receives broadcast signals or broadcast-related information from an external broadcast management system via a broadcast channel. In one exemplary embodiment, the communication component 616 further includes a Near Field Communication (NFC) module to facilitate short range communications. For example, the NFC module may be implemented based on Radio Frequency Identification (RFID) technology, infrared data association (IrDA) technology, ultra Wideband (UWB) technology, bluetooth (BT) technology, and other technologies.
In an exemplary embodiment, the apparatus 600 may be implemented by one or more Application Specific Integrated Circuits (ASICs), digital Signal Processors (DSPs), digital Signal Processing Devices (DSPDs), programmable Logic Devices (PLDs), field Programmable Gate Arrays (FPGAs), controllers, microcontrollers, microprocessors, or other electronic elements for performing the above power consumption control methods.
In an exemplary embodiment, a non-transitory computer-readable storage medium is also provided, such as memory 604, including instructions executable by processor 620 of apparatus 600 to perform the above-described method. For example, the non-transitory computer readable storage medium may be ROM, random Access Memory (RAM), CD-ROM, magnetic tape, floppy disk, optical data storage device, etc.
Fig. 7 is a block diagram illustrating an apparatus 700 for a power consumption control method according to an exemplary embodiment. For example, the apparatus 700 may be provided as a server. Referring to fig. 7, apparatus 700 includes a processing component 722 that further includes one or more processors and memory resources represented by memory 732 for storing instructions, such as applications, executable by processing component 722. The application programs stored in memory 732 may include one or more modules that each correspond to a set of instructions. Further, the processing component 722 is configured to execute instructions to perform the power consumption control method described above.
The apparatus 700 may further comprise a power component 726 configured to perform power management of the apparatus 700, a wired or wireless network interface 750 configured to connect the apparatus 700 to a network, and an input output (I/O) interface 758. The apparatus 700 may operate based on an operating system stored in memory 732, such as Windows Server, mac OS XTM, unixTM, linuxTM, freeBSDTM, or the like.
It is understood that the term "plurality" in this disclosure means two or more, and other adjectives are similar thereto. "and/or", describes an association relationship of an association object, and indicates that there may be three relationships, for example, a and/or B, and may indicate: a exists alone, A and B exist together, and B exists alone. The character "/" generally indicates that the context-dependent object is an "or" relationship. The singular forms "a," "an," and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise.
It is further understood that the terms "first," "second," and the like are used to describe various information, but such information should not be limited to these terms. These terms are only used to distinguish one type of information from another and do not denote a particular order or importance. Indeed, the expressions "first", "second", etc. may be used entirely interchangeably. For example, first information may also be referred to as second information, and similarly, second information may also be referred to as first information, without departing from the scope of the present disclosure.
It will be further understood that "connected" includes both direct connection where no other member is present and indirect connection where other element is present, unless specifically stated otherwise.
It will be further understood that although operations are depicted in the drawings in a particular order, this should not be understood as requiring that such operations be performed in the particular order shown or in sequential order, or that all illustrated operations be performed, to achieve desirable results. In certain circumstances, multitasking and parallel processing may be advantageous.
Other embodiments of the disclosure will be apparent to those skilled in the art from consideration of the specification and practice of the disclosure disclosed herein. This application is intended to cover any adaptations, uses, or adaptations of the disclosure following, in general, the principles of the disclosure and including such departures from the present disclosure as come within known or customary practice within the art to which the disclosure pertains.
It is to be understood that the present disclosure is not limited to the precise arrangements and instrumentalities shown in the drawings, and that various modifications and changes may be effected without departing from the scope thereof. The scope of the present disclosure is limited only by the scope of the appended claims.

Claims (12)

1. A power consumption control method, applied to a terminal, comprising:
determining an application operated by the terminal in response to determining that the terminal is in an application full-screen display state;
determining a target application in the applications operated by the terminal, wherein the target application is an application in a non-full screen display state operated by the terminal;
and reducing the power consumption of the target application.
2. The method of claim 1, wherein the determining that the terminal is in an application full screen display state comprises:
determining a rendered layer set in the terminal, and determining the display sequence and the display size of each layer in the layer set;
taking the display sequence in the layer set as the last layer as a target layer;
and if the display size of the target layer is consistent with the screen size of the terminal, determining that the terminal is in an application full-screen display state.
3. The method according to claim 2, wherein the method further comprises:
when the target layers are subjected to layer synthesis, determining the layer generation frequency of the target layers, and determining the screen refresh rate of the terminal;
and if the screen refresh rate is greater than the layer generation frequency, adjusting the screen refresh rate to be consistent with the layer generation frequency.
4. The method according to claim 1, wherein determining a target application among applications run by the terminal comprises:
determining an application meeting at least one of the following as a target application in the applications running by the terminal:
an application not displayed on the current full screen display interface;
an application whose function is not perceived by the user;
the running process is an application of unnecessary processes.
5. The method of any of claims 1 to 4, wherein the reducing power consumption of the target application comprises:
and freezing the running process corresponding to the target application to limit the running process corresponding to the target application to use the system running resource.
6. A power consumption control apparatus, characterized by being applied to a terminal, comprising:
the determining module is used for determining an application operated by the terminal in response to determining that the terminal is in an application full-screen display state; determining a target application in the applications operated by the terminal, wherein the target application is an application in a non-full screen display state operated by the terminal;
and the processing module is used for reducing the power consumption of the target application by the application.
7. The apparatus of claim 6, wherein the device comprises a plurality of sensors,
the determining module is further used for determining a rendered layer set in the terminal and determining the display sequence and the display size of each layer in the layer set; taking the display sequence in the layer set as the last layer as a target layer; and if the display size of the target layer is consistent with the screen size of the terminal, determining that the terminal is in an application full-screen display state.
8. The apparatus of claim 7, wherein the device comprises a plurality of sensors,
the determining module is further configured to determine a layer generation frequency of the target layer and determine a screen refresh rate of the terminal when layer synthesis is performed on the target layer;
and the processing module is further used for adjusting the screen refresh rate to be consistent with the layer generation frequency if the screen refresh rate is greater than the layer generation frequency.
9. The apparatus of claim 6, wherein the device comprises a plurality of sensors,
the determining module is specifically configured to determine, among applications running in the terminal, an application that satisfies at least one of the following, as a target application: an application not displayed on the current full screen display interface; an application whose function is not perceived by the user; the running process is an application of unnecessary processes.
10. The device according to any one of claims 6 to 9, wherein,
the processing module is specifically configured to freeze the running process corresponding to the target application, so as to limit the running process corresponding to the target application to use the system running resource.
11. A power consumption control apparatus, characterized by comprising:
a processor;
a memory for storing processor-executable instructions;
wherein the processor is configured to perform the power consumption control method of any of claims 1-5.
12. A non-transitory computer readable storage medium, which when executed by a processor, performs the power consumption control method of any of claims 1-5.
CN202210612250.5A 2022-05-31 2022-05-31 Power consumption control method and device and storage medium Pending CN117193584A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210612250.5A CN117193584A (en) 2022-05-31 2022-05-31 Power consumption control method and device and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210612250.5A CN117193584A (en) 2022-05-31 2022-05-31 Power consumption control method and device and storage medium

Publications (1)

Publication Number Publication Date
CN117193584A true CN117193584A (en) 2023-12-08

Family

ID=89002210

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210612250.5A Pending CN117193584A (en) 2022-05-31 2022-05-31 Power consumption control method and device and storage medium

Country Status (1)

Country Link
CN (1) CN117193584A (en)

Similar Documents

Publication Publication Date Title
US11956528B2 (en) Shooting method using target control, electronic device, and storage medium
CN111580904B (en) Display state switching method, display state switching device and storage medium
CN110231901B (en) Application interface display method and device
CN109157839A (en) Frame per second regulates and controls method, apparatus, storage medium and terminal
US20170300211A1 (en) Method and apparatus for displaying status information of application
US20150116368A1 (en) Method and device for adjusting characters of application
CN112905089B (en) Equipment control method and device
CN110572704A (en) method, device, equipment and medium for controlling bullet screen playing speed
US10229165B2 (en) Method and device for presenting tasks
CN113703937A (en) Animation switching method and device and storage medium
US20190012299A1 (en) Displaying page
US20240045583A1 (en) Page display method, electronic device and storage medium
US20210120276A1 (en) Screen display device, method and device for controlling screen display and storage medium
CN109491655B (en) Input event processing method and device
CN111597797A (en) Method, device, equipment and medium for editing social circle message
CN108829473B (en) Event response method, device and storage medium
CN111092971A (en) Display method and device for displaying
CN110648657A (en) Language model training method, language model construction method and language model construction device
CN112083841B (en) Information input method, device and storage medium
CN117193584A (en) Power consumption control method and device and storage medium
CN112312058B (en) Interaction method and device and electronic equipment
CN114442789A (en) Dark screen control method, device, equipment and storage medium
CN110008135B (en) Information processing method and device and electronic equipment
CN110417987B (en) Operation response method, device, equipment and readable storage medium
CN112698902A (en) Application program setting method and 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