Screen brightness adjusting method and device, equipment and storage medium
By obtaining brightness change parameters in the screen automatic brightness adjustment mode, and keeping the brightness unchanged if specific conditions are met, it solves the problem of screen failure caused by frequent environmental brightness changes and improves the user experience.
Patent Information
- Application Number
- CN202310555163.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-05-16
- Publication Date
- 2024-11-22
AI Technical Summary
In scenarios where the ambient brightness changes frequently, the automatic adjustment of the screen brightness leads to an increase in the probability of screen failure, affecting the user experience.
When the screen is in automatic brightness adjustment mode, obtain the brightness change parameters within the preset time. If specific conditions are met, keep the brightness unchanged and avoid frequent changes.
It reduces the probability of screen failure, improves the user's experience of using electronic devices, and avoids visual interference and stimulation caused by frequent changes in brightness.
Smart Images

Figure CN119007686A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of computer technology, and in particular to a method, device, equipment and storage medium for adjusting screen brightness. Background Art
[0002] With the development of computer technology, electronic devices provide more and more functions, and users can use electronic devices to achieve work, entertainment, learning and other purposes. In the process of using electronic devices, users use the screen of the electronic device to obtain information and interact with the computer. Therefore, the brightness of the screen is very important for the user's experience of using the electronic device.
[0003] In the related art, the screen brightness is often automatically adjusted based on the ambient brightness so that the screen brightness matches the ambient brightness.
[0004] However, when the user is in a scenario where the ambient brightness changes frequently, the brightness of the screen will also change frequently, increasing the probability of screen failure. Summary of the invention
[0005] The embodiments of the present application provide a method, apparatus, device and storage medium for adjusting screen brightness, which can reduce the probability of screen failure and thus improve the user experience of using an electronic device. The technical solution is as follows:
[0006] In one aspect, a method for adjusting screen brightness is provided, the method comprising:
[0007] When the screen is in an automatic brightness adjustment mode, obtaining a brightness change parameter of the screen within a preset time period, wherein the brightness change parameter is used to indicate a brightness change of the screen;
[0008] When the brightness change parameter meets the brightness change condition, the brightness of the screen is controlled to remain unchanged.
[0009] In one aspect, a device for adjusting screen brightness is provided, the device comprising:
[0010] A brightness change parameter acquisition module, used to acquire the brightness change parameters of the screen within a preset time period when the screen is in an automatic brightness adjustment mode, wherein the brightness change parameters are used to represent the brightness change of the screen;
[0011] The control module is used to control the brightness of the screen to remain unchanged when the brightness change parameter meets the brightness change condition.
[0012] On the one hand, an electronic device is provided, which includes one or more processors and one or more memories, wherein at least one computer program is stored in the one or more memories, and the computer program is loaded and executed by the one or more processors to implement the method for adjusting the screen brightness.
[0013] On the one hand, a computer-readable storage medium is provided, wherein at least one computer program is stored in the computer-readable storage medium, and the computer program is loaded and executed by a processor to implement the method for adjusting screen brightness.
[0014] On the one hand, a computer program product or computer program is provided, which includes a program code, and the program code is stored in a computer-readable storage medium. A processor of an electronic device reads the program code from the computer-readable storage medium, and the processor executes the program code, so that the electronic device executes the above-mentioned screen brightness adjustment method.
[0015] Through the technical solution provided by the embodiment of the present application, when the screen is in the automatic brightness adjustment mode, the brightness change parameter of the screen within the preset time length is obtained, so as to determine the brightness change of the screen within the preset time length. When the brightness change parameter meets the brightness change condition, the brightness of the screen is controlled to remain unchanged, that is, the brightness of the screen is no longer automatically adjusted, thereby reducing the probability of screen failure and improving the user experience of using the electronic device. BRIEF DESCRIPTION OF THE DRAWINGS
[0016] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the following briefly introduces the drawings required for use in the description of the embodiments. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.
[0017] Figure 1 is a schematic diagram of an electronic device provided in an embodiment of the present application;
[0018] Figure 2 is a flow chart of a method for adjusting screen brightness provided in an embodiment of the present application;
[0019] Figure 3 is a flow chart of another method for adjusting screen brightness provided in an embodiment of the present application;
[0020] Figure 4 is a schematic diagram of a setting interface provided in an embodiment of the present application;
[0021] Figure 5is a schematic diagram of a brightness setting area provided in an embodiment of the present application;
[0022] Figure 6 is a schematic diagram of an intelligent switching data model provided in an embodiment of the present application;
[0023] Figure 7 is a schematic diagram of a brightness adjustment area provided in an embodiment of the present application;
[0024] Figure 8 is a schematic diagram of a retention time setting area provided in an embodiment of the present application;
[0025] Fig. 9 is a flow chart of another method for adjusting screen brightness provided in an embodiment of the present application;
[0026] Fig.10 is a flow chart of another method for adjusting screen brightness provided in an embodiment of the present application;
[0027] Fig.11 It is a structural schematic diagram of a screen brightness adjustment device provided in an embodiment of the present application;
[0028] Fig.12 It is a structural schematic diagram of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0029] In order to make the objectives, technical solutions and advantages of the present application clearer, the implementation methods of the present application will be further described in detail below in conjunction with the accompanying drawings.
[0030] In this application, the terms "first", "second", etc. are used to distinguish identical or similar items with basically the same effects and functions. It should be understood that there is no logical or temporal dependency between "first", "second", and "nth", nor is there any limitation on quantity and execution order.
[0031] In order to more clearly illustrate the technical solution provided by the embodiments of the present application, the terms involved in the embodiments of the present application are first introduced below.
[0032] Brightness mode: In the embodiments of the present application, brightness mode refers to the way in which the electronic device adjusts the screen brightness. The brightness mode includes automatic brightness adjustment mode and fixed brightness mode. In automatic brightness adjustment mode, the electronic device will automatically adjust the screen brightness according to the surrounding ambient brightness. Generally speaking, an increase in ambient brightness will increase the screen brightness, and a decrease in ambient brightness will reduce the screen brightness. In fixed brightness mode, the screen brightness remains unchanged at the set value.
[0033] After introducing the terms involved in the embodiments of the present application, the electronic device involved in the embodiments of the present application is introduced below.
[0034] The electronic devices involved in the embodiments of the present application include mobile terminals, personal computers (PCs), such as tablet computers, desktop computers, notebooks, netbooks, personal digital assistants (PDAs), mobile phones, e-book readers, portable multimedia players (PMPs), audio / video players (MP3 / MP4), virtual reality devices (VRs), wearable devices and other devices with screens. In some embodiments, wearable devices include accessory types, such as watches, rings, bracelets, glasses, or head-mounted displays (HMDs), integrated types (such as electronic clothing), decorative types (such as skin pads, tattoos, or built-in electronic devices), etc., or a combination of several of them. In the embodiments of the present application, the electronic devices can be flexible, not limited to the above-mentioned devices, or can be a combination of one or several of the above-mentioned various devices. See Figure 1 In the embodiment of the present application, the execution subject is taken as the electronic device 100 as an example for explanation.
[0035] After introducing the nouns and electronic devices involved in the embodiments of the present application, the application scenarios of the embodiments of the present application are introduced below.
[0036] The screen brightness adjustment method provided in the embodiment of the present application can be applied to any electronic device with a screen. By adopting the technical solution provided in the embodiment of the present application, when the screen of the electronic device is in the automatic brightness adjustment mode, the brightness change parameter of the screen within a preset time length can be obtained. The brightness change parameter is used to indicate the brightness change of the screen. The automatic brightness adjustment mode is a brightness mode for automatically adjusting the screen brightness. When the brightness change parameter meets the brightness change condition, a brightness setting control is displayed, and the brightness setting control is used to set the brightness of the screen. In response to the setting operation of the brightness setting control, the brightness of the screen is controlled to remain unchanged, thereby avoiding frequent changes in the screen brightness.
[0037] After introducing the application scenario of the embodiment of the present application, the following describes the screen brightness adjustment method provided by the embodiment of the present application. Figure 2 Taking the execution subject as an electronic device as an example, the method includes the following steps.
[0038] 201. When the screen is in an automatic brightness adjustment mode, the electronic device obtains a brightness change parameter of the screen within a preset time period, where the brightness change parameter is used to indicate a brightness change of the screen.
[0039] Wherein, the screen is the screen of an electronic device, and in the automatic brightness adjustment mode, the brightness of the screen will be automatically adjusted. The preset duration is the cycle length for executing the screen brightness adjustment method provided in the embodiment of the present application, and the preset duration can be set by a technician according to actual conditions, or by a user using the electronic device, and the embodiment of the present application does not limit this. The brightness change parameter is a quantification of the brightness change of the screen, and the brightness change of the screen can be known by the brightness change parameter.
[0040] 202. When the brightness change parameter meets the brightness change condition, the electronic device controls the brightness of the screen to remain unchanged.
[0041] Among them, the fact that the brightness change parameter meets the brightness change condition indicates that the brightness change of the screen meets the situation corresponding to the brightness change condition.
[0042] Through the technical solution provided by the embodiment of the present application, when the screen is in the automatic brightness adjustment mode, the brightness change parameter of the screen within the preset time length is obtained, so as to determine the brightness change of the screen within the preset time length. When the brightness change parameter meets the brightness change condition, the brightness of the screen is controlled to remain unchanged, that is, the brightness of the screen is no longer automatically adjusted, thereby reducing the probability of screen failure and improving the user experience of using the electronic device.
[0043] The above steps 201-202 are a brief introduction to the screen brightness adjustment method provided in the embodiment of the present application. The following will combine some examples to explain the screen brightness adjustment method provided in the embodiment of the present application in more detail. Figure 3 Taking the execution subject as an electronic device as an example, the method includes the following steps.
[0044] 301. In response to an operation to adjust the brightness of a screen, the electronic device displays a brightness mode setting area of the screen, where the brightness mode setting area is used to set a brightness mode of the screen, and the brightness mode includes an automatic brightness adjustment mode and a fixed brightness mode.
[0045] Among them, the screen is the screen of an electronic device, the brightness mode refers to a mode for adjusting the screen brightness, the automatic brightness adjustment mode refers to a mode for automatically adjusting the screen brightness, and the fixed brightness mode refers to a mode for maintaining the screen brightness at a set value.
[0046] In a possible implementation, in response to a setting operation on a brightness adjustment control of the screen, the electronic device displays a brightness mode setting area of the screen, where the brightness adjustment control is used to adjust the brightness mode of the screen.
[0047] The brightness adjustment control may be displayed on a setting interface of the electronic device or on an application interface, which is not limited in the present embodiment. In some embodiments, the setting operation includes a click operation, a long press operation, and a drag operation.
[0048] In this implementation, the display brightness mode setting area can be triggered by clicking the brightness adjustment control, and the screen brightness mode can be set through the brightness mode setting area subsequently, which is more efficient.
[0049] For example, see Figure 4 Taking the setting operation as a click operation as an example, the electronic device displays a setting interface 400, which includes a brightness adjustment control 401. In response to the click operation on the brightness adjustment control 401, the electronic device displays a brightness mode setting area 402 of the screen, and the brightness mode setting area 402 is used to set the brightness mode of the screen.
[0050] In a possible implementation, in response to a sliding operation on the screen, the electronic device displays a brightness mode setting area of the screen, and the brightness adjustment control is used to adjust the brightness mode of the screen.
[0051] Among them, the sliding operation on the screen includes a sliding operation from top to bottom on the screen, and also includes a sliding operation from bottom to top on the screen, which is not limited in the embodiments of the present application. In some embodiments, the sliding operation refers to a sliding operation starting from a preset position on the screen, and the preset position is set by a technician according to actual conditions, such as the top or bottom of the screen, etc., which is not limited in the embodiments of the present application. In this case, by setting different starting points, multiple functions can be defined for the sliding operation to improve efficiency.
[0052] In this implementation, the brightness mode setting area can be triggered to be displayed by performing a sliding operation on the screen, which is more efficient.
[0053] It should be noted that the above description uses the brightness adjustment operation as an example of setting the brightness adjustment control and sliding on the screen. In other possible implementations, the brightness adjustment operation may also be other forms of operation, which is not limited in the embodiments of the present application.
[0054] 302. In response to the operation in the brightness mode setting area, the electronic device sets the brightness mode of the screen to an automatic brightness adjustment mode.
[0055] In one possible implementation, the brightness mode setting area includes a switch control for an automatic brightness adjustment mode. When the switch control is in an off state, in response to a user's setting operation on the switch control, the electronic device switches the switch control to an on state, thereby setting the brightness mode of the screen to the automatic brightness adjustment mode.
[0056] Among them, the switch control of the automatic brightness adjustment mode is used to control the opening and closing of the automatic brightness adjustment mode. When the switch control is in the closed state, the automatic brightness adjustment mode is also in the closed state; when the switch control is in the opened state, the automatic brightness adjustment mode is also in the opened state. In the case where the brightness mode of the screen includes the automatic brightness adjustment mode and the fixed brightness mode, when the automatic brightness adjustment mode is in the opened state, the fixed brightness mode is in the closed state; when the automatic brightness adjustment mode is in the closed state, the fixed brightness mode is in the opened state. Of course, the above is explained by taking the brightness mode of the screen including the automatic brightness adjustment mode and the fixed brightness mode as an example. When the brightness mode of the screen also includes other modes, the switching relationship between the modes can be set in combination with other modes, and the embodiments of the present application are not limited to this.
[0057] In this implementation, the automatic brightness adjustment mode can be turned on and off by using the switch control of the automatic brightness adjustment mode, which is highly efficient.
[0058] For example, see Figure 5 , taking the setting operation as a click operation as an example, the electronic device displays a brightness mode setting area 500, and the brightness mode setting area 500 includes a switch control 501 for the automatic brightness adjustment mode. When the switch control 501 is in the off state (the circle is on the left), in response to the click operation on the switch control 501, the electronic device sets the brightness mode of the screen to the automatic brightness adjustment mode. In some embodiments, the brightness mode setting area 500 includes a screen brightness display area 502, and the screen brightness display area 502 is used to display the current brightness of the screen. When the switch control 501 is in the off state, that is, when the brightness mode of the screen is a fixed brightness mode, the fixed brightness of the screen in the fixed brightness mode can be adjusted through the screen brightness display area 502. When the switch control 502 is in the on state, that is, when the brightness mode of the screen is the automatic brightness adjustment mode, the screen brightness display area 502 can change with the brightness of the screen.
[0059] In a possible implementation, in response to a sliding operation in the brightness mode setting area, the electronic device sets the brightness mode of the screen to an automatic brightness adjustment mode.
[0060] The sliding operation in the brightness mode setting area refers to the operation of sliding from left to right in the brightness mode setting area. The sliding operation from left to right in the brightness mode setting area is used to control turning on the automatic brightness adjustment mode, and correspondingly, the sliding operation from right to left in the brightness mode setting area is used to control turning off the automatic brightness adjustment mode.
[0061] In this embodiment, the brightness mode of the screen can be set by performing a sliding operation in the brightness adjustment mode setting area, which is more efficient.
[0062] In some embodiments, this embodiment can also be combined with the previous embodiment, that is, the brightness mode setting area includes a switch control for the automatic brightness adjustment mode. When the switch control is in the off state, in response to a sliding operation in the brightness mode setting area, the electronic device sets the brightness mode of the screen to the automatic brightness adjustment mode.
[0063] In this combined manner, the sliding operation in the brightness mode setting area can change the state of the switch control, that is, adjust the switch control from the off state to the on state, thereby controlling the on and off of the automatic brightness adjustment mode.
[0064] Optionally, when the brightness mode of the screen is set to an automatic brightness adjustment mode, the electronic device can also perform any of the following steps.
[0065] Step A: When the brightness mode of the screen is set to the automatic brightness adjustment mode, the electronic device displays a brightness threshold setting area, where the brightness threshold setting area is used to set the brightness adjustment range of the screen in the automatic brightness adjustment mode.
[0066] The brightness adjustment range is used to limit the brightness change range of the screen in the automatic brightness adjustment mode. When the brightness adjustment range is determined, the brightness of the screen in the automatic brightness adjustment mode will change within the brightness adjustment range.
[0067] Under this implementation, when the brightness mode of the screen is set to the automatic brightness adjustment mode, the brightness adjustment range of the screen in the automatic brightness adjustment mode can be set through the brightness threshold setting area, so that the change of the screen brightness in the automatic brightness adjustment mode is more controllable, avoiding the visual interference and stimulation to the user caused by the screen being too bright or too dark in the automatic brightness adjustment mode, thereby improving the experience of using the electronic device.
[0068] For example, when the brightness mode of the screen is set to the automatic brightness adjustment mode, the electronic device displays a brightness threshold setting control. In response to a setting operation of the brightness threshold setting control, the electronic device displays a brightness threshold setting area, which is used to set the maximum brightness and minimum brightness of the screen in the automatic brightness adjustment mode, and the maximum brightness and the minimum brightness constitute the brightness adjustment range.
[0069] For example, see Figure 5 When the brightness mode of the screen is set to the automatic brightness adjustment mode, that is, when the switch control 501 is set to the on state, the electronic device displays a brightness threshold setting control 503. In response to the setting operation of the brightness threshold setting control 503, the electronic device displays a brightness threshold setting area 504, which includes a maximum brightness setting control 5041 and a minimum brightness setting control 5042. Dragging the maximum brightness setting control 5041 can adjust the maximum brightness of the screen in the automatic brightness adjustment mode, and dragging the minimum brightness setting control 5042 can adjust the minimum brightness of the screen in the automatic brightness adjustment mode.
[0070] In some embodiments, during the process of dragging the maximum brightness setting control 5041, the electronic device adjusts the brightness of the screen based on the position of the maximum brightness setting control 5041. Correspondingly, during the process of dragging the minimum brightness setting control 5042, the electronic device adjusts the brightness of the screen based on the position of the minimum brightness setting control 5042. In this way, the user can intuitively feel the maximum brightness and minimum brightness in the automatic brightness adjustment mode, which is convenient for the user to set and improves efficiency.
[0071] Step B: When the brightness mode of the screen is set to the automatic brightness adjustment mode, the electronic device displays a brightness adjustment speed setting area, where the brightness adjustment speed setting area is used to set the speed of brightness adjustment of the screen in the automatic brightness adjustment mode.
[0072] The speed of brightness adjustment refers to the amount of change in the brightness of the screen per unit time, that is, the speed of brightness change. Accordingly, the greater the brightness adjustment speed, the greater the amount of change in the screen per unit time, and the faster the brightness change speed of the screen; the smaller the brightness adjustment speed, the smaller the amount of change in the screen per unit time, and the slower the brightness change speed of the screen. The unit time is set by the technician according to the actual situation, such as 1s or 0.5s, etc., and the embodiments of the present application do not limit this.
[0073] In this embodiment, when the brightness mode of the screen is set to the automatic brightness adjustment mode, the brightness adjustment speed of the screen in the automatic brightness adjustment mode can be set through the brightness adjustment speed setting area, so that the change of the screen brightness in the automatic brightness adjustment mode is more controllable, thereby improving the experience of using the electronic device.
[0074] For example, when the brightness mode of the screen is set to the automatic brightness adjustment mode, the electronic device displays a brightness adjustment speed setting control. In response to a setting operation of the brightness adjustment speed setting control, the electronic device displays a brightness adjustment speed setting area, which is used to set the speed of brightness adjustment of the screen in the automatic brightness adjustment mode.
[0075] For example, see Figure 5 When the brightness mode of the screen is set to the automatic brightness adjustment mode, that is, when the switch control 501 is set to the on state, the electronic device displays a brightness adjustment speed setting control 505. In response to the setting operation of the brightness adjustment speed setting control 505, the electronic device displays a brightness adjustment speed setting area 506, which includes a speed adjustment control 5061. Dragging the speed adjustment control 5061 can adjust the speed of the brightness adjustment of the screen.
[0076] Step C: When the brightness mode of the screen is set to the automatic brightness adjustment mode, the electronic device displays a brightness adjustment sensitivity setting area, where the brightness adjustment sensitivity setting area is used to set the sensitivity of the brightness adjustment of the screen in the automatic brightness adjustment mode.
[0077] The sensitivity of the brightness adjustment refers to the sensitivity of adjusting the screen brightness in the automatic brightness adjustment mode. The higher the sensitivity, the easier it is to adjust the screen brightness; the lower the sensitivity, the more difficult it is to adjust the screen brightness. For example, in the automatic brightness adjustment mode, the screen brightness is adjusted based on the ambient brightness. In the case of a high sensitivity, the screen brightness will be adjusted even if the ambient brightness changes slightly; in the case of a low sensitivity, the screen brightness will be adjusted only if the ambient brightness changes significantly.
[0078] In this embodiment, when the brightness mode of the screen is set to the automatic brightness adjustment mode, the brightness adjustment sensitivity of the screen in the automatic brightness adjustment mode can be set through the brightness adjustment sensitivity setting area, so that the change of the screen brightness in the automatic brightness adjustment mode is more controllable, thereby improving the experience of using the electronic device.
[0079] For example, when the brightness mode of the screen is set to the automatic brightness adjustment mode, the electronic device displays a brightness adjustment sensitivity setting control. In response to a setting operation of the brightness adjustment sensitivity setting control, the electronic device displays a brightness adjustment sensitivity setting area, which is used to set the sensitivity of the brightness adjustment of the screen in the automatic brightness adjustment mode.
[0080] For example, see Figure 5 When the brightness mode of the screen is set to the automatic brightness adjustment mode, that is, when the switch control 501 is set to the on state, the electronic device displays a brightness adjustment sensitivity setting control 507. In response to the setting operation of the brightness adjustment sensitivity setting control 507, the electronic device displays a brightness adjustment sensitivity setting area 508, and the brightness adjustment sensitivity setting area 508 includes a sensitivity adjustment control 5081. Dragging the sensitivity adjustment control 5081 can adjust the sensitivity of the brightness adjustment of the screen.
[0081] Step D: When the brightness mode of the screen is set to the automatic brightness adjustment mode, the electronic device displays the smart switching control. In response to the setting operation of the smart switching control, the following step 303 is executed.
[0082] The smart switch control is used to turn on or off the function of automatically switching the brightness mode.
[0083] In a possible implementation, the brightness mode setting area includes the smart switch control, and when the smart switch control is in a closed state, in response to a setting operation on the smart switch control, the electronic device starts the brightness mode automatic switching function, thereby executing the following step 303. Figure 5 , the brightness mode setting area 500 includes the smart switching control 509.
[0084] In this implementation, a method is provided to control the customized switching function of the brightness mode through an intelligent switching control, thereby providing users with abundant choices and improving efficiency.
[0085] It should be noted that the above steps 301 and 302 are optional steps. The electronic device can either execute the above steps 301 and 302 or directly execute the following step 303, which is not limited in the embodiment of the present application.
[0086] 303. When the screen is in an automatic brightness adjustment mode, the electronic device obtains a brightness change parameter of the screen within a preset time period, where the brightness change parameter is used to indicate a brightness change of the screen.
[0087] Wherein, in the automatic brightness adjustment mode, the brightness of the screen is automatically adjusted. In some embodiments, when the screen is in the automatic brightness adjustment mode, the electronic device automatically adjusts the brightness of the screen based on environmental parameters, for example, the environmental parameter is the ambient brightness, and the brightness of the screen changes with the change of the ambient brightness. In this case, the electronic device has an ambient light sensor, and the ambient brightness can be obtained through the ambient light sensor. In some embodiments, when the screen is in the automatic brightness adjustment mode, the electronic device automatically adjusts the brightness of the screen based on the browsing mode, for example, the browsing mode includes a reading mode, a night mode, a day mode, a game mode, and a movie mode, etc. Different browsing modes correspond to different screen brightnesses, and the electronic device can automatically adjust the brightness of the screen according to the current browsing mode. In some embodiments, when the screen is in the automatic brightness adjustment mode, the electronic device automatically adjusts the brightness of the screen based on the distance between the screen and the face, for example, the brightness of the screen is positively correlated with the distance, that is, the smaller the distance between the screen and the face, the lower the brightness of the screen. The larger the distance between the screen and the face, the higher the brightness of the screen. In this case, the electronic device has a distance sensor, and the distance between the screen and the face can be determined by the distance sensor.
[0088] The preset duration is the cycle length for executing the screen brightness adjustment method provided in the embodiment of the present application. The preset duration can be set by a technician according to actual conditions, or by a user using the electronic device. The embodiment of the present application does not limit this. That is to say, when executing the technical solution provided in the embodiment of the present application, it is carried out with a cycle as the granularity, and the length of each cycle is the preset duration. The execution method of each cycle belongs to the same inventive concept. The embodiment of the present application takes a cycle as an example for explanation. The brightness change parameter is used to represent the brightness change of the screen. Since the screen is in the automatic brightness adjustment mode, the brightness change parameter can not only reflect the brightness change of the screen, but also reflect the change of the ambient brightness to a certain extent. In some embodiments, the brightness change parameter includes at least one of the brightness change amplitude, the brightness change frequency, and the accumulated brightness change.
[0089] In a possible implementation, when the screen is in an automatic brightness adjustment mode, the electronic device obtains at least one of a brightness change amplitude, a brightness change frequency, and a cumulative brightness change amount of the screen within the preset time period.
[0090] Among them, the brightness change amplitude within the preset time length refers to the difference between the brightness after adjustment and the brightness before adjustment within the preset time length. The larger the brightness change amplitude, the larger the difference between the brightness after adjustment and the brightness before adjustment, which means that the brightness change of the screen is more significant. The brightness change frequency within the preset time length refers to the number of times the brightness of the screen is adjusted within the preset time length. Each time the brightness adjustment is performed, the number of brightness adjustments is increased by one. The higher the brightness change frequency, the more frequent the brightness change of the screen. The cumulative brightness change within the preset time length refers to the accumulated value of the difference between the brightness after adjustment and the brightness before adjustment within the preset time length.
[0091] In this embodiment, when the screen is in automatic brightness adjustment mode, at least one of the brightness change amplitude, brightness change frequency, and cumulative brightness change of the screen within the preset time length is obtained as a brightness change parameter, and the screen brightness can be subsequently adjusted based on at least one of the brightness change amplitude, brightness change frequency, and cumulative brightness change of the screen within the preset time length.
[0092] For example, when the screen is in the automatic brightness adjustment mode, the electronic device continuously obtains the brightness of the screen within the preset time period. Based on the multiple brightness values obtained within the preset time period, the electronic device determines at least one of the brightness change amplitude, brightness change frequency, and brightness cumulative change amount of the screen within the preset time period.
[0093] The following describes methods for the electronic device to determine the brightness change amplitude, brightness change frequency, and accumulated brightness change of the screen within the preset time period.
[0094] Regarding the brightness change amplitude of the screen within the preset time period, the electronic device obtains multiple brightnesses within the preset time period and respectively compares them with the initial brightness at the beginning of the preset time period to obtain multiple brightness difference values, where the multiple brightness difference values are the brightness change amplitude, and the initial brightness is the first brightness among the multiple brightnesses.
[0095] For the brightness change frequency of the screen within the preset duration, the electronic device compares the multiple brightnesses obtained within the preset duration in pairs to obtain extreme values among the multiple brightnesses, wherein the extreme value refers to the brightness among the multiple brightnesses whose change amount between the brightness before and after exceeds the change amount threshold. The electronic device determines the ratio of the number of extreme values to the preset duration as the brightness change frequency within the preset duration.
[0096] For the accumulated brightness change of the screen within the preset duration, the electronic device adds the multiple brightness values obtained within the preset duration to the initial brightness at the beginning of the preset duration to obtain multiple brightness difference values. The electronic device adds the multiple brightness difference values to obtain the accumulated brightness change within the preset duration.
[0097] It should be noted that the above is explained by taking the brightness change parameter including at least one of the brightness change amplitude, brightness change frequency and cumulative brightness change of the screen within the preset time period as an example. In other possible implementations, the brightness change parameter may also include other parameters, which is not limited to the embodiments of the present application.
[0098] In the case where the preset time length is set by the user of the electronic device, the method for setting the preset time length is described below.
[0099] In a possible implementation, in response to the adjustment operation of the preset duration, the electronic device displays a setting area for the preset duration. In response to the operation on the setting area, the electronic device determines the duration corresponding to the operation as the preset duration.
[0100] After step 303, the electronic device determines to execute the following steps 304-305 according to actual conditions, or directly executes the following step 306.
[0101] 304. When the brightness change parameter meets the brightness change condition, the electronic device displays a brightness setting control.
[0102] Among them, the brightness change parameter meeting the brightness change condition indicates that the brightness change of the screen meets the condition corresponding to the brightness change condition, and the brightness setting control is used to set the brightness of the screen.
[0103] In a possible implementation, the brightness setting control is displayed when at least one of the brightness change amplitude is greater than or equal to a change amplitude threshold, the brightness change frequency is greater than or equal to a change frequency threshold, and the brightness cumulative change amount is greater than or equal to a change amount threshold exists.
[0104] Wherein, in the case where the brightness change parameter includes at least one of the brightness change amplitude, brightness change frequency and brightness cumulative change amount of the screen within the preset duration, the brightness change condition includes at least one of whether the brightness change amplitude is greater than or equal to the change amplitude threshold, whether the brightness change frequency is greater than or equal to the change frequency threshold and whether the brightness cumulative change amount is greater than or equal to the change amount threshold. Accordingly, in the case where at least one of the brightness change amplitude is greater than or equal to the change amplitude threshold, the brightness change frequency is greater than or equal to the change frequency threshold and the brightness cumulative change amount is greater than or equal to the change amount threshold, it means that the brightness change parameter meets the brightness change condition. The change amplitude threshold, the change frequency threshold and the change amount threshold are set by technicians according to actual conditions, and the embodiments of the present application do not limit this.
[0105] In this implementation, when the brightness change parameter meets the brightness condition, the brightness setting control is displayed to provide the user with an option to reset the screen brightness, which is more efficient.
[0106] In addition, in the above-mentioned embodiment, when at least one of the brightness change amplitude is greater than or equal to the change amplitude threshold, the brightness change frequency is greater than or equal to the change frequency threshold, and the cumulative brightness change is greater than or equal to the change amount threshold, the electronic device determines that the brightness change parameter meets the brightness change condition, including the following three situations.
[0107] Case 1: When any one of the following conditions exists: the brightness change amplitude is greater than or equal to the change amplitude threshold, the brightness change frequency is greater than or equal to the change frequency threshold, and the cumulative brightness change is greater than or equal to the change amount threshold, the electronic device determines that the brightness change parameter meets the brightness change condition.
[0108] Case 2: When any two of the brightness change amplitude is greater than or equal to the change amplitude threshold, the brightness change frequency is greater than or equal to the change frequency threshold, and the cumulative brightness change is greater than or equal to the change amount threshold, the electronic device determines that the brightness change parameter meets the brightness change condition.
[0109] Case 3: When the brightness change amplitude is greater than or equal to the change amplitude threshold, the brightness change frequency is greater than or equal to the change frequency threshold, and the brightness cumulative change is greater than or equal to the change amount threshold, the electronic device determines that the brightness change parameter meets the brightness change condition. Figure 6 , electronic devices use intelligent switching data models to determine whether the brightness change parameters meet the brightness conditions. The data variables used in the judgment process include preset duration (also called time period), brightness change amplitude, brightness change frequency and cumulative brightness change.
[0110] It should be noted that the above implementation is to illustrate the process of the electronic device determining whether the brightness change parameter meets the brightness change condition, and the display form of the brightness setting control is described below.
[0111] In a possible implementation, when the brightness change parameter meets the brightness change condition, the electronic device displays a brightness adjustment area, where the brightness adjustment area includes the brightness setting control and prompt information, where the prompt information is used to prompt that the brightness change parameter meets the brightness change condition.
[0112] The brightness adjustment area can be a pop-up window, which prompts the user that the brightness change parameter meets the brightness change condition, and is also used to provide the user with a control to set the screen brightness. The brightness adjustment area can be displayed at any position on the screen, such as in the center of the screen, at the edge of the screen, or at a preset position on the screen, which is not limited in this embodiment of the present application. For example, see Figure 7 , the electronic device displays a brightness adjustment area 700, which includes a brightness setting control 701, a cancel control 702, and prompt information 703. In response to the setting operation of the cancel control 702, the electronic device keeps the brightness mode of the screen unchanged.
[0113] In this implementation, when the brightness change parameter meets the brightness change condition, the user can be prompted by displaying a brightness adjustment area and a brightness adjustment control can be provided to the user, which is highly efficient.
[0114] The above implementation is described below through several examples.
[0115] Example 1: When the brightness change parameter meets the brightness change condition, the electronic device determines the display position of the brightness adjustment area based on the application type of the currently running application, and displays the brightness adjustment area at the display position.
[0116] The currently running application is the application corresponding to the application interface currently displayed on the screen. The corresponding relationship between the application type and the display position is set by the technician according to the actual situation, or by the user according to the needs, and the embodiment of the present application does not limit this.
[0117] In this implementation, the electronic device can determine the display position of the brightness adjustment area according to the type of the currently running application, thereby minimizing the impact of displaying the brightness adjustment area on the current application and improving the user experience of using the electronic device.
[0118] For example, when the currently running application is a game application, the display position of the brightness adjustment area is the edge of the screen, thereby reducing the impact of displaying the brightness adjustment area on the game application. When the currently running application is a video application, the display position of the brightness adjustment area is the center of the screen, thereby reminding the user in a more eye-catching way.
[0119] Example 2: When the brightness change parameter meets the brightness change condition, the electronic device displays the brightness adjustment area in the center of the screen. Displaying the brightness adjustment area directly in the center of the screen can remind the user more prominently.
[0120] 305. In response to the setting operation of the brightness setting control, the electronic device controls the brightness of the screen to remain unchanged.
[0121] Among them, the brightness of the screen is controlled to remain unchanged. Then, when the automatic brightness adjustment mode adjusts the brightness of the screen based on the ambient brightness, the brightness of the screen does not change with the change of the ambient brightness.
[0122] In a possible implementation, in response to a setting operation on the brightness setting control, the electronic device adjusts the brightness mode of the screen from the automatic brightness adjustment mode to a fixed brightness mode, in which the brightness of the screen remains unchanged.
[0123] In this implementation, clicking the brightness setting control can change the brightness mode of the screen from the automatic brightness adjustment mode to the fixed brightness adjustment mode, so that the brightness of the screen remains stable and no longer automatically adjusted, thereby reducing the probability of screen failure and improving the user experience of using electronic devices.
[0124] For example, in response to a click operation on the brightness setting control, the electronic device displays a retention time setting area, which includes multiple candidate durations. When a target duration is selected from the multiple candidate durations, the electronic device adjusts the brightness mode of the screen from the automatic brightness adjustment mode to a fixed brightness mode, and maintains the brightness mode of the screen in the fixed brightness mode within the target duration.
[0125] Among them, the multiple candidate durations are set by technical personnel according to actual conditions, or by users according to needs, and the embodiments of the present application do not limit this.
[0126] For example, see Figure 7 and Figure 8Taking the setting operation as a click operation as an example, in response to the click operation on the brightness setting control 701, the electronic device displays the holding time setting area 800, the holding time setting area 800 includes a candidate duration display area 801 and a confirmation control 802, and the candidate duration display area 801 includes multiple candidate durations. In response to the click operation on the target duration 8011 in the candidate duration display area 801, the electronic device marks the target duration 8011 as selected. In response to the click operation on the confirmation control 802, the electronic device maintains the brightness mode of the screen at the fixed brightness mode within the target duration.
[0127] The screen of the electronic device will change with the change of the ambient brightness in the automatic brightness adjustment mode, that is, the increase of the ambient brightness will lead to the increase of the screen brightness, and the dimming of the ambient brightness will lead to the decrease of the screen brightness. In the case of frequent changes in the ambient brightness, the brightness of the screen will also change frequently, causing the screen to "flicker", which will not only cause visual interference to the user viewing the screen, but also increase the probability of the screen malfunctioning. In particular, in the case of frequent and large changes in the ambient brightness, the brightness of the screen will change greatly accordingly, which will not only cause visual interference to the user viewing the screen, but also irritate the user's eyes, and further increase the probability of the screen malfunctioning. Through the above steps 302-305, the brightness of the screen can be controlled to remain unchanged when the brightness change parameters of the screen meet the brightness change conditions, that is, the screen is controlled to no longer change with the change of the ambient brightness, avoiding the visual interference and irritation caused to the user by the frequent changes in the screen brightness in the automatic brightness adjustment mode, improving the user experience and reducing the probability of the screen malfunctioning.
[0128] In some other embodiments, when the brightness change parameter of the screen meets the brightness change condition, the electronic device can also not display the brightness setting control, and directly control the brightness of the screen to remain unchanged, that is, when there is at least one of the brightness change amplitude being greater than or equal to the change amplitude threshold, the brightness change frequency being greater than or equal to the change frequency threshold, and the brightness cumulative change being greater than or equal to the change amount threshold, the electronic device controls the brightness of the screen to remain unchanged. In this implementation, the user does not need to manually switch modes through the brightness setting control, which improves efficiency.
[0129] Optionally, based on the above examples, the electronic device can also perform any of the following steps.
[0130] Step A: After the target duration, the electronic device adjusts the brightness mode of the screen to the automatic brightness adjustment mode.
[0131] Step B: in response to a brightness adjustment operation on the screen, maintaining the brightness of the screen at a brightness corresponding to the brightness adjustment operation.
[0132] In a possible implementation, in response to a setting operation on the brightness setting control, the electronic device determines a target brightness of the screen and controls the brightness of the screen to remain at the target brightness.
[0133] In this implementation, after clicking the brightness setting control, the target brightness can be determined first, and then the screen can be maintained at the target brightness, thereby refining the control of the screen brightness and improving the user experience.
[0134] The following describes a method for an electronic device to determine the target brightness of the screen.
[0135] In some embodiments, in response to a setting operation on the brightness setting control, the electronic device determines the current brightness of the screen as the target brightness of the screen.
[0136] In this implementation, after clicking the brightness setting control, the brightness of the screen will remain unchanged, so that the switching of the screen brightness mode is smooth, improving the user experience.
[0137] In some embodiments, in response to a setting operation on the brightness setting control, the electronic device determines a target brightness of the screen based on the current ambient brightness.
[0138] Among them, the corresponding relationship between ambient brightness and screen brightness is set by technical personnel according to actual conditions, and the embodiments of the present application do not limit this.
[0139] In this implementation, the electronic device redetermines the target brightness based on the current ambient brightness, so that the brightness of the screen is more adapted to the current environment.
[0140] For example, in response to a setting operation on the brightness setting control, the electronic device queries based on the current ambient brightness to obtain the target brightness that matches the ambient brightness.
[0141] In some embodiments, in response to a setting operation on the brightness setting control, the electronic device determines a target brightness of the screen based on a distance between the screen and the face of the person.
[0142] Among them, the correspondence between the distance between the screen and the face and the screen brightness is set by the technician according to the actual situation, and the embodiment of the present application does not limit this.
[0143] In this implementation, the electronic device redetermines the target brightness based on the distance between the screen and the face, so that the brightness of the screen is more adapted to the user's position.
[0144] For example, in response to a setting operation on the brightness setting control, the electronic device queries based on the distance between the screen and the face of the person to obtain a target brightness that matches the distance.
[0145] In some embodiments, in response to a setting operation on the brightness setting control, the electronic device determines a preset screen brightness as a target brightness of the screen.
[0146] The preset brightness is set by the user.
[0147] In this implementation, the electronic device directly adjusts the screen brightness to a preset brightness, and the adjustment efficiency is relatively high.
[0148] The following will be combined Fig. 9 The above steps 301-305 are explained.
[0149] See also Fig. 9 , the user starts the automatic brightness adjustment mode of the screen. The user turns on the smart switch control to start intelligently adjusting the brightness mode. Determine whether the brightness change parameters of the screen meet the brightness change conditions. When the brightness change parameters of the screen meet the brightness change conditions, a brightness adjustment area is displayed, and the user is prompted through the brightness adjustment area whether to adjust the brightness mode to a fixed brightness mode. When the brightness mode is adjusted to a fixed brightness mode through the brightness adjustment area, the time to stay in the fixed brightness mode can also be selected.
[0150] 306. When the brightness change parameter does not meet the brightness change condition, the electronic device adjusts the brightness of the screen based on the ambient brightness.
[0151] In a possible implementation, when the brightness change parameter does not meet the brightness change condition, the electronic device performs a query based on the ambient brightness to obtain a reference brightness of the screen corresponding to the ambient brightness. The electronic device compares the reference brightness with the current brightness of the screen. When the difference between the reference brightness and the current brightness is less than or equal to a difference threshold, the electronic device keeps the brightness of the screen unchanged. When the difference between the reference brightness and the current brightness is greater than the difference threshold, the electronic device adjusts the current brightness to the reference brightness.
[0152] Among them, the difference threshold is set by technical personnel according to actual conditions, and the embodiments of the present application do not limit this.
[0153] In some embodiments, during the process of the electronic device adjusting the brightness of the screen based on the ambient brightness, the electronic device continues to obtain the brightness change parameters of the screen in the next cycle, and continues to determine whether the brightness change parameters meet the brightness change conditions. For specific implementation methods, please refer to the relevant description of steps 301-305 above, which will not be repeated here.
[0154] All the above optional technical solutions can be arbitrarily combined to form optional embodiments of the present application, which will not be described one by one here.
[0155] Through the technical solution provided by the embodiment of the present application, when the screen is in the automatic brightness adjustment mode, the brightness change parameter of the screen within the preset time length is obtained, so as to determine the brightness change of the screen within the preset time length. When the brightness change parameter meets the brightness change condition, the brightness of the screen is controlled to remain unchanged, that is, the brightness of the screen is no longer automatically adjusted, thereby reducing the probability of screen failure and improving the user experience of using the electronic device.
[0156] The following will be combined Fig.10 The screen brightness adjustment method provided in the embodiment of the present application is described, and the method includes the following steps.
[0157] 1001. A user sets the brightness mode of the screen of an electronic device to an automatic brightness adjustment mode.
[0158] Among them, in the automatic brightness adjustment mode, the screen will change with the change of ambient brightness, that is, the increase of ambient brightness will lead to the increase of screen brightness, and the dimming of ambient brightness will lead to the decrease of screen brightness. In the case of frequent changes in ambient brightness (for example, when the user is riding through a tunnel and the ambient brightness is sometimes bright and sometimes dim, and when the user is in a nightclub and the lighting changes drastically), the brightness of the screen will also change frequently, causing the screen to "flicker", which will not only cause visual interference to the user's viewing of the screen, but also increase the probability of screen failure. In particular, when the ambient brightness changes frequently and drastically, the brightness of the screen will also change drastically. In addition to causing visual interference to the user's viewing of the screen, it will also irritate the user's eyes and further increase the probability of screen failure.
[0159] In some embodiments, when the brightness mode of the screen is set to the automatic brightness adjustment mode, the electronic device displays a brightness threshold setting area, and the brightness threshold setting area is used to set the brightness adjustment range of the screen in the automatic brightness adjustment mode.
[0160] The brightness adjustment range is used to limit the brightness change range of the screen in the automatic brightness adjustment mode. When the brightness adjustment range is determined, the brightness of the screen in the automatic brightness adjustment mode will change within the brightness adjustment range.
[0161] 1002. The user clicks on the smart switch control to open the smart switch control.
[0162] The smart switch control is used to turn on or off the function of automatically switching the brightness mode.
[0163] 1003. The electronic device obtains a brightness change parameter of the screen within a preset time period, where the brightness change parameter is used to indicate a brightness change of the screen.
[0164] 1004. When the brightness change parameter meets the brightness change condition, the electronic device displays a brightness setting control.
[0165] The brightness setting control is used to set the brightness mode of the screen to a fixed brightness mode.
[0166] 1005. The user clicks on the brightness setting control, and the electronic device adjusts the brightness mode of the screen from the automatic brightness adjustment mode to the fixed brightness mode to keep the brightness of the screen unchanged.
[0167] Through the above steps 1001-1005, when the brightness change parameters of the screen meet the brightness change conditions, the brightness of the screen can be controlled to remain unchanged, that is, the screen is controlled to no longer change with the change of the ambient brightness, avoiding the visual interference and stimulation caused to the user by the frequent changes in the screen brightness in the automatic brightness adjustment mode, improving the user experience and reducing the probability of screen failure. In addition, the user can also set the brightness adjustment range of the screen in the automatic brightness adjustment mode, so that the change of the screen brightness in the automatic brightness adjustment mode is more controllable, avoiding the visual interference and stimulation caused to the user by the screen being too bright or too dark in the automatic brightness adjustment mode, and improving the experience of using electronic devices.
[0168] Fig.11 is a schematic diagram of the structure of a screen brightness adjustment device provided in an embodiment of the present application, see Fig.11 The device includes: a brightness change parameter acquisition module 1001 and a control module 1002.
[0169] The brightness change parameter acquisition module 1101 is used to acquire the brightness change parameter of the screen within a preset time period when the screen is in the automatic brightness adjustment mode, and the brightness change parameter is used to indicate the brightness change of the screen;
[0170] The control module 1102 is used to control the brightness of the screen to remain unchanged when the brightness change parameter meets the brightness change condition.
[0171] In a possible implementation manner, the brightness change parameter includes at least one of a brightness change amplitude, a brightness change frequency, and a brightness cumulative change amount.
[0172] In one possible implementation, the control module 1102 is used to control the brightness of the screen to remain unchanged when at least one of the brightness change amplitude is greater than or equal to a change amplitude threshold, the brightness change frequency is greater than or equal to a change frequency threshold, and the cumulative brightness change is greater than or equal to a change amount threshold.
[0173] In a possible implementation, the control module 1102 is configured to display a brightness setting control when the brightness change parameter meets the brightness change condition; and in response to a setting operation on the brightness setting control, control the brightness of the screen to remain unchanged.
[0174] In a possible implementation, the control module 1102 is used to display a brightness adjustment area when the brightness change parameter meets the brightness change condition. The brightness adjustment area includes the brightness setting control and prompt information, and the prompt information is used to prompt that the brightness change parameter meets the brightness change condition.
[0175] In a possible implementation, the control module 1102 is used to adjust the brightness mode of the screen from the automatic brightness adjustment mode to a fixed brightness mode in response to a setting operation on the brightness setting control, in which the brightness of the screen remains unchanged.
[0176] In one possible implementation, the control module 1102 is used to display a hold time setting area in response to a setting operation on the brightness setting control, wherein the hold time setting area includes multiple candidate time lengths; when a target time length among the multiple candidate time lengths is selected, the brightness mode of the screen is adjusted from the automatic brightness adjustment mode to a fixed brightness mode, and the brightness mode of the screen is maintained at the fixed brightness mode within the target time length.
[0177] In a possible implementation, the control module 1102 is further configured to perform any of the following:
[0178] After the target duration, adjusting the brightness mode of the screen from the automatic brightness adjustment mode to the automatic brightness adjustment mode;
[0179] In response to a brightness adjustment operation on the screen, the brightness of the screen is maintained at a brightness corresponding to the brightness adjustment operation.
[0180] In a possible implementation, the control module 1102 is configured to determine the target brightness of the screen in response to a setting operation on the brightness setting control; and control the brightness of the screen to remain at the target brightness.
[0181] In a possible implementation, the control module 1102 is configured to perform at least any of the following:
[0182] In response to a setting operation on the brightness setting control, determining the current brightness of the screen as a target brightness of the screen;
[0183] In response to a setting operation on the brightness setting control, determining a target brightness of the screen based on current ambient brightness;
[0184] In response to a setting operation on the brightness setting control, determining a target brightness of the screen based on a distance between the screen and the face of the person;
[0185] In response to a setting operation on the brightness setting control, a preset screen brightness is determined as a target brightness of the screen.
[0186] In a possible implementation, the device further includes a setting module, configured to perform at least one of the following:
[0187] When the brightness mode of the screen is set to the automatic brightness adjustment mode, a brightness threshold setting area is displayed, where the brightness threshold setting area is used to set the brightness adjustment range of the screen in the automatic brightness adjustment mode;
[0188] When the brightness mode of the screen is set to the automatic brightness adjustment mode, a brightness adjustment speed setting area is displayed, and the brightness adjustment speed setting area is used to set the speed of brightness adjustment of the screen in the automatic brightness adjustment mode;
[0189] When the brightness mode of the screen is set to the automatic brightness adjustment mode, a brightness adjustment sensitivity setting area is displayed, where the brightness adjustment sensitivity setting area is used to set the sensitivity of the brightness adjustment of the screen in the automatic brightness adjustment mode;
[0190] When the brightness mode of the screen is set to the automatic brightness adjustment mode, the smart switching control is displayed; in response to the setting operation of the smart switching control, the step of obtaining the brightness change parameters of the screen within a preset time period when the screen is in the automatic brightness adjustment mode is executed.
[0191] In a possible implementation, the control module 1102 is further configured to adjust the brightness of the screen based on the ambient brightness when the brightness change parameter does not meet the brightness change condition.
[0192] It should be noted that: the screen brightness adjustment device provided in the above embodiment only uses the division of the above functional modules as an example to illustrate when adjusting the screen brightness. In actual applications, the above functions can be assigned to different functional modules as needed, that is, the internal structure of the electronic device is divided into different functional modules to complete all or part of the functions described above. In addition, the screen brightness adjustment device provided in the above embodiment and the screen brightness adjustment method embodiment belong to the same concept. The specific implementation process is detailed in the method embodiment and will not be repeated here.
[0193] Through the technical solution provided by the embodiment of the present application, when the screen is in the automatic brightness adjustment mode, the brightness change parameter of the screen within the preset time length is obtained, so as to determine the brightness change of the screen within the preset time length. When the brightness change parameter meets the brightness change condition, the brightness of the screen is controlled to remain unchanged, that is, the brightness of the screen is no longer automatically adjusted, thereby reducing the probability of screen failure and improving the user experience of using the electronic device.
[0194] The embodiment of the present application provides an electronic device for executing the above method. The electronic device can be implemented as an electronic device. The structure of the electronic device is introduced below:
[0195] Fig.12 12 is a schematic diagram of the structure of an electronic device provided in an embodiment of the present application. Generally, the electronic device 1200 includes: one or more processors 1201 and one or more memories 1202.
[0196] The processor 1201 may include one or more processing cores, such as a 4-core processor, an 8-core processor, etc. The processor 1201 may be implemented in at least one hardware form of DSP (Digital Signal Processing), FPGA (Field-Programmable Gate Array), and PLA (Programmable Logic Array). The processor 1201 may also include a main processor and a coprocessor. The main processor is a processor for processing data in the awake state, also known as a CPU (Central Processing Unit); the coprocessor is a low-power processor for processing data in the standby state. In some embodiments, the processor 1201 may be integrated with a GPU (Graphics Processing Unit), which is responsible for rendering and drawing the content to be displayed on the display screen. In some embodiments, the processor 1201 may also include an AI (Artificial Intelligence) processor, which is used to process computing operations related to machine learning.
[0197] The memory 1202 may include one or more computer-readable storage media, which may be non-transitory. The memory 1202 may also include a high-speed random access memory, and a non-volatile memory, such as one or more disk storage devices, flash memory storage devices. In some embodiments, the non-transitory computer-readable storage medium in the memory 1202 is used to store at least one computer program, which is used to be executed by the processor 1201 to implement the screen brightness adjustment method provided in the method embodiment of the present application.
[0198] In some embodiments, the electronic device 1200 may further optionally include: a peripheral device interface 1203 and at least one peripheral device. The processor 1201, the memory 1202 and the peripheral device interface 1203 may be connected via a bus or a signal line. Each peripheral device may be connected to the peripheral device interface 1203 via a bus, a signal line or a circuit board. Specifically, the peripheral device includes: at least one of a radio frequency circuit 1204, a display screen 1205, a camera assembly 1206, an audio circuit 1207 and a power supply 1208.
[0199] The peripheral device interface 1203 may be used to connect at least one peripheral device related to I / O (Input / Output) to the processor 1201 and the memory 1202. In some embodiments, the processor 1201, the memory 1202, and the peripheral device interface 1203 are integrated on the same chip or circuit board; in some other embodiments, any one or two of the processor 1201, the memory 1202, and the peripheral device interface 1203 may be implemented on a separate chip or circuit board, which is not limited in this embodiment.
[0200] The radio frequency circuit 1204 is used to receive and transmit RF (Radio Frequency) signals, also known as electromagnetic signals. The radio frequency circuit 1204 communicates with a communication network and other communication devices via electromagnetic signals. The radio frequency circuit 1204 converts electrical signals into electromagnetic signals for transmission, or converts received electromagnetic signals into electrical signals. Optionally, the radio frequency circuit 1204 includes: an antenna system, an RF transceiver, one or more amplifiers, a tuner, an oscillator, a digital signal processor, a codec chipset, a user identity module card, and the like.
[0201] The display screen 1205 is used to display a UI (User Interface). The UI may include graphics, text, icons, videos, and any combination thereof. When the display screen 1205 is a touch display screen, the display screen 1205 also has the ability to collect touch signals on the surface or above the surface of the display screen 1205. The touch signal may be input as a control signal to the processor 1201 for processing. At this time, the display screen 1205 may also be used to provide virtual buttons and / or virtual keyboards, also known as soft buttons and / or soft keyboards.
[0202] The camera assembly 1206 is used to collect images or videos. Optionally, the camera assembly 1206 includes a front camera and a rear camera. Usually, the front camera is set on the front panel of the electronic device, and the rear camera is set on the back of the electronic device.
[0203] The audio circuit 1207 may include a microphone and a speaker. The microphone is used to collect sound waves from the user and the environment, and convert the sound waves into electrical signals and input them to the processor 1201 for processing, or input them to the RF circuit 1204 to achieve voice communication.
[0204] The power supply 1208 is used to supply power to various components in the electronic device 1200. The power supply 1208 may be an alternating current, a direct current, a disposable battery, or a rechargeable battery.
[0205] In some embodiments, the electronic device 1200 further includes one or more sensors 1209 , including but not limited to: an acceleration sensor 1120 , a gyroscope sensor 1211 , a pressure sensor 1212 , an optical sensor 1213 , and a proximity sensor 1214 .
[0206] The acceleration sensor 1120 can detect the magnitude of acceleration on three coordinate axes of the coordinate system established with the electronic device 1200 .
[0207] The gyro sensor 1211 can detect the body direction and rotation angle of the electronic device 1200 . The gyro sensor 1211 can cooperate with the acceleration sensor 1120 to collect the user's 3D actions on the electronic device 1200 .
[0208] The pressure sensor 1212 may be provided at the side frame of the electronic device 1200 and / or the lower layer of the display screen 1205. When the pressure sensor 1212 is provided at the side frame of the electronic device 1200, it may detect the user's holding signal of the electronic device 1200, and the processor 1201 may perform left and right hand recognition or shortcut operation according to the holding signal collected by the pressure sensor 1212. When the pressure sensor 1212 is provided at the lower layer of the display screen 1205, the processor 1201 may control the operable controls on the UI interface according to the user's pressure operation on the display screen 1205.
[0209] The optical sensor 1213 is used to collect the ambient light intensity. In one embodiment, the processor 1201 can control the display brightness of the display screen 1205 according to the ambient light intensity collected by the optical sensor 1213.
[0210] The proximity sensor 1214 is used to collect the distance between the user and the front of the electronic device 1200 .
[0211] Those skilled in the art will understand that Fig.12 The structure shown in the figure does not constitute a limitation on the electronic device 1200, and may include more or less components than those shown in the figure, or combine certain components, or adopt a different component arrangement.
[0212] In an exemplary embodiment, a computer-readable storage medium is also provided, such as a memory including a computer program, and the computer program can be executed by a processor to complete the method for adjusting the screen brightness in the above embodiment. For example, the computer-readable storage medium can be a read-only memory (ROM), a random access memory (RAM), a compact disc read-only memory (CD-ROM), a magnetic tape, a floppy disk, an optical data storage device, etc.
[0213] In an exemplary embodiment, a computer program product or a computer program is also provided, which includes a program code, and the program code is stored in a computer-readable storage medium. A processor of an electronic device reads the program code from the computer-readable storage medium, and the processor executes the program code, so that the electronic device executes the above-mentioned method for adjusting the screen brightness.
[0214] In some embodiments, the computer program involved in the embodiments of the present application may be deployed and executed on one electronic device, or on multiple electronic devices located at one location, or on multiple electronic devices distributed at multiple locations and interconnected by a communication network. Multiple electronic devices distributed at multiple locations and interconnected by a communication network may constitute a blockchain system.
[0215] A person skilled in the art will understand that all or part of the steps to implement the above embodiments may be accomplished by hardware or by instructing related hardware through a program, and the program may be stored in a computer-readable storage medium, and the above-mentioned storage medium may be a read-only memory, a disk or an optical disk, etc.
[0216] The above are only optional embodiments of the present application and are not intended to limit the present application. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present application should be included in the protection scope of the present application.
Claims
1. A method for adjusting screen brightness, characterized in that: The method comprises: When the screen is in an automatic brightness adjustment mode, obtaining a brightness change parameter of the screen within a preset time period, wherein the brightness change parameter is used to indicate a brightness change of the screen; When the brightness change parameter meets the brightness change condition, the brightness of the screen is controlled to remain unchanged.
2. The method according to claim 1, characterized in that: The brightness change parameter includes at least one of a brightness change amplitude, a brightness change frequency, and a brightness cumulative change amount.
3. The method according to claim 2, characterized in that When the brightness change parameter meets the brightness change condition, controlling the brightness of the screen to remain unchanged includes: In the event that at least one of the brightness change amplitude is greater than or equal to the change amplitude threshold, the brightness change frequency is greater than or equal to the change frequency threshold, and the accumulated brightness change is greater than or equal to the change amount threshold, the brightness of the screen is controlled to remain unchanged.
4. The method according to claim 1, characterized in that: When the brightness change parameter meets the brightness change condition, controlling the brightness of the screen to remain unchanged includes: When the brightness change parameter meets the brightness change condition, displaying a brightness setting control; In response to a setting operation on the brightness setting control, the brightness of the screen is controlled to remain unchanged.
5. The method according to claim 4, characterized in that When the brightness change parameter meets the brightness change condition, displaying the brightness setting control includes: In the case where the brightness change parameter meets the brightness change condition, a brightness adjustment area is displayed, the brightness adjustment area includes the brightness setting control and prompt information, and the prompt information is used to prompt that the brightness change parameter meets the brightness change condition.
6. The method according to claim 4, characterized in that In response to the setting operation of the brightness setting control, controlling the brightness of the screen to remain unchanged comprises: In response to a setting operation on the brightness setting control, the brightness mode of the screen is adjusted from the automatic brightness adjustment mode to a fixed brightness mode, in which the brightness of the screen remains unchanged.
7. The method according to claim 6, characterized in that In response to the setting operation of the brightness setting control, adjusting the brightness mode of the screen from the automatic brightness adjustment mode to the fixed brightness mode includes: In response to a setting operation on the brightness setting control, displaying a hold time setting area, the hold time setting area including a plurality of candidate durations; When a target duration is selected from the multiple candidate durations, the brightness mode of the screen is adjusted from the automatic brightness adjustment mode to the fixed brightness mode, and the brightness mode of the screen is maintained at the fixed brightness mode within the target duration.
8. The method according to claim 7, characterized in that After maintaining the brightness mode of the screen in the fixed brightness mode within the target duration, the method further includes any one of the following: After the target duration, adjusting the brightness mode of the screen to the automatic brightness adjustment mode; In response to a brightness adjustment operation on the screen, the brightness of the screen is maintained at a brightness corresponding to the brightness adjustment operation.
9. The method according to claim 4, characterized in that In response to the setting operation of the brightness setting control, controlling the brightness of the screen to remain unchanged comprises: In response to a setting operation on the brightness setting control, determining a target brightness of the screen; The brightness of the screen is controlled to remain at the target brightness.
10. The method according to claim 9, characterized in that The step of determining the target brightness of the screen in response to the setting operation of the brightness setting control comprises at least any one of the following: In response to a setting operation on the brightness setting control, determining a current brightness of the screen as a target brightness of the screen; In response to a setting operation on the brightness setting control, determining a target brightness of the screen based on a current ambient brightness; In response to a setting operation on the brightness setting control, determining a target brightness of the screen based on a distance between the screen and a face; In response to a setting operation on the brightness setting control, a preset screen brightness is determined as a target brightness of the screen.
11. The method according to claim 1, characterized in that: The method further comprises at least one of the following: When the brightness mode of the screen is set to the automatic brightness adjustment mode, a brightness threshold setting area is displayed, where the brightness threshold setting area is used to set the brightness adjustment range of the screen in the automatic brightness adjustment mode; When the brightness mode of the screen is set to the automatic brightness adjustment mode, a brightness adjustment speed setting area is displayed, where the brightness adjustment speed setting area is used to set the speed of brightness adjustment of the screen in the automatic brightness adjustment mode; When the brightness mode of the screen is set to the automatic brightness adjustment mode, a brightness adjustment sensitivity setting area is displayed, where the brightness adjustment sensitivity setting area is used to set the sensitivity of the brightness adjustment of the screen in the automatic brightness adjustment mode; When the brightness mode of the screen is set to the automatic brightness adjustment mode, displaying a smart switching control; In response to the setting operation of the intelligent switching control, the step of obtaining the brightness change parameters of the screen within a preset time period when the screen is in an automatic brightness adjustment mode is performed.
12. The method according to claim 1, characterized in that When the screen is in the automatic brightness adjustment mode, after obtaining the brightness change parameter of the screen within a preset time period, the method further includes: When the brightness change parameter does not meet the brightness change condition, the brightness of the screen is adjusted based on the ambient brightness.
13. A device for adjusting screen brightness, characterized in that: The device comprises: A brightness change parameter acquisition module, used to acquire the brightness change parameters of the screen within a preset time period when the screen is in an automatic brightness adjustment mode, wherein the brightness change parameters are used to represent the brightness change of the screen; The control module is used to control the brightness of the screen to remain unchanged when the brightness change parameter meets the brightness change condition.
14. An electronic device, characterized in that: The electronic device includes one or more processors and one or more memories, wherein at least one computer program is stored in the one or more memories, and the computer program is loaded and executed by the one or more processors to implement the method for adjusting the screen brightness as described in any one of claims 1 to claim 12.
15. A computer-readable storage medium, characterized in that: At least one computer program is stored in the computer-readable storage medium, and the computer program is loaded and executed by the processor to implement the method for adjusting the screen brightness as described in any one of claims 1 to 12.
16. A computer program product comprising a computer program, characterized in that When the computer program is executed by a processor, the method for adjusting the screen brightness described in any one of claims 1 to 12 is implemented.
Citation Information
Cited By
Brightness adjustment method and device, electronic equipment, storage medium and program product
CN121075249A
Information processing device and control method
JP7924441B1
