CN114999421B - Screen brightness adjusting method and electronic equipment - Google Patents
Screen brightness adjusting method and electronic equipment Download PDFInfo
- Publication number
- CN114999421B CN114999421B CN202111163744.1A CN202111163744A CN114999421B CN 114999421 B CN114999421 B CN 114999421B CN 202111163744 A CN202111163744 A CN 202111163744A CN 114999421 B CN114999421 B CN 114999421B
- Authority
- CN
- China
- Prior art keywords
- ambient light
- brightness value
- sampling
- brightness
- sampling period
- 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
Links
- 238000000034 method Methods 0.000 title claims abstract description 141
- 238000005070 sampling Methods 0.000 claims abstract description 306
- 239000010985 leather Substances 0.000 claims abstract description 111
- 230000008859 change Effects 0.000 claims abstract description 28
- 230000010354 integration Effects 0.000 claims description 31
- 238000012545 processing Methods 0.000 claims description 24
- 230000004044 response Effects 0.000 claims description 21
- 238000004590 computer program Methods 0.000 claims description 19
- 230000001965 increasing effect Effects 0.000 claims description 11
- 238000003860 storage Methods 0.000 claims description 9
- 230000003111 delayed effect Effects 0.000 abstract description 11
- 230000006870 function Effects 0.000 description 34
- 230000008569 process Effects 0.000 description 31
- 238000007726 management method Methods 0.000 description 30
- 238000004891 communication Methods 0.000 description 26
- 239000010410 layer Substances 0.000 description 25
- 238000004422 calculation algorithm Methods 0.000 description 18
- 238000010586 diagram Methods 0.000 description 15
- 230000009471 action Effects 0.000 description 11
- 238000010295 mobile communication Methods 0.000 description 11
- 210000000988 bone and bone Anatomy 0.000 description 10
- 230000001976 improved effect Effects 0.000 description 10
- 230000005236 sound signal Effects 0.000 description 9
- 230000001960 triggered effect Effects 0.000 description 9
- 238000004364 calculation method Methods 0.000 description 8
- 230000003287 optical effect Effects 0.000 description 7
- 230000000694 effects Effects 0.000 description 6
- 229920001621 AMOLED Polymers 0.000 description 4
- 230000001413 cellular effect Effects 0.000 description 4
- 238000013461 design Methods 0.000 description 4
- 238000001514 detection method Methods 0.000 description 4
- 238000006073 displacement reaction Methods 0.000 description 4
- 230000001360 synchronised effect Effects 0.000 description 4
- 230000001133 acceleration Effects 0.000 description 3
- 238000013528 artificial neural network Methods 0.000 description 3
- 230000008878 coupling Effects 0.000 description 3
- 238000010168 coupling process Methods 0.000 description 3
- 238000005859 coupling reaction Methods 0.000 description 3
- 238000013500 data storage Methods 0.000 description 3
- 238000005516 engineering process Methods 0.000 description 3
- 239000011521 glass Substances 0.000 description 3
- 230000003993 interaction Effects 0.000 description 3
- 230000002159 abnormal effect Effects 0.000 description 2
- 230000009286 beneficial effect Effects 0.000 description 2
- 230000036772 blood pressure Effects 0.000 description 2
- 230000033001 locomotion Effects 0.000 description 2
- 230000007774 longterm Effects 0.000 description 2
- 238000004519 manufacturing process Methods 0.000 description 2
- 230000009467 reduction Effects 0.000 description 2
- 230000008093 supporting effect Effects 0.000 description 2
- 230000000007 visual effect Effects 0.000 description 2
- 240000007594 Oryza sativa Species 0.000 description 1
- 235000007164 Oryza sativa Nutrition 0.000 description 1
- 206010034719 Personality change Diseases 0.000 description 1
- 238000003491 array Methods 0.000 description 1
- 230000003416 augmentation Effects 0.000 description 1
- 230000003190 augmentative effect Effects 0.000 description 1
- 238000010009 beating Methods 0.000 description 1
- 230000008901 benefit Effects 0.000 description 1
- 238000013529 biological neural network Methods 0.000 description 1
- 230000005540 biological transmission Effects 0.000 description 1
- 210000004556 brain Anatomy 0.000 description 1
- 238000005282 brightening Methods 0.000 description 1
- 210000004027 cell Anatomy 0.000 description 1
- 230000019771 cognition Effects 0.000 description 1
- 230000000295 complement effect Effects 0.000 description 1
- 239000004020 conductor Substances 0.000 description 1
- 239000012792 core layer Substances 0.000 description 1
- 238000012937 correction Methods 0.000 description 1
- 238000007405 data analysis Methods 0.000 description 1
- 230000007423 decrease Effects 0.000 description 1
- 230000001934 delay Effects 0.000 description 1
- 238000001914 filtration Methods 0.000 description 1
- 230000005484 gravity Effects 0.000 description 1
- 230000036541 health Effects 0.000 description 1
- 230000001939 inductive effect Effects 0.000 description 1
- 239000004973 liquid crystal related substance Substances 0.000 description 1
- 238000013507 mapping Methods 0.000 description 1
- 238000005259 measurement Methods 0.000 description 1
- 230000007246 mechanism Effects 0.000 description 1
- 238000012544 monitoring process Methods 0.000 description 1
- 230000001537 neural effect Effects 0.000 description 1
- 210000002569 neuron Anatomy 0.000 description 1
- 238000005457 optimization Methods 0.000 description 1
- 230000008447 perception Effects 0.000 description 1
- 238000007639 printing Methods 0.000 description 1
- 230000010349 pulsation Effects 0.000 description 1
- 239000002096 quantum dot Substances 0.000 description 1
- 230000001105 regulatory effect Effects 0.000 description 1
- 238000009877 rendering Methods 0.000 description 1
- 230000002441 reversible effect Effects 0.000 description 1
- 235000009566 rice Nutrition 0.000 description 1
- 229920006395 saturated elastomer Polymers 0.000 description 1
- 239000004065 semiconductor Substances 0.000 description 1
- 239000004984 smart glass Substances 0.000 description 1
- 230000003238 somatosensory effect Effects 0.000 description 1
- 230000003068 static effect Effects 0.000 description 1
- 238000006467 substitution reaction Methods 0.000 description 1
- 238000012546 transfer Methods 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G09—EDUCATION; CRYPTOGRAPHY; DISPLAY; ADVERTISING; SEALS
- G09G—ARRANGEMENTS OR CIRCUITS FOR CONTROL OF INDICATING DEVICES USING STATIC MEANS TO PRESENT VARIABLE INFORMATION
- G09G5/00—Control arrangements or circuits for visual indicators common to cathode-ray tube indicators and other visual indicators
- G09G5/10—Intensity circuits
-
- G—PHYSICS
- G09—EDUCATION; CRYPTOGRAPHY; DISPLAY; ADVERTISING; SEALS
- G09G—ARRANGEMENTS OR CIRCUITS FOR CONTROL OF INDICATING DEVICES USING STATIC MEANS TO PRESENT VARIABLE INFORMATION
- G09G2320/00—Control of display operating conditions
- G09G2320/06—Adjustment of display parameters
- G09G2320/0626—Adjustment of display parameters for control of overall brightness
-
- Y—GENERAL 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
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02D—CLIMATE 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/00—Reducing energy consumption in communication networks
- Y02D30/70—Reducing energy consumption in communication networks in wireless communication networks
Landscapes
- Engineering & Computer Science (AREA)
- Physics & Mathematics (AREA)
- Computer Hardware Design (AREA)
- General Physics & Mathematics (AREA)
- Theoretical Computer Science (AREA)
- Controls And Circuits For Display Device (AREA)
Abstract
The application provides a screen brightness adjusting method and electronic equipment, and relates to the technical field of display. In this application scheme, when electronic equipment detected the leather sheath from closed to opening, improve the sampling rate of ambient light sensor, and calculate or the prediction compensation according to the multiframe luminance value data that high frequency sampling obtained, so can acquire the luminance value approximate with actual environment luminance fast, thereby can make luminance when the leather sheath is opened the bright screen of in-process display screen unanimous with actual environment luminance, can avoid behind the bright screen that the screen takes place the bright and dark change phenomenon that is showing or the bright screen has obvious delayed problem, thereby can promote user experience.
Description
Technical Field
The application relates to the technical field of display, in particular to a screen brightness adjusting method and electronic equipment.
Background
At present, for the electronic equipment who possesses the leather sheath function, when the leather sheath was in the closure state, the external light can't be gathered to electronic equipment's leading environment light sensor because the leather sheath shelters from, and electronic equipment's display screen was in the state of disappearing usually this moment. When the leather sheath is opened from the closed state, the display screen can automatically light. The brightness value of the display screen when the display screen is bright is determined according to the ambient light brightness data collected by the front ambient light sensor.
In practical use, the matching relationship between the brightness of the display screen when the display screen is bright and the actual ambient light brightness is very important for the user experience. For example, if the brightness set when the display screen is lit is not appropriate, it may cause the display screen to appear bright first and then dark or dark first and then bright; if the bright screen action is postponed until the leather sheath is completely opened and then is lighted, the user feels that the bright screen of the electronic equipment is slow, and the bright screen action and the slow screen action all affect the user experience.
To the electronic equipment that possesses the leather sheath function, when the leather sheath was from closed to opening, because the leather sheath was to the sheltering from of ambient light, caused the interference to ambient light sensor collection luminance data, consequently the problem that bright and dark change or bright screen have obvious delay probably appears when the automatic bright screen of display screen, and the user uses and experiences not good.
Disclosure of Invention
The application provides a screen brightness adjusting method and electronic equipment, and solves the problems that in the prior art, when a leather sleeve is opened from closing, a display screen automatically brightens, changes in brightness or obviously delays bright screen.
In order to achieve the purpose, the technical scheme is as follows:
in a first aspect, the present application provides a screen brightness adjusting method applied to an electronic device with a display screen, where the electronic device is provided with a front-end ambient light sensor, and the electronic device is provided with a leather sheath, and the method includes:
in response to an operation of opening a leather sheath by a user, adjusting a sampling period of the ambient light sensor from a first sampling period to a second sampling period, wherein the second sampling period is smaller than the first sampling period;
sampling by the ambient light sensor in the second sampling period to obtain a first ambient light brightness value;
and lightening the display screen according to the first ambient light brightness value.
Through this application scheme, when electronic equipment detected the leather sheath from closed to opening, improve the sampling rate of environment light sensor, and calculate or the prediction compensation according to the multiframe luminance value data that the high frequency sampling obtained, so can acquire the luminance value approximate with actual environment luminance fast, thereby can make luminance when the leather sheath is opened the in-process display screen bright screen unanimous with actual environment luminance, can avoid behind bright screen the light and shade change phenomenon that the screen is showing or bright screen has obvious delayed problem, thereby can promote user experience.
In some embodiments, said sampling by said ambient light sensor at said second sampling period to obtain a first ambient light brightness value comprises:
sampling for multiple times through the ambient light sensor in the second sampling period to obtain multiple brightness values;
determining the first ambient light brightness value according to the plurality of brightness values.
In some embodiments, said determining said first ambient light brightness value from said plurality of brightness values comprises:
at the end of each sampling, accumulating the sampling times C and recording the latest sampling brightnessTime stamp T corresponding to value A ;
When the sampling times or the sampling time meet a preset condition, determining the first environment light brightness value according to the plurality of brightness values;
wherein the preset conditions include: the sampling frequency C is greater than or equal to the maximum sampling frequency m of the second sampling period in a preset effective duration; or, the time stamp T A And a time stamp T 0 Is greater than or equal to a preset effective duration, T 0 Indicating the timestamp recorded when the holster was detected as being opened.
In some embodiments, said determining said first ambient light brightness value from said plurality of brightness values comprises:
comparing the latest sampled brightness value with the last sampled brightness value;
if the latest sampled brightness value is less than or equal to the last sampled brightness value, determining the maximum value of the brightness values as the first ambient light brightness value; or,
and if the latest sampling brightness value is larger than the last sampling brightness value, predicting the first ambient light brightness value according to the linear relation between the latest sampling brightness value and the last sampling brightness value.
In some embodiments, said predicting said first ambient light brightness value based on a linear relationship between said most recent sampled brightness value and said last sampled brightness value comprises:
calculating a linear slope K according to the latest sampled luminance value and the last sampled luminance value using the following equation:
wherein L is B Representing the latest sampled luminance value, L A Representing the last sampled luminance value, T B Indicating the timestamp, T, corresponding to said latest sampled luminance value A Represents the aboveA timestamp corresponding to the last sampling brightness value, wherein t represents the duration corresponding to the second sampling period;
predicting the first ambient light brightness value y according to the linear slope K by using the following equation:
y=K×(m-n)+L B ;
wherein m represents the maximum sampling frequency of the second sampling period in a preset effective duration, T 0 Indicating the timestamp recorded when the holster was detected as being opened.
In some embodiments, said sampling by said ambient light sensor at said second sampling period to obtain a first ambient light brightness value comprises:
the ambient light sensor performs multiple sampling within a preset effective duration in the second sampling period to obtain a first ambient light brightness value;
and the duration corresponding to the second sampling period is less than the preset effective duration.
In some embodiments, the first sampling period comprises a first sampling integration time and a first latency; the second sampling period comprises a second sampling integration time and a second waiting time;
wherein the second sampling integration time is less than or equal to the first sampling integration time, and/or the second latency is less than the first latency.
In some embodiments, the electronic device is provided with a hall sensor, and the holster is provided with a magnetic element;
wherein the adjusting the sampling period of the ambient light sensor from a first sampling period to a second sampling period in response to the user opening the holster comprises:
when the Hall sensor detects that the Hall sensor and the magnetic element are far away from each other from the closed state, determining the leather case from the buckling to the open state;
adjusting a sampling period of the ambient light sensor from the first sampling period to the second sampling period in response to an event that the holster is snapped to open.
In some embodiments, after said sampling by said ambient light sensor with said second sampling period resulting in a first ambient light brightness value, said method further comprises:
restoring the sampling period of the ambient light sensor from the second sampling period to the first sampling period.
In some embodiments, the method further comprises:
sampling for multiple times through the ambient light sensor in the first sampling period to obtain a plurality of second ambient light brightness values;
when the average value of the plurality of second ambient light brightness values is within a preset threshold range, keeping the brightness of the display screen unchanged; or,
and when the average value of the plurality of second environment brightness values is not within the preset threshold range, adjusting the brightness of the display screen according to the average value of the plurality of second environment brightness values.
In some embodiments, the adjusting the brightness of the display screen according to the average value of the plurality of second ambient light brightness values when the average value of the plurality of second ambient light brightness values is not within the preset threshold range includes:
when the average value of the plurality of second environment brightness values is larger than the upper threshold value of the preset threshold value range, the brightness of the display screen is increased according to the average value of the plurality of second environment brightness values; or,
when the average value of the plurality of second environment brightness values is smaller than the lower threshold of the preset threshold range, reducing the brightness of the display screen according to the average value of the plurality of second environment brightness values;
wherein the upper threshold of the preset threshold range is larger than the lower threshold.
In some embodiments, the electronic device comprises an application processor AP and a sensor co-processor SCP; the AP processor comprises a display engine unit, and the SCP processor comprises the ambient light sensor and a Hall sensor;
wherein said determining said first ambient light brightness value from said plurality of brightness values comprises:
the ambient light sensor reports the plurality of brightness values to a driving unit of the ambient light sensor;
the driving unit of the ambient light sensor determines the first ambient light brightness value according to the plurality of brightness values.
In some embodiments, the method further comprises:
the display engine unit receives a Hall far event reported by the Hall sensor, and the Hall far event represents the state change of the Hall sensor from closing to far;
responding to the Hall far-away event, the display engine unit issues a batch processing batch command to the SCP processor, and the batch command is used for indicating reporting of a first brightness value.
In some embodiments, after the display engine unit issues the batch command to the SCP processor, the method further comprises:
the driving unit of the ambient light sensor receives the batch command issued by the display engine unit;
in response to the batch command, the driving unit of the ambient light sensor reports the first ambient light brightness value to the display engine unit.
In some embodiments, said illuminating said display screen according to said first ambient light brightness value comprises:
the display engine unit receives the first ambient light brightness value;
and the display engine unit sets the first ambient light brightness value as a first brightness value when the display screen is lightened, and triggers the display screen to be switched from a screen-off state to a screen-on state.
In some embodiments, the ambient light sensor is an off-screen ambient light sensor or a non-off-screen ambient light sensor.
In a second aspect, the present application provides a screen brightness adjustment apparatus comprising means for performing the method of the first aspect. The apparatus may correspond to the method described in the first aspect, and for the related description of the units in the apparatus, reference is made to the description of the first aspect, and for brevity, no further description is given here.
The method described in the first aspect may be implemented by hardware, or may be implemented by hardware executing corresponding software. The hardware or software includes one or more modules or units corresponding to the above-described functions. Such as a processing module or unit, a display module or unit, etc.
In a third aspect, the present application provides an electronic device comprising an SCP processor and an AP processor, both coupled to a memory for storing computer programs or instructions, the SCP processor and the AP processor for executing the computer programs or instructions stored by the memory such that the method of the first aspect is performed. For example, the SCP processor and the AP processor are for executing a memory stored computer program or instructions causing the apparatus to perform the method of the first aspect.
In a fourth aspect, the present application provides a computer-readable storage medium having stored thereon a computer program (which may also be referred to as instructions or code) for implementing the method in the first aspect. The computer program, when executed by a computer, causes the computer to perform the method of the first aspect, for example.
In a fifth aspect, the present application provides a chip comprising an SCP processor and an AP processor. The SCP processor and the AP processor are adapted to read and execute a computer program stored in the memory to perform the method of the first aspect and any possible implementation thereof. Optionally, the chip further comprises a memory, and the memory is connected with the processor through a circuit or a wire.
In a sixth aspect, the present application provides a chip system comprising an SCP processor and an AP processor. The SCP processor and the AP processor are configured to read and execute a computer program stored in the memory to perform the method of the first aspect and any possible implementation thereof. Optionally, the chip system further comprises a memory, and the memory is connected with the processor through a circuit or a wire.
In a seventh aspect, the present application provides a computer program product comprising a computer program (also referred to as instructions or code) which, when executed by a computer, causes the computer to carry out the method of the first aspect.
It is to be understood that, the beneficial effects of the second to seventh aspects may be referred to the relevant description of the first aspect, and are not repeated herein.
Drawings
Fig. 1 is a schematic diagram illustrating a state switching process of an electronic device with a flip holster installed in an embodiment of the present application when in use;
FIG. 2 is a schematic diagram of a mobile phone with a flip holster installed therein from a closed holster state to an open holster state in an embodiment of the present application;
fig. 3 is a schematic flowchart of a method for adjusting screen brightness according to an embodiment of the present disclosure;
fig. 4 is a top view of a positional relationship between a mobile phone and a holster in a screen brightness adjustment method according to an embodiment of the present application;
fig. 5 is a schematic position diagram of a hall sensor in the screen brightness adjustment method provided in the embodiment of the present application;
fig. 6 is a schematic flowchart of a method for adjusting screen brightness according to another embodiment of the present application;
FIG. 7 is a flowchart illustrating a method for adjusting screen brightness according to yet another embodiment of the present application;
fig. 8 is a schematic diagram of a technical architecture corresponding to a screen brightness adjustment method provided in an embodiment of the present application;
fig. 9 is a schematic timing diagram of module interaction corresponding to a screen brightness adjustment method according to an embodiment of the present application;
fig. 10 is a schematic flowchart of a method for adjusting screen brightness according to yet another embodiment of the present application;
FIG. 11 is a side view of a display screen and an ambient light sensor in an electronic device;
FIG. 12 is a schematic diagram of another arrangement of an ambient light sensor according to an embodiment of the present disclosure;
fig. 13 is a schematic structural diagram of a screen brightness adjusting device according to an embodiment of the present application;
fig. 14 is a schematic structural diagram of an electronic device according to an embodiment of the present application.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present application clearer, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are some embodiments of the present application, but not all embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
The term "and/or" herein is an association relationship describing an associated object, meaning that three relationships may exist, e.g., a and/or B, may mean: a exists alone, A and B exist simultaneously, and B exists alone. The symbol "/" herein denotes an association of or, e.g., a/B denotes a or B.
The terms "first" and "second," and the like, in the description and in the claims herein are used for distinguishing between different objects and not for describing a particular order of the objects. For example, the first sampling period and the second sampling period, etc. are used to distinguish different sampling periods, rather than to describe a particular order of sampling periods.
In the embodiments of the present application, words such as "exemplary" or "for example" are used to mean serving as an example, instance, or illustration. Any embodiment or design described herein as "exemplary" or "e.g.," is not necessarily to be construed as preferred or advantageous over other embodiments or designs. Rather, use of the word "exemplary" or "such as" is intended to present concepts related in a concrete fashion.
In the description of the embodiments of the present application, unless otherwise specified, "a plurality" means two or more, for example, a plurality of processing units means two or more processing units, or the like; plural elements means two or more elements, and the like.
In order to facilitate understanding of the embodiments of the present application, some terms of the embodiments of the present application are explained below to facilitate understanding by those skilled in the art.
1) Hall sensor (HALL sensor)
The Hall sensor is a magnetic element, can be arranged in electronic equipment and is used for supporting the leather sheath function. When the electronic equipment is provided with the flip leather sheath, the electronic equipment can detect the opening and closing state of the flip leather sheath by using the Hall sensor. Wherein, the opening and closing state comprises a leather sheath opening state or a leather sheath closing state.
In practical implementation, the electronic device may have a hall sensor built therein, and the flip holster may have a magnetic element (e.g., a sheet magnet) built therein. The realization principle is as follows: on one hand, when the flip leather sheath is opened to be closed, the magnetic element on the leather sheath is close to or contacts the Hall sensor on the electronic equipment to trigger the Hall sensor circuit to be closed, at the moment, the magnetic field is increased, the voltage is increased, and the electronic equipment is triggered to extinguish the screen. On the other hand, when the flip leather sheath is opened from the closed state, the magnetic element on the leather sheath is far away from the Hall sensor on the electronic equipment, at the moment, the circuit of the Hall sensor is disconnected, the magnetic field is weakened, the voltage is reduced, and the electronic equipment is triggered to light the display screen.
It should be noted that, for the position of the hall sensor in the electronic device and the position of the magnetic element in the leather sheath, the hall sensor and the magnetic element may be specifically set according to actual use requirements, and the embodiment of the present application is not limited.
Fig. 1 shows a schematic diagram of a state switching process of an electronic device with a flip leather sheath installed in use.
Referring to fig. 1, when the hall sensor in the electronic device is far away from the magnetic element in the holster by contact, the electronic device is in the open state of the holster, and the hall sensor can detect that the holster is changed from the closed (or buckled) state to the open state, in which case the electronic device is triggered to light up the display screen. Further, after the hall sensor and the magnetic element are far away from each other to a certain extent or for a certain time, the electronic device is in a leather case opening state.
Referring to fig. 1 again, when the hall sensor in the electronic device is in contact with the magnetic element in the holster from a far distance, the electronic device is in a closed state of the holster, and the hall sensor can detect that the holster is changed from an open state to a closed state, in which case the electronic device is triggered to extinguish the screen. Further, after the hall sensor is in contact with the magnetic element to a certain extent or for a certain time, the electronic device is in a leather case closed state.
It should be noted that, for the open state of the leather sheath, the leather sheath does not shield the ambient light device, so that the brightness of the display screen can be automatically adjusted according to the brightness value reported by the ambient light sensor. For the closed state of the leather sheath, the brightness of the display screen can be adjusted by adopting fixed brightness or brightness values reported by a rear ambient light device. And for the closed process state of the leather sheath, the screen brightness is changed from normal brightness to fixed brightness, or brightness adjustment is carried out according to the brightness value reported by the rear ambient light device. These scenarios are not the focus of the discussion of the embodiments of the present application.
For the opening process state of the leather sheath, the value reported by the ambient light sensor is probably a value which is lower than the actual ambient light brightness due to the shielding of the leather sheath on the ambient light. At this time, a display screen lighting event (also referred to as a screen lighting event) that switches from a screen-off state to a screen-on state is involved, and a matching relationship between the brightness of the display screen when the display screen is on and the actual ambient light brightness is very important for user experience. If the brightness set when the display screen is lighted is not appropriate, the phenomenon that the display screen is firstly bright and then dark or firstly dark and then bright can be caused, if the screen-lighting action is postponed until the leather sheath is completely opened and then lighted, the user can feel that the screen of the electronic equipment is dull, and the user experience can be influenced.
The problem that this application scheme, this application embodiment will solve is how to accomplish the display screen from putting out the screen attitude and opening along with the leather sheath and set up the luminance with actual environment light intensity assorted in the self-adaptation. That is, the present application is directed to precisely control the brightness of the display screen when the display screen is lit during the opening of the holster. The scene that the leather sheath is opened through the Hall sensor detection state is related to in the implementation process of the scheme.
The following describes the opening state of the holster in conjunction with a scenario where the user uses an electronic device (e.g., a mobile phone) having a holster. Fig. 2 shows a schematic view of a handset with a flip holster installed from a closed holster position to an open holster position.
As shown in fig. 2 (a), the cellular phone with the holster attached is in the closed state of the holster, in which case the hall sensor in the cellular phone is in contact with or overlaps the magnetic element in the holster.
In some embodiments, in the closed state of the holster, the display of the cell phone may be in a blanking state, i.e., all pixels of the display are blanked.
In other embodiments, for a holster with a transparent window, in a closed state of the holster (also referred to as a holster mode), the mobile phone may illuminate a portion of pixels in the display screen for displaying information such as time, short message, or incoming call, and the like, and the information is displayed to the user through the transparent window of the holster. Fig. 2 is a schematic illustration of a holster provided with a transparent window.
As shown in fig. 2 (b), when the user opens the holster, the hall sensor in the handset changes contact with the magnetic element in the holster away, in which case the handset switches from the closed holster state to the open holster state.
In response to the user's operation of opening the holster, the mobile phone lights up all pixels of the display screen, and it can be understood that the display screen of the mobile phone is switched from a screen-off state (which may also be referred to as a screen-off state) to a screen-on state.
As shown in fig. 2 (c), the mobile phone is in the open state of the leather sheath, and the hall sensor disposed at the mobile phone side and the magnetic element disposed at the leather sheath side are located on the same plane, i.e., they are 180 degrees. It will be appreciated that the locations of the hall sensor and the magnetic element are illustrated schematically.
Therefore, the electronic equipment can judge the state change of the leather sheath according to the state change of the Hall sensor, and therefore the closing or opening action of the leather sheath can be judged.
2) Ambient light sensor
An ambient light sensor is usually disposed in the electronic device, and the ambient light sensor can periodically collect a light brightness value of an environment where the electronic device is located. For example, the electronic device collects an ambient light brightness value every 350 milliseconds (ms) through an ambient light sensor, and further, the electronic device may adaptively adjust the brightness of the display screen of the electronic device according to the ambient light brightness value. The ambient light sensor may also be referred to as a light sensor, a light sensing device, or an ambient light device, among others.
It should be noted that the ambient light sensor may be disposed on the same side of the electronic device as the display screen, and is hereinafter referred to as a front ambient light sensor for short; the ambient light sensor may be disposed on the same side of the electronic device as the rear housing, and is hereinafter referred to as a rear ambient light sensor.
Specifically to this application scheme, the ambient light sensor that this application scheme adopted is leading ambient light sensor, and in the scene that the leather sheath was opened from closed, electronic equipment's display screen can be followed and is put out the screen attitude change and be bright screen attitude, can perceive the actual ambient light luminance when the leather sheath was opened from closed through leading ambient light sensor this moment to luminance when the ambient light luminance automatically regulated display screen was lighted according to the perception. Unless otherwise specified, the ambient light sensor mentioned hereinafter refers to a front-mounted ambient light sensor.
And when the Hall sensor detects that the leather sheath is opened from the closed state, the Hall sensor triggers the electronic equipment to light the display screen. When the electronic equipment lights the display screen, the electronic equipment can set the brightness of the display screen when the display screen is lighted according to the ambient light brightness collected by the ambient light sensor.
It should be noted that, for the condition that the ambient light sensor drives to report the first frame brightness value to the brightness obtaining module of the display engine, the effective time may be set, and if the brightness obtaining module of the display engine receives the first frame brightness value within the effective time, the first frame brightness value is effective and can be used as the brightness value when the display screen is bright, so that the real-time effectiveness of obtaining the brightness information can be ensured, and the brightness adjustment effect of the display screen is improved. If the first frame brightness value is not received within the valid time, that is, the reporting time is over, the brightness acquiring module of the display engine may adopt a default brightness value, for example, the default brightness value may be 0.
For example, the effective time may be set to 200ms, or set to 300ms, and of course, may also be set to any other time length that meets the actual requirement, and the embodiment of the present application is not limited. For convenience of explanation, the effective time is exemplified as 200ms hereinafter.
At present, for an electronic device with a leather sheath function, when the electronic device is in a closed state of the leather sheath, a front-mounted ambient light sensor cannot collect external light due to shielding of the leather sheath, and a display screen is usually in a screen-off state at the moment; when the electronic equipment is in the leather sheath opening process state, the display screen can automatically light. However, due to the fact that the leather sheath shields the ambient light, the ambient light brightness value collected by the ambient light sensor is not accurate enough, and therefore when the display screen is automatically turned on, the problem that the brightness changes obviously or the screen is turned on and delayed obviously occurs, and the user experience is poor.
In the following, some problems of the scheme of automatically turning on the display screen when the holster is opened will be described with respect to the electronic device with the holster function, taking an example that the sampling period of the ambient light sensor is 350ms and the effective time corresponding to the brightness value of the first frame is 200ms.
On one hand, the ambient light sensor driver is always in a normally open working state, so the ambient light sensor driver can always cache the ambient light brightness value of the previous frame, and after the ambient light sensor driver receives a command which is issued by the brightness acquisition module of the display engine and indicates to acquire the ambient light brightness value of the first frame, if the ambient light sensor driver directly returns the latest cached frame of brightness value data to the brightness acquisition module of the display engine, the latest cached frame of brightness value data is used as the brightness value when the display screen is bright. Since the frame brightness value data is generated a certain time (for example, 0 to 350 ms) before the holster is opened, and the brightness value data may be a value close to or equal to the 0 value, in an actual environment where the display screen is not completely dark, if the brightness adjustment of the screen after the holster is opened is performed by using the frame brightness value data cached last time, the problem of dimming before lighting when the display screen is on will be directly caused, and the user experience is not good.
On the other hand, assuming that a mode that the ambient light sensor drives the first frame data reported after receiving the command of acquiring the brightness value of the first frame is used as the first frame data, since the ambient light sensor needs a certain integration time to complete the collection of the brightness value of the ambient light, for a sampling period of 350ms, the effective time is more than 200ms, a default value is adopted under the overtime condition, and the default value is a fixed value, which is obviously not associated with the actual ambient light brightness, and it cannot be ensured that the brightness when the screen is on is consistent with the actual ambient light brightness, which also results in poor user experience.
On the other hand, if the effective time corresponding to the brightness value of the first frame is extended, for example, from 200ms to 500ms, the user may feel that the bright screen of the screen is slow after the holster is opened, and the poor user experience may cause the user to question the side effects of poor performance of the mobile phone.
Therefore, the existing scheme can not meet the requirement of self-adaptive screen brightening of the display screen of the electronic equipment with the screen brightness adjusted when the leather sheath is opened.
In some embodiments, for an electronic device provided with a rear photosensitive device or a color temperature device, when the rear photosensitive device is not shielded, the rear photosensitive device may be used to measure an ambient light brightness value for adjusting brightness when the display screen is bright. However, in a scene where the rear-mounted light sensing device is blocked, the rear-mounted light sensing device cannot perform ambient light measurement, so that when the leather sheath is opened, the brightness of the screen of the mobile phone still has the problem of first darkness and then lightness. Furthermore, in a scene with backlight, the brightness value of the ambient light collected by the rear photosensitive device cannot accurately represent the brightness of the front photosensitive device. Therefore, for the electronic equipment supporting the leather sheath function, the problem of obvious brightness change when the display screen is bright in the opening process of the leather sheath still cannot be solved through the rear photosensitive device.
In view of the foregoing problems, embodiments of the present application provide a screen brightness adjusting method and an electronic device. Through this application scheme, when electronic equipment detects the leather sheath from closed to opening, improve ambient light sensor's sampling rate, and calculate or the prediction compensation according to the multiframe luminance value data that high frequency sampling obtained, so can acquire the luminance value approximate with actual environment luminance fast, thereby can make luminance when the leather sheath is opened the in-process display screen bright screen unanimous with actual environment luminance, can avoid behind the bright screen that the screen takes place the bright and dark change phenomenon that is showing or the bright screen has obvious delayed problem, consequently can also avoid in darker environment the display screen because show luminance too high and too dazzling, or avoid in brighter environment the display screen because show luminance too low and see unclear, promote user experience. Therefore, the problem that when the leather sheath is opened from the closed state, the display screen automatically brightens, and changes in brightness or the bright screen is delayed obviously can be solved.
The electronic device in the embodiment of the application may be a mobile terminal or a non-mobile terminal. By way of example, the mobile terminal may be a mobile phone, a tablet computer, a notebook computer, a palm top computer, a vehicle-mounted terminal, a wearable device, an ultra-mobile personal computer (UMPC), a netbook or a Personal Digital Assistant (PDA), and the like, and the non-mobile terminal may be a Personal Computer (PC), a Television (TV), a teller machine or a self-service machine, and the like, and the embodiment of the present application is not particularly limited.
An execution main body of the screen brightness adjusting method provided in the embodiment of the present application may be the electronic device, or may also be a functional module and/or a functional entity that can implement the screen brightness adjusting method in the electronic device, and the scheme of the present application may be implemented by hardware and/or software, which may be specifically determined according to actual use requirements, and the embodiment of the present application is not limited. The following takes an electronic device as an example, and an exemplary description is provided for a screen brightness adjustment method provided in an embodiment of the present application with reference to the drawings.
First of all, it should be noted that the screen brightness adjustment method provided in the embodiment of the present application may be applied to an electronic device with a display screen, where the electronic device may be provided with an ambient light sensor, and the ambient light sensor is located on the same side as the display screen, that is, a front-mounted ambient light sensor. The electronic equipment is provided with a leather sheath, and the electronic equipment supports the leather sheath function.
In actual implementation, when the user opened the leather sheath, electronic equipment's display screen can bright the screen automatically, and the luminance of the environment that electronic equipment is located probably has multiple condition, how to determine accurate actual environment luminance as the luminance when the display screen is bright, this is the purpose of this application scheme. The following describes in detail how to collect an ambient light brightness value by an ambient light sensor when detecting that a user opens a leather sheath, and determines a brightness value adopted by a display screen when the display screen is bright according to the collected ambient light brightness value.
Fig. 3 is a schematic flowchart of a screen brightness adjusting method according to an embodiment of the present application. Referring to fig. 3, the method includes steps S101-S103 described below.
S101, responding to the operation of opening the leather sheath by a user, and adjusting the sampling period of the ambient light sensor from a first sampling period to a second sampling period, wherein the second sampling period is smaller than the first sampling period.
The first sampling period may refer to a default sampling period of the ambient light sensor. Typically, the ambient light sensor is normally on, typically for a first sampling period, before the holster is opened.
In the embodiment of the application, when the user opens the leather sheath, the electronic device can sense the action of the leather sheath from closing to opening through the Hall sensor. Furthermore, the electronic equipment can respond to the operation of opening the leather sheath by the user, shorten the sampling interval duration of the front-mounted ambient light sensor, and improve the sampling rate, so that the front-mounted ambient light sensor can perform high-frequency sampling from closing to opening of the leather sheath. The principle that the specific hall sensor senses that the leather sheath is opened refers to the detailed description of the hall sensor, and is not repeated herein.
The value of the first sampling period may be specifically set according to an actual use requirement, and the embodiment of the present application is not limited. Illustratively, the default sampling period (i.e., the first sampling period) duration of the front-facing ambient light sensor is typically 350ms, i.e., once every 350ms.
The sampling period of the ambient light sensor is equal to the integration time plus the waiting time after the integration is completed, so that the value of the second sampling period can be specifically reduced by the integration time and/or the waiting time after the integration is completed according to the actual use requirement, or the ambient light device is set to a short integration mode to achieve a higher-frequency sampling target.
Illustratively, in the prior art, the integration time is generally configured to be 50ms, and the integrated latency is generally configured to be 300ms, and accordingly the sampling period is 350ms. In the embodiment of the present application, regarding the setting of the wait time after completion of integration, the wait time supported by the device may be set in the range of 0ms to the maximum wait time supported by the device. The reason is that: firstly, whether a function of waiting after integration is started can be set, and if the function is not started, the waiting time is 0ms; second, if the function is turned on, the latency can only be set to an integer multiple of the shortest latency supported by the device, and limited by the maximum setting. For example, the integration time may be set to 50ms, and the latency after integration may be set to 0ms, in which case, the sampling period is equal to the integration time, both of which are 50ms, which is equivalent to increasing the sampling frequency. For convenience of description, the following description will be given by taking a 50ms high frequency sampling period as an example.
Illustratively, the ambient light device may be set to a short integration mode, in which the integration time may range from several microseconds to twenty-several ms, and the specific upper limit may be configured by driving of the ambient light sensor, which is not limited in the embodiment of the present application. For example, in the normal integration mode, the integration time of the ambient light device is 50ms, and when the ambient light device is set to the short integration mode, the integration time becomes 30ms, which is equivalent to raising the sampling frequency.
It should be noted that, in this embodiment of the application, in the opening process of the leather sheath, an included angle (also referred to as a leather sheath opening and closing angle) between the leather sheath and the front screen of the mobile phone becomes gradually larger, for example, the included angle may be generally changed from 0 degree to 360 degrees, and accordingly, as the included angle becomes larger, the shielding degree of the leather sheath on the ambient light becomes gradually smaller. The degree of shielding of the display screen of the mobile phone by the holster when the mobile phone and the holster are in different angular relationships is exemplarily described below with reference to the top view of the mobile phone and the holster shown in fig. 4.
As shown in fig. 4 (a), when the holster is closed, the angle α =0 ° between the front screen of the mobile phone and the holster, and at this time, the holster completely blocks the ambient light, so the ambient light sensor of the mobile phone cannot sense the ambient light. As shown in fig. 4 (b), when the leather sheath is opened, the included angle between the mobile phone and the leather sheath is 0 ° < α <180 °, and at this time, as the included angle α between the front screen of the mobile phone and the leather sheath increases, the shielding degree of the leather sheath to the ambient light gradually decreases, and the ambient light sensor of the mobile phone can sense the ambient light. As shown in fig. 4 (c), when the holster is opened, the angle α =180 ° between the front screen of the mobile phone and the holster, and at this time, the holster does not block the external ambient light.
It can be understood that under the condition that the opening angle of the leather sheath is smaller than 90 degrees, the leather sheath has a large influence on the front-mounted ambient light sensor, and high-frequency sampling can be triggered during the process, so that the effectiveness and the accuracy of sampling data are improved; and under the condition that the opening and closing angle of the leather sheath is greater than or equal to 90 degrees, the influence of the leather sheath on the front-mounted ambient light sensor becomes smaller and can be ignored.
In practical use, if the time for opening the leather sheath is hundreds of ms, the opening and closing angle of the leather sheath can reach more than 90 degrees in hundreds of ms when the user opens the leather sheath. By means of the scheme, more accurate ambient light brightness values can be acquired through high-frequency sampling in a short time period of hundreds of ms when the user opens the leather sheath.
In the embodiment of the application, when the leather sheath is opened, if the distance between the hall sensor and the magnetic element on the leather sheath exceeds the preset distance threshold, the hall sensor detects a hall far-away event, so that the leather sheath can be known to be in an opening process state, and then high-frequency sampling of ambient light can be started and the brightness value of the first frame can be predicted. It should be noted that, in the embodiment of the present application, the setting position of the hall sensor on the electronic device may have a certain influence on the brightness value prediction of the first frame.
For example, taking an electronic device as a mobile phone as an example, as shown by a dashed line A1A2 in (a) of fig. 5, the side is a right edge of the mobile phone, and if the hall sensor is disposed at a position on the mobile phone close to the right edge of the mobile phone, when the holster is opened, the distance between the hall sensor and the magnetic element on the holster is increased greatly, and the distance can quickly exceed a preset distance threshold, so that the hall sensor can quickly sense a hall far event, and thus, high-frequency sampling of ambient light and prediction of a first frame brightness value are started more quickly, which is beneficial to completing high-frequency integration sampling for more times, and reliability of prediction can be improved.
For another example, as shown by a dashed line B1B2 in fig. 5 (B), the side is a left side edge of the mobile phone, the leather case is usually opened or closed along the left side edge of the mobile phone, and if the hall sensor is disposed on the mobile phone at a position close to the left side edge of the mobile phone, when the leather case is opened, the distance between the hall sensor and the magnetic element on the leather case increases slightly and exceeds the preset distance threshold value relatively slowly, so that the hall sensor senses a hall distant event with a relatively large time delay, the high-frequency sampling starts to be delayed, and accordingly, the number of high-frequency sampling times is reduced, and thus the reliability of prediction is relatively reduced.
Optionally, in this embodiment of the application, when the ambient light sensor driver receives a command (referred to as a first frame command for short) that the brightness acquisition module of the display engine instructs to report a brightness value of a first frame, if the ambient light sensor driver is in a high-frequency sampling process, the ambient light sensor driver may report the predicted brightness value of the first frame to the brightness acquisition module of the display engine after completing the high-frequency sampling and predicting the brightness value of the first frame.
And S102, determining a first ambient light brightness value according to multi-frame brightness value data sampled by the ambient light sensor in a second sampling period.
Alternatively, if the valid time is set for the brightness value of the first frame, the electronic device may perform high-frequency sampling within the valid time to obtain a plurality of sampled data. Further, a first ambient light brightness value for a brightness value of the display screen when the display screen is on may be determined based on the plurality of sampled data. The value of the effective time can be specifically set according to actual use requirements, and the embodiment of the application is not limited; for example, the effective time may be 200ms. It can be understood that in the high-frequency sampling mode, the time for sampling multi-frame brightness value data is controlled within the valid time to ensure the data validity.
For example, take the sample period shortened from 350ms to 30ms as an example:
when the sampling period is 350ms, at most 1 sampling can be completed within 200ms of the effective time, a frame of brightness value data is obtained, and the frame of brightness value data is determined as a first ambient light brightness value.
When the sampling period is 30ms, sampling can be completed for 6 times within 200ms of the effective time to obtain six frames of brightness value data, that is, six frames of brightness value data can be obtained within 200ms of the sampling time allowed by the bright screen response timeout. Accordingly, the first ambient light luminance value may be determined from the six-frame luminance value data.
For another example, take the sampling period shortened from 350ms to 50ms as an example:
when the sampling period is 50ms, the sampling can be completed for 4 times within 200ms of the effective time to obtain four frames of luminance value data, that is, the four frames of luminance value data can be obtained within 200ms of the sampling time allowed by the bright screen response timeout. Accordingly, the first ambient light luminance value may be determined from the four-frame luminance value data.
Therefore, the multi-frame brightness value data are obtained by performing high-frequency sampling when the leather sheath is opened, and the environment light brightness value is calculated by adopting the logic or compensation algorithm provided by the scheme of the application based on the multi-frame brightness value data, so that the actual light brightness of the environment where the current electronic equipment is located can be more accurately represented. A possible implementation of how to determine the first ambient light luminance value from the multi-frame luminance value data after the multi-frame luminance value data is obtained by high-frequency sampling is explained below by way of example.
Exemplarily, the sampling period is shortened from 350ms to 50ms, and it is assumed that 3 times of sampling are completed within 200ms of the valid time: the first time sampling data is a first frame brightness value, the second time sampling data is a second frame brightness value, and the third time sampling data is a third frame brightness value.
For convenience of description, the luminance value of the first frame is denoted as lux1, the luminance value of the second frame is denoted as lux2, and the luminance value of the third frame is denoted as lux3. The brightness values of multiple frames obtained by high-frequency sampling may be compared (for example, lux2 and lux3 may be compared), and then the brightness value of the ambient light to be reported this time is determined according to the comparison result, where the specific determination process is as follows:
on the one hand, if lux3 is less than or equal to lux2, the maximum value of the three times of sampled data may be used as the ambient light brightness value to be reported this time (the first ambient light brightness value to be determined above). For example, if the maximum value of the three sampled data is lux1, the lux1 may be used as the brightness value of the ambient light to be reported this time.
On the other hand, if lux3 is greater than lux2, the difference between lux3 and lux2 may be taken as the slope of the two sample changes (denoted as K). That is, the slope K can be calculated from lux3-lux 2. If the slope K is greater than 0, the slope K is a positive slope. In some embodiments, for the case of the positive slope, compensation calculation may be performed according to the slope, and accordingly, subsequent sampling may be omitted, and the ambient light brightness value to be reported this time may be obtained quickly. Wherein, the slope K can be used as a linear compensation parameter.
Of course, the compensation scheme herein may also select the most recent data to perform compensation calculation according to other fitting formulas such as a polynomial curve, for example, a unary quadratic polynomial fitting curve is used for compensation. For convenience of description, the linear compensation of the unary first-order polynomial is described as an example.
For example, assuming that 4 sampling can be completed within 200ms of the valid time, it is usually necessary to determine the ambient light brightness value to be reported after the 4 th sampling is finished and the collected data is stable. However, in actual implementation, prediction can be performed in advance when a certain condition is satisfied; for example: if after 3 times of sampling are continuously completed, the slope K corresponding to the three times of sampling data is found to be a positive slope through calculation, and the lux1, the lux2 and the lux3 are in a linear increasing trend, the last sampling can be omitted. Then, the ambient light brightness value to be reported can be calculated through the three times of sampling data, for example, the calculated ambient light brightness value is K × (4-3) + lux3.
It should be understood that the above manner of calculating the ambient light brightness by using the high-frequency sampling data is only an exemplary list, and may be determined according to actual use requirements, and the embodiments of the present application are not limited thereto.
In the embodiment of the application, when the multi-frame sample data acquired within the sampling time allowed by the bright screen response timeout meets the condition of the forward linear slope, the multi-frame sample data and the forward slope K can be used for performing compensation calculation to predict the actual ambient light brightness value.
According to the scheme, when the ambient light brightness value is sampled, the sampling times allowed by bright screen response overtime are fully utilized, and multi-frame sampling data are obtained through high-frequency sampling. And then based on multi-frame sampling data, prediction is carried out according to the forward linear slope, an environment light brightness value closer to the real environment light brightness can be obtained, and the accuracy of environment light brightness prediction is improved.
S103, lighting a display screen of the electronic device according to the first ambient light brightness value.
In the embodiment of the application, after the electronic device acquires the first environment brightness value, the electronic device can set the first environment brightness value as the brightness value when the display screen is bright, so that when the leather sheath is opened, the display screen is automatically bright, and the brightness when the display screen is bright is basically consistent with the actual environment brightness.
Through the scheme, the environment brightness predicted by the first frame is ensured to be close to the real brightness of the external environment as far as possible, the screen is lightened according to the brightness value of the first frame, the brightness of the display screen is consistent with the brightness of the actual environment, the influence of the brightness change of the screen on user experience after the screen is lightened is avoided, the situation that the display screen is too dazzling due to too high display brightness in a dark environment can be avoided, the situation that the display screen is not clearly seen due to too low display brightness in a brighter environment can be avoided, and the user experience is improved.
Optionally, with reference to fig. 3, as shown in fig. 6, after step S102, the screen brightness adjustment method provided in the embodiment of the present application further includes step S104 described below.
And S104, restoring the sampling period of the ambient light sensor from the second sampling period to the first sampling period.
In the embodiment of the present application, after the ambient light is sampled at a high frequency and the brightness value of the first frame (i.e., the first ambient light brightness value) is reported, the sampling period of the ambient light sensor may be restored from the second sampling period (e.g., 50 ms) to the first sampling period (e.g., 350 ms).
It should be noted that after the display engine acquires the first frame luminance value data reported by the ambient light sensor through the luminance acquisition module, the bright screen response timeout limit (e.g., 200 ms) may be cancelled.
Optionally, after the brightness value data of the first frame is reported, the brightness acquiring module of the display engine may also periodically (every 350 m) receive the brightness value of the ambient light reported by the ambient light sensor and the timestamp corresponding to the brightness value of the ambient light reported by the ambient light sensor. Correspondingly, the display engine may perform screen brightness adjustment management according to the ambient light brightness value reported periodically and based on a dimming algorithm: for example, to maintain the current brightness, or to dim the screen brightness. The following describes an exemplary method of adjusting brightness after a screen is lit, with reference to the drawings.
Referring to fig. 6, as shown in fig. 7, after step S103, the screen brightness adjustment method provided in the embodiment of the present application further includes steps S105 to S108 described below.
And S105, the ambient light sensor performs multiple sampling in the first sampling period to obtain a plurality of frames of second ambient light brightness values.
In this case, reporting the lux value once every time the ambient light sensor collects the ambient light brightness lux value; that is, the ambient light sensor performs sampling many times, and reports the sampling many times.
After the first frame of brightness value data is reported, the ambient light sensor samples in a conventional default sampling period, and reports the second ambient light brightness value obtained by collection to the ambient light sensor driver, and further reports to the brightness acquisition module in the display engine of the electronic device. The multi-frame second environment brightness value may refer to brightness value data of a second frame after the first frame brightness value data is reported and brightness value data of other frames reported subsequently.
And S106, judging whether the multi-frame second environment brightness value is within a preset threshold range.
When the second ambient light brightness values of the plurality of frames are all within the preset threshold range, or when the average value of the second ambient light brightness values of the plurality of frames is within the preset threshold range, the following step S107 is continuously executed. Otherwise, the following step S108 is continuously performed.
The preset threshold range includes an upper threshold and a lower threshold, and the value of the preset threshold range may be determined according to actual use requirements. The above-mentioned average value of the second environment brightness values of the multiple frames in the preset threshold range means that the average value of the second environment brightness values of the multiple frames is less than or equal to the upper threshold and greater than or equal to the lower threshold. The fact that the average value of the second environment brightness values of the multiple frames is not within the preset threshold range means that the average value of the second environment brightness values of the multiple frames is larger than the upper threshold or smaller than the lower threshold.
The method and the device for calculating the brightness value of the second environment can further take the maximum value and the minimum value in the multi-frame second environment brightness value, and calculate the average value of the maximum value and the minimum value to serve as the average value of the multi-frame second environment brightness value. The method can be determined according to actual use requirements, and the embodiment of the application is not limited.
In the embodiment of the present application, after the display screen is lit up according to the first frame luminance value data, the following dimming algorithm may be employed: comparing one or more frames of brightness value data acquired in a first sampling period (for example, 350 ms) with a preset threshold, and deciding whether dimming processing needs to be performed on the brightness of the display screen according to a comparison result: and if the current brightness exceeds the threshold range, dimming is carried out, otherwise, the current brightness is kept and dimming is not carried out. For a detailed description, see steps S107 and S108 described below.
S107, keeping the brightness of the display screen unchanged.
In step S107, when the average value of the second ambient light brightness values of the plurality of frames is within the preset threshold range, this indicates that the external ambient brightness of the electronic device does not change significantly after the screen is turned on, so that the current brightness can be kept unchanged.
And S108, adjusting the brightness of the display screen according to the second ambient brightness values of the plurality of frames.
In step S108, when the second ambient brightness values of the multiple frames are not within the preset threshold range, which indicates that the ambient brightness of the electronic device after the screen is turned on changes significantly, the brightness of the display screen needs to be adjusted to be consistent with the actual ambient brightness.
Illustratively, the ambient light sensor samples the brightness values of a plurality of frames, and performs data analysis on the data of the plurality of frames:
on the one hand, if the multi-frame data falls or rises frame by frame according to a certain threshold, it indicates that the multi-frame data is currently in the dimming process, and in this case, a new dimming target value may not be decided.
On the other hand, after the acquired multi-frame data is stable, if the brightness value of the multi-frame exceeds the preset dimming threshold range, the brightness of the display screen is adjusted according to the brightness value of the multi-frame. Specifically, if the average value of the multi-frame data is lower than the lower threshold, which indicates that the brightness of the external environment where the electronic device is located may be reduced after the electronic device is turned on, the brightness of the display screen may be reduced, i.e., the electronic device is dimmed; if the average value of the data of the plurality of frames is higher than the upper limit of the dimming threshold, which indicates that the brightness of the external environment where the electronic device is located may increase after the screen is turned on, the brightness of the display screen may be turned up, i.e., turned on. As for the adjustment amplitude, the adjustment amplitude can be specifically set according to the actual use requirement, and the embodiment of the application is not limited.
It should be noted that, in the scheme of the present application, through accurate first frame prediction, it can be ensured that the brightness of the display screen after the screen is lit is consistent with the brightness of the actual environment, so that no significant brightness change occurs on the screen after the screen is lit. That is to say, after the screen is lighted, if the external environment luminance that electronic equipment is located does not change, then the dimming algorithm can not trigger and adjust luminance, and screen luminance will remain unchanged, can avoid like this that the screen takes place the bright and dark change that is showing after the bright screen to user experience can be promoted.
In some embodiments, the scheme of the application can ensure that in a dark environment, the brightness of the display screen when being lighted is consistent with the brightness of an actual dark environment, so that the screen does not have obvious brightness change after being lighted (for example, the screen is lightened from being bright and dark).
In some embodiments, through the solution of the present application, it may be ensured that in a brighter environment, the brightness of the display screen when being lighted is consistent with the brightness of an actually brighter environment, so that the screen does not have a significant brightness change after being lighted (for example, the screen changes from dark to bright).
Therefore, compared with the scheme that the ambient light sampling is always carried out by the ambient light sensor at the fixed sampling rate in the prior art, the sampling rate is improved when the leather sheath is detected to be opened from closed, the prediction compensation algorithm is adopted, the brightness value approximate to the actual ambient brightness can be quickly obtained, the brightness when the display screen is bright in the opening process of the leather sheath is consistent with the actual ambient brightness, the problem that the screen is obviously changed in brightness after being bright or the bright screen is obviously delayed can be avoided, the phenomenon that the display screen is too high in display brightness in a dark environment and too dazzling can be avoided, or the phenomenon that the display screen is too low in display brightness and is not clearly seen in a bright environment and the user experience is improved.
A technical architecture corresponding to the screen brightness adjustment method when the display screen is lighted provided by the embodiment of the present application will be described below by using fig. 8; in a scene that the display screen is lighted, the Hall sensor, the ambient light sensor and other functional modules perform information interaction, and self-adaptive adjustment of screen brightness is achieved.
It should be noted that, the embodiments of the present application will be discussed based on the following technical architectures. It should be noted that, for convenience of logic description, only the schematic block diagram is used to describe the service logic relationship, and the specific location of the technical architecture where each service is located is not strictly expressed.
As shown in fig. 8, the processor in the electronic device is a multi-core processor, which may include: an Application Processor (AP) processor and a sensor co-processor (SCP) processor. Wherein the user interface and the application program are both run on the AP processor. The SCP processor can assist the AP processor in performing events related to sensors (e.g., ambient light sensor, hall sensor), etc.
It should be noted that only the AP processor and the SCP processor are shown in fig. 8. In practical applications, the multi-core processor may also include other processors. For example, when the electronic device is a mobile phone, the multi-core processor may further include a Baseband (BP) processor that runs mobile phone radio frequency communication control software and is responsible for sending and receiving data. The specific number of processors included in the multi-core processor may be determined according to actual use requirements, and the embodiments of the present application are not limited.
The AP processor in fig. 8 only shows the content related to the embodiment of the present application, and the implementation of the embodiment of the present application needs to rely on: an application layer (application), a framework layer (framework), a Hardware Abstraction Layer (HAL), a kernel layer (kernel), and a hardware layer (hardware). The frame layer can comprise a power management module, a brightness acquisition module and a sensor service module; the hardware abstraction layer may include an ambient light sensor interface, a hall sensor interface, and an organic light-emitting diode (OLED) interface; the hardware layer comprises an OLED device; the inner core layer can comprise an inner core node and an OLED drive, the inner core node is used for storing a light-emitting brightness value of the OLED device, and the OLED drive is used for acquiring the light-emitting brightness value from the inner core node and driving the OLED device to emit light according to the brightness value. It should be noted that various applications exist in the application layer of the AP processor, and are not shown in fig. 8 for simplicity of illustration.
The SCP processor in fig. 8 can be understood as a sensor control center (sensor hub) which can control the sensors and process the data related to the sensors. The implementation of the embodiment of the present application needs to rely on the following steps in the SCP processor: a co-application layer (hub APK), a co-framework layer (hub FWK), a co-driver layer (hub DRV), and a co-hardware layer (hub hardware). The co-application layer comprises an ambient light sensor application and a Hall sensor application; the auxiliary driving layer comprises an ambient light sensor driver and a Hall sensor driver; the co-hardware layer includes an ambient light sensor and a hall sensor. The Hall sensor application can call an interface provided by the Hall sensor drive, and the Hall sensor is triggered to detect whether the leather sheath is opened or closed. The ambient light sensor application may invoke an interface provided by the ambient light sensor driver to trigger the ambient light sensor to collect the ambient light at the first sampling period or the second sampling period.
As shown in fig. 8, the method for adjusting screen brightness when a display screen is lighted according to the embodiment of the present application may include the following steps S1 to S19. Accordingly, fig. 9 is a module interaction timing diagram of a screen brightness adjustment method when a display screen is lighted according to the embodiment of the present application.
Step S1, when a Hall sensor in an SCP processor detects that a leather sheath is opened from closed, the Hall sensor reports a Hall far-away event to the Hall sensor drive.
Wherein, the Hall away event refers to the event that the Hall sensor goes from closing to away.
Optionally, in this embodiment of the present application, based on a mapping relationship of a service application scenario, a hall far event may be associated with a bright-screen trigger event.
It can be understood that when the hall sensor in the electronic device is far away from the magnetic element in the holster from contact, that is, when the hall sensor is far away from the closed state, the holster is in the open state, and the hall sensor can sense the action of the holster from the closed state to the open state.
The Hall sensor drive can monitor the state change of the Hall sensor. After the hall sensor driving monitors that the hall sensor moves from closed to far, the step S2 and the step S5 are continuously executed. It should be noted that, the embodiment of the present application does not limit the execution sequence of step S2 and step S5, for example, step S2 may be executed first, and then step S5 may be executed; step S5 may be executed first, and then step S2 may be executed; step S2 and step S5 may also be performed simultaneously.
And S2, the Hall sensor driver sends a message to the ambient light sensor driver, and the message is used for informing the Hall of the distant event.
Wherein the ambient light sensor drive can listen for changes in state of the hall sensor drive. When the ambient light sensor driver monitors a hall far event, the ambient light sensor driver may start prediction of ambient light brightness, that is, trigger the ambient light sensor to perform high-frequency sampling, and the specific prediction mode is as follows in step S3 and step S4.
In some embodiments, the determination of when to initiate prediction of ambient light level may be based on a number of samples and/or time.
For example, in a case where the sampling interval duration is a certain duration, for example, the sampling interval duration is 50ms, the sampling number may be used to calculate the time consumed from the hall far triggering high frequency sampling, for example, if the sampling number is 3 times, 150ms is consumed, and after 150ms from the hall far timing, the prediction of the ambient light brightness may be started.
As another example, the system time T1 may be obtained when the hall is far away, and the system time T2 may be obtained again each time the sampled data arrives, and then it may be determined whether or not the prediction of the ambient light brightness needs to be started based on the time difference T2-T1. For example, when the time difference T2-T1 is greater than or equal to the preset time duration of 200ms, the prediction of the ambient light level may be started.
And S3, the ambient light sensor is driven to issue a brightness acquisition command to the ambient light sensor, and the ambient light sensor is triggered to acquire the ambient light brightness value.
When the ambient light sensor driver monitors that the hall sensor is far away from the event, the ambient light sensor driver adjusts the ambient light sampling period from the first sampling period to a second sampling period (for example, 50 ms), that is, the sampling rate is increased, and a brightness acquisition command is issued to the ambient light sensor to instruct the ambient light sensor to sample at a high-frequency sampling rate.
In specific implementation, after the ambient light sensor driver monitors the hall sensor far event, a new sampling period (for example, 50 ms) may be written into a register corresponding to the ambient light sensor, and a brightness acquisition command is issued to the ambient light sensor to instruct the ambient light sensor to start brightness acquisition. Correspondingly, after receiving a brightness acquisition command issued by the ambient light sensor driver, the ambient light sensor reads the sampling period from the register, and then the ambient light sensor starts ambient light brightness acquisition with the sampling period.
It should be noted that, since the ambient light sensor driver directly receives the hall distant event from the hall sensor driver, the ambient light sensor driver responds to the hall distant event, and can directly perform the ambient light brightness prediction. After the ambient light brightness prediction is started, the ambient light sensor driver receives a first frame command issued by the brightness acquisition module of the display engine, where the first frame command is used to instruct the ambient light sensor driver to report a first frame brightness value.
And S4, responding to a brightness acquisition command, acquiring an ambient light brightness value at a high sampling rate by the ambient light sensor, and reporting the acquired ambient light brightness value to the ambient light sensor for driving.
The ambient light sensor may perform high-frequency sampling at an adjusted high sampling rate (for example, a sampling period is 50 ms) within an effective time (for example, 200 ms), acquire multi-frame luminance value data, and report the data to the ambient light sensor driver.
Further, after the ambient light sensor driver receives the plurality of frames of brightness values, the ambient light sensor driver may calculate an ambient light brightness value according to the plurality of frames of brightness values. For the calculation of the ambient light brightness value, see the above detailed description of the calculation of the ambient light brightness value.
The ambient light brightness value obtained by calculation is used as the brightness value of the first frame when the display screen is lighted, and is subsequently reported to a brightness acquisition module of the display engine by the drive of the ambient light sensor. It is described in advance that when the ambient light sensor driver reports the calculated first frame brightness value, the ambient light sensor driver reports the first frame brightness value to the brightness acquisition module of the display engine only after receiving the first frame command issued by the brightness acquisition module of the display engine, and the specific process is described in the following steps. It should be noted that after the prediction is completed and the predicted brightness value of the first frame is reported to the AP side, the brightness value of the environment light of the subsequent sampling is reported according to the conventional flow, and whether the command of the first frame is received is not considered.
Alternatively, the luminance value may be expressed in lux (lux) as a unit of illuminance. For example, the luminance values may be expressed in context as lux values or lux data.
It is understood that the above steps S2-S4 illustrate the first frame luminance value prediction process: after the ambient light sensor drive monitors a Hall far-away event, the ambient light sensor drive indicates the ambient light sensor to collect an ambient light brightness value, and a first frame brightness value when the display screen is lightened is predicted according to the collected ambient light brightness value.
And S5, the Hall sensor drive reports the Hall far-away event to the Hall sensor application.
And S6, the Hall sensor application reports the Hall far event to a Hall sensor interface in the AP processor.
And S7, reporting the Hall far-away event to the power management module by the Hall sensor interface through the sensor service module.
And S8, the power supply management module sends the screen-on event to a brightness acquisition module of the display engine to indicate the brightness acquisition module to acquire the brightness value of the first frame.
The power management module can monitor the state change of the Hall sensor. On one hand, when the power management module monitors a hall far-away event, the power management module can judge the opening action of the leather sheath, trigger a screen-lighting event and transmit the screen-lighting event to a brightness acquisition module of the display engine, and the brightness acquisition module can also be called an automatic dimming module. This is the bright screen scene to which the scheme of the present application relates. On the other hand, when the power management module monitors an event that the Hall sensor is closed from far away, the power management module can judge the action of closing the leather sheath, trigger the display screen to turn off the screen, transmit the screen turn-off event to the display engine, and clear the state.
And S9, the brightness acquisition module issues a batch processing (batch) command to the ambient light sensor interface through the sensor service module, wherein the batch command is used for indicating to acquire the brightness value of the first frame.
The brightness acquiring module issues a batch command (the batch command may also be referred to as a batch event or a first frame command) to the ambient light sensor driver on the SCP side, so as to acquire a first frame brightness value. The specific batch command issuing process refers to the description of step S9-step S12.
Optionally, the brightness obtaining module starts timing when the brightness obtaining module issues the batch command, and if the brightness obtaining module obtains the first frame brightness value within the effective time, the first frame brightness value may be used as the brightness value when the display screen is bright.
Step S10, the ambient light sensor interface notifies the ambient light sensor application in the SCP processor of the batch command.
Step S11, the ambient light sensor application notifies the ambient light sensor drive of the batch command.
And S12, after the ambient light sensor drive monitors the batch command, the ambient light sensor reports the predicted brightness value of the first frame to the ambient light sensor application.
It can be understood that, as described above, the brightness value of the first frame obtained by the driving of the ambient light sensor needs to be reported timely and accurately, for the following reasons: if the brightness value of the first frame is not reported timely, the display screen is lighted for obvious delay after the leather sheath is opened by the user, and the user experience is influenced. If the report of the brightness value of the first frame is inaccurate, the problem of screen flashing of the display screen which is dark first and then bright can occur in the leather sheath mode, and the influence on the user experience is great.
Correspondingly, the embodiment of the application provides a corresponding solution: when the action of opening the leather sheath by a user is detected, the sampling rate of the ambient light sensor is immediately triggered to be increased, the ambient light sensor performs high-frequency sampling within effective time to obtain multi-frame brightness value data, and the first-frame brightness value is calculated according to the multi-frame brightness value data, so that the prompt reporting of the first-frame brightness value can be ensured, and the reporting is accurate.
Referring again to fig. 8 and 9, in the embodiment of the present application, the ambient light sensor driver in the SCP processor not only listens for state changes of the hall sensor driver, but also listens for batch commands synchronously. On one hand, when the ambient light sensor drives and monitors that the Hall sensor is far away from the Hall sensor from closing, the prediction of the ambient light brightness value is started; on the other hand, after the ambient light sensor driver receives the batch command, if the brightness value prediction of the first frame in the period is completed, the ambient light sensor driver may respond to the batch command, and the ambient light sensor driver may directly report the predicted brightness value of the first frame to the brightness acquisition module.
Optionally, in this embodiment of the present application, after the ambient light sensor driver listens to the batch command, if the prediction is not completed, the brightness value of the first frame is not returned before the prediction is not completed. Specifically, when the ambient light sensor driver receives the batch command, if the ambient light sensor driver is in the high-frequency sampling process, the ambient light sensor driver may report the predicted first frame brightness value to the brightness acquisition module after the prediction of the first frame brightness value is completed.
It should be noted that, under the condition that the luminance obtaining module has the valid time for waiting for the luminance value of the first frame, the ambient light sensor driver may return the luminance value of the first frame to the luminance obtaining module before the valid time is overtime, so as to ensure the real-time validity of the luminance value of the first frame.
Further, after the ambient light is sampled by high frequency and the brightness value of the first frame is reported, the sampling period of the ambient light sensor may be restored from the high frequency sampling period to a default sampling period (e.g., 350 ms).
For a specific process of reporting the brightness value of the first frame, reference is made to the following description of step S13 and step S14.
And S13, reporting the received brightness value of the first frame to an ambient light sensor interface by the ambient light sensor application.
And S14, reporting the brightness value of the first frame to a brightness acquisition module through an ambient light sensor interface through sensor service.
Through the steps S9 to S14, the brightness obtaining module obtains the brightness value of the first frame when the display screen is lighted.
And S15, the brightness acquisition module sends the received brightness value of the first frame to the power management module.
In the embodiment of the application, the brightness obtaining module obtains the brightness value of the first frame, and then transmits the brightness value of the first frame to the power management module, and the brightness value can represent the actual environment brightness, so that the power management module can adopt the brightness value to set the brightness corresponding to the display screen, so as to ensure that the display screen is lightened according to the brightness consistent with the actual environment brightness, and avoid that a user feels that the display screen is changed in brightness or feels that the display screen is too dull, thereby improving the user experience.
The process of how to adjust the screen point brightness according to the brightness value of the first frame refers to the description of step S18 to step S21.
And S16, the power management module sends the received brightness value of the first frame to an OLED interface.
And S17, storing the received first frame brightness value to the kernel node by the OLED interface.
And S18, the OLED driver acquires the brightness value of the first frame from the kernel node.
In actual implementation, the OLED driver may monitor whether data stored in the core node changes, and after monitoring that the data in the core node changes, obtain currently stored data, that is, a first frame brightness value, from the core node, where the first frame brightness value is used to adjust the brightness of the display screen.
And S19, the OLED drive sends the acquired first frame brightness value to the display subsystem, the display subsystem lights the display screen, and the brightness value of the display screen is set as the first frame brightness value.
Through the steps S17 to S21, after the power management module obtains the brightness value of the first frame, the brightness of the electronic device when the display screen is lighted may be set, so that the brightness of the display screen is consistent with the brightness of the environment, thereby avoiding a phenomenon of significant brightness change of the screen after the screen is lighted or a problem that the screen is obviously delayed, and thus improving user experience.
The above describes the flow of the method for adjusting the screen brightness when the display screen is lighted, with reference to a schematic diagram of a technical architecture, and a possible implementation manner of the ambient light brightness prediction algorithm provided in the embodiment of the present application is described below with reference to fig. 10 based on the above technical architecture.
Fig. 10 is a flow chart of a business algorithm of an ambient light prediction algorithm. As shown in fig. 10, the ambient light brightness prediction algorithm provided in the embodiment of the present application includes steps S201 to S212 described below.
S201, the ambient light sensor drives and monitors the Hall event from closing to far.
S202, recording a time stamp T when the Hall starts to get away 0 。
At S203, the ambient light sensor drive is adjusted to a high sampling rate (e.g., sampling period t =50 ms).
Illustratively, assuming that the ambient light sensor driver initially sets the ambient light sampling period to 350ms, when the ambient light sensor driver listens for a hall close event, the ambient light sensor driver adjusts the ambient light sampling period from 350ms to 50ms.
In particular implementations, the ambient light sensor driver may write an updated sampling period (e.g., 50 ms) into a register corresponding to the ambient light sensor, and the ambient light sensor may then read the sampling period from the register.
And S204, driving the ambient light sensor to sample according to a high sampling rate by the ambient light sensor, and starting interruption after each sampling is finished.
If the start is interrupted, the current sampling is stopped, and the following steps S205 and S206 are executed, and after the execution is completed, if the condition in S206 is not satisfied, the ambient light sensor may continue to sample at the high sampling rate.
S205, increasing the sampling count cnt; updating the time stamp T of each interrupt B And the lux value L obtained by sampling B (ii) a Updating the maximum sampled lux value L max 。
S206, judging whether the cnt value is more than or equal to the preset times or T B -T 0 Whether it is greater than or equal to a preset time period.
The preset duration may be an effective duration, for example, 200ms.
The preset number may be a sampling number allowed by the bright screen response timeout. For example, when the sampling period is 50ms, 4 samples can be completed within 200ms of the valid time, i.e., the number of samples allowed by the time-out of the bright screen response is 4.
In some embodiments, the determination may be made by the number of samplings: if the cnt value is greater than or equal to the predetermined number of times, the following step S207 is continuously performed; if the cnt value is less than the predetermined number of times, the process returns to the step S204.
In some embodiments, the determination may be made by sampling time: if T B -T 0 If the duration is greater than or equal to the preset duration, the following step S207 is continuously executed; if T B -T 0 If the time length is less than the preset time length, the step S204 is executed again.
S207, judging the latest sample L B Whether greater than last sample L A 。
If the latest sample L B Greater than last sample L A Then, the following step S209 is continuously executed. If the latest sample L B Less than or equal to the last sample L A Then, the process proceeds to step S208 described below.
S208, finally reporting the brightness value y = L max 。
After S208, steps S211 and S212 described below are continuously performed.
S209, calculating a linear slope value K = (L) B -L A )/((T B -T A ) T) and calculating the theoretical number of samples n = (T) B -T 0 )/t。
Wherein L is B Representing the latest sampled luminance value, L A Representing the last sampled luminance value, T B Representing the timestamp, T, corresponding to the latest sampled luminance value A Representing the timestamp corresponding to the last sampled luminance value.
S210, linearly predicting an ambient light brightness value y = K (m-n) + L B And m is the theoretical upper limit number of times from high-frequency sampling to stable sampling.
Wherein, LB is used as a reference value of prediction, K (m-n) is used as a predicted increment, and the sum of the reference value and the increment is used as the brightness value of the linear prediction environment light.
S211, the ambient light sensor driving is restored to the normal sampling rate (e.g., the sampling period is 350 ms).
And S212, the ambient light sensor is driven to report the brightness prediction result value y of the first frame to the AP side.
It should be noted that, in the above embodiment, when it is determined that any one of the sampling time and the sampling frequency is out of limit, the start prediction may be determined, and the reliability of the luminance prediction may be improved.
Meanwhile, when the final result predicted according to the maximum value is lower than a certain brightness threshold (for example, lower than 10 lux), it indicates that the environment where the mobile phone is located is dark. In this case, the maximum value of the plurality of sampling brightness values may not be selected as the first frame data to be reported; optionally, the median lux of the lux sampling values of the last several frames can be selected as the first frame data of the report.
It should be further noted that, in the above embodiment, when calculating the slope, the difference between the brightness values of adjacent samples is divided by the theoretical number of samples of adjacent time stamps. It is considered that in the saturation gain (gain) scenario, the time stamp of the adjacent sampled luminance value may not be exactly incremented by the sampling period, since the value of the saturation gain may be discarded and not used. For example, in strong sunlight, a saturated tone gain scenario may be triggered when the holster is opened from a snap-fit.
In the embodiment of the present application, a linear prediction algorithm is exemplarily used, and in practical implementation, other non-linear prediction algorithms, such as a unitary polynomial prediction algorithm, may also be used according to adjacent sampling points. It should be understood that the above linear prediction algorithm is only an example, and the prediction algorithm is not limited in the embodiments of the present application.
Compared with the prior art, the sampling rate is fixed, when the electronic equipment detects that the leather sheath is opened from closed, the sampling rate is improved, the prediction compensation algorithm is adopted, the brightness value approximate to the actual environment brightness can be quickly acquired, the brightness when the display screen is bright in the opening process of the leather sheath is consistent with the actual environment brightness, the problem that the bright and dark change phenomenon or the bright screen is obviously delayed after the bright screen occurs to the screen can be avoided, and the user experience can be improved.
It should be noted that, in the embodiment of the present application, the above-mentioned solution of the present application may be applied to an under-screen ambient light sensor, and may also be applied to a non-under-screen ambient light sensor, and the relative position of the ambient light sensor with respect to the display screen is described below with reference to fig. 11 and 12.
Fig. 11 is a side position relationship diagram of a display screen and an ambient light sensor in an electronic device. The display screen of the electronic equipment comprises from top to bottom: glass apron (printing opacity), display module assembly and protection pad pasting, wherein, the upper and lower all be used for showing the position relation when electronic equipment's display screen upwards places here. The leather sheath is positioned above the display screen. Because the ambient light sensor need gather the ambient light of the top of electronic equipment's display screen, consequently, can dig some with the display module assembly in the display screen, ambient light sensor is placed to this part, is equivalent to ambient light sensor and places the below of the glass apron in the display screen in, is located the same layer with the display module assembly. It should be noted that the detection direction of the ambient light sensor coincides with the orientation of the display screen in the electronic device, where the orientation of the display screen in the electronic device is upward in fig. 11.
Fig. 12 is another arrangement of an ambient light sensor according to an embodiment of the present disclosure. And transferring the ambient light sensor from the lower part of the glass cover plate to the lower part of the OLED screen display module. This arrangement of the ambient light sensor does not sacrifice the display area. Because the OLED screen is a self-luminous display screen, when the OLED screen displays an image, the ambient light sensor positioned below the OLED screen not only collects real ambient light from the outside, but also can collect light corresponding to the image displayed by the OLED screen. Therefore, the ambient light collected by the ambient light sensor includes light emitted by the display screen and actual ambient light from the outside. Under the bright screen scene of display screen, can get rid of the ambient light that the display screen sent with the ambient light of ambient light sensor collection, obtain external true ambient light, guarantee that luminance when the bright screen of display screen is unanimous with actual environment luminance, just so can reach better visual effect, promote user experience.
Alternatively, in the embodiment of the present application, if the electronic device is provided with not only the front ambient light sensor but also the rear ambient light sensor, the front ambient light sensor and the rear ambient light sensor may be used in combination to acquire the actual ambient light brightness value data. Specifically, can be based on the luminance value that rearmounted ambient light sensor gathered, carry out appropriate compensation or correction to the luminance value that leading ambient light sensor gathered, in order to promote the accuracy of measuring actual ambient light luminance value, and then luminance when guaranteeing the display screen bright screen keeps unanimous with actual ambient light luminance, avoid behind bright screen the screen to take place the obvious light and shade change phenomenon or bright screen has obvious delayed problem, consequently can also avoid the display screen too high and too dazzling because of showing luminance in darker environment, or, avoid in brighter environment the display screen because show luminance too low and see unclear, thereby promote user experience.
It should be noted that the first frame brightness algorithm provided by the application is not only suitable for predicting the first frame brightness of a leather case opening scene, but also can be used for predicting the first frame brightness of other special scenes, for example, when a mobile phone is close to the ear to shield the ambient light due to call receiving and call making, the ambient light sampling value lux is lower, when the mobile phone is taken away from the ear, the screen needs to be bright due to the fact that the light is close to the ear, the first frame brightness value lux acquired at the moment is possibly lower due to previous shielding, and the problem that the probability is firstly dark and then bright under the scene occurs. In this case, when the brightness of the first frame is predicted, the condition that the SCP side receives the first frame command or receives the screen-on event as the trigger prediction can be adopted, and the corresponding prediction duration and the sampling frequency threshold are synchronously and dynamically updated, so that the problem of inaccurate report of the first frame in the scene can be solved.
In this embodiment of the application, the first frame prediction mechanism may further use a hall far event, a first frame command, a screen-up event, and a stored previous frame brightness value lux as trigger conditions. In practical implementation, when the luminance value lux of the previous frame is greater than a certain value, it is indicated that the ambient light is not blocked, and the steps of normal sampling and reporting are directly performed without performing luminance prediction. For another example, any one of the hall far event, the first frame command and the screen-on event may be used as a trigger condition for the first frame prediction, and accordingly when the prediction duration or the sampling count threshold satisfies the condition, the first frame brightness value lux starts to be predicted, and the predicted final result is reported.
It should also be noted that in the embodiments of the present application, "greater than" may be replaced by "greater than or equal to" and "less than or equal to" may be replaced by "less than", or "greater than or equal to" may be replaced by "greater than" and "less than" may be replaced by "less than or equal to".
The various embodiments described herein may be implemented as stand-alone solutions or combined in accordance with inherent logic and are intended to fall within the scope of the present application.
It is to be understood that the methods and operations implemented by the electronic device in the above method embodiments may also be implemented by a component (e.g., a chip or a circuit) applicable to the electronic device.
Embodiments of the methods provided herein are described above, and embodiments of the apparatus provided herein are described below. It should be understood that the description of the apparatus embodiment corresponds to the description of the method embodiment, and therefore, for the sake of brevity, details which are not described in detail above may be referred to the method embodiment.
The solutions provided by the embodiments of the present application have been described above primarily in terms of method steps. It is understood that, in order to implement the above functions, the electronic device implementing the method includes corresponding hardware structures and/or software modules for performing the respective functions. Those of skill in the art will appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as hardware or combinations of hardware and computer software. Whether a function is performed in hardware or computer software drives hardware depends upon the particular application and design constraints imposed on the solution. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present application.
In the embodiment of the present application, according to the method example, the electronic device may be divided into the functional modules, for example, each functional module may be divided corresponding to each function, or two or more functions may be integrated into one processing module. The integrated module can be realized in a hardware mode, and can also be realized in a software functional module mode. It should be noted that, the division of the modules in the embodiment of the present application is schematic, and is only one logical function division, and other feasible division manners may be available in actual implementation. The following description will be given taking the example of dividing each functional module corresponding to each function.
Fig. 13 is a schematic block diagram of a screen brightness adjusting apparatus 800 according to an embodiment of the present application. The apparatus 800 may be used to perform the actions performed by the electronic device in the above method embodiments. The apparatus 800 includes a hall sensing unit 810, an ambient light sensing unit 820, and a brightness adjusting unit 830.
A hall sensing unit 810 for sensing an operation of a user to open the holster installed at the device 800.
An ambient light sensing unit 820 for adjusting a sampling period from a first sampling period to a second sampling period in response to an operation of opening a holster by a user, the second sampling period being smaller than the first sampling period;
the ambient light sensing unit 820 is further configured to perform sampling at the second sampling period to obtain a first ambient light brightness value;
and a brightness adjusting unit 830 for lighting the display screen of the apparatus 800 according to the first ambient light brightness value.
Through this application scheme, when electronic equipment detected the leather sheath from closed to opening, improve the sampling rate of environment light sensor, and calculate or the prediction compensation according to the multiframe luminance value data that the high frequency sampling obtained, so can acquire the luminance value approximate with actual environment luminance fast, thereby can make luminance when the leather sheath is opened the in-process display screen bright screen unanimous with actual environment luminance, can avoid behind bright screen the light and shade change phenomenon that the screen is showing or bright screen has obvious delayed problem, thereby can promote user experience.
The apparatus 800 according to the embodiment of the present application may correspond to performing the method described in the embodiment of the present application, and the above and other operations and/or functions of the units in the apparatus 800 are respectively for implementing corresponding flows of the method, and are not described herein again for brevity.
Fig. 14 is a schematic structural diagram of an electronic device 900 provided in an embodiment of the present application. The electronic device 900 may include a processor 910, an external memory interface 920, an internal memory 921, a Universal Serial Bus (USB) interface 930, a charging management module 940, a power management unit 941, a battery 942, an antenna 1, an antenna 2, a mobile communication module 950, a wireless communication module 960, an audio module 970, a speaker 970A, a receiver 970B, a microphone 970C, an earphone interface 970D, a sensor module 980, a button 990, a motor 991, an indicator 992, a camera 993, a display 994, and a Subscriber Identification Module (SIM) card interface 995, etc. The sensor module 980 may include a pressure sensor 980A, a gyroscope sensor 980B, an air pressure sensor 980C, a magnetic sensor 980D, an acceleration sensor 980E, a distance sensor 980F, a proximity light sensor 980G, a fingerprint sensor 980H, a temperature sensor 980I, a touch sensor 980J, an ambient light sensor 980K, and a bone conduction sensor 980L.
It is to be understood that the illustrated structure of the embodiments of the present application does not constitute a specific limitation to the electronic device 900. In other embodiments of the present application, electronic device 900 may include more or fewer components than shown, or some components may be combined, some components may be split, or a different arrangement of components. The illustrated components may be implemented in hardware, software, or a combination of software and hardware.
A memory may also be provided in processor 910 for storing instructions and data. In some embodiments, the memory in the processor 910 is a cache memory. The memory may hold instructions or data that have just been used or recycled by processor 910. If the processor 910 needs to reuse the instruction or data, it can be called directly from memory. Avoiding repeated accesses reduces the latency of the processor 910, thereby increasing the efficiency of the system.
In some embodiments, processor 910 may include one or more interfaces. The interface may include an integrated circuit (I2C) interface, an integrated circuit built-in audio (I2S) interface, a Pulse Code Modulation (PCM) interface, a universal asynchronous receiver/transmitter (UART) interface, a Mobile Industry Processor Interface (MIPI), a general-purpose input/output (GPIO) interface, a Subscriber Identity Module (SIM) interface, and/or a Universal Serial Bus (USB) interface, etc. It should be understood that the connection relationship between the modules illustrated in the embodiment of the present application is only an exemplary illustration, and does not limit the structure of the electronic device 900. In other embodiments of the present application, the electronic device 900 may also adopt different interface connection manners or a combination of multiple interface connection manners in the above embodiments.
The charging management module 940 is used to receive charging input from a charger. The charger may be a wireless charger or a wired charger. In some wired charging embodiments, the charging management module 940 may receive charging input from a wired charger via the USB interface 930. In some wireless charging embodiments, the charging management module 940 may receive wireless charging input through a wireless charging coil of the electronic device 900. The charging management module 940 can also supply power to the electronic device through the power management unit 941 while charging the battery 942.
The power management unit 941 is configured to connect to a battery 942, a charging management module 940 and the processor 910. The power management unit 941 receives input from the battery 942 and/or the charging management module 940, and provides power to the processor 910, the internal memory 921, the external memory, the display 994, the camera 993, the wireless communication module 960, and the like. The power management unit 941 may also be used to monitor parameters such as battery capacity, battery cycle number, and battery health (leakage, impedance). In other embodiments, the power management unit 941 may also be disposed in the processor 910. In other embodiments, the power management unit 941 and the charging management module 940 may be disposed in the same device.
The wireless communication function of the electronic device 900 may be implemented by the antenna 1, the antenna 2, the mobile communication module 950, the wireless communication module 960, a modem processor, a baseband processor, and the like.
The antennas 1 and 2 are used for transmitting and receiving electromagnetic wave signals. Each antenna in electronic device 900 may be used to cover a single or multiple communication bands. Different antennas can also be multiplexed to improve the utilization of the antennas. For example: the antenna 1 may be multiplexed as a diversity antenna of a wireless local area network. In other embodiments, the antenna may be used in conjunction with a tuning switch.
The mobile communication module 950 may provide a solution for wireless communication including 2G/3G/4G/5G, etc. applied to the electronic device 900. The mobile communication module 950 may include at least one filter, a switch, a power amplifier, a Low Noise Amplifier (LNA), and the like. The mobile communication module 950 can receive the electromagnetic wave from the antenna 1, filter, amplify, etc. the received electromagnetic wave, and transmit the electromagnetic wave to the modem processor for demodulation. The mobile communication module 950 can also amplify the signal modulated by the modem processor and convert the signal into electromagnetic wave through the antenna 1 to radiate the electromagnetic wave. In some embodiments, at least some of the functional modules of the mobile communication module 950 may be disposed in the processor 910. In some embodiments, at least some of the functional blocks of the mobile communication module 950 may be provided in the same device as at least some of the blocks of the processor 910.
The modem processor may include a modulator and a demodulator. The modulator is used for modulating a low-frequency baseband signal to be transmitted into a medium-high frequency signal. The demodulator is used for demodulating the received electromagnetic wave signal into a low-frequency baseband signal. The demodulator then passes the demodulated low frequency baseband signal to a baseband processor for processing. The low frequency baseband signal is processed by the baseband processor and then passed to the application processor. The application processor outputs a sound signal through an audio device (not limited to the speaker 970A, the receiver 970B, etc.) or displays an image or video through the display screen 994. In some embodiments, the modem processor may be a stand-alone device. In other embodiments, the modem processor may be separate from the processor 910 and may be implemented in the same device as the mobile communication module 950 or other functional modules.
The wireless communication module 960 may provide a solution for wireless communication applied on the electronic device 900, including WLAN (e.g., wi-Fi), BT, global Navigation Satellite System (GNSS), FM, NFC, IR, or general 2.4G/5G wireless communication technologies. The wireless communication module 960 may be one or more devices integrating at least one communication processing module. The wireless communication module 960 receives an electromagnetic wave via the antenna 2, performs frequency modulation and filtering on an electromagnetic wave signal, and transmits the processed signal to the processor 910. The wireless communication module 960 may also receive signals to be transmitted from the processor 910, frequency-modulate and amplify the signals, and convert the signals into electromagnetic waves via the antenna 2 to radiate the electromagnetic waves.
In some embodiments, the wireless communication module 960 may be a Wi-Fi and/or Bluetooth chip. The electronic device 900 may establish a connection with a chip of an electronic device such as a wireless headset through the chip, so as to implement wireless communication and service processing between the electronic device 900 and other electronic devices through the connection. The Bluetooth chip can generally support BR/EDR Bluetooth and BLE.
In some embodiments, antenna 1 of electronic device 900 is coupled to mobile communication module 950 and antenna 2 is coupled to wireless communication module 960 so that electronic device 900 may communicate with networks and other devices via wireless communication techniques. The wireless communication technology may include global system for mobile communications (GSM), general Packet Radio Service (GPRS), code Division Multiple Access (CDMA), wideband Code Division Multiple Access (WCDMA), time division code division multiple access (TDSCDMA), long term evolution (long term evolution, LTE), BT, GNSS, WLAN, NFC, FM, and/or IR technologies, among others. GNSS may include Global Positioning System (GPS), global navigation satellite system (GLONASS), beidou satellite navigation system (BDS), quasi-zenith satellite system (QZSS), and/or Satellite Based Augmentation System (SBAS).
The electronic device 900 implements display functions via the GPU, the display screen 994, and the application processor, among other things. The GPU is an image processing microprocessor coupled to a display screen 994 and an application processor. The GPU is used to perform mathematical and geometric calculations for graphics rendering. The processors 910 may include one or more GPUs that execute program instructions to generate or change display information.
The display screen 994 is used to display images, video, and the like. The display screen 994 includes a display panel. The display panel may be a Liquid Crystal Display (LCD), an OLED, an active-matrix organic light emitting diode (AMOLED) or an active-matrix organic light emitting diode (AMOLED), a Flexible Light Emitting Diode (FLED), a miniature, a Micro-led, a quantum dot light emitting diode (QLED), or the like. In some embodiments, the electronic device 900 may include 1 or N display screens 994, N being a positive integer greater than 1.
The electronic device 900 may implement a camera function via the ISP, the camera 993, the video codec, the GPU, the display screen 994, the application processor, and the like.
The ISP is used to process data fed back by the camera 993. For example, when a photo is taken, the shutter is opened, light is transmitted to the camera photosensitive element through the lens, the optical signal is converted into an electrical signal, and the camera photosensitive element transmits the electrical signal to the ISP for processing and converting into an image visible to naked eyes. The ISP can also carry out algorithm optimization on noise, brightness and skin color of the image. The ISP can also optimize parameters such as exposure, color temperature and the like of a shooting scene. In some embodiments, the ISP may be provided in the camera 993.
The camera 993 is used to capture still images or video. The object generates an optical image through the lens and projects the optical image to the photosensitive element. The photosensitive element may be a Charge Coupled Device (CCD) or a complementary metal-oxide-semiconductor (CMOS) phototransistor. The light sensing element converts the optical signal into an electrical signal, which is then passed to the ISP where it is converted into a digital image signal. And the ISP outputs the digital image signal to the DSP for processing. The DSP converts the digital image signal into image signal in standard RGB, YUV and other formats. In some embodiments, the electronic device 900 may include 1 or N cameras 993, N being a positive integer greater than 1.
The digital signal processor is used for processing digital signals, and can process digital image signals and other digital signals. For example, when the electronic device 900 selects at a frequency bin, the digital signal processor is used to perform a fourier transform or the like on the frequency bin energy.
Video codecs are used to compress or decompress digital video. The electronic device 900 may support one or more video codecs. In this way, electronic device 900 may play or record video in a variety of encoding formats, such as: moving Picture Experts Group (MPEG) 1, MPEG2, MPEG3, MPEG4, and the like.
The NPU is a neural-network (NN) computing processor that processes input information quickly by using a biological neural network structure, for example, by using a transfer mode between neurons of a human brain, and can also learn by itself continuously. Applications such as intelligent cognition of the electronic device 900 can be achieved through the NPU, for example: image recognition, face recognition, speech recognition, text understanding, and the like.
The external memory interface 920 may be used to connect an external memory card, such as a Micro SD card, to extend the memory capability of the electronic device 900. The external memory card communicates with the processor 910 through the external memory interface 920 to implement a data storage function. For example, files such as music, video, etc. are saved in an external memory card.
The internal memory 921 may be used to store computer-executable program code, which includes instructions. The processor 910 executes various functional applications of the electronic device 900 and data processing by executing instructions stored in the internal memory 921. The internal memory 921 may include a program storage area and a data storage area. The storage program area may store an operating system, an application program (such as a sound playing function, an image playing function, etc.) required by at least one function, and the like. The data storage area may store data created during use of the electronic device 900 (e.g., audio data, phone book, etc.), and the like. In addition, the internal memory 921 may include a high-speed random access memory, and may further include a nonvolatile memory, such as at least one magnetic disk storage device, a flash memory device, a universal flash memory (UFS), and the like.
The processor 910 can be configured to execute the program code mentioned above, and call the relevant modules to implement the functions of the electronic device in the embodiment of the present application. For example, establishing a plurality of communication links with another electronic device; when a preset service (such as a file transmission service) exists, data of the preset service is transmitted with another electronic device through a plurality of communication links.
The electronic device 900 may implement an audio function through a speaker 970A, a receiver 970B, a microphone 970C, an earphone interface 970D, an application processor, and the like in the audio module 970. Such as music playing, recording, etc.
The audio module 970 is used for converting digital audio information into an analog audio signal output and also for converting an analog audio input into a digital audio signal. The audio module 970 may also be used to encode and decode audio signals. In some embodiments, the audio module 970 may be disposed in the processor 910, or some functional modules of the audio module 970 may be disposed in the processor 910.
The speaker 970A, also called "horn", is used to convert electrical audio signals into sound signals. The electronic device 900 may listen to music or to a hands-free conversation via the speaker 970A.
Receiver 970B, also known as an "earpiece," is used to convert electrical audio signals into acoustic signals. When electronic device 900 answers a call or voice message, the voice can be answered by placing receiver 970B close to the ear of the person.
Microphone 970C, also referred to as a "microphone," is used to convert acoustic signals into electrical signals. When making a call or sending voice information, the user can input a voice signal to the microphone 970C by making a sound near the microphone 970C through the mouth of the user. The electronic device 900 may be provided with at least one microphone 970C. In other embodiments, the electronic device 900 may be provided with two microphones 970C to achieve a noise reduction function in addition to collecting sound signals. In other embodiments, the electronic device 900 may further include three, four or more microphones 970C to collect sound signals, reduce noise, identify sound sources, perform directional recording, and so on.
The earphone interface 970D is used to connect a wired earphone. The headset interface 970D may be the USB interface 930, or may be a 3.5mm open mobile electronic device platform (OMTP) standard interface, a cellular telecommunications industry association (cellular telecommunications industry association) standard interface of the USA.
Pressure sensor 980A is configured to sense a pressure signal, which may be converted to an electrical signal. In some embodiments, the pressure sensor 980A may be disposed on the display screen 994. Pressure sensor 980A can be of a wide variety, such as a resistive pressure sensor, an inductive pressure sensor, a capacitive pressure sensor, or the like. The capacitive pressure sensor may be a sensor comprising at least two parallel plates having an electrically conductive material. When a force acts on the pressure sensor 980A, the capacitance between the electrodes changes. The electronic device 900 determines the strength of the pressure from the change in capacitance. When a touch operation is applied to the display screen 994, the electronic apparatus 900 detects the intensity of the touch operation based on the pressure sensor 980A. The electronic device 900 may also calculate the location of the touch based on the detection signal of the pressure sensor 980A. In some embodiments, the touch operations that are applied to the same touch position but different touch operation intensities may correspond to different operation instructions. For example: and when the touch operation with the touch operation intensity smaller than the first pressure threshold value acts on the short message application icon, executing an instruction for viewing the short message. And when the touch operation with the touch operation intensity larger than or equal to the first pressure threshold value acts on the short message application icon, executing an instruction of newly building the short message.
The gyro sensor 980B may be used to determine the motion pose of the electronic device 900. In some embodiments, the angular velocity of electronic device 900 about three axes (e.g., x, y, and z axes) may be determined by gyroscope sensor 980B. The gyro sensor 980B may be used for photographing anti-shake. Illustratively, when the shutter is pressed, the gyro sensor 980B detects the shake angle of the electronic device 900, calculates the distance to be compensated for by the lens module according to the shake angle, and enables the lens to counteract the shake of the electronic device 900 through reverse movement, thereby achieving anti-shake. The gyro sensor 980B may also be used for navigation, somatosensory gaming scenarios.
Acceleration sensor 980E may detect the magnitude of acceleration of electronic device 900 in various directions (typically three axes). The magnitude and direction of gravity may be detected when the electronic device 900 is stationary. The method can also be used for recognizing the posture of the electronic equipment, and is applied to horizontal and vertical screen switching, pedometers and other applications.
The distance sensor 980F is used to measure distance. The electronic device 900 may measure distance by infrared or laser. In some embodiments, taking a picture of a scene, electronic device 900 may utilize range sensor 980F to measure distances to achieve fast focus.
The proximity light sensor 980G may include, for example, a light-emitting diode (LED) and a light detector, such as a photodiode. The light emitting diode may be an infrared light emitting diode. The electronic device 900 emits infrared light outward through the light emitting diode. The electronic device 900 uses photodiodes to detect infrared reflected light from nearby objects. When sufficient reflected light is detected, it can be determined that there is an object near the electronic device 900. When insufficient reflected light is detected, the electronic device 900 can determine that there are no objects near the electronic device 900. The electronic device 900 may utilize the proximity light sensor 980G to detect that the user is holding the electronic device 900 close to the ear for a call, so as to automatically turn off the screen to save power. The proximity optical sensor 980G may also be used in a holster mode, a pocket mode automatically unlocks and locks the screen.
The ambient light sensor 980K is used to sense ambient light brightness. The electronic device 900 may adaptively adjust the brightness of the display 994 based on the perceived ambient light level. The ambient light sensor 980K may also be used to automatically adjust the white balance when taking a picture. Ambient light sensor 980K may also cooperate with proximity light sensor 980G to detect whether electronic device 900 is in a pocket to prevent inadvertent touches.
Barometric pressure sensor 980C is used to measure barometric pressure. In some embodiments, electronic device 900 calculates altitude, aiding in positioning and navigation, from barometric pressure values measured by barometric pressure sensor 980C.
The magnetic sensor 980D includes a hall sensor. The electronic device 900 may detect displacement of the electronic device 900 using the magnetic sensor 980D. In some embodiments, the hall sensor may form a linear trapezoidal magnetic field (or called a ramp magnetic field) by using the magnet, a displacement change of the hall plate in the linear magnetic field is consistent with a magnetic field intensity change, a formed hall potential is also proportional to the displacement, and the electronic device 900 obtains the hall potential to measure the displacement.
The fingerprint sensor 980H is used to collect a fingerprint. The electronic device 900 may utilize the collected fingerprint characteristics to implement fingerprint unlocking, access an application lock, fingerprint photographing, fingerprint answering, and the like.
The temperature sensor 980I is used to detect temperature. In some embodiments, the electronic device 900 implements a temperature handling strategy using the temperature detected by the temperature sensor 980I. For example, when the temperature reported by temperature sensor 980I exceeds a threshold, electronic device 900 performs a reduction in performance of a processor located near temperature sensor 980I to reduce power consumption and implement thermal protection. In other embodiments, the electronic device 900 heats the battery 942 when the temperature is below another threshold to avoid low temperature causing abnormal shutdown of the electronic device 900. In other embodiments, electronic device 900 performs a boost on the output voltage of battery 942 when the temperature is below a further threshold to avoid an abnormal shutdown due to low temperature.
Touch sensor 980J, also referred to as a "touch panel". The touch sensor 980J may be disposed on the display screen 994, and the touch sensor 980J and the display screen 994 form a touch screen, which is also referred to as a "touch screen". The touch sensor 980J is used to detect a touch operation applied thereto or thereabout. The touch sensor can communicate the detected touch operation to the application processor to determine the touch event type. Visual output associated with the touch operation may be provided through the display screen 994. In other embodiments, the touch sensor 980J may be disposed on a surface of the electronic device 900 at a different location than the display screen 994.
Bone conduction sensor 980L can acquire a vibration signal. In some embodiments, the bone conduction sensor 980L can acquire a vibration signal of a vibrating bone mass of the human voice. The bone conduction sensor 980L can also contact the human pulse to receive the blood pressure pulsation signal. In some embodiments, the bone conduction sensor 980L may also be disposed in a headset, integrated into a bone conduction headset. The audio module 970 may analyze a voice signal based on the vibration signal of the sound part vibration bone block acquired by the bone conduction sensor 980L, thereby implementing a voice function. The application processor can analyze heart rate information based on the blood pressure beating signal acquired by the bone conduction sensor 980L, and the heart rate detection function is realized.
The keys 990 include a power on key, a volume key, and the like. Keys 990 may be mechanical keys. Or may be touch keys. The electronic device 900 may receive key inputs and generate key signal inputs associated with user settings and function controls of the electronic device 900.
The motor 991 may generate a vibration cue. The motor 991 may be used for incoming call vibration prompts, as well as for touch vibration feedback. For example, touch operations applied to different applications (e.g., photographing, audio playing, etc.) may correspond to different vibration feedback effects. The motor 991 may also respond to different vibration feedback effects in response to touch operations on different areas of the display screen 994. Different application scenes (such as time reminding, receiving information, alarm clock, game and the like) can also correspond to different vibration feedback effects. The touch vibration feedback effect may also support customization.
The indicator 992 may be an indicator light, may be used to indicate a change in charge status, charge level, or may be used to indicate a message, missed call, notification, or the like.
The SIM card interface 995 is used for connecting a SIM card. The SIM card can be brought into and out of contact with the electronic device 900 by being inserted into the SIM card interface 995 or being pulled out of the SIM card interface 995. The electronic device 900 may support 1 or N SIM card interfaces, N being a positive integer greater than 1. The SIM card interface 995 may support a Nano SIM card, a Micro SIM card, a SIM card, etc. The same SIM card interface 995 can insert multiple cards at the same time. The types of the plurality of cards may be the same or different. The SIM card interface 995 may also be compatible with different types of SIM cards. The SIM card interface 995 may also be compatible with external memory cards. The electronic device 900 interacts with the network through the SIM card to implement functions such as communication and data communication. In some embodiments, the electronic device 900 employs esims, namely: an embedded SIM card. The eSIM card can be embedded in the electronic device 900 and cannot be separated from the electronic device 900.
The electronic device 900 may be a mobile terminal or a non-mobile terminal. By way of example, the electronic device 900 may be a mobile phone, a tablet computer, a notebook computer, a palm top computer, a vehicle-mounted terminal, a wearable device, an ultra-mobile personal computer (UMPC), a netbook or a Personal Digital Assistant (PDA), a wireless headset, a wireless bracelet, wireless smart glasses, a wireless watch, an Augmented Reality (AR)/Virtual Reality (VR) device, a desktop computer, a smart appliance (e.g., a television, a sound box, a refrigerator, an air purifier, an air conditioner, an electric rice cooker), and the like. The electronic device 900 may also be referred to collectively as an Internet of Things (IoT) device. The device type of the electronic device 900 is not particularly limited in the embodiments of the present application.
It should be understood that the electronic device 900 shown in fig. 14 may correspond to the apparatus 800 shown in fig. 13. The processor 910 and the sensor module 980 in the electronic device 900 shown in fig. 14 may correspond to the brightness adjustment unit 830, the hall sensing unit 810 and the ambient light sensing unit 820 in the apparatus 800 in fig. 13, respectively.
In actual implementation, the processor 910 executes the computer executable instructions in the memory 921 to perform the operational steps of the above-described method by the electronic device 900 when the electronic device 900 is running.
Optionally, in some embodiments, the present application provides a chip, which is coupled with a memory, and is configured to read and execute a computer program or instructions stored in the memory to perform the method in the foregoing embodiments.
Optionally, in some embodiments, the present application provides an electronic device comprising a chip for reading and executing a computer program or instructions stored by a memory, such that the method in the embodiments is performed.
Optionally, in some embodiments, the present application further provides a computer-readable storage medium storing program code, which, when executed on a computer, causes the computer to perform the method in the foregoing embodiments.
Optionally, in some embodiments, the present application further provides a computer program product, which includes computer program code, when the computer program code runs on a computer, the computer is caused to execute the method in the foregoing embodiments.
In an embodiment of the application, an electronic device includes a hardware layer, an operating system layer running on top of the hardware layer, and an application layer running on top of the operating system layer. The hardware layer may include hardware such as a Central Processing Unit (CPU), a Memory Management Unit (MMU), and a memory (also referred to as a main memory). The operating system of the operating system layer may be any one or more computer operating systems that implement business processing through processes (processes), such as a Linux operating system, a Unix operating system, an Android operating system, an iOS operating system, or a windows operating system. The application layer may include applications such as a browser, an address book, word processing software, and instant messaging software.
The embodiment of the present application does not particularly limit a specific structure of an execution subject of the method provided by the embodiment of the present application, as long as communication can be performed by the method provided by the embodiment of the present application by running a program recorded with codes of the method provided by the embodiment of the present application. For example, an execution subject of the method provided by the embodiment of the present application may be an electronic device, or a functional module capable of calling a program and executing the program in the electronic device.
Various aspects or features of the disclosure may be implemented as a method, apparatus, or article of manufacture using standard programming and/or engineering techniques. The term "article of manufacture" as used herein is intended to encompass a computer program accessible from any computer-readable device, carrier, or media. For example, computer-readable media may include, but are not limited to: magnetic storage devices (e.g., hard disk, floppy disk, or magnetic tape), optical disks (e.g., compact Disk (CD), digital Versatile Disk (DVD), etc.), smart cards, and flash memory devices (e.g., erasable programmable read-only memory (EPROM), card, stick, or key drive, etc.).
Various storage media described herein can represent one or more devices and/or other machine-readable media for storing information. The term "machine-readable medium" can include, but is not limited to: wireless channels and various other media capable of storing, containing, and/or carrying instruction(s) and/or data.
It should be understood that the processor mentioned in the embodiments of the present application may be a Central Processing Unit (CPU), and may also be other general purpose processors, digital Signal Processors (DSPs), application Specific Integrated Circuits (ASICs), field Programmable Gate Arrays (FPGAs) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, and the like. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
It will also be appreciated that the memory referred to in the embodiments herein may be either volatile memory or nonvolatile memory, or may include both volatile and nonvolatile memory. The non-volatile memory may be a read-only memory (ROM), a Programmable ROM (PROM), an Erasable PROM (EPROM), an electrically Erasable EPROM (EEPROM), or a flash memory. Volatile memory can be Random Access Memory (RAM). For example, RAM can be used as external cache memory. By way of example and not limitation, RAM may include the following forms: static Random Access Memory (SRAM), dynamic random access memory (dynamic RAM, DRAM), synchronous Dynamic Random Access Memory (SDRAM), double data rate synchronous dynamic random access memory (DDR SDRAM), enhanced Synchronous DRAM (ESDRAM), synchronous Link DRAM (SLDRAM), and direct bus RAM (DR RAM).
It should be noted that when the processor is a general-purpose processor, a DSP, an ASIC, an FPGA or other programmable logic device, a discrete gate or transistor logic device, or a discrete hardware component, the memory (memory module) may be integrated into the processor.
It should also be noted that the memory described herein is intended to comprise, without being limited to, these and any other suitable types of memory.
Those of ordinary skill in the art will appreciate that the various illustrative elements and steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware or combinations of computer software and electronic hardware. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present application.
It can be clearly understood by those skilled in the art that, for convenience and simplicity of description, the specific working processes of the above-described systems, apparatuses and units may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
In the several embodiments provided in the present application, it should be understood that the disclosed system, apparatus and method may be implemented in other ways. For example, the above-described apparatus embodiments are merely illustrative, and for example, the division of the units is only one type of logical functional division, and other divisions may be realized in practice, for example, multiple units or components may be combined or integrated into another system, or some features may be omitted, or not executed. Furthermore, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one position, or may be distributed on multiple network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present application may be integrated into one unit, or each unit may exist alone physically, or two or more units are integrated into one unit.
The functions may be stored in a computer-readable storage medium if they are implemented in the form of software functional units and sold or used as separate products. Based on such understanding, the technical solutions of the present application, or portions thereof, may be embodied in the form of a computer software product stored in a storage medium, the computer software product including instructions for causing a computer device (which may be a personal computer, a server, or a network device) to perform all or part of the steps of the methods described in the embodiments of the present application. The foregoing storage media may include, but are not limited to: various media capable of storing program codes, such as a U disk, a removable hard disk, a ROM, a RAM, a magnetic disk, or an optical disk.
Unless defined otherwise, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this application belongs. The terminology used herein in the description of the present application is for the purpose of describing particular embodiments only and is not intended to be limiting of the application.
The above description is only for the specific embodiments of the present application, but the scope of the present application is not limited thereto, and any person skilled in the art can easily conceive of the changes or substitutions within the technical scope of the present application, and shall be covered by the scope of the present application. Therefore, the protection scope of the present application shall be subject to the protection scope of the claims.
Claims (26)
1. A screen brightness adjusting method is applied to electronic equipment with a display screen, the electronic equipment is provided with a front-mounted ambient light sensor, and leather covers are mounted on the electronic equipment, and the method is characterized by comprising the following steps:
in response to an operation of opening a leather sheath by a user, adjusting a sampling period of the ambient light sensor from a first sampling period to a second sampling period, wherein the second sampling period is smaller than the first sampling period;
sampling by the ambient light sensor in the second sampling period to obtain a first ambient light brightness value;
according to the first ambient light brightness value, lightening the display screen;
the obtaining a first ambient light brightness value by sampling the ambient light sensor with the second sampling period includes:
sampling for multiple times through the ambient light sensor in the second sampling period to obtain multiple brightness values;
determining the first ambient light brightness value according to the plurality of brightness values;
said determining said first ambient light brightness value from said plurality of brightness values comprises:
at the end of each sampling, accumulating the sampling times C, and recording the time stamp T corresponding to the latest sampling brightness value A ;
When the sampling times or the sampling time meet a preset condition, determining the first ambient light brightness value according to the plurality of brightness values;
wherein the preset conditions include: the sampling times C are more than or equal to the maximum sampling times m of the second sampling period in a preset effective duration; or, the time stamp T A And a time stamp T 0 Is greater than or equal to a preset effective duration, T 0 Representing a timestamp recorded when the holster was detected to be opened;
said determining said first ambient light brightness value from said plurality of brightness values comprises:
comparing the latest sampled brightness value with the last sampled brightness value;
if the latest sampled brightness value is less than or equal to the last sampled brightness value, determining the maximum value of the brightness values as the first ambient light brightness value; or,
if the latest sampling brightness value is larger than the last sampling brightness value, predicting the first ambient light brightness value according to the linear relation between the latest sampling brightness value and the last sampling brightness value;
predicting said first ambient light brightness value based on a linear relationship between said last sampled brightness value and said last sampled brightness value, comprising:
calculating a linear slope K according to the latest sampled luminance value and the last sampled luminance value using the following equation:
wherein L is B Representing the latest sampled luminance value, L A Representing the last sampled luminance value, T B Indicating the timestamp, T, corresponding to said latest sampled luminance value A A timestamp corresponding to the last sampling brightness value is represented, and t represents a time length corresponding to the second sampling period;
predicting the first ambient light brightness value y according to the linear slope K by using the following equation:
wherein m represents the maximum sampling times of the second sampling period within a preset effective time length, T 0 Indicating the timestamp recorded when the holster was detected as being opened.
2. The method of claim 1, wherein said sampling by said ambient light sensor at said second sampling period resulting in a first ambient light brightness value comprises:
the ambient light sensor performs multiple sampling within a preset effective duration in the second sampling period to obtain a first ambient light brightness value;
and the duration corresponding to the second sampling period is less than the preset effective duration.
3. The method of claim 1 or 2, wherein the first sampling period comprises a first sampling integration time and a first latency; the second sampling period comprises a second sampling integration time and a second waiting time;
wherein the second sampling integration time is less than or equal to the first sampling integration time, and/or the second latency is less than the first latency.
4. The method according to claim 1 or 2, characterized in that the electronic device is provided with a hall sensor, the holster being provided with a magnetic element;
wherein the adjusting the sampling period of the ambient light sensor from a first sampling period to a second sampling period in response to the user opening the holster comprises:
when the Hall sensor detects that the Hall sensor and the magnetic element are far away from each other from the closed state, determining the leather case from the buckling to the open state;
adjusting a sampling period of the ambient light sensor from the first sampling period to the second sampling period in response to an event that the holster is snapped to open.
5. The method of claim 1 or 2, wherein after said sampling by said ambient light sensor at said second sampling period resulting in a first ambient light brightness value, said method further comprises:
restoring the sampling period of the ambient light sensor from the second sampling period to the first sampling period.
6. The method of claim 5, further comprising:
sampling for multiple times through the ambient light sensor in the first sampling period to obtain a plurality of second ambient light brightness values;
when the average value of the plurality of second ambient light brightness values is within a preset threshold range, keeping the brightness of the display screen unchanged; or,
and when the average value of the plurality of second environment brightness values is not within the preset threshold range, adjusting the brightness of the display screen according to the average value of the plurality of second environment brightness values.
7. The method of claim 6, wherein adjusting the brightness of the display screen according to the average value of the second plurality of ambient light brightness values when the average value of the second plurality of ambient light brightness values is not within the predetermined threshold range comprises:
when the average value of the plurality of second environment brightness values is larger than the upper threshold value of the preset threshold value range, increasing the brightness of the display screen according to the average value of the plurality of second environment brightness values; or,
when the average value of the plurality of second environment brightness values is smaller than the lower threshold of the preset threshold range, reducing the brightness of the display screen according to the average value of the plurality of second environment brightness values;
wherein, the upper threshold of the preset threshold range is larger than the lower threshold.
8. The method of claim 1, wherein the electronic device comprises an AP processor and an SCP processor; the AP processor comprises a display engine unit, and the SCP processor comprises the ambient light sensor and a Hall sensor;
wherein said determining said first ambient light brightness value from said plurality of brightness values comprises:
the ambient light sensor reports the plurality of brightness values to a driving unit of the ambient light sensor;
the driving unit of the ambient light sensor determines the first ambient light brightness value according to the plurality of brightness values.
9. The method of claim 8, further comprising:
the display engine unit receives a Hall far-away event reported by the Hall sensor, wherein the Hall far-away event represents the state change of the Hall sensor from closing to far-away;
responding to the Hall far-away event, the display engine unit issues a batch processing batch command to the SCP processor, and the batch command is used for indicating reporting of a first brightness value.
10. The method of claim 9, wherein after the display engine unit issues the batch command to the SCP processor, the method further comprises:
a driving unit of the ambient light sensor receives the batch command issued by the display engine unit;
in response to the batch command, the driving unit of the ambient light sensor reports the first ambient light brightness value to the display engine unit.
11. The method of any one of claims 8 to 10, wherein said illuminating the display screen according to the first ambient light brightness value comprises:
the display engine unit receives the first ambient light brightness value;
and the display engine unit sets the first ambient light brightness value as a first brightness value when the display screen is lightened, and triggers the display screen to be switched from a screen-off state to a screen-on state.
12. The method of any one of claims 1, 2, 6-10, wherein the ambient light sensor is an off-screen ambient light sensor or a non-off-screen ambient light sensor.
13. A screen brightness adjusting method is applied to electronic equipment with a display screen, the electronic equipment is provided with a front-mounted ambient light sensor and is provided with a leather sheath, the electronic equipment comprises an SCP processor and an AP processor, and the method is characterized by comprising the following steps of:
in response to a user opening a holster, the SCP processor adjusting a sampling period of the ambient light sensor from a first sampling period to a second sampling period, the second sampling period being less than the first sampling period;
the SCP processor samples in the second sampling period through the ambient light sensor to obtain a first ambient light brightness value, and the SCP processor reports the first ambient light brightness value to the AP processor;
the AP processor lights the display screen according to the first environment light brightness value;
the SCP processor samples with the second sampling period through the ambient light sensor to obtain a first ambient light brightness value, including:
the SCP processor performs multiple times of sampling through the ambient light sensor in the second sampling period to obtain multiple brightness values;
the SCP processor determines the first ambient light brightness value according to the plurality of brightness values;
the SCP processor determining the first ambient light brightness value from the plurality of brightness values, comprising:
at the end of each sampling, the SCP processor accumulates the sampling times C and records the time stamp T corresponding to the latest sampling brightness value A ;
When the sampling times or the sampling time meet a preset condition, the SCP processor determines the first ambient light brightness value according to the brightness values;
wherein the preset conditions include: the sampling frequency C is greater than or equal to the maximum sampling frequency m of the second sampling period in a preset effective duration; or, the time stamp T A And a time stamp T 0 Is greater than or equal to a preset effective duration, T 0 Representing a timestamp recorded when the holster was detected to be opened;
the SCP processor determining the first ambient light brightness value from the plurality of brightness values, comprising:
the SCP processor compares the latest sampling brightness value with the last sampling brightness value;
if the latest sampled brightness value is less than or equal to the last sampled brightness value, the SCP processor determines the maximum value of the brightness values as the first ambient light brightness value; or,
if the latest sampled brightness value is greater than the last sampled brightness value, the SCP processor predicts the first ambient light brightness value according to a linear relationship between the latest sampled brightness value and the last sampled brightness value;
said SCP processor predicting said first ambient light brightness value based on a linear relationship between said most recent sampled brightness value and said last sampled brightness value, comprising:
the SCP processor calculates a linear slope K from the latest sampled luminance value and the last sampled luminance value using the following equation:
wherein L is B Representing the latest sampled luminance value, L A Representing the last sampled luminance value, T B Indicating the timestamp, T, corresponding to said latest sampled luminance value A Indicating the timestamp corresponding to the last sampled luminance value, and t indicating the second sampling period corresponding toThe length of time of;
the SCP processor predicts the first ambient light brightness value y from the linear slope K using the following equation:
wherein m represents the maximum sampling times of the second sampling period within a preset effective time length, T 0 Indicating the timestamp recorded when the holster was detected as being opened.
14. The method of claim 13, wherein said SCP processor sampling by said ambient light sensor at said second sampling period to obtain a first ambient light brightness value comprises:
the SCP processor performs multiple sampling in the second sampling period within a preset effective time length through the ambient light sensor to obtain a first ambient light brightness value;
and the duration corresponding to the second sampling period is less than the preset effective duration.
15. The method of claim 13 or 14, wherein the first sampling period comprises a first sampling integration time and a first latency; the second sampling period comprises a second sampling integration time and a second waiting time;
the second sampling integration time is less than or equal to the first sampling integration time, and/or the second waiting time is less than the first waiting time.
16. The method according to claim 13 or 14, wherein the electronic device is provided with a hall sensor, the holster is provided with a magnetic element, and the SCP processor comprises the hall sensor;
wherein said SCP processor adjusting a sampling period of said ambient light sensor from a first sampling period to a second sampling period in response to a user opening a holster comprises:
when the Hall sensor and the magnetic element are far away from each other from the closing state, the SCP processor determines the leather sheath from the buckling to the opening event through the Hall sensor;
in response to an event that the holster is buckled to unbuckled, the SCP processor adjusts a sampling period of the ambient light sensor from the first sampling period to the second sampling period via a drive unit of the ambient light sensor.
17. A method according to claim 13 or 14, wherein after the SCP processor has sampled by the ambient light sensor at the second sampling period to obtain a first ambient light brightness value, the method further comprises:
the SCP processor restores the sampling period of the ambient light sensor from the second sampling period to the first sampling period through a drive unit of the ambient light sensor.
18. The method of claim 13, wherein said SCP processor determines said first ambient light brightness value from said plurality of brightness values, comprising:
the ambient light sensor in the SCP processor reports the plurality of brightness values to a driving unit of the ambient light sensor in the SCP processor;
the driving unit of the ambient light sensor determines the first ambient light brightness value according to the plurality of brightness values.
19. The method of claim 16, further comprising:
the AP processor receives a Hall far-away event reported by the Hall sensor through a display engine unit, wherein the Hall far-away event represents the state change of the Hall sensor from closing to far-away;
responding to the Hall far-away event, the AP processor issues a batch processing batch command to the SCP processor through the display engine unit, wherein the batch command is used for indicating reporting of a first brightness value.
20. The method of claim 19, wherein after the AP processor issues the batch command to the SCP processor via the display engine unit, the method further comprises:
the SCP processor receives the batch command issued by the display engine unit through a driving unit of the ambient light sensor;
and responding to the batch command, and reporting the first environment light brightness value to the AP processor by the SCP processor through a driving unit of the environment light sensor.
21. The method of claim 13 or 14, wherein the AP processor illuminating the display screen according to the first ambient light brightness value comprises:
the AP processor receives the first ambient light brightness value;
and the AP processor sets the first ambient light brightness value as a first brightness value when the display screen is lightened through a display engine unit, and triggers the display screen to be switched from a screen-off state to a screen-on state.
22. The method of any one of claims 13, 14, 18-20, wherein the ambient light sensor is an off-screen ambient light sensor or a non-off-screen ambient light sensor.
23. An electronic device comprising an SCP processor, an AP processor, a display screen, and a front-located ambient light sensor, both the SCP processor and the AP processor being coupled to a memory, the SCP processor and the AP processor being configured to execute computer programs or instructions stored in the memory to cause the electronic device to implement the method of any of claims 1 to 12.
24. A chip system comprising an SCP processor and an AP processor, both coupled to a memory, for reading and executing a computer program stored in the memory to implement the method of any of claims 13 to 22.
25. A computer-readable storage medium, storing a computer program which, when run on an electronic device, causes the electronic device to perform the method of any of claims 1-12 or the method of any of claims 13-22.
26. A computer program product, which, when run on a computer, causes the computer to perform the method of any one of claims 1 to 12 or the method of any one of claims 13 to 22.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202111163744.1A CN114999421B (en) | 2021-09-30 | 2021-09-30 | Screen brightness adjusting method and electronic equipment |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202111163744.1A CN114999421B (en) | 2021-09-30 | 2021-09-30 | Screen brightness adjusting method and electronic equipment |
Publications (2)
Publication Number | Publication Date |
---|---|
CN114999421A CN114999421A (en) | 2022-09-02 |
CN114999421B true CN114999421B (en) | 2023-03-31 |
Family
ID=83018816
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202111163744.1A Active CN114999421B (en) | 2021-09-30 | 2021-09-30 | Screen brightness adjusting method and electronic equipment |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN114999421B (en) |
Families Citing this family (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN116682367B (en) * | 2022-10-14 | 2024-03-29 | 荣耀终端有限公司 | Screen ambient light detection method, electronic equipment and medium |
CN118190152A (en) * | 2022-12-14 | 2024-06-14 | 荣耀终端有限公司 | Ambient light sensor data acquisition method and device and electronic equipment |
CN117857696B (en) * | 2024-02-07 | 2024-07-12 | 荣耀终端有限公司 | Ambient light data reporting method and electronic equipment |
CN118131882A (en) * | 2024-05-07 | 2024-06-04 | 荣耀终端有限公司 | Leather sheath mode realization method, equipment, storage medium and program product |
Family Cites Families (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
EP1871081B8 (en) * | 2005-10-31 | 2009-04-08 | Research In Motion Limited | Automatic screen and keypad brightness adjustment on a mobile handheld electronic device |
US7701434B2 (en) * | 2005-10-31 | 2010-04-20 | Research In Motion Limited | Automatic screen and keypad brightness adjustment on a mobile handheld electronic device |
US8610659B2 (en) * | 2008-05-12 | 2013-12-17 | Blackberry Limited | Method and apparatus for automatic brightness adjustment on a display of a mobile electronic device |
EP2224696B1 (en) * | 2009-02-27 | 2016-11-09 | BlackBerry Limited | Automatic keypad backlight adjustment on a mobile handheld electronic device |
US8363015B2 (en) * | 2009-02-27 | 2013-01-29 | Research In Motion Limited | Automatic keypad backlight adjustment on a mobile handheld electronic device |
US8508465B2 (en) * | 2009-11-05 | 2013-08-13 | Research In Motion Limited | Multiple orientation mobile electronic handheld device and method of ambient light sensing and backlight adjustment implemented therein |
EP2403223B1 (en) * | 2010-06-30 | 2017-08-16 | BlackBerry Limited | Adaptation of display illumination depending on ambient light |
CN113395388B (en) * | 2020-02-26 | 2022-10-18 | 华为技术有限公司 | Screen brightness adjusting method and electronic equipment |
CN113325941B (en) * | 2020-02-29 | 2022-07-12 | 荣耀终端有限公司 | Method for displaying finger print under screen and electronic equipment |
-
2021
- 2021-09-30 CN CN202111163744.1A patent/CN114999421B/en active Active
Also Published As
Publication number | Publication date |
---|---|
CN114999421A (en) | 2022-09-02 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN114999421B (en) | Screen brightness adjusting method and electronic equipment | |
CN113362783B (en) | Refresh rate switching method and electronic equipment | |
CN113395388B (en) | Screen brightness adjusting method and electronic equipment | |
CN113407053B (en) | Touch screen, electronic equipment and display control method | |
EP4250698A1 (en) | Method for controlling always-on display and electronic device | |
CN113722030B (en) | Display method, electronic equipment and computer storage medium | |
CN113625860B (en) | Mode switching method and device, electronic equipment and chip system | |
CN113810601B (en) | Terminal image processing method and device and terminal equipment | |
CN113475057A (en) | Video frame rate control method and related device | |
CN114095666A (en) | Photographing method, electronic device and computer-readable storage medium | |
CN111552451A (en) | Display control method and device, computer readable medium and terminal equipment | |
CN111580671A (en) | Video image processing method and related device | |
CN113542580B (en) | Method and device for removing light spots of glasses and electronic equipment | |
CN115597706B (en) | Ambient light detection method, electronic equipment and chip system | |
CN113395382A (en) | Method for data interaction between devices and related devices | |
CN111399659B (en) | Interface display method and related device | |
CN111930335A (en) | Sound adjusting method and device, computer readable medium and terminal equipment | |
CN114863494A (en) | Screen brightness adjusting method and device and terminal equipment | |
CN112188094B (en) | Image processing method and device, computer readable medium and terminal equipment | |
CN113674258B (en) | Image processing method and related equipment | |
CN114070916A (en) | Light supplementing method for shooting and related device | |
WO2024124972A1 (en) | Method and apparatus for acquiring ambient light sensor data, and electronic device | |
CN114115513B (en) | Key control method and key device | |
CN113820008B (en) | Ambient light detection method, electronic device and chip system | |
CN116527807A (en) | Stream re-broadcasting method, electronic device, storage medium and program product |
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 |