Method and device for reducing power consumption of terminal equipment, equipment and storage medium
By detecting the energy-saving conditions of the smart home control panel, stopping clock animations and adjusting brightness, the equipment's power consumption and heating problems are solved, and the user experience is improved.
Patent Information
- Application Number
- CN202411208432.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-28
- Publication Date
- 2024-12-27
AI Technical Summary
The long-term operation of the smart home control panel may cause rapid battery consumption, heat up, and even automatically shut down or exit key functions, affecting the user experience.
By real-time detection of whether the terminal device meets preset energy-saving conditions, obtain and stop the clock animation and animation elements of the display screen, adjust the brightness according to the operation time, and reduce power consumption.
It extends the service life of terminal equipment, improves user experience, and avoids inconvenience caused by power consumption and heating.
Smart Images

Figure CN119200806A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of terminal technology, and in particular to a method, apparatus, device and storage medium for reducing power consumption of a terminal device. Background Art
[0002] With the advancement of science and technology and the continuous maturity of mobile intelligent terminal technology, smart home control panels have become an indispensable part of family life. In order to improve the user experience, the functions and services provided by modern smart home control panels are also increasing, including multimedia playback, device control, security monitoring and other functions. These functions not only enrich the daily life of users, but also improve the safety and convenience of the family.
[0003] However, as the multimedia functions of smart home control panels continue to increase, their energy consumption also increases. A control panel that runs for a long time may quickly consume battery power and may become hot, and sometimes even cause the control panel to automatically shut down or exit key functions, which not only increases daily power consumption, but also affects the normal use of the smart home control panel, causing inconvenience to users and seriously affecting the user experience. Summary of the invention
[0004] In view of the above content, it is necessary to provide a method, device, equipment and storage medium for reducing the power consumption of terminal equipment to solve the technical problem that a control panel that runs for a long time may quickly consume battery power and may generate heat, and sometimes even cause the control panel to automatically shut down or exit key functions, which not only increases daily power consumption, but also affects the normal use of the smart home control panel, causing inconvenience to users and seriously affecting the user's experience.
[0005] An embodiment of the present application provides a method for reducing power consumption of a terminal device, wherein the terminal device includes a display screen, and the method includes:
[0006] When the display screen is in a bright screen state, real-time detection of whether the terminal device meets a preset energy-saving condition;
[0007] When the terminal device meets the preset energy-saving condition, acquiring the animation element being displayed on the display screen;
[0008] Detect whether there is a clock animation in the animation element;
[0009] When the clock animation exists in the animation element, the display screen is controlled to stop displaying the second hand animation in the clock animation and the remaining animations in the animation element.
[0010] In some embodiments, the method further comprises:
[0011] When the clock animation does not exist in the animation element, the display screen is controlled to stop displaying the animation element.
[0012] In some embodiments, when the terminal device meets the preset energy-saving condition, the method further includes:
[0013] Get the current operation time;
[0014] Determining whether the operation time belongs to a preset time period;
[0015] When the operation time belongs to a preset time period, reducing the current brightness of the display screen to a first preset brightness; and
[0016] When the operation time does not belong to the preset time period, the current brightness of the display screen is reduced to a second preset brightness.
[0017] In some embodiments, the method further includes: setting the operation time to include the current date, and setting the preset time period to a date corresponding to summer.
[0018] In some embodiments, the method further includes: setting the first preset brightness to the product of the current brightness and a first preset ratio, and setting the second preset brightness to the product of the current brightness and a second preset ratio, wherein the first preset ratio is smaller than the second preset ratio.
[0019] In some embodiments, the method further includes: when it is detected again that the terminal device does not meet the preset energy-saving condition, controlling the display screen to redisplay the animation element.
[0020] In some embodiments, the preset energy-saving condition includes: the terminal device does not receive any touch operation or non-touch operation from the user within a preset time period.
[0021] The embodiment of the present application further provides a device for reducing power consumption of a terminal device, wherein the terminal device includes a display screen, and the device includes:
[0022] A judgment module, used for detecting in real time whether the terminal device meets a preset energy-saving condition when the display screen is in a bright screen state;
[0023] An acquisition module, used for acquiring the animation element being displayed on the display screen when the terminal device meets the preset energy-saving condition;
[0024] A detection module, used to detect whether there is a clock animation in the animation element;
[0025] The control module is used to control the display screen to stop displaying the second hand animation in the clock animation and the remaining animations in the animation element when the clock animation exists in the animation element.
[0026] An embodiment of the present application also provides a terminal device, which includes: a memory, storing at least one instruction; and a processor, executing the at least one instruction to implement the method for reducing the power consumption of the terminal device as described in any one of the above embodiments.
[0027] An embodiment of the present application also provides a computer-readable storage medium, in which at least one instruction is stored. The at least one instruction is executed by a processor of a terminal device to implement a method for reducing power consumption of a terminal device as described in any of the above embodiments.
[0028] The present application detects in real time whether the terminal device meets a preset energy-saving condition when the display screen is in a bright screen state; further, when the terminal device meets the preset energy-saving condition, obtains the animation element being displayed on the display screen; further detects whether there is a clock animation in the animation element; further, when the clock animation exists in the animation element, controls the display screen to stop displaying the second hand animation in the clock animation and the rest of the animation in the animation element. Based on this, the present application controls the display screen to stop displaying the second hand animation in the clock animation and the rest of the animation in the animation element when the terminal device meets the preset energy-saving condition and the clock animation exists in the animation element, thereby reducing the power consumption of the terminal device, extending the service life of the terminal device, and improving the user experience. BRIEF DESCRIPTION OF THE DRAWINGS
[0029] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on the provided drawings without paying any creative work.
[0030] Figure 1 This is a flowchart of the steps of a method for reducing power consumption of a terminal device provided in one embodiment of the present application.
[0031] Figure 2 This is a flowchart of the steps of a method for reducing power consumption of a terminal device provided in another embodiment of the present application.
[0032] Figure 3 This is a composition diagram of an apparatus for reducing power consumption of a terminal device provided in yet another embodiment of the present application.
[0033] Figure 4This is a hardware structure diagram of a terminal device provided in one embodiment of the present application.
[0034] Main component symbols
[0035] Device 100 for reducing power consumption of terminal equipment
[0036] Determination module 110
[0037] Acquisition module 120
[0038] Detection module 130
[0039] Control module 140
[0040] Terminal device 10
[0041] Memory 11
[0042] Processor 12 DETAILED DESCRIPTION
[0043] The embodiments of the present application are described in detail below, and examples of the embodiments are shown in the accompanying drawings, wherein the same or similar reference numerals throughout represent the same or similar elements or elements having the same or similar functions. The embodiments described below with reference to the accompanying drawings are exemplary and are only used to explain the present application, and cannot be understood as limiting the present application.
[0044] In the embodiments of the present application, it should be noted that, unless otherwise clearly specified and limited, words such as "exemplary" or "for example" are used to indicate examples, illustrations or descriptions. Any embodiment or design described as "exemplary" or "for example" in the embodiments of the present application should not be interpreted as being more preferred or more advantageous than other embodiments or designs. Specifically, the use of words such as "exemplary" or "for example" is intended to present related concepts in a concrete way. In the absence of conflict, the following embodiments and features in the embodiments may be combined with each other.
[0045] In the description of this application, it should be noted that, unless otherwise clearly specified and limited, the term "connection" should be understood in a broad sense, for example, it can be a fixed connection, a detachable connection, or an integral connection; it can be a mechanical connection, an electrical connection, or mutual communication; it can be a direct connection, or an indirect connection through an intermediate medium, it can be the internal connection of two elements or the interaction relationship between two elements. For ordinary technicians in this field, the specific meanings of the above terms in this application can be understood according to specific circumstances.
[0046] In the description of the present application, it should be noted that the terms "first", "second", etc. (if any) in the specification and claims of the present application are used to distinguish similar objects, rather than to describe a specific order or sequence. In the description of the present application, the meaning of "plurality" is two or more, unless otherwise clearly and specifically defined.
[0047] In order to more clearly understand the above-mentioned purposes, features and advantages of the present application, the present application is described in detail below in conjunction with the accompanying drawings and specific embodiments. It should be noted that the embodiments of the present application and the features in the embodiments can be combined with each other without conflict.
[0048] With the development of science and technology, the technology of smart home control panel has been increasingly improved, making it an indispensable part of people's lives. In order to improve people's user experience, the functions of smart home control panel are becoming more and more complete, integrating many sensors, and the screens of smart home control panel are getting bigger and bigger. Numerous sensors and larger screens make the power consumption of smart home control panel higher and higher, which undoubtedly brings many inconveniences to users. For example, when users urgently need to use smart home control panel to control home devices, the smart home control panel device cannot be used normally due to overheating, which seriously affects the user's user experience.
[0049] In view of this, the present application provides a method, apparatus, device and storage medium for reducing power consumption of a terminal device to solve the above-mentioned problem.
[0050] See also Figure 1 , is a schematic diagram of the steps of a method for reducing power consumption of a terminal device provided in an embodiment of the present application.
[0051] The method for reducing the power consumption of a terminal device provided in an embodiment of the present application is applied to one or more terminal devices. The terminal device is a device that can automatically perform numerical calculations and / or information processing according to pre-set or stored instructions, and its hardware includes but is not limited to a microprocessor, an application-specific integrated circuit (ASIC), a programmable gate array (FPGA), a digital processor (DSP), an embedded device, etc.
[0052] In other embodiments, the terminal device can be any electronic product with a display screen, such as a personal computer, a tablet computer, a smart phone, a personal digital assistant (PDA), a game console, a smart home control panel, a smart speaker with a screen, a smart switch with a screen, an interactive network television (Internet Protocol Television, IPTV), a smart wearable device, etc.
[0053] In some embodiments, the network where the terminal device is located includes but is not limited to the Internet, a wide area network, a metropolitan area network, a local area network, a virtual private network (VPN), etc.
[0054] The method for reducing the power consumption of a terminal device provided in an embodiment of the present application specifically includes the following steps. According to different requirements, the order of some steps in the flowchart can be changed, and some steps can be omitted.
[0055] S10, when the display screen is in a bright screen state, real-time detection is performed to determine whether the terminal device meets a preset energy-saving condition.
[0056] In some embodiments, the display screen may be a touch screen. The display screen displays visual output to the user, wherein the visual output may include text, graphics, video, and any combination thereof. The display screen may use liquid crystal display (LCD) technology or other known display technologies.
[0057] In some embodiments, the preset energy saving condition includes: the terminal device does not receive any touch operation or non-touch operation from the user within a preset time period. For example, the preset time period may be 30 seconds, which is not limited in this application.
[0058] In some embodiments, touch operations mainly refer to a series of operations performed by a user through the touch screen, which directly rely on the direct contact between the user's finger or stylus and the touch screen. Touch operations include but are not limited to: touch events, gesture operations (such as sliding, zooming, rotating, etc.).
[0059] In some embodiments, non-touch operations refer to operations performed in other ways without relying on a touch screen. Non-touch operations include, but are not limited to: keyboard operations, mouse operations, pointer operations, handle operations, voice operations, and remote control operations of terminal devices through wireless technologies such as Bluetooth or Wi-Fi.
[0060] In some embodiments, when the terminal device meets the preset energy-saving condition, step S11 is continued.
[0061] In some embodiments, when the terminal device meets the preset energy-saving condition, the process returns to step S10.
[0062] S11, obtaining the animation element being displayed on the display screen.
[0063] In some embodiments, when the terminal device meets the preset energy-saving conditions, in order to more effectively manage processing resources and reduce power consumption, some non-essential visual effects, such as animation elements, may be selectively reduced or optimized. In this process, obtaining the animation elements being displayed on the display screen is an important step in implementing energy-saving measures.
[0064] Specifically, the terminal device can obtain the animation element being displayed on the display screen by calling the system application programming interface (Application Programming Interface, API).
[0065] S12, detecting whether there is a clock animation in the animation element.
[0066] In some embodiments, the animation elements are usually constructed by Hyper Text Markup Language (HTML), Cascading Style Sheets (CSS) and JavaScript scripting language. Therefore, the terminal device can find out whether there is a specific element or class representing the clock animation by analyzing the Document Object Model (DOM) structure. For example, you can search for class names or IDs with keywords such as "clock" and "timer", which are usually related to clock animation.
[0067] In some embodiments, when there is a clock animation in the animation element, step S13 is executed.
[0068] In some embodiments, when there is no clock animation in the animation element, step S14 is executed.
[0069] S13, controlling the display screen to stop displaying the second hand animation in the clock animation and the remaining animations in the animation elements.
[0070] In some embodiments, the terminal device can control the display screen to stop displaying the second hand animation in the clock animation and the remaining animations in the animation elements by calling an API.
[0071] S14, controlling the display screen to stop displaying the animation element.
[0072] In the above embodiment, when the terminal device meets the preset energy-saving condition and there is a clock animation in the animation element, the display screen is controlled to stop displaying the second hand animation in the clock animation and the other animations in the animation element; when the terminal device meets the preset energy-saving condition but there is no clock animation in the animation element, the display screen is controlled to stop displaying the animation element. Based on this, the clock display is optimized, the power consumption of the terminal device is reduced, the service life of the terminal device is extended, and the user experience is improved.
[0073] In some embodiments, the method for reducing power consumption of a terminal device provided in an embodiment of the present application specifically further includes, after step S14: when it is detected again that the terminal device does not meet the preset energy-saving condition, controlling the display screen to redisplay the animation elements.
[0074] In the above embodiment, when it is detected that the terminal device does not meet the preset energy-saving conditions, the display screen is controlled to redisplay the animation elements, thereby ensuring that when the user has usage needs, the display screen quickly returns to normal working state, thereby improving the user experience.
[0075] Combination Figure 2 , which is a schematic diagram of the steps of a method for reducing power consumption of a terminal device provided in another embodiment of the present application.
[0076] The method for reducing the power consumption of a terminal device provided in an embodiment of the present application specifically includes the following steps. According to different requirements, the order of some steps in the flowchart can be changed, and some steps can be omitted.
[0077] S20, when the display screen is in the on state, real-time detection is performed to determine whether the terminal device meets a preset energy-saving condition.
[0078] In some embodiments, the display screen may be a touch screen. The display screen displays visual output to the user, wherein the visual output may include text, graphics, video, and any combination thereof. The display screen may use liquid crystal display (LCD) technology or other known display technologies.
[0079] In some embodiments, the preset energy saving condition includes: the terminal device does not receive any touch operation or non-touch operation from the user within a preset time period. For example, the preset time period may be 30 seconds, which is not limited in this application.
[0080] In some embodiments, touch operations mainly refer to a series of operations performed by a user through the touch screen, which directly rely on the direct contact between the user's finger or stylus and the touch screen. Touch operations include but are not limited to: touch events, gesture operations (such as sliding, zooming, rotating, etc.).
[0081] In some embodiments, non-touch operations refer to operations performed in other ways without relying on a touch screen. Non-touch operations include, but are not limited to: keyboard operations, mouse operations, pointer operations, handle operations, voice operations, and remote control operations of terminal devices through wireless technologies such as Bluetooth or Wi-Fi.
[0082] In some embodiments, when the terminal device meets the preset energy-saving condition, step S21 is continued.
[0083] In some embodiments, when the terminal device meets the preset energy-saving condition, the process returns to step S20.
[0084] S21, obtaining the current operation time.
[0085] In some embodiments, when the terminal device meets the preset energy-saving conditions, in order to more effectively manage processing resources and reduce power consumption, the current brightness of the display screen may be reduced according to the current operation time. In this process, obtaining the current operation time is an important step in implementing energy-saving measures.
[0086] S22, determining whether the operation time belongs to a preset time period.
[0087] In some embodiments, the operation time includes the current date, the preset time period is the dates corresponding to summer (such as June 1 to August 31), and the dates corresponding to other seasons.
[0088] In other embodiments, the operation time may include the current time, and the preset time period may be a time period corresponding to daytime (eg, 6:00 to 18:00).
[0089] In some embodiments, when the operation time belongs to a preset time period, step S23 is executed.
[0090] In some embodiments, when the operation time does not belong to the preset time period, step S24 is executed.
[0091] S23, reducing the current brightness of the display screen to a first preset brightness.
[0092] In some embodiments, the first preset brightness may be the product of the current brightness and the first preset ratio (eg, 3 / 5), or may be the product of the maximum brightness and the first preset ratio (eg, 3 / 5).
[0093] S24, reducing the current brightness of the display screen to a second preset brightness.
[0094] In some embodiments, the second preset brightness may be the product of the current brightness and the second preset ratio (such as 2 / 3), or the product of the maximum brightness and the second preset ratio (such as 2 / 3), wherein the first preset ratio is smaller than the second preset ratio.
[0095] In the above embodiment, when the terminal device meets the preset energy-saving conditions, the brightness of the display screen is adjusted according to the preset time period to which the current operation time belongs, providing the user with the best visual experience and usage effect, satisfying the user's personalization, and improving the user experience.
[0096] In some embodiments, the method for reducing power consumption of a terminal device provided in an embodiment of the present application specifically further includes, after step S24: when it is detected again that the terminal device does not meet the preset energy-saving conditions, controlling the display screen to restore the current brightness.
[0097] In the above embodiment, when it is detected that the terminal device does not meet the preset energy-saving conditions, the display screen is controlled to restore the current brightness, thereby ensuring that when the user has use needs, the display screen quickly returns to normal working state, thereby improving the user experience.
[0098] Combination Figure 3 As shown, it is a composition diagram of an apparatus 100 for reducing power consumption of a terminal device provided in one embodiment of the present application.
[0099] In this embodiment, based on the same concept as the method for reducing power consumption of a terminal device in the above embodiment, the present application also provides a device 100 for reducing power consumption of a terminal device, which can be used to perform the above method for reducing power consumption of a terminal device. For ease of explanation, the schematic diagram of the composition of the embodiment of the device 100 for reducing power consumption of a terminal device only shows the parts related to the embodiment of the present application. Those skilled in the art can understand that the illustrated structure does not constitute a limitation on the device 100 for reducing power consumption of a terminal device, and may include more or fewer components than shown in the diagram, or combine certain components, or arrange the components differently.
[0100] Specifically, the apparatus 100 for reducing power consumption of a terminal device provided in an embodiment of the present application includes a judgment module 110 , an acquisition module 120 , a detection module 130 , and a control module 140 .
[0101] The judgment module 110 is used to detect in real time whether the terminal device meets the preset energy-saving conditions when the display screen is in the bright screen state.
[0102] In some embodiments, the display screen may be a touch screen. The display screen displays visual output to the user, wherein the visual output may include text, graphics, video, and any combination thereof. The display screen may use liquid crystal display (LCD) technology or other known display technologies.
[0103] In some embodiments, the preset energy saving condition includes: the terminal device does not receive any touch operation or non-touch operation from the user within a preset time period. For example, the preset time period may be 30 seconds, which is not limited in this application.
[0104] In some embodiments, touch operations mainly refer to a series of operations performed by a user through the touch screen, which directly rely on the direct contact between the user's finger or stylus and the touch screen. Touch operations include but are not limited to: touch events, gesture operations (such as sliding, zooming, rotating, etc.).
[0105] In some embodiments, non-touch operations refer to operations performed in other ways without relying on a touch screen. Non-touch operations include, but are not limited to: keyboard operations, mouse operations, pointer operations, handle operations, voice operations, and remote control operations of terminal devices through wireless technologies such as Bluetooth or Wi-Fi.
[0106] The acquisition module 120 is used to acquire the animation element being displayed on the display screen when the terminal device meets the preset energy-saving condition.
[0107] In some embodiments, when the terminal device meets the preset energy-saving conditions, in order to more effectively manage processing resources and reduce power consumption, some non-essential visual effects, such as animation elements, may be selectively reduced or optimized. In this process, obtaining the animation elements being displayed on the display screen is an important step in implementing energy-saving measures.
[0108] Specifically, the terminal device can obtain the animation element being displayed on the display screen by calling the system application programming interface (Application Programming Interface, API).
[0109] The detection module 130 is used to detect whether there is a clock animation in the animation element.
[0110] In some embodiments, the animation elements are usually constructed by Hyper Text Markup Language (HTML), Cascading Style Sheets (CSS) and JavaScript scripting language. Therefore, the terminal device can find out whether there is a specific element or class representing the clock animation by analyzing the Document Object Model (DOM) structure. For example, you can search for class names or IDs with keywords such as "clock" and "timer", which are usually related to clock animation.
[0111] The control module 140 is used to control the display screen to stop displaying the second hand animation in the clock animation and other animations in the animation element when there is a clock animation in the animation element.
[0112] In some embodiments, the terminal device can control the display screen to stop displaying the second hand animation in the clock animation and the remaining animations in the animation elements by calling an API.
[0113] The control module 140 is further configured to control the display screen to stop displaying the animation element when there is no clock animation in the animation element.
[0114] In the above embodiment, when the terminal device meets the preset energy-saving condition and there is a clock animation in the animation element, the display screen is controlled to stop displaying the second hand animation in the clock animation and the other animations in the animation element; when the terminal device meets the preset energy-saving condition but there is no clock animation in the animation element, the display screen is controlled to stop displaying the animation element. Based on this, the clock display is optimized, the power consumption of the terminal device is reduced, the service life of the terminal device is extended, and the user experience is improved.
[0115] In some embodiments, the control module 140 is further configured to control the display screen to redisplay the animation elements when it is detected again that the terminal device does not meet the preset energy-saving condition.
[0116] In the above embodiment, when it is detected that the terminal device does not meet the preset energy-saving conditions, the display screen is controlled to redisplay the animation elements, thereby ensuring that when the user has usage needs, the display screen quickly returns to normal working state, thereby improving the user experience.
[0117] The acquisition module 120 is further configured to acquire the current operation time when it is detected that the terminal device meets a preset energy-saving condition.
[0118] In some embodiments, when the terminal device meets the preset energy-saving conditions, in order to more effectively manage processing resources and reduce power consumption, the current brightness of the display screen may be reduced according to the current operation time. In this process, obtaining the current operation time is an important step in implementing energy-saving measures.
[0119] The detection module 130 is further configured to determine whether the operation time belongs to a preset time period.
[0120] In some embodiments, the operation time includes the current date, and the preset time period is the date corresponding to the summer (eg, June 1 to August 31).
[0121] In other embodiments, the operation time may include the current time, and the preset time period may be a time period corresponding to daytime (eg, 6:00 to 18:00).
[0122] The control module 140 is further configured to reduce the current brightness of the display screen to a first preset brightness when the operation time belongs to a preset time period.
[0123] In some embodiments, the first preset brightness is the product of the current brightness and a first preset ratio (eg, 3 / 5).
[0124] The control module 140 is further configured to reduce the current brightness of the display screen to a second preset brightness when the operation time does not belong to the preset time period.
[0125] In some embodiments, the second preset brightness is the product of the current brightness and a second preset ratio (eg, 2 / 3), wherein the first preset ratio is smaller than the second preset ratio.
[0126] In the above embodiment, when the terminal device meets the preset energy-saving conditions, the brightness of the display screen is adjusted according to the preset time period to which the current operation time belongs, providing the user with the best visual experience and usage effect, satisfying the user's personalization, and improving the user experience.
[0127] In some embodiments, the control module 140 is further used to control the display screen to restore the current brightness when it is detected again that the terminal device does not meet the preset energy-saving conditions.
[0128] In the above embodiment, when it is detected that the terminal device does not meet the preset energy-saving conditions, the display screen is controlled to restore the current brightness, thereby ensuring that when the user has use needs, the display screen quickly returns to normal working state, thereby improving the user experience.
[0129] Figure 4 As shown, it is a hardware structure diagram of the terminal device 10 provided in one embodiment of the present application.
[0130] In some embodiments, the terminal device 10 includes, but is not limited to, a memory 11, a processor 12, and a computer program stored in the memory 11 and executable on the processor 12, such as a program for reducing power consumption of the terminal device.
[0131] Those skilled in the art will appreciate that the schematic diagram is merely an example of the terminal device 10 and does not constitute a limitation on the terminal device 10. The terminal device 10 may include more or fewer components than shown in the diagram, or a combination of certain components, or different components. For example, the terminal device 10 may also include input and output devices, network access devices, buses, etc.
[0132] The processor 12 obtains the operating system of the terminal device 10 and various installed applications. The processor 12 obtains the application to implement the steps in the above-mentioned embodiments of the method for reducing the power consumption of the terminal device, for example Figure 1 , Figure 2 Steps shown.
[0133] Exemplarily, the computer program may be divided into one or more modules / units, one or more modules / units are stored in the memory 11, and are obtained by the processor 12 to complete the present application. One or more modules / units may be a series of computer program instruction segments capable of completing specific functions, and the instruction segments are used to describe the acquisition process of the computer program in the terminal device 10.
[0134] In some embodiments, the terminal device 10 includes a device that can automatically perform numerical calculations and / or information processing according to pre-set or stored instructions. The hardware of the terminal device 10 includes, but is not limited to, a microprocessor, an application specific integrated circuit (ASIC), a field programmable gate array (FPGA), a digital signal processor (DSP), an embedded device, etc.
[0135] In some embodiments, the network where the terminal device 10 is located includes, but is not limited to: the Internet, a wide area network, a metropolitan area network, a local area network, a virtual private network (VPN), etc.
[0136] In some embodiments, the memory 11 is used to store program codes and various data, such as the device 100 for reducing power consumption of the terminal device installed in the terminal device 10, and to achieve high-speed and automatic access to programs or data during the operation of the terminal device 10. The memory 11 may include a read-only memory (ROM), a random access memory (RAM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), a one-time programmable read-only memory (OTPROM), an electronically erasable rewritable read-only memory (EEPROM), a compact disc read-only memory (CD-ROM) or other optical disc storage, magnetic disk storage, magnetic tape storage, or any other computer-readable medium capable of carrying or storing data.
[0137] In some embodiments, the memory 11 may also be an external memory and / or an internal memory of the terminal device 10. Furthermore, the memory 11 may be a memory in a physical form, such as a memory stick, a TF card (Trans-flash Card), and the like.
[0138] In some embodiments, the processor 12 may be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. A general-purpose processor may be a microprocessor or any conventional processor, etc. The processor 12 is the computing core and control center of the terminal device 10, and uses various interfaces and lines to connect various parts of the entire terminal device 10, and calls data stored in the memory 11 to execute various functions of the terminal device 10 and process data.
[0139] In some embodiments, the processor 12 is used to obtain the operating system of the terminal device 10 and various installed application programs. For example, the processor 12 obtains a program for reducing the power consumption of the terminal device to achieve the above Figure 1 , Figure 2 The steps of each method embodiment are shown.
[0140] In one embodiment of the present application, the terminal device 10 may also include a power supply (not shown) for supplying power to each component. Preferably, the power supply may be logically connected to the processor 12 through a power management device, so that the power management device can manage charging, discharging, and power consumption. The power supply may also include one or more DC or AC power supplies, recharging devices, power failure detection circuits, power converters or inverters, power status indicators, and other arbitrary components. The terminal device 10 may also include a variety of sensors, Bluetooth modules, Wi-Fi modules, etc., which will not be repeated here.
[0141] In one embodiment of the present application, if the module / submodule integrated in the terminal device 10 is implemented in the form of a software functional submodule and sold or used as an independent workpiece, it can be stored in a computer-readable storage medium. Based on this understanding, the present application implements all or part of the processes in the above-mentioned embodiment method, and can also be completed by instructing the relevant hardware through a computer program. The computer program can be stored in a computer-readable storage medium. When the computer program is obtained by the processor 12, it can implement the above-mentioned Figure 1 , Figure 2 The steps of each method embodiment are shown.
[0142] In one embodiment of the present application, the computer program may include computer program code, which may be in source code form, object code form, an accessible file, or some intermediate form, etc. Computer readable media may include: any entity or device capable of carrying computer program code, recording medium, USB flash drive, mobile hard disk, magnetic disk, optical disk, computer memory, and read-only memory (ROM).
[0143] The memory 11 in the terminal device 10 stores a plurality of instructions to implement a method for reducing power consumption of the terminal device, and the processor 12 can obtain the plurality of instructions to implement the method for reducing power consumption of the terminal device in the above embodiment.
[0144] Specifically, the specific implementation method of the processor 12 for the above instructions can refer to Figure 1 , Figure 2 The description of the relevant steps in the corresponding embodiments will not be repeated here.
[0145] In the several embodiments provided in this application, it should be understood that the disclosed methods and devices can be implemented in other ways. For example, the device embodiments described above are only schematic, for example, the division of modules is only a logical function division, and there may be other division methods in actual implementation.
[0146] The modules described as separate components may or may not be physically separated, and the components shown as modules may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0147] Each functional module in each embodiment of the present application can be integrated into a processing submodule, or each submodule can exist physically separately, or two or more submodules can be integrated into one submodule. The above-mentioned integrated submodule can be implemented in the form of hardware or in the form of hardware plus software functional modules.
[0148] Therefore, no matter from which point of view, the embodiments should be regarded as illustrative and non-restrictive, and the scope of the present application is limited by the appended claims rather than the above description, so it is intended that all changes falling within the meaning and scope of the equivalent elements of the claims are included in the present application. Any attached figure mark in the claims should not be regarded as limiting the claims involved.
[0149] In addition, it is obvious that the word "comprising" does not exclude other submodules or steps, and the singular does not exclude the plural. The multiple submodules or devices stated in this application can also be implemented by one submodule or device through software or hardware.
[0150] Finally, it should be noted that the above embodiments are only used to illustrate the technical solution of the present application and are not intended to limit it. Although the present application has been described in detail with reference to the preferred embodiments, a person of ordinary skill in the art should understand that the technical solution of the present application may be modified or replaced by equivalents without departing from the spirit and scope of the technical solution of the present application.
Claims
1. A method for reducing power consumption of a terminal device, characterized in that: The terminal device includes a display screen, and the method includes: When the display screen is in a bright screen state, real-time detection of whether the terminal device meets a preset energy-saving condition; When the terminal device meets the preset energy-saving condition, acquiring the animation element being displayed on the display screen; Detect whether there is a clock animation in the animation element; When the clock animation exists in the animation element, the display screen is controlled to stop displaying the second hand animation in the clock animation and the remaining animations in the animation element.
2. The method for reducing power consumption of a terminal device according to claim 1, characterized in that: The method further comprises: When the clock animation does not exist in the animation element, the display screen is controlled to stop displaying the animation element.
3. The method for reducing power consumption of a terminal device according to claim 1, characterized in that: When the terminal device meets the preset energy-saving condition, the method further includes: Get the current operation time; Determining whether the operation time falls within a preset time period; When the operation time belongs to a preset time period, reducing the current brightness of the display screen to a first preset brightness; and When the operation time does not belong to the preset time period, the current brightness of the display screen is reduced to a second preset brightness.
4. The method for reducing power consumption of a terminal device according to claim 3, characterized in that: The method further comprises: The operation time is set to include the current date, and the preset time period is set to a date corresponding to summer.
5. The method for reducing power consumption of a terminal device according to claim 4, characterized in that: The method further comprises: The first preset brightness is set to the product of the current brightness and a first preset ratio, and the second preset brightness is set to the product of the current brightness and a second preset ratio, wherein the first preset ratio is smaller than the second preset ratio.
6. The method for reducing power consumption of a terminal device according to claim 1, characterized in that: The method further comprises: When it is detected again that the terminal device does not meet the preset energy-saving condition, the display screen is controlled to redisplay the animation element.
7. The method for reducing power consumption of a terminal device according to claim 1, characterized in that: The preset energy-saving conditions include: The terminal device does not receive any touch operation or non-touch operation from the user within a preset time period.
8. A device for reducing power consumption of a terminal device, characterized in that: The terminal device includes a display screen, and the apparatus includes: A judgment module, used for detecting in real time whether the terminal device meets a preset energy-saving condition when the display screen is in a bright screen state; An acquisition module, used for acquiring the animation element being displayed on the display screen when the terminal device meets the preset energy-saving condition; A detection module, used to detect whether there is a clock animation in the animation element; The control module is used to control the display screen to stop displaying the second hand animation in the clock animation and the remaining animations in the animation element when the clock animation exists in the animation element.
9. A terminal device, characterized in that: The terminal device comprises: a memory storing at least one instruction; and a processor executing the at least one instruction to implement the method for reducing power consumption of the terminal device as described in any one of claims 1 to 7.
10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores at least one instruction, and the at least one instruction is executed by a processor of the terminal device to implement the method for reducing power consumption of a terminal device as described in any one of claims 1 to 7.
