Screen brightness adjustment method, device, equipment, and storage medium
By determining whether the switching operation is an incorrect operation in the electronic device and determining whether to adjust the brightness based on the judgment, the problem of frequent screen brightness switching caused by user misoperation is solved, and the power consumption of the electronic device is reduced.
Patent Information
- Application Number
- CN202211056071.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-08-29
- Publication Date
- 2025-01-14
- Estimated Expiration
- 2042-08-29
AI Technical Summary
When users use electronic devices, power consumption loss caused by frequent switching of screen brightness, especially due to frequent switching of brightness caused by misoperation.
When receiving the switching operation, it is determined whether the operation is an erroneous operation. If yes, keep the current brightness unchanged; if not, adjust the brightness to the corresponding brightness value of the target interface, and adjust it according to the duration and process priority of the brightness value.
It reduces the power loss caused by frequent brightness switching caused by misoperation, and improves the energy efficiency of electronic devices.
Smart Images

Figure CN115273769B_ABST
Abstract
Description
Technical Field
[0001] The embodiments of the present application relate to information processing technology, and relate to but are not limited to a screen brightness adjustment method and device, equipment, and storage medium. Background Art
[0002] With the rapid development of electronic technology, more and more electronic devices such as smart phones and tablet computers are used by users. As electronic devices become more popular, users' functional requirements for electronic devices are becoming more and more diverse. For example, when using terminal devices, users have functional requirements for appropriate screen brightness.
[0003] It is understandable that when users use electronic devices, different applications have different requirements for brightness. Furthermore, different display interfaces in the same application may also have different requirements for brightness. For example, in order to facilitate the barcode scanner to recognize the payment interface on the electronic device, the payment interface is currently displayed at a higher brightness when it is opened. If the user switches from the payment interface to the music playback interface at this time, the brightness value of the display screen corresponding to the music playback interface will generally be adjusted based on the ambient brightness. If this switching situation occurs frequently, it will cause a certain amount of power consumption loss to the electronic device. Summary of the invention
[0004] In view of this, the screen brightness adjustment method, device, equipment, and storage medium provided in the embodiments of the present application can reduce the power consumption loss caused by frequent brightness switching of electronic devices. The screen brightness adjustment method, device, equipment, and storage medium provided in the embodiments of the present application are implemented as follows:
[0005] The screen brightness adjustment method provided in the embodiment of the present application includes:
[0006] When the electronic device controls the display screen to display the first display interface with the first brightness value, a switching operation is received, the switching operation is used to instruct the electronic device to switch from the first display interface to the second display interface, the electronic device stores the brightness values of the display screens corresponding to the first display interface and the second display interface, respectively, and the brightness values of the display screens corresponding to the first display interface and the second display interface are different;
[0007] Determine whether the switching operation is an erroneous operation;
[0008] When the switching operation is an erroneous operation, the display screen is kept displaying the second display interface at the first brightness value.
[0009] In the embodiment of the present application, when the electronic device controls the display screen to display the first display interface at the first brightness value, if a user instruction is received to switch from the first display interface to the second display interface, it will first determine whether the switching operation is an erroneous operation. If the switching operation is determined to be an erroneous operation, even if the first display interface is switched to the second display interface, the current brightness of the display screen of the electronic device will not be adjusted, but the second display interface will be displayed at the first brightness value corresponding to the first display interface. In this way, the power consumption loss caused by the frequent switching of the display brightness value of the display screen due to erroneous operations of the user in the process of using the electronic device can be reduced.
[0010] In some embodiments, when the switching operation is an erroneous operation, after maintaining the display screen displaying the second display interface at the first brightness value, the method further includes: detecting whether a process corresponding to the target display interface exists, the target display interface being the first display interface or the second display interface; when the process does not exist, controlling the display screen to display the third display interface at the second brightness value, the third display interface being the display interface corresponding to the currently running process.
[0011] In some embodiments, controlling the display screen to display the third display interface with a second brightness value includes: if the electronic device stores a brightness value of the display screen corresponding to the third display interface, determining that the stored brightness value of the display screen corresponding to the third display interface is a second brightness value; controlling the display screen to display the third display interface with the second brightness value.
[0012] In some embodiments, controlling the display screen to display the third display interface with a second brightness value includes: determining the first priority of the process corresponding to the target display interface, and the second priority of the process corresponding to the third display interface; determining the second brightness value based on the relationship between the first priority and the second priority, and controlling the display screen to display the third display interface with the second brightness value, wherein the higher the priority, the higher the brightness value.
[0013] In some embodiments, before detecting whether a process corresponding to the target display interface exists, it also includes: obtaining a brightness control duration corresponding to the first brightness value; and determining that the duration for which the display screen maintains the first brightness value reaches the brightness control duration.
[0014] In some embodiments, after detecting whether a process corresponding to the target display interface exists, the method further includes: if the process corresponding to the target display interface exists and is in a running state, determining whether the first brightness value is higher than a preset brightness value; when the first brightness value is higher than the preset brightness value, outputting a prompt message, the prompt message being used to remind the user to adjust the brightness value of the display screen.
[0015] In some embodiments, the method further includes: receiving a brightness adjustment operation initiated by a user; and adjusting a current display brightness value of the display screen in response to the brightness adjustment operation.
[0016] The screen brightness adjustment device provided in the embodiment of the present application includes:
[0017] A receiving module, configured to receive a switching operation when the electronic device controls the display screen to display the first display interface at the first brightness value, wherein the switching operation is used to instruct the electronic device to switch from the first display interface to the second display interface, wherein the electronic device stores the brightness values of the display screens corresponding to the first display interface and the second display interface, respectively, and the brightness values of the display screens corresponding to the first display interface and the second display interface, respectively, are different;
[0018] A determination module, used to determine whether the switching operation is an erroneous operation;
[0019] The control module is used to keep the display screen displaying the second display interface at the first brightness value when the switching operation is an erroneous operation.
[0020] An electronic device provided in an embodiment of the present application includes a memory and a processor, wherein the memory stores a computer program that can be run on the processor, and when the processor executes the program, the method described in the embodiment of the present application is implemented.
[0021] The computer-readable storage medium provided in the embodiment of the present application stores a computer program thereon, and when the computer program is executed by a processor, the method provided in the embodiment of the present application is implemented.
[0022] The screen brightness adjustment method, device, electronic device and computer-readable storage medium provided in the embodiments of the present application can reduce the power consumption loss caused by frequent brightness switching of electronic devices, thereby solving the technical problems raised in the background technology. BRIEF DESCRIPTION OF THE DRAWINGS
[0023] The drawings herein are incorporated into the specification and constitute a part of the specification. These drawings illustrate embodiments consistent with the present application and are used together with the specification to illustrate the technical solution of the present application.
[0024] Figure 1 An example diagram of a screen drop-down display interface provided in an embodiment of the present application;
[0025] Figure 2 A schematic diagram of an implementation flow of a screen brightness adjustment method provided in an embodiment of the present application;
[0026] Figure 3 A schematic diagram of the implementation flow of another screen brightness adjustment method provided in an embodiment of the present application;
[0027] Figure 4A schematic diagram of a process flow for implementing yet another screen brightness adjustment method provided in an embodiment of the present application;
[0028] Figure 5 A schematic diagram of the structure of a screen brightness adjustment device provided in an embodiment of the present application;
[0029] Figure 6 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0030] In order to make the purpose, technical solution and advantages of the embodiments of the present application clearer, the specific technical solution of the present application will be further described in detail below in conjunction with the drawings in the embodiments of the present application. The following embodiments are used to illustrate the present application, but are not used to limit the scope of the present application.
[0031] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as those commonly understood by those skilled in the art to which this application belongs. The terms used herein are only for the purpose of describing the embodiments of this application and are not intended to limit this application.
[0032] In the following description, reference is made to “some embodiments”, which describe a subset of all possible embodiments, but it will be understood that “some embodiments” may be the same subset or different subsets of all possible embodiments and may be combined with each other without conflict.
[0033] It should be pointed out that the terms "first\second\third" involved in the embodiments of the present application are used to distinguish similar or different objects, and do not represent a specific ordering of the objects. It can be understood that "first\second\third" can be interchanged in a specific order or sequence where permitted, so that the embodiments of the present application described here can be implemented in an order other than that illustrated or described here.
[0034] Before further describing the embodiments of the present application, the screen brightness is explained first. The so-called screen brightness generally includes the following two situations:
[0035] (1) The screen brightness is the brightness of the current display interface. In this case, if only the brightness of the current display interface is changed, then when the current display interface is exited (such as ending the process corresponding to the current display interface or directly exiting the application where the current display interface is located), the display screen of the electronic device will be restored to the original brightness. In other words, the brightness change in this case is only valid for the current display interface. For example, when opening the payment interface, only the brightness value of the payment interface is changed.
[0036] (2) Screen brightness refers to the brightness of each display screen of the entire electronic device, such as Figure 1As shown, in the setting panel of the electronic device pulled down, there is a progress bar for changing the screen brightness. By changing the progress bar, the screen brightness of each display screen of the entire electronic device can be changed, and the brightness adjustment method is applicable to all display interfaces in the electronic device.
[0037] The embodiment of the present application provides a screen brightness adjustment method, which is applied to an electronic device, which can be various types of devices with information processing capabilities during implementation. For example, the electronic device can include a personal computer, a laptop, a PDA or a server, etc.; the electronic device can also be a mobile terminal, for example, the mobile terminal can include a mobile phone, a car computer, a tablet computer or a projector, etc. The function implemented by the method can be implemented by calling the program code by the processor in the electronic device, and of course the program code can be stored in a computer storage medium. It can be seen that the electronic device at least includes a processor and a storage medium.
[0038] Figure 2 The present invention provides a schematic diagram of a screen brightness adjustment method for implementing a process flow, which can reduce the power consumption loss caused by frequent brightness switching of electronic devices. Figure 2 As shown, the method may include the following steps 201 to 203:
[0039] Step 201, when the electronic device controls the display screen to display the first display interface with a first brightness value, receives a switching operation, the switching operation is used to instruct the electronic device to switch from the first display interface to the second display interface, the electronic device stores the brightness values of the display screens corresponding to the first display interface and the second display interface, respectively, and the brightness values of the display screens corresponding to the first display interface and the second display interface, respectively, are different.
[0040] In an embodiment of the present application, the electronic device pre-stores brightness values of display screens corresponding to different display interfaces in different applications or different display interfaces in the same application.
[0041] Among them, the brightness values of the display screens corresponding to different display interfaces are pre-set, and there is no limitation on the method of pre-setting the brightness values. For example, the user can manually set it based on his / her own usage habits; the electronic device can also obtain the user's usage preference for the brightness values of the display screens corresponding to different applications or different display interfaces within each application over a period of time, and then adjust the settings adaptively; the electronic device can also obtain the pre-stored display settings corresponding to different display interfaces in different applications, or different display interfaces in the same application from the cloud, etc. The pre-stored brightness value settings in the cloud can be uploaded for user sharing, or adaptively determined based on the setting preferences of most users, etc.
[0042] It should be noted that the first display interface and the second display interface in the embodiment of the present application may belong to the same application or to different applications, and there is no limitation on this. For example, the first display interface and the second display interface may be the payment interface and the setting interface in the same application A, respectively; or the first display interface is the payment interface in application A, and the second display interface is the reading interface in application B.
[0043] Step 202: Determine whether the switching operation is an erroneous operation.
[0044] It is understandable that when a user is using an electronic device, the current display interface corresponding to the display screen of the electronic device is the first display interface, but the user may accidentally touch the display screen, causing the display screen to receive a switching operation, thereby causing the current display interface of the display screen to switch from the first display interface to the second display interface. This operation that does not reflect the user's true intention is defined as a misoperation. Accordingly, since the brightness values of the display screens corresponding to the first display interface and the second display interface are different, the brightness value of the display screen will be frequently switched, thereby increasing the power consumption of the electronic device.
[0045] Based on this, in an embodiment of the present application, a method is proposed in which, upon receiving a switching operation for instructing an electronic device to switch from a first display interface to a second display interface, it is first determined whether the switching operation is an erroneous operation. If it is an erroneous operation, the brightness value of the display screen is not changed; if it is not an erroneous operation, the brightness value of the display screen is adjusted to the brightness value corresponding to the second display interface.
[0046] In the embodiments of the present application, the method for determining whether a switching operation is an erroneous operation is not limited. For example, in some embodiments, if a switching operation is detected, after the electronic device is switched from the first display interface to the second display interface in response to the switching operation, it is determined whether a trigger operation is received on the second display interface within a specific time period. If a trigger operation is received, it is determined that the switching operation is an erroneous operation; if no trigger operation is received, it is determined that the switching operation is not an erroneous operation.
[0047] Here, there is no limitation on the specific method of triggering the operation, for example, the triggering operation may include any operation such as turning pages, sliding or clicking.
[0048] In a specific embodiment, the first display interface is a payment interface, and the second display interface is a reading interface. The brightness value preset for the reading interface is different from the brightness value preset for the payment interface. The brightness value of the display screen corresponding to the payment interface in the electronic device is a first brightness value. If it is detected that the user performs a switching operation on the display screen of the electronic device at this time, so that the current display interface of the electronic device switches from the payment interface to the reading interface, the brightness value corresponding to the reading interface is not directly called for display at this time, but it is first determined whether the user really wants to switch to the reading interface. Specifically, it can be determined whether the user performs a trigger operation such as sliding, turning pages or clicking on the reading interface. If it is determined that the user performs a trigger operation, it means that the user's switching operation is not a wrong operation, and the brightness value of the current display screen is adjusted to the brightness value corresponding to the reading interface; otherwise, the brightness value of the current display screen still maintains the brightness value of the payment interface.
[0049] Step 203: When the switching operation is an erroneous operation, the display screen is kept displaying the second display interface at the first brightness value.
[0050] Here, when it is determined that the switching operation is an erroneous operation, the brightness value of the second display interface displayed on the current display screen is not changed to the corresponding brightness value of the preset setting, but the first brightness value corresponding to the first display interface is still maintained. In this way, the brightness value of the display screen of the electronic device does not need to be frequently switched, thereby saving power consumption caused by brightness switching.
[0051] In the embodiment of the present application, when the electronic device controls the display screen to display the first display interface at the first brightness value, if a user instruction is received to switch from the first display interface to the second display interface, it will first determine whether the switching operation is an erroneous operation. If the switching operation is determined to be an erroneous operation, even if the first display interface is switched to the second display interface, the current brightness of the display screen of the electronic device will not be adjusted, but the second display interface will be displayed at the first brightness value corresponding to the first display interface. In this way, the power consumption loss caused by the frequent switching of the display brightness value of the display screen due to erroneous operations of the user in the process of using the electronic device can be reduced.
[0052] The present application embodiment further provides a screen brightness adjustment method, Figure 3 Schematic diagram of the implementation process of the screen brightness adjustment method of the present application embodiment. Figure 3 As shown, the method may include the following steps 301 to 307:
[0053] Step 301, when the electronic device controls the display screen to display the first display interface with a first brightness value, receives a switching operation, the switching operation is used to instruct the electronic device to switch from the first display interface to the second display interface, the electronic device stores the brightness values of the display screens corresponding to the first display interface and the second display interface, respectively, and the brightness values of the display screens corresponding to the first display interface and the second display interface, respectively, are different.
[0054] In some embodiments, in order to save power consumption of brightness display of electronic devices, multiple levels of brightness values can be set for the same display interface, each level of brightness value has a different size, and the number of levels corresponding to different display interfaces can be different.
[0055] For example, for display interfaces that require high brightness, such as payment interfaces, game interfaces, video chat interfaces, etc., you can pre-set the corresponding 5 brightness levels, namely level 01 - ultra-high brightness value - 10 seconds; level 02 - high brightness value - 10 minutes; level 03 - medium brightness value - 1 hour; level 04 - low brightness value - 3 hours; level 05 - ultra-low brightness value - 10 hours.
[0056] For example, for display interfaces that require normal brightness values, such as reading interfaces and music playback interfaces, three corresponding brightness levels can be pre-set, namely level 01 - medium brightness value - 1 hour; level 02 - low brightness value - 3 hours; level 03 - ultra-low brightness value - 10 hours.
[0057] In this way, if the display time of the first display interface is long, the brightness value corresponding to the first display interface can be adjusted based on the duration, such as displaying at an ultra-high brightness value for 10 seconds, then automatically reducing to a high brightness value for 10 minutes, then reducing to a medium brightness for 1 hour, and so on until it is reduced to an ultra-low brightness or ambient brightness. This display method with a step-by-step reduction in brightness value can effectively reduce the brightness display power consumption of electronic devices.
[0058] Step 302: Determine whether the switching operation is an erroneous operation.
[0059] Step 303: When the switching operation is an erroneous operation, the display screen is kept displaying the second display interface at the first brightness value.
[0060] In some embodiments, the brightness value corresponding to the first display interface can also be set to 1, and at the same time, when the first display interface is displayed based on the corresponding first brightness value, the first brightness value is set to a specific display time. If a switching operation is received within the specific time, there is no need to determine whether the switching operation is an erroneous operation, but the display screen continues to display the second display interface at the first brightness value.
[0061] Specifically, the first display interface is the payment interface, and the second display interface is the reading interface. The first brightness value corresponding to the payment interface is set to ultra-high brightness, and its corresponding specific display duration is 10 minutes. The second brightness value corresponding to the reading interface is medium brightness. When the payment interface is currently displayed on the display screen of the electronic device, the display screen is set to display at ultra-high brightness for 10 minutes. If the display interface switches from the payment interface to the reading interface within 10 minutes, the reading interface is still displayed at ultra-high brightness until the display duration reaches 10 minutes. This screen brightness display method can reduce the power consumption loss caused by frequent changes in system brightness of electronic devices.
[0062] Of course, in some embodiments, if after switching to the second display interface, it is detected that the running time of the process corresponding to the second display interface reaches a certain threshold, even if the specific display time is not reached at this time, the display screen is adjusted to display with the brightness value corresponding to the second display interface itself.
[0063] Step 304, obtaining a brightness control duration corresponding to the first brightness value; and determining that a duration for the display screen to maintain the first brightness value reaches the brightness control duration.
[0064] Step 305, detect whether the process corresponding to the target display interface exists, the target display interface is the first display interface or the second display interface. If the process corresponding to the target display interface does not exist, execute step 306; if the process corresponding to the target display interface exists and is in a running state, execute step 307.
[0065] It can be understood that if the display time of the brightness value set corresponding to the target display interface is long, then the process corresponding to the target display interface may no longer exist (visually manifested as a third display interface different from the target display interface on the display screen of the electronic device), but the display brightness value currently corresponding to the third display interface is still the brightness value corresponding to the target display interface, resulting in unnecessary power consumption.
[0066] Based on this, in some embodiments, a brightness control duration can be pre-set. When the display screen remains at the first brightness value corresponding to the target display interface for a period of time that reaches the brightness control duration, it is detected whether the process corresponding to the target display interface exists. If not, step 306 is executed to control the display screen to display at the second brightness value corresponding to the third display interface corresponding to the currently running process.
[0067] Specifically, taking the target display interface as the payment interface and the third display interface as the music playback interface as an example, the brightness value corresponding to the payment interface is a high brightness value, and the brightness value corresponding to the third display interface is a medium brightness value. If the payment interface is pre-set to be displayed at a high brightness value for 10 minutes, and is switched to the music playback interface at 2 minutes, if the music playback interface continues to be displayed at a high brightness value, unnecessary power consumption will be caused. Therefore, the brightness control time can be set to 5 minutes. When it is determined that the payment interface has been open for 5 minutes, actively detect whether the progress corresponding to the payment interface still exists. If not, if the display interface at this time is the music playback interface, the display screen is controlled to display the music playback interface at the medium brightness value corresponding to the music playback interface.
[0068] Step 306: When the process does not exist, control the display screen to display a third display interface at a second brightness value, where the third display interface is a display interface corresponding to the currently running process.
[0069] It is understandable that although the electronic device may pre-store brightness values corresponding to different display interfaces, in actual applications, it cannot be guaranteed that the brightness value corresponding to each display interface is pre-set and stored in the electronic device.
[0070] Therefore, in some embodiments, if the electronic device stores a brightness value of a display screen corresponding to a third display interface, the stored brightness value of the display screen corresponding to the third display interface is determined to be a second brightness value; and the display screen is controlled to display the third display interface with the second brightness value.
[0071] In other embodiments, if the brightness value of the display screen corresponding to the third display interface is stored in the electronic device, the brightness value of the display screen corresponding to the third display interface can be determined based on the comparison of the priorities between different pre-stored processes. Specifically, the first priority of the process corresponding to the target display interface and the second priority of the process corresponding to the third display interface are determined; according to the magnitude relationship between the first priority and the second priority, the second brightness value is determined, and the display screen is controlled to display the third display interface at the second brightness value, wherein the higher the priority, the higher the brightness value.
[0072] Step 307, determining whether the first brightness value is higher than a preset brightness value; when the first brightness value is higher than the preset brightness value, outputting a prompt message, the prompt message is used to remind the user to adjust the brightness value of the display screen.
[0073] Based on the analysis in step 305, it can be known that when the time duration that the display screen maintains the first brightness value reaches the brightness control time duration (such as the display time of the high brightness value of the payment interface reaches 5 minutes), it is detected that the process corresponding to the target display interface exists and is in a running state (that is, the payment interface is still in use), then it is determined whether the first brightness value currently corresponding to the target display interface is higher than the preset brightness value. If so, a prompt message is output to remind the user to actively adjust the brightness value of the display screen, thereby reducing the brightness power consumption of the electronic device (such as the preset brightness value is a medium brightness value, but the first brightness value is a high brightness value, when it is determined that the first brightness value is higher than the preset brightness value, the user is reminded to adjust the brightness value of the display screen from a high brightness value to a medium brightness value).
[0074] In some embodiments, the user can also manually adjust the brightness value of the display screen corresponding to the current display interface according to actual needs. Specifically, the electronic device receives a brightness adjustment operation initiated by the user; in response to the brightness adjustment operation, the current display brightness value of the display screen is adjusted.
[0075] Here, the brightness adjustment operation initiated by the user may be to instruct the current display brightness value of the display screen to decrease step by step, or may be to directly adjust to a desired brightness value, which may be specifically performed according to actual needs.
[0076] The following describes an exemplary application of the embodiments of the present application in a practical application scenario.
[0077] Figure 4 The overall process of a screen brightness adjustment method provided in an embodiment of the present application is as follows. Figure 4 As shown, the method includes the following steps 401 to 411:
[0078] Step 401 : pre-define high brightness scenes and performance values, and set a plurality of brightness value levels and a time threshold corresponding to each brightness value level.
[0079] Step 402: For the same application, define different Activities for it.
[0080] Step 403: define brightness values corresponding to different Activities for different Activities and special scenes.
[0081] Step 404: When it is detected that the Main Activity starts running, apply to the system for brightness permission corresponding to the Main Activity.
[0082] Step 405 , detect whether the currently running Main Activity is a high brightness scene. If yes, execute step 406 ; otherwise, execute step 411 .
[0083] Step 406, calling the high brightness corresponding to the Main Activity.
[0084] Step 407, lock the high brightness corresponding to the Main Activity, and the duration is based on the set threshold.
[0085] Step 408: After a certain time threshold, the process status corresponding to the Main Activity is detected.
[0086] Step 409 , determining whether the current process state of the Main Activity is in progress, stalled, or non-existent.
[0087] Step 410, if the process status is in progress, continue to wait and detect again after a period of time; if the process status is stagnant or does not exist, destroy the high brightness corresponding to the process and restore the normal system brightness.
[0088] Step 411, continue waiting and detecting.
[0089] It should be understood that although Figures 2 to 4 The steps in the flowchart are shown in sequence as indicated by the arrows, but these steps are not necessarily executed in the order indicated by the arrows. Unless otherwise specified in this document, there is no strict order restriction for the execution of these steps, and these steps can be executed in other orders. Moreover, Figures 2 to 4 At least part of the steps may include multiple sub-steps or multiple stages. These sub-steps or stages are not necessarily executed at the same time, but can be executed at different times. The execution order of these sub-steps or stages is not necessarily sequential, but can be executed in turn or alternately with other steps or at least part of the sub-steps or stages of other steps.
[0090] Based on the foregoing embodiments, an embodiment of the present application provides a screen brightness adjustment device, which includes the modules included and the units included in the modules, which can be implemented by a processor; of course, it can also be implemented by a specific logic circuit; in the implementation process, the processor can be a central processing unit (CPU), a microprocessor (MPU), a digital signal processor (DSP) or a field programmable gate array (FPGA), etc.
[0091] Figure 5 A schematic diagram of the structure of the screen brightness adjustment device provided in the embodiment of the present application, such as Figure 5 As shown, the device 500 includes a receiving module 501, a determining module 502 and a control module 503, wherein:
[0092] A receiving module 501 is used to receive a switching operation when the electronic device controls the display screen to display the first display interface with a first brightness value, wherein the switching operation is used to instruct the electronic device to switch from the first display interface to the second display interface, and the electronic device stores the brightness values of the display screens corresponding to the first display interface and the second display interface, respectively, and the brightness values of the display screens corresponding to the first display interface and the second display interface are different;
[0093] A determination module 502 is used to determine whether the switching operation is an erroneous operation;
[0094] The control module 503 is used to keep the display screen displaying the second display interface at the first brightness value when the switching operation is an erroneous operation.
[0095] In some embodiments, the device also includes a detection module, which is used to detect whether a process corresponding to a target display interface exists, and the target display interface is the first display interface or the second display interface; the control module 503 is also used to control the display screen to display a third display interface with a second brightness value when the process does not exist, and the third display interface is a display interface corresponding to the currently running process.
[0096] In some embodiments, the control module 503 is specifically used to determine that the stored brightness value of the display screen corresponding to the third display interface is a second brightness value if the electronic device stores a brightness value of the display screen corresponding to the third display interface; and control the display screen to display the third display interface with the second brightness value.
[0097] In some embodiments, the control module 503 is specifically used to determine the first priority of the process corresponding to the target display interface and the second priority of the process corresponding to the third display interface; determine the second brightness value based on the size relationship between the first priority and the second priority, and control the display screen to display the third display interface with the second brightness value, wherein the higher the priority, the higher the brightness value.
[0098] In some embodiments, the device further includes an acquisition module, which is used to acquire the brightness control duration corresponding to the first brightness value; the determination module 502 is also used to determine that the duration for which the display screen maintains the first brightness value reaches the brightness control duration.
[0099] In some embodiments, the determination module 502 is also used to determine whether the first brightness value is higher than a preset brightness value if the process corresponding to the target display interface exists and is in a running state; when the first brightness value is higher than the preset brightness value, a prompt message is output, and the prompt message is used to remind the user to adjust the brightness value of the display screen.
[0100] In some embodiments, the device further includes an adjustment module, wherein the adjustment module is configured to receive a brightness adjustment operation initiated by a user; and adjust a current display brightness value of the display screen in response to the brightness adjustment operation.
[0101] In the embodiment of the present application, when the electronic device controls the display screen to display the first display interface at the first brightness value, if a user instruction is received to switch from the first display interface to the second display interface, it will first determine whether the switching operation is an erroneous operation. If the switching operation is determined to be an erroneous operation, even if the first display interface is switched to the second display interface, the current brightness of the display screen of the electronic device will not be adjusted, but the second display interface will be displayed at the first brightness value corresponding to the first display interface. In this way, the power consumption loss caused by the frequent switching of the display brightness value of the display screen due to erroneous operations of the user in the process of using the electronic device can be reduced.
[0102] The description of the above device embodiment is similar to the description of the above method embodiment, and has similar beneficial effects as the method embodiment. For technical details not disclosed in the device embodiment of the present application, please refer to the description of the method embodiment of the present application for understanding.
[0103] It should be noted that in the embodiments of this application Figure 5 The division of modules in the screen brightness adjustment device shown is schematic and is only a logical function division. There may be other division methods in actual implementation. In addition, each functional unit in each embodiment of the present application may be integrated into a processing unit, or may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of a software functional unit. It may also be implemented in the form of a combination of software and hardware.
[0104] It should be noted that in the embodiment of the present application, if the above method is implemented in the form of a software function module and sold or used as an independent product, it can also be stored in a computer-readable storage medium. Based on such an understanding, the technical solution of the embodiment of the present application can be essentially or partly embodied in the form of a software product that contributes to the relevant technology. The computer software product is stored in a storage medium, including several instructions to enable an electronic device to execute all or part of the methods described in each embodiment of the present application. The aforementioned storage medium includes: various media that can store program codes, such as a U disk, a mobile hard disk, a read-only memory (ROM), a magnetic disk or an optical disk. In this way, the embodiment of the present application is not limited to any specific combination of hardware and software.
[0105] The embodiment of the present application provides an electronic device, which may be a server, and its internal structure diagram may be as follows: Figure 6 As shown. The electronic device includes a processor, a memory and a network interface connected through a system bus. Among them, the processor of the electronic device is used to provide computing and control capabilities. The memory of the electronic device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program and a database. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The database of the electronic device is used to store data. The network interface of the electronic device is used to communicate with an external terminal through a network connection. When the computer program is executed by the processor, a screen brightness adjustment method is implemented.
[0106] An embodiment of the present application provides a computer program product including instructions, which, when executed on a computer, enables the computer to execute the steps of the method provided in the above method embodiment.
[0107] Those skilled in the art will understand that Figure 6 The structure shown in the figure is merely a block diagram of a partial structure related to the scheme of the present application, and does not constitute a limitation on the electronic device to which the scheme of the present application is applied. The specific electronic device may include more or fewer components than shown in the figure, or combine certain components, or have a different arrangement of components.
[0108] In one embodiment, the screen brightness adjustment device provided by the present application can be implemented in the form of a computer program. Figure 6 The memory of the electronic device may store various program modules constituting the sampling device, for example, Figure 5 The receiving module, determining module and controlling module shown in the figure. The computer program composed of each program module enables the processor to execute the steps of the screen brightness adjustment method of each embodiment of the present application described in this specification.
[0109] In one embodiment, an electronic device is provided, including a memory and a processor, the memory storing a computer program, and the processor implementing the following steps when executing the computer program: when the electronic device controls a display screen to display a first display interface at a first brightness value, receiving a switching operation, the switching operation is used to instruct the electronic device to switch from the first display interface to a second display interface, the electronic device storing brightness values of the display screens corresponding to the first display interface and the second display interface, respectively, and the brightness values of the display screens corresponding to the first display interface and the second display interface, respectively, are different; determining whether the switching operation is an erroneous operation; and when the switching operation is an erroneous operation, keeping the display screen displaying the second display interface at the first brightness value.
[0110] In one embodiment, when the processor executes the computer program, the following steps are also implemented: detecting whether a process corresponding to the target display interface exists, the target display interface is the first display interface or the second display interface; when the process does not exist, controlling the display screen to display a third display interface with a second brightness value, the third display interface is the display interface corresponding to the currently running process.
[0111] In one embodiment, when the processor executes the computer program, the following steps are also implemented: the electronic device stores the brightness value of the display screen corresponding to the third display interface, determines that the stored brightness value of the display screen corresponding to the third display interface is a second brightness value; and controls the display screen to display the third display interface with the second brightness value.
[0112] In one embodiment, when the processor executes the computer program, it also implements the following steps: determining the first priority of the process corresponding to the target display interface, and the second priority of the process corresponding to the third display interface; determining the second brightness value based on the size relationship between the first priority and the second priority, and controlling the display screen to display the third display interface with the second brightness value, wherein the higher the priority, the higher the brightness value.
[0113] In one embodiment, when the processor executes the computer program, the following steps are further implemented: obtaining a brightness control duration corresponding to the first brightness value; and determining that the duration for which the display screen maintains the first brightness value reaches the brightness control duration.
[0114] In one embodiment, when the processor executes the computer program, the following steps are also implemented: if the process corresponding to the target display interface exists and is in a running state, determine whether the first brightness value is higher than a preset brightness value; when the first brightness value is higher than the preset brightness value, output a prompt message, and the prompt message is used to remind the user to adjust the brightness value of the display screen.
[0115] In one embodiment, when the processor executes the computer program, the following steps are further implemented: receiving a brightness adjustment operation initiated by a user; and adjusting a current display brightness value of the display screen in response to the brightness adjustment operation.
[0116] In the embodiment of the present application, when the electronic device controls the display screen to display the first display interface at the first brightness value, if a user instruction is received to switch from the first display interface to the second display interface, it will first determine whether the switching operation is an erroneous operation. If the switching operation is determined to be an erroneous operation, even if the first display interface is switched to the second display interface, the current brightness of the display screen of the electronic device will not be adjusted, but the second display interface will be displayed at the first brightness value corresponding to the first display interface. In this way, the power consumption loss caused by the frequent switching of the display brightness value of the display screen due to erroneous operations of the user in the process of using the electronic device can be reduced.
[0117] In one embodiment, a computer-readable storage medium is provided, on which a computer program is stored, and when the computer program is executed by a processor, the following steps are implemented: when an electronic device controls a display screen to display a first display interface with a first brightness value, a switching operation is received, and the switching operation is used to instruct the electronic device to switch from the first display interface to the second display interface, and the electronic device stores the brightness values of the display screens corresponding to the first display interface and the second display interface, respectively, and the brightness values of the display screens corresponding to the first display interface and the second display interface are different; determining whether the switching operation is an erroneous operation; when the switching operation is an erroneous operation, keeping the display screen displaying the second display interface with the first brightness value.
[0118] In one embodiment, when the computer program is executed by the processor, the following steps are also implemented: detecting whether a process corresponding to the target display interface exists, the target display interface is the first display interface or the second display interface; when the process does not exist, controlling the display screen to display a third display interface with a second brightness value, the third display interface is the display interface corresponding to the currently running process.
[0119] In one embodiment, when the computer program is executed by the processor, the following steps are also implemented: if the electronic device stores a brightness value of a display screen corresponding to a third display interface, determine that the stored brightness value of the display screen corresponding to the third display interface is a second brightness value; and control the display screen to display the third display interface with the second brightness value.
[0120] In one embodiment, when the computer program is executed by the processor, the following steps are also implemented: determining the first priority of the process corresponding to the target display interface, and the second priority of the process corresponding to the third display interface; determining the second brightness value based on the size relationship between the first priority and the second priority, and controlling the display screen to display the third display interface with the second brightness value, wherein the higher the priority, the higher the brightness value.
[0121] In one embodiment, when the computer program is executed by the processor, the following steps are also implemented: obtaining a brightness control duration corresponding to the first brightness value; and determining that the duration for which the display screen maintains the first brightness value reaches the brightness control duration.
[0122] In one embodiment, when the computer program is executed by the processor, the following steps are also implemented: if the process corresponding to the target display interface exists and is in a running state, determine whether the first brightness value is higher than the preset brightness value; when the first brightness value is higher than the preset brightness value, output a prompt message, and the prompt message is used to remind the user to adjust the brightness value of the display screen.
[0123] In one embodiment, when the computer program is executed by the processor, the following steps are further implemented: receiving a brightness adjustment operation initiated by a user; and adjusting the current display brightness value of the display screen in response to the brightness adjustment operation.
[0124] In the embodiment of the present application, when the electronic device controls the display screen to display the first display interface at the first brightness value, if a user instruction is received to switch from the first display interface to the second display interface, it will first determine whether the switching operation is an erroneous operation. If the switching operation is determined to be an erroneous operation, even if the first display interface is switched to the second display interface, the current brightness of the display screen of the electronic device will not be adjusted, but the second display interface will be displayed at the first brightness value corresponding to the first display interface. In this way, the power consumption loss caused by the frequent switching of the display brightness value of the display screen due to erroneous operations of the user in the process of using the electronic device can be reduced.
[0125] It should be noted here that the description of the above storage medium and device embodiments is similar to the description of the above method embodiments, and has similar beneficial effects as the method embodiments. For technical details not disclosed in the storage medium, storage medium and device embodiments of this application, please refer to the description of the method embodiments of this application for understanding.
[0126] It should be understood that "one embodiment" or "an embodiment" or "some embodiments" mentioned throughout the specification means that specific features, structures or characteristics related to the embodiment are included in at least one embodiment of the present application. Therefore, "in one embodiment" or "in one embodiment" or "in some embodiments" appearing throughout the specification may not necessarily refer to the same embodiment. In addition, these specific features, structures or characteristics can be combined in one or more embodiments in any suitable manner. It should be understood that in various embodiments of the present application, the size of the sequence number of the above-mentioned processes does not mean the order of execution, and the execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiment of the present application. The above-mentioned sequence numbers of the embodiments of the present application are only for description and do not represent the advantages and disadvantages of the embodiments. The above description of each embodiment tends to emphasize the differences between the various embodiments, and the same or similar aspects can be referenced to each other. For the sake of brevity, this article will not repeat them.
[0127] The term "and / or" in this article is only a description of the association relationship of associated objects, indicating that there may be three relationships. For example, object A and / or object B can represent three situations: object A exists alone, object A and object B exist at the same time, and object B exists alone.
[0128] It should be noted that, in this article, the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, an element defined by the sentence "comprises a ..." does not exclude the existence of other identical elements in the process, method, article or device including the element.
[0129] In the several embodiments provided in the present application, it should be understood that the disclosed devices and methods can be implemented in other ways. The embodiments described above are only schematic. For example, the division of the modules is only a logical function division. There may be other division methods in actual implementation, such as: multiple modules or components can be combined, or can be integrated into another system, or some features can be ignored, or not executed. In addition, the coupling, direct coupling, or communication connection between the components shown or discussed can be through some interfaces, and the indirect coupling or communication connection of devices or modules can be electrical, mechanical or other forms.
[0130] The modules described above as separate components may or may not be physically separated, and the components displayed as modules may or may not be physical modules; 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 present embodiment.
[0131] In addition, all functional modules in the embodiments of the present application may be integrated into one processing unit, or each module may be a separate unit, or two or more modules may be integrated into one unit; the above-mentioned integrated modules may be implemented in the form of hardware or in the form of hardware plus software functional units.
[0132] A person skilled in the art can understand that all or part of the steps of implementing the above method embodiment can be completed by hardware related to program instructions, and the aforementioned program can be stored in a computer-readable storage medium. When the program is executed, it executes the steps of the above method embodiment; and the aforementioned storage medium includes: mobile storage devices, read-only memories (ROM), magnetic disks or optical disks, etc., various media that can store program codes.
[0133] Alternatively, if the above-mentioned integrated unit of the present application is implemented in the form of a software function module and sold or used as an independent product, it can also be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the embodiment of the present application can essentially or in other words, the part that contributes to the relevant technology can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including a number of instructions for enabling an electronic device to execute all or part of the methods described in each embodiment of the present application. The aforementioned storage medium includes: various media that can store program codes, such as mobile storage devices, ROMs, magnetic disks, or optical disks.
[0134] The methods disclosed in several method embodiments provided in this application can be arbitrarily combined without conflict to obtain new method embodiments.
[0135] The features disclosed in several product embodiments provided in this application can be arbitrarily combined without conflict to obtain new product embodiments.
[0136] The features disclosed in several method or device embodiments provided in this application can be arbitrarily combined without conflict to obtain new method embodiments or device embodiments.
[0137] The above is only an implementation method of the present application, but the protection scope of the present application is not limited thereto. Any person skilled in the art who is familiar with the present technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.
Claims
1. A screen brightness adjustment method, characterized in that: Applied to electronic equipment, the method comprises: When the electronic device controls the display screen to display a first display interface with a first brightness value, a switching operation is received, wherein the switching operation is used to instruct the electronic device to switch from the first display interface to a second display interface, and the electronic device stores brightness values of the display screens corresponding to the first display interface and the second display interface, respectively, and the brightness values of the display screens corresponding to the first display interface and the second display interface, respectively, are different; Determining whether the switching operation is an erroneous operation; When the switching operation is an erroneous operation, the display screen is kept displaying the second display interface at the first brightness value.
2. The method according to claim 1, characterized in that When the switching operation is an erroneous operation, after maintaining the display screen to display the second display interface at the first brightness value, the method further includes: Detecting whether a process corresponding to a target display interface exists, where the target display interface is the first display interface or the second display interface; When the process does not exist, the display screen is controlled to display a third display interface at a second brightness value, and the third display interface is a display interface corresponding to the currently running process.
3. The method according to claim 2, characterized in that The controlling the display screen to display the third display interface at the second brightness value includes: If the electronic device stores a brightness value of a display screen corresponding to the third display interface, determining that the stored brightness value of the display screen corresponding to the third display interface is a second brightness value; Control the display screen to display the third display interface at the second brightness value.
4. The method according to claim 2, characterized in that: The controlling the display screen to display the third display interface at the second brightness value includes: Determine a first priority of a process corresponding to the target display interface, and a second priority of a process corresponding to the third display interface; The second brightness value is determined according to the magnitude relationship between the first priority and the second priority, and the display screen is controlled to display the third display interface at the second brightness value, wherein the higher the priority, the higher the brightness value.
5. The method according to any one of claims 2 to 4, characterized in that: Before detecting whether a process corresponding to the target display interface exists, the method further includes: Acquire a brightness control duration corresponding to the first brightness value; It is determined that the time duration for which the display screen maintains the first brightness value reaches the brightness control time duration.
6. The method according to claim 5, characterized in that After detecting whether a process corresponding to the target display interface exists, the method further includes: If the process corresponding to the target display interface exists and is in a running state, determining whether the first brightness value is higher than a preset brightness value; When the first brightness value is higher than a preset brightness value, a prompt message is output, where the prompt message is used to remind the user to adjust the brightness value of the display screen.
7. The method according to claim 1, characterized in that The method further comprises: Receive a brightness adjustment operation initiated by a user; In response to the brightness adjustment operation, the current display brightness value of the display screen is adjusted.
8. A screen brightness adjustment device, characterized in that: include: A receiving module, configured to receive a switching operation when the electronic device controls the display screen to display a first display interface with a first brightness value, wherein the switching operation is used to instruct the electronic device to switch from the first display interface to a second display interface, wherein the electronic device stores brightness values of the display screens corresponding to the first display interface and the second display interface, respectively, and the brightness values of the display screens corresponding to the first display interface and the second display interface, respectively, are different; A determination module, used to determine whether the switching operation is an erroneous operation; The control module is used to keep the display screen displaying the second display interface at the first brightness value when the switching operation is an erroneous operation.
9. An electronic device comprising a memory and a processor, wherein the memory stores a computer program that can be run on the processor, characterized in that: When the processor executes the program, the steps of the method according to any one of claims 1 to 7 are implemented.
10. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the method according to any one of claims 1 to 7 is implemented.
Citation Information
Patent Citations
Information prompting method, storage medium and electronic device
CN109067983A
Anti-misoperation method and device for a terminal
CN109905543A