CN111405115B - Display brightness adjusting method and device, mobile terminal and storage medium - Google Patents

Display brightness adjusting method and device, mobile terminal and storage medium Download PDF

Info

Publication number
CN111405115B
CN111405115B CN202010202115.4A CN202010202115A CN111405115B CN 111405115 B CN111405115 B CN 111405115B CN 202010202115 A CN202010202115 A CN 202010202115A CN 111405115 B CN111405115 B CN 111405115B
Authority
CN
China
Prior art keywords
mobile terminal
brightness
variation
detected
display brightness
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202010202115.4A
Other languages
Chinese (zh)
Other versions
CN111405115A (en
Inventor
彭聪
高文俊
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Xiaomi Mobile Software Co Ltd
Original Assignee
Beijing Xiaomi Mobile Software Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Xiaomi Mobile Software Co Ltd filed Critical Beijing Xiaomi Mobile Software Co Ltd
Priority to CN202010202115.4A priority Critical patent/CN111405115B/en
Publication of CN111405115A publication Critical patent/CN111405115A/en
Application granted granted Critical
Publication of CN111405115B publication Critical patent/CN111405115B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72448User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions
    • H04M1/72454User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions according to context-related or environment-related conditions
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/02Constructional features of telephone sets
    • H04M1/22Illumination; Arrangements for improving the visibility of characters on dials
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72448User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions
    • H04M1/72457User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions according to geographic location
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Landscapes

  • Engineering & Computer Science (AREA)
  • Signal Processing (AREA)
  • Environmental & Geological Engineering (AREA)
  • Human Computer Interaction (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Controls And Circuits For Display Device (AREA)
  • Telephone Function (AREA)

Abstract

The disclosure relates to a display brightness adjusting method, a display brightness adjusting device, a mobile terminal and a storage medium; the method is applied to the mobile terminal and comprises the following steps: determining the ambient brightness variation detected by the mobile terminal; determining a location variation of the mobile terminal; when the position variation is smaller than a first threshold value, the display brightness of the mobile terminal is maintained, so that the adjustment of the display brightness triggered when the environment brightness variation is larger than a second threshold value is shielded. Therefore, brightness adjustment errors caused by inaccuracy of ambient brightness detection can be reduced.

Description

Display brightness adjusting method and device, mobile terminal and storage medium
Technical Field
The present disclosure relates to the field of intelligent control, and in particular, to a method and an apparatus for adjusting display brightness, a mobile terminal, and a storage medium.
Background
The automatic adjustment of the mobile phone backlight is one of the most basic functions in the use of the mobile phone, and the adjustment principle is that the light intensity of the external environment is acquired through a brightness sensor, so that the brightness of the external light is acquired. With the development of the full screen in recent years, various sensors under the screen come, but limited by the influence of hardware, various accidental errors often occur in the return data of the brightness sensor, for example, the screen suddenly brightens in a dark environment, or the screen suddenly darkens in a bright environment, so that the user experience is greatly influenced in daily use.
Disclosure of Invention
The disclosure provides a display brightness adjusting method, a display brightness adjusting device, a mobile terminal and a storage medium.
According to a first aspect of the embodiments of the present disclosure, there is provided a display brightness adjusting method applied to a mobile terminal, the method including:
determining the ambient brightness variation detected by the mobile terminal;
determining the position variation of the mobile terminal;
when the position variation is smaller than a first threshold value, the display brightness of the mobile terminal is maintained, so that the adjustment of the display brightness triggered when the environment brightness variation is larger than a second threshold value is shielded.
Optionally, the method further comprises:
and when the position variation is not less than the first threshold value, adjusting the display brightness of the mobile terminal based on the detected environment brightness.
Optionally, the determining a location change amount of the mobile terminal includes:
and when the environment brightness variation is determined to be larger than the second threshold value, determining the position variation of the mobile terminal.
Optionally, the method further comprises:
detecting the position of the mobile terminal based on an acceleration sensor in the mobile terminal;
the determining the position variation of the mobile terminal includes:
and determining the position variation of the mobile terminal according to the position of the mobile terminal detected by the acceleration sensor at two adjacent detection moments.
Optionally, the detecting the position of the mobile terminal based on an acceleration sensor in the mobile terminal includes:
detecting the acceleration of the mobile terminal at the current detection moment based on an acceleration sensor in the mobile terminal;
performing integral operation on the acceleration to obtain the displacement of the mobile terminal in a time interval between two adjacent detection moments;
and determining the position of the mobile terminal according to the displacement of the mobile terminal and the position of the mobile terminal at the previous detection moment.
According to a second aspect of the embodiments of the present disclosure, there is provided a mobile terminal including:
the system comprises a processing module, a brightness sensor and an acceleration sensor; the brightness sensor and the acceleration sensor are both connected with the processing module;
the processing module is used for determining the environment brightness variation corresponding to the environment brightness detected by the brightness sensor and the position variation corresponding to the position detected by the acceleration sensor;
when the position variation is smaller than a first threshold value, the display brightness of the mobile terminal is maintained, so that the adjustment of the display brightness triggered by the fact that the environment brightness variation is larger than a second threshold value is shielded.
Optionally, the processing module is further configured to adjust the display brightness of the mobile terminal based on the ambient brightness detected by the brightness sensor when the position variation is not smaller than the first threshold.
Optionally, the processing module is further configured to determine a location variation of the mobile terminal when it is determined that the ambient brightness variation is greater than the second threshold.
Optionally, the processing module is further configured to determine a location variation of the mobile terminal according to two adjacent detection moments based on the location of the mobile terminal detected by the acceleration sensor.
Optionally, the acceleration sensor is specifically configured to detect an acceleration of the mobile terminal at a current detection time; performing integral operation on the acceleration to obtain the displacement of the mobile terminal in a time interval between two adjacent detection moments; and determining the position of the mobile terminal according to the displacement of the mobile terminal and the position of the mobile terminal at the previous detection time.
According to a third aspect of the embodiments of the present disclosure, there is provided a display luminance adjusting apparatus including:
a processor;
a memory for storing processor-executable instructions;
wherein the processor is configured to: the method of any one of the above first aspects is implemented when executable instructions stored in the memory are executed.
According to a fourth aspect of embodiments of the present disclosure, there is provided a non-transitory computer-readable storage medium having instructions stored thereon, which, when executed by a processor of a display brightness adjustment apparatus, enable the display brightness adjustment apparatus to perform the method of any one of the first aspects described above.
The technical scheme provided by the embodiment of the disclosure can have the following beneficial effects:
the display brightness adjustment method and the display brightness adjustment device have the advantages that the environment brightness variation of the environment where the mobile terminal is located and the position variation of the mobile terminal are determined, and when the position variation is smaller than the first threshold, the display brightness of the mobile terminal is maintained, so that the adjustment of the display brightness triggered by the environment brightness variation larger than the second threshold is shielded. Therefore, when the position variation of the mobile terminal is smaller than the first threshold value, namely when the position variation of the mobile terminal is smaller, the display brightness is still maintained, so that the adjustment of the display brightness caused by the error detection of the ambient brightness can be greatly reduced, the brightness adjustment is more accurate, and the user requirements are better met.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the invention and together with the description, serve to explain the principles of the invention.
Fig. 1 is a first flowchart illustrating a display brightness adjustment method according to an exemplary embodiment.
Fig. 2 is a flowchart illustrating a method of adjusting display brightness according to an exemplary embodiment.
Fig. 3 is a flowchart three illustrating a display brightness adjustment method according to an exemplary embodiment.
Fig. 4 is a fourth flowchart illustrating a method of adjusting display brightness according to an exemplary embodiment.
Fig. 5 is a block diagram of a mobile terminal according to an example embodiment.
Fig. 6 is a block diagram illustrating a display brightness adjustment apparatus according to an exemplary embodiment.
Detailed Description
Reference will now be made in detail to the exemplary embodiments, examples of which are illustrated in the accompanying drawings. The following description refers to the accompanying drawings in which the same numbers in different drawings represent the same or similar elements unless otherwise indicated. The implementations described in the exemplary embodiments below are not intended to represent all implementations consistent with the present disclosure. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the present disclosure, as detailed in the appended claims.
In the process of using the mobile phone, the display brightness of the mobile phone can be automatically adjusted to realize the adaptation to the ambient brightness, the adjustment principle of the mobile phone is that a brightness sensor is used for collecting the light intensity of the external environment, then the light brightness condition of the external environment is obtained through calculation, and the adjustment of the display brightness of the mobile phone is further realized.
The mobile phone screen brightness is increased or decreased suddenly when the mobile phone is used for a long time, and poor experience is brought to a user. The main reason is that the brightness sensor reports wrong data, when the background receives the data, the display brightness is rapidly adjusted based on the triggering of the data, and the adjusted display brightness is inaccurate and does not meet the needs of users, so that poor use experience is brought.
In order to reduce the brightness adjustment error caused by the inaccuracy of the ambient brightness detection, the embodiment of the present disclosure provides a display brightness adjustment method, fig. 1 is a flowchart illustrating a display brightness adjustment method according to an exemplary embodiment, and as shown in fig. 1, the method is applied to a mobile terminal and includes the following steps:
step 101, determining the ambient brightness variation detected by the mobile terminal;
step 102, determining the position variation of the mobile terminal;
and 103, when the position variation is smaller than a first threshold, the display brightness of the mobile terminal is maintained to shield the adjustment of the display brightness triggered by the environment brightness variation being larger than a second threshold.
The mobile terminal refers to an electronic device with a display screen, for example, a smart phone, a tablet computer, or a wearable electronic device. The adjustment of the display brightness specifically refers to adjusting the display brightness of a display screen of the mobile terminal.
Taking a mobile phone as an example, when the mobile phone performs brightness adjustment based on data detected by a brightness sensor, when the data reported by the brightness sensor is stable in an area for a long time, the mobile phone can be considered to be in a relatively stable state, especially when external light is dark, the mobile phone is in a condition of night or dim light with a high probability, and the increase of the display brightness of the display screen of the mobile phone needs to be cautious at the moment, otherwise, the mobile phone may bring great discomfort. Based on this, the embodiments of the present disclosure may be performed on the basis that the ambient brightness remains stable. Also, the embodiments of the present disclosure may be performed on the basis of the ambient brightness remaining low in consideration of the influence of the sudden rise of low brightness on the human eyes.
Here, when the amount of change in the position of the mobile terminal is small (i.e., the amount of change in the position is smaller than the first threshold), the display brightness of the mobile terminal suddenly increases, and a phenomenon that is not good for eye health, such as glare, occurs, and the display brightness of the mobile terminal suddenly decreases, and a problem that the screen cannot be clearly seen occurs. Therefore, when the position of the mobile terminal changes by a small amount, the sudden change of the display brightness of the mobile terminal is not favorable for the user experience. In the embodiment of the present disclosure, when the position variation of the mobile terminal is small, the display brightness of the mobile terminal is maintained first to improve the user experience, that is, the current detection time is not adjusted, and then the adjustment of the display brightness is correspondingly performed based on the detected ambient brightness in the next detection.
Here, the masking of the adjustment of the display brightness triggered by the ambient brightness variation being larger than the second threshold includes at least one of:
triggering an adjusting instruction for adjusting the display brightness, but not responding to the adjusting instruction;
discarding the adjustment instruction;
suppressing generation of the adjustment instruction.
In the embodiment of the present disclosure, the ambient brightness variation amount is: the difference between the ambient brightness detected at the current detection time and the ambient brightness detected at the previous detection time.
The position variation amount includes: a distance value between the position of the mobile terminal detected at the current detection time and the position of the mobile terminal detected at the previous detection time, or an angle value for switching the orientation between the orientation of the mobile terminal detected at the current detection time and the orientation of the mobile terminal detected at the previous detection time. For example, in the same room, the detected ambient brightness may be different between the mobile terminal facing the window and the back window, and thus the location change amount may be reflected by an angle value of the orientation switching between the orientation of the mobile terminal detected at the current detection time and the orientation of the mobile terminal detected at the previous detection time.
Here, the detection of the ambient brightness and the location may be a detection based on a set detection period, a real-time detection, or a detection performed when necessary.
When the detection of the ambient brightness and the position is realized based on the set detection period, the detection of the ambient brightness and the position may be performed according to the same detection period, or according to different detection periods, or the detection of the position of the mobile terminal may be performed when it is detected that the ambient brightness variation is larger than the second threshold.
It should be noted that, when the ambient brightness variation is detected to be greater than the second threshold, the detection of the position of the mobile terminal is performed, so that the number of times of using the acceleration sensor can be reduced, and the power consumption can be further reduced.
The detection of the ambient brightness may be based on a light sensor or a brightness sensor within the mobile terminal. The detection of the position may be based on an acceleration sensor or a position sensor within the mobile terminal.
In some embodiments, when the position variation of the mobile terminal is small (i.e., the position variation is smaller than the first threshold), but the ambient brightness does change, the adjustment of the display brightness is required to be performed according to the ambient brightness. Thus, in some embodiments, the method further comprises:
detecting the ambient brightness for multiple times within preset time to obtain multiple ambient brightness; determining whether the ambient brightness changes within a preset range within a preset time period based on the plurality of ambient brightness; and if the ambient brightness changes within the preset range, adjusting the display brightness of the mobile terminal according to the ambient brightness. At this time, it is confirmed that no erroneous detection has occurred. The preset range can be set as required, and represents a range value in which display brightness adjustment can occur.
The determining whether the ambient brightness changes within a preset range within a preset time period based on the plurality of ambient brightness includes: determining a difference value between the ambient brightness detected at adjacent detection moments in the plurality of ambient brightness, wherein if the difference value comprises: and if the difference value is larger than the third threshold value and the difference value is smaller than the fourth threshold value, determining that the brightness change of the environment brightness within the preset range occurs in the preset time period.
That is, if a luminance change within a preset range occurs in the ambient luminance within a preset time period, there may be a case where the difference between the ambient luminances detected at adjacent detection timings is greater than the third threshold value, and if it is certain that a luminance change within a preset range occurs in the ambient luminance, the value detected after the ambient luminance change should be almost the same, that is, there may be a case where the difference between the ambient luminances detected at adjacent detection timings is less than the fourth threshold value.
In this way, after the probability of excluding the false detection of the ambient brightness is determined by detecting the ambient brightness for a certain period of time, the display brightness can be adjusted according to the detected ambient brightness. For example, the preset period includes N detection cycles of the ambient brightness, where N is a positive integer equal to or greater than 2.
In some embodiments, the method further comprises:
determining whether the current time is a specific time, wherein the specific time includes but is not limited to: alternating times of day and night;
and if the current time is the specific time, and when the environment brightness variation is detected to be larger than the second threshold value, adjusting the display brightness according to the detected environment brightness.
Here, the specific time may be previously stored in the mobile terminal. And after the current time is acquired, comparing the current time with the pre-stored specific time to determine whether the current time is the specific time.
And the alternative time of day and night belongs to the time corresponding to the normal environment change rule. The specific time further includes: according to the appointed time of the work and rest of the user; for example, 21 o' clock lights off going to bed.
Here, the judgment of whether the current time is the specific time can greatly avoid the error processing of the display brightness caused by the factors of the normal environment change rule or other work and rest factors. At these times, the display brightness is adjusted based on the detected ambient brightness, and the display brightness is maintained without adjustment when the amount of change in position is less than the first threshold value.
Taking a brightness sensor as an example, the determining the ambient brightness variation detected by the mobile terminal includes: and determining the environment brightness variation detected by the mobile terminal according to the difference value of the environment brightness detected by the brightness sensor in the mobile terminal at the current detection moment and the environment brightness detected at the previous detection moment.
Taking an acceleration sensor as an example, the determining the position change amount of the mobile terminal includes: and determining the position variation of the mobile terminal according to the distance between the position detected by the acceleration sensor in the mobile terminal at the current detection time and the position detected at the previous detection time, or the angle value of the direction switching between the direction of the mobile terminal detected by the acceleration sensor at the current detection time and the direction of the mobile terminal detected at the previous detection time.
The first threshold is used to determine whether the mobile terminal has moved that would affect the detected ambient brightness. In general, a movement from one space to another space may be considered to have occurred that affects the detected ambient brightness, since there may be a change in ambient brightness. In the same room, the orientation of the mobile terminal is different, and the detected ambient brightness is also different.
Based on this, the first threshold may include: a distance threshold, an orientation change threshold, etc. The distance threshold may be characterized by a length or a width of the space, and may be set as desired. The orientation change threshold may be characterized in terms of the orientation of the mobile terminal.
The second threshold is used for determining whether the environment brightness of the environment where the mobile terminal is located has a large change. The second threshold may be set according to a variation corresponding to the triggering of the adjustment of the display brightness.
Here, the first threshold, the second threshold, the third threshold, and the fourth threshold may be experimental values, empirical values, or learned values that automatically adjust the display brightness in different situations according to different users.
The experimental value is determined from experiments performed in a laboratory on the relationship between the amount of change in the ambient brightness and the amount of change in the position. The empirical value is determined based on debugging performed on the environment brightness variation and the position variation for multiple times in the historical use process of the mobile terminal. The learning value can be obtained by automatically adjusting the display brightness under different conditions according to different users.
Because the experimental value is biased to the theoretical basis, the accuracy in practical application may be lower than the empirical value and the learned value, and the learned value is obtained by corresponding training according to different personalities of the user, for example, some people prefer to be light, and some people prefer to be dark, and compared with the experimental value and the empirical value, the experimental value is more suitable for the requirements of the user, and in practical application, a better use effect can be brought.
As an example, assuming that the length of a room is 8 meters, the width of the room is 6 meters, and the length of the diagonal line of the room is 10 meters, when the user moves a distance greater than 10 meters within the time interval between two adjacent detection moments, the user may be considered to have moved to another space, and there may be a change in the ambient brightness. Correspondingly, when the user moves a distance less than 10 meters within the time interval between two adjacent detection moments, the user can be considered to be still in the current space, and the ambient brightness should be unchanged. If the variation of the ambient brightness detected at this time is greater than the second threshold, it is supposed that the brightness sensor reports wrong data, and the display brightness of the mobile terminal cannot be adjusted according to the data reported by the brightness sensor, and the display brightness of the mobile terminal needs to be maintained.
In this way, according to the embodiment of the present disclosure, the ambient brightness variation of the environment where the mobile terminal is located and the location variation of the mobile terminal are determined, and when the location variation is smaller than the first threshold, the display brightness of the mobile terminal is maintained, so as to shield the adjustment of the display brightness triggered by the ambient brightness variation being larger than the second threshold. Therefore, when the position variation of the mobile terminal is determined to be smaller than the first threshold value, the display brightness is still maintained, so that the adjustment of the display brightness caused by the error detection of the ambient brightness can be greatly reduced, the brightness adjustment is more accurate, and the user requirements are met.
In some embodiments, fig. 2 is a flowchart illustrating a display brightness adjustment method according to an exemplary embodiment, where as shown in fig. 2, the method further includes:
and 104, when the position variation is not less than the first threshold, adjusting the display brightness of the mobile terminal based on the detected environment brightness.
Here, the fact that the amount of change in the position is not less than the first threshold means that the mobile terminal is considered to have moved widely or that the orientation has changed. At this time, it can be considered that the light in the current environment may possibly change to a certain extent, and adaptive adjustment needs to be made on the display brightness of the mobile terminal based on the detected environment brightness; for example, display brightness is increased or decreased.
Therefore, after the position is determined to move in a large range or the position is changed, the display brightness of the mobile terminal is adjusted based on the detected ambient brightness, the accuracy of the adjustment of the display brightness can be guaranteed in a large range, and a basis is provided for improving the user experience.
In some embodiments, it should be noted that, when the location change amount is smaller than the first threshold, if the ambient brightness changes instantaneously, the display brightness of the mobile terminal is not desired to change at this time. That is, when the mobile terminal does not move in a wide range but the ambient brightness changes instantaneously, it is not desirable to immediately adjust the display brightness based on the detected ambient brightness, but to maintain the current display brightness and adjust the display brightness again at the next detection, taking into account the stimulus to the human eye and the appropriate time of the human eye for the ambient light.
In some embodiments, fig. 3 is a flowchart illustrating a display brightness adjustment method according to an exemplary embodiment, where as shown in fig. 3, the method further includes:
and 105, detecting the position of the mobile terminal based on an acceleration sensor in the mobile terminal.
In the disclosed embodiments, an acceleration sensor may be selected to perform detection of the position of the mobile terminal. That is, an acceleration sensor is mounted in the mobile terminal in advance, and the position of the mobile terminal is detected based on the acceleration sensor also in the adjustment of the display luminance.
In some embodiments, as described above, the determining the position change amount of the mobile terminal in step 102 may include:
step 1021, determining the position variation of the mobile terminal according to the position of the mobile terminal detected by the acceleration sensor at two adjacent detection moments.
For example, the two adjacent detection moments include: the current detection time and the previous detection time, or the current detection time and the next detection time. The two adjacent detection moments are as follows: two detection time points on the time axis are detected.
The position change amount can be characterized according to the distance between the positions detected at two adjacent detection moments. The location may be characterized by latitude and longitude coordinate information.
The determining the position variation of the mobile terminal according to the position of the mobile terminal detected by the acceleration sensor at two adjacent detection moments includes: and determining the position variation of the mobile terminal according to the distance between the position detected by the acceleration sensor in the mobile terminal at the current detection moment and the position detected at the previous detection moment.
The acceleration sensor may be configured to detect an acceleration of the mobile terminal, and based on the accelerations detected at two adjacent detection times, a corresponding movement distance may be determined.
Therefore, the position can be determined directly by installing the acceleration sensor and combining the detected data of the acceleration sensor, and the method is simple and convenient to implement.
In some embodiments, the detecting 105 the position of the mobile terminal based on an acceleration sensor in the mobile terminal includes:
step 1051, detecting the acceleration of the mobile terminal at the current detection time based on an acceleration sensor in the mobile terminal;
step 1052, performing integral operation on the acceleration to obtain the displacement of the mobile terminal in the time interval between two adjacent detection moments;
and 1053, determining the position of the mobile terminal according to the displacement of the mobile terminal and the position of the mobile terminal at the previous detection moment.
Here, the displacement refers to a moving distance of the mobile terminal.
As described above, the acceleration sensor may directly measure the acceleration of the mobile terminal. And the distance is proportional to the square of the acceleration according to the distance calculation formula, then the moving distance of the mobile terminal in the embodiment of the present disclosure may be obtained by performing double integration on the acceleration.
In the double integration of the acceleration, if the selected time interval is the time interval of two adjacent detection instants, the displacement achieved in the time interval of two adjacent detection instants is obtained. The time interval for determining the displacement is not limited in the embodiments of the present disclosure.
Therefore, after the displacement of the mobile terminal in the time interval between two adjacent detection moments is obtained, the position of the previous detection moment in the two adjacent detection moments is further determined, and the displacement is added to the position, so that the current position of the mobile terminal can be obtained.
According to the embodiment of the disclosure, the acceleration sensor is installed in the mobile terminal, and the moving distance, namely the position variation, of the mobile terminal is determined based on the data detected by the acceleration sensor at two adjacent detection moments. The mode of direct sensor detection is simple and convenient, and acceleration sensor can cooperate with the luminance sensor, provides the realization possibility for accurately adjusting the display brightness.
Fig. 4 is a flowchart illustrating a fourth display brightness adjustment method according to an exemplary embodiment, and as shown in fig. 4, the display brightness adjustment method in the embodiment of the present disclosure may be: when the data uploaded by the brightness sensor is changed greatly, the acceleration sensor is used for judging whether the position of the mobile terminal is changed or not, and when the mobile terminal is determined not to move in a large range, the ambient brightness condition is considered to be required to be further judged, so that the display brightness of the mobile terminal is maintained unchanged, and the subsequent data uploaded by the brightness sensor is continuously monitored. When the mobile terminal is determined to move in a large range, the environment brightness condition is considered to change, and the display brightness of the mobile terminal is adjusted to adapt to the environment change based on the detected environment brightness.
In this way, according to the embodiment of the present disclosure, the ambient brightness variation of the environment where the mobile terminal is located and the location variation of the mobile terminal are determined, and when the location variation is smaller than the first threshold, the display brightness of the mobile terminal is maintained, so as to shield the adjustment of the display brightness triggered by the ambient brightness variation being larger than the second threshold. And when the position variation is not less than the first threshold value, adjusting the display brightness of the mobile terminal based on the detected environment brightness. Therefore, the adjustment of the display brightness caused by the error detection of the ambient brightness can be greatly reduced, so that the brightness adjustment is more accurate and more meets the requirements of users.
In order to reduce the brightness adjustment error caused by the inaccuracy of the ambient brightness detection, an embodiment of the present disclosure further provides a mobile terminal, and fig. 5 is a schematic structural diagram of a mobile terminal according to an exemplary embodiment, as shown in fig. 5, where the mobile terminal 500 includes:
a processing module 501, a brightness sensor 502 and an acceleration sensor 503; the brightness sensor 502 and the acceleration sensor 503 are both connected with the processing module 501;
the processing module 501 is configured to determine an ambient brightness variation corresponding to the ambient brightness detected by the brightness sensor by the mobile terminal, and determine a position variation corresponding to the position detected by the acceleration sensor by the mobile terminal;
when the position variation is smaller than a first threshold value, the display brightness of the mobile terminal is maintained, so that the adjustment of the display brightness triggered by the fact that the environment brightness variation is larger than a second threshold value is shielded.
In some embodiments, the processing module is further configured to adjust the display brightness of the mobile terminal based on the ambient brightness detected by the brightness sensor when the position variation is not less than the first threshold.
In some embodiments, the processing module is further configured to determine a location change amount of the mobile terminal when it is determined that the ambient brightness change amount is greater than the second threshold.
In some embodiments, the processing module is further configured to determine a location change amount of the mobile terminal according to two adjacent detection moments based on the location of the mobile terminal detected by the acceleration sensor.
In some embodiments, the acceleration sensor is specifically configured to detect an acceleration of the mobile terminal at a current detection time; performing integral operation on the acceleration to obtain the displacement of the mobile terminal in the time interval between two adjacent detection moments; and determining the position of the mobile terminal according to the displacement of the mobile terminal and the position of the mobile terminal at the previous detection time.
In this way, according to the embodiment of the present disclosure, the ambient brightness variation of the environment where the mobile terminal is located and the location variation of the mobile terminal are determined, and when the location variation is smaller than the first threshold, the display brightness of the mobile terminal is maintained, so as to shield the adjustment of the display brightness triggered by the ambient brightness variation being larger than the second threshold. And when the position variation is not less than the first threshold value, adjusting the display brightness of the mobile terminal based on the detected environment brightness. Therefore, the adjustment of the display brightness caused by the error detection of the ambient brightness can be greatly reduced, so that the brightness adjustment is more accurate and more meets the requirements of users.
With regard to the apparatus in the above-described embodiment, the specific manner in which each module performs the operation has been described in detail in the embodiment related to the method, and will not be elaborated here.
Fig. 6 is a block diagram illustrating a display brightness adjustment apparatus 1800 according to an exemplary embodiment. For example, the apparatus 1800 may be a mobile phone, computer, digital broadcast terminal, messaging device, game console, tablet device, medical device, fitness device, personal digital assistant, and so forth.
Referring to fig. 6, apparatus 1800 may include one or more of the following components: a processing component 1802, a memory 1804, a power component 1806, a multimedia component 1808, an audio component 1810, an input/output (I/O) interface 1812, a sensor component 1814, and a communications component 1816.
The processing component 1802 generally controls the overall operation of the device 1800, such as operations associated with display, telephone calls, data communications, camera operations, and recording operations. The processing component 1802 may include one or more processors 1820 to execute instructions to perform all or part of the steps of the methods described above. Further, the processing component 1802 may also include one or more modules that facilitate interaction between the processing component 1802 and other components. For example, the processing component 1802 can include a multimedia module to facilitate interaction between the multimedia component 1808 and the processing component 1802.
The memory 1804 is configured to store various types of data to support operation at the apparatus 1800. Examples of such data include instructions for any application or method operating on the device 1800, contact data, phonebook data, messages, pictures, videos, and so forth. The memory 1804 may be implemented by any type or combination of volatile or non-volatile storage devices, such as Static Random Access Memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic or optical disks.
Power components 1806 provide power to various components of device 1800. The power components 1806 may include: a power management system, one or more power sources, and other components associated with generating, managing, and distributing power for the apparatus 1800.
The multimedia component 1808 includes a screen that provides an output interface between the device 1800 and a user. In some embodiments, the screen may include a Liquid Crystal Display (LCD) and a Touch Panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive an input signal from a user. The touch panel includes one or more touch sensors to sense touch, slide, and gestures on the touch panel. The touch sensor may not only sense the boundary of a touch or slide action, but also detect the duration and pressure associated with the touch or slide operation. In some embodiments, the multimedia component 1808 includes a front facing camera and/or a rear facing camera. The front-facing camera and/or the rear-facing camera may receive external multimedia data when the device 1800 is in an operating mode, such as a shooting mode or a video mode. Each front camera and/or rear camera may be a fixed optical lens system or have a focal length and optical zoom capability.
Audio component 1810 is configured to output and/or input audio signals. For example, audio component 1810 may include a Microphone (MIC) configured to receive external audio signals when apparatus 1800 is in an operational mode, such as a call mode, a record mode, and a voice recognition mode. The received audio signal may further be stored in the memory 1804 or transmitted via the communication component 1816. In some embodiments, audio component 1810 also includes a speaker for outputting audio signals.
I/O interface 1812 provides an interface between processing component 1802 and peripheral interface modules, which may be keyboards, click wheels, buttons, etc. These buttons may include, but are not limited to: a home button, a volume button, a start button, and a lock button.
The sensor component 1814 includes one or more sensors to provide various aspects of state assessment for the apparatus 1800. For example, the sensor assembly 1814 can detect an open/closed state of the device 1800, the relative positioning of components such as a display and keypad of the device 1800, the sensor assembly 1814 can also detect a change in position of the device 1800 or a component of the device 1800, the presence or absence of user contact with the device 1800, orientation or acceleration/deceleration of the device 1800, and a change in temperature of the device 1800. The sensor assembly 1814 may include a proximity sensor configured to detect the presence of a nearby object without any physical contact. The sensor assembly 1814 may also include a light sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 1814 may also include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
The communication component 1816 is configured to facilitate communications between the apparatus 1800 and other devices in a wired or wireless manner. The device 1800 may access a wireless network based on a communication standard, such as WiFi, 2G, or 3G, or a combination thereof. In an exemplary embodiment, the communication component 1816 receives a broadcast signal or broadcast associated information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 1816 further includes a Near Field Communication (NFC) module to facilitate short-range communications. For example, the NFC module may be implemented based on Radio Frequency Identification (RFID) technology, infrared data association (IrDA) technology, ultra Wideband (UWB) technology, bluetooth (BT) technology, or other technologies.
In an exemplary embodiment, the apparatus 1800 may be implemented by one or more Application Specific Integrated Circuits (ASICs), digital Signal Processors (DSPs), digital Signal Processing Devices (DSPDs), programmable Logic Devices (PLDs), field Programmable Gate Arrays (FPGAs), controllers, micro-controllers, microprocessors, or other electronic components for performing the above-described methods.
In an exemplary embodiment, a non-transitory computer readable storage medium is also provided, such as the memory 1804 including instructions that are executable by the processor 1820 of the apparatus 1800 to perform the above-described method. For example, the non-transitory computer readable storage medium may be a ROM, a Random Access Memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, and the like.
A non-transitory computer-readable storage medium in which instructions, when executed by a processor of a display brightness adjustment apparatus, enable execution of the above-described display brightness adjustment method; the display brightness adjusting method comprises the following steps:
determining the environment brightness variation detected by the mobile terminal;
determining the position variation of the mobile terminal;
when the position variation is smaller than a first threshold value, the display brightness of the mobile terminal is maintained, so that the adjustment of the display brightness triggered when the environment brightness variation is larger than a second threshold value is shielded.
Other embodiments of the disclosure will be apparent to those skilled in the art from consideration of the specification and practice of the disclosure disclosed herein. This disclosure is intended to cover any variations, uses, or adaptations of the disclosure following, in general, the principles of the disclosure and including such departures from the present disclosure as come within known or customary practice within the art to which the disclosure pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the disclosure being indicated by the following claims.
It will be understood that the present disclosure is not limited to the precise arrangements described above and shown in the drawings and that various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.

Claims (12)

1. A display brightness adjusting method is applied to a mobile terminal, and comprises the following steps:
determining the environment brightness variation detected by the mobile terminal;
determining the position variation of the mobile terminal;
determining whether a current time is a specific time, wherein the specific time comprises: alternating times of day and night or times designated according to work and rest of the user;
when the position variation is smaller than a first threshold and the current time is not the specific time, shielding adjustment of display brightness triggered by the environment brightness variation being larger than a second threshold by maintaining the display brightness of the mobile terminal;
when the current time is a specific time and the environment brightness variation is detected to be larger than the second threshold value, adjusting the display brightness according to the detected environment brightness;
and when the current time is not the specific time and the environment brightness variation is detected to be larger than the second threshold, if the position variation is larger than the first threshold, adjusting the display brightness according to the detected environment brightness.
2. The method of claim 1, further comprising:
and when the position variation is not less than the first threshold value, adjusting the display brightness of the mobile terminal based on the detected environment brightness.
3. The method of claim 1, wherein the determining the location change amount of the mobile terminal comprises:
and when the environment brightness variation is determined to be larger than the second threshold value, determining the position variation of the mobile terminal.
4. The method of claim 1, further comprising:
detecting the position of the mobile terminal based on an acceleration sensor in the mobile terminal;
the determining the position variation of the mobile terminal includes:
and determining the position variation of the mobile terminal according to the position of the mobile terminal detected by the acceleration sensor at two adjacent detection moments.
5. The method according to claim 4, wherein the detecting the position of the mobile terminal based on an acceleration sensor in the mobile terminal comprises:
detecting the acceleration of the mobile terminal at the current detection moment based on an acceleration sensor in the mobile terminal;
performing integral operation on the acceleration to obtain the displacement of the mobile terminal in a time interval between two adjacent detection moments;
and determining the position of the mobile terminal according to the displacement of the mobile terminal and the position of the mobile terminal at the previous detection moment.
6. A mobile terminal, comprising:
the system comprises a processing module, a brightness sensor and an acceleration sensor; the brightness sensor and the acceleration sensor are both connected with the processing module;
the processing module is used for determining the environment brightness variation corresponding to the environment brightness detected by the brightness sensor and the position variation corresponding to the position detected by the acceleration sensor;
determining whether a current time is a specific time, wherein the specific time comprises: alternating times of day and night or times designated according to work and rest of the user;
when the position variation is smaller than a first threshold and the current time is not the specific time, shielding the adjustment of the display brightness triggered by the environment brightness variation being larger than the second threshold by maintaining the display brightness of the mobile terminal;
when the current time is a specific time and the environment brightness variation is detected to be larger than the second threshold value, adjusting the display brightness according to the detected environment brightness;
and when the current time is not the specific time and the environment brightness variation is detected to be larger than a second threshold value, if the position variation is larger than the first threshold value, adjusting the display brightness according to the detected environment brightness.
7. The mobile terminal of claim 6,
and the processing module is further used for adjusting the display brightness of the mobile terminal based on the ambient brightness detected by the brightness sensor when the position variation is not less than the first threshold.
8. The mobile terminal of claim 6,
the processing module is further configured to determine a location change amount of the mobile terminal when it is determined that the ambient brightness change amount is greater than the second threshold.
9. The mobile terminal of claim 6,
the processing module is further configured to determine a position variation of the mobile terminal according to two adjacent detection moments based on the position of the mobile terminal detected by the acceleration sensor.
10. The mobile terminal of claim 9,
the acceleration sensor is specifically used for detecting the acceleration of the mobile terminal at the current detection moment; performing integral operation on the acceleration to obtain the displacement of the mobile terminal in a time interval between two adjacent detection moments; and determining the position of the mobile terminal according to the displacement of the mobile terminal and the position of the mobile terminal at the previous detection time.
11. A display luminance adjustment apparatus, comprising:
a processor;
a memory for storing executable instructions;
wherein the processor is configured to: the method of any one of claims 1 to 5 when executed by executable instructions stored in the memory.
12. A non-transitory computer readable storage medium having instructions therein, which when executed by a processor of a display brightness adjustment apparatus, enable the display brightness adjustment apparatus to perform the method of any one of claims 1 to 5.
CN202010202115.4A 2020-03-20 2020-03-20 Display brightness adjusting method and device, mobile terminal and storage medium Active CN111405115B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010202115.4A CN111405115B (en) 2020-03-20 2020-03-20 Display brightness adjusting method and device, mobile terminal and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010202115.4A CN111405115B (en) 2020-03-20 2020-03-20 Display brightness adjusting method and device, mobile terminal and storage medium

Publications (2)

Publication Number Publication Date
CN111405115A CN111405115A (en) 2020-07-10
CN111405115B true CN111405115B (en) 2022-11-04

Family

ID=71432747

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010202115.4A Active CN111405115B (en) 2020-03-20 2020-03-20 Display brightness adjusting method and device, mobile terminal and storage medium

Country Status (1)

Country Link
CN (1) CN111405115B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111681593A (en) * 2020-07-29 2020-09-18 北京小米移动软件有限公司 Method and device for adjusting display effect of display screen, terminal equipment and medium

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105812577A (en) * 2016-05-05 2016-07-27 广东欧珀移动通信有限公司 Screen brightness adjustment method and device

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106205557B (en) * 2016-09-29 2019-08-02 北京小米移动软件有限公司 Screen brightness regulation method and device

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105812577A (en) * 2016-05-05 2016-07-27 广东欧珀移动通信有限公司 Screen brightness adjustment method and device

Also Published As

Publication number Publication date
CN111405115A (en) 2020-07-10

Similar Documents

Publication Publication Date Title
CN110796988B (en) Backlight adjusting method and device
EP2991067B1 (en) Backlight brightness control method and device
CN111128091B (en) Screen brightness adjusting method, screen brightness adjusting device and computer storage medium
CN111128092B (en) Screen brightness adjusting method, screen brightness adjusting device and computer storage medium
CN108200279B (en) Backlight adjusting method, device and equipment
CN113140194B (en) Brightness adjusting method, device and storage medium
CN108769416B (en) Screen-off display method and device and non-transitory computer-readable storage medium
CN112748814A (en) Ambient light detection method and device and terminal
US10930217B2 (en) Method and apparatus for compensating operating parameter of display circuit
CN111243554A (en) Screen brightness adjusting method, screen brightness adjusting device and storage medium
CN111405115B (en) Display brightness adjusting method and device, mobile terminal and storage medium
CN106775246B (en) Screen brightness adjusting method and device
CN112017598A (en) Backlight brightness adjusting method and device
CN115719589A (en) Brightness control method and device, electronic equipment and storage medium
CN113241044B (en) Screen brightness adjusting method, device, equipment and storage medium
CN114187874B (en) Brightness adjusting method, device and storage medium
CN107621990B (en) Control method and device of terminal key and terminal
CN112087539A (en) Screen light adjusting method for terminal equipment and terminal equipment
CN112689047A (en) Display control method and device and electronic equipment
CN114281205B (en) Screen brightness determining method, device, equipment and storage medium
CN112565521B (en) Information processing method, device, terminal and storage medium
US11798516B2 (en) Method and device for adjusting display brightness, mobile terminal and storage medium
CN112511693B (en) Screen turning method and device
CN118692389A (en) Backlight data determining method, device and storage medium
CN113542454B (en) Ranging device, ranging signal emission control method, device, equipment and medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant