CN114999421A - Screen brightness adjusting method and electronic equipment - Google Patents

Screen brightness adjusting method and electronic equipment Download PDF

Info

Publication number
CN114999421A
CN114999421A CN202111163744.1A CN202111163744A CN114999421A CN 114999421 A CN114999421 A CN 114999421A CN 202111163744 A CN202111163744 A CN 202111163744A CN 114999421 A CN114999421 A CN 114999421A
Authority
CN
China
Prior art keywords
ambient light
brightness value
sampling
brightness
processor
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.)
Granted
Application number
CN202111163744.1A
Other languages
Chinese (zh)
Other versions
CN114999421B (en
Inventor
张文礼
王思文
李辰龙
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Honor Device Co Ltd
Original Assignee
Honor Device Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Honor Device Co Ltd filed Critical Honor Device Co Ltd
Priority to CN202111163744.1A priority Critical patent/CN114999421B/en
Publication of CN114999421A publication Critical patent/CN114999421A/en
Application granted granted Critical
Publication of CN114999421B publication Critical patent/CN114999421B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G09EDUCATION; CRYPTOGRAPHY; DISPLAY; ADVERTISING; SEALS
    • G09GARRANGEMENTS OR CIRCUITS FOR CONTROL OF INDICATING DEVICES USING STATIC MEANS TO PRESENT VARIABLE INFORMATION
    • G09G5/00Control arrangements or circuits for visual indicators common to cathode-ray tube indicators and other visual indicators
    • G09G5/10Intensity circuits
    • GPHYSICS
    • G09EDUCATION; CRYPTOGRAPHY; DISPLAY; ADVERTISING; SEALS
    • G09GARRANGEMENTS OR CIRCUITS FOR CONTROL OF INDICATING DEVICES USING STATIC MEANS TO PRESENT VARIABLE INFORMATION
    • G09G2320/00Control of display operating conditions
    • G09G2320/06Adjustment of display parameters
    • G09G2320/0626Adjustment of display parameters for control of overall brightness
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

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

Screen brightness adjusting method and electronic equipment
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 on is determined according to the ambient light brightness data collected by the front ambient light sensor.
In actual 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 problem that in the prior art, when a leather sheath is opened from closed, a display screen automatically brightens, and 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 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 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 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; alternatively, the first and second electrodes may be,
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:
Figure BDA0003290695720000021
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:
y=K×(m-n)+L B
Figure BDA0003290695720000022
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.
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;
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.
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 closing, determining the leather case is opened from buckling;
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; alternatively, the first and second electrodes may be,
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, increasing the brightness of the display screen according to the average value of the plurality of second environment brightness values; alternatively, the first and second electrodes may be,
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 performing the method described in the first aspect, and for the 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, the 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 the 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 leather sheath in an embodiment of the present application;
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 view of a technical architecture corresponding to a screen brightness adjustment method according to 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 flowchart illustrating a method for adjusting screen brightness according to 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 disclosure;
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 obtained by a person of ordinary skill in the art based on the embodiments in the present application without making any creative effort belong to 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 a relationship in which the associated object is or, for example, 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 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 and can be arranged in electronic equipment 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 leather case 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. None of these scenarios is the focus of the discussion of the embodiments of the present application.
For the opening state of the leather sheath, the value reported by the ambient light sensor is probably a value which is relatively low compared with 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-on event) that switches from a screen-off state to a screen-on state is involved, and the 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 the 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 process state of the holster in connection with a scenario where the user uses an electronic device (e.g., a mobile phone) with the 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 leather case 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 sensors and magnetic elements are illustrated schematically here.
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; 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, all references to ambient light sensors hereinafter refer to front-facing ambient light sensors.
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 acquisition module of the display engine, effective time may be set, and if the brightness acquisition 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 real-time effectiveness of acquiring brightness information can be ensured, and the effect of adjusting the brightness 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 electronic equipment with a leather sheath function, when the electronic equipment is in a leather sheath closed state, 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 are explained, taking an example of an electronic device with a holster function, in which a sampling period of an ambient light sensor is 350ms and an effective time corresponding to a brightness value of a first frame is 200 ms.
On one hand, the ambient light sensor drive is always in a normally open working state, so that the ambient light sensor drive can always cache the ambient light brightness value of the previous frame, and after the ambient light sensor drive 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 drive 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 350ms) before the leather case is opened, and the brightness value data may be a value close to or equal to a 0 value, in an actual environment where the leather case is not completely black, if the brightness adjustment of the screen after the leather case is opened is performed by using the frame brightness value data cached last time, the problem that the screen is dark first and then bright later occurs when the display screen is bright is 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 dull 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 the scheme of this application, when electronic equipment detected 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 obvious light and shade change phenomenon 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 closing, the display screen automatically brightens and changes obviously or the bright screen obviously delays can be solved.
The electronic device in the embodiment of the application may be a mobile terminal or a non-mobile terminal. For 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, a self-service machine, and the like, and the embodiment of the present application is not particularly limited.
The 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 capable of implementing the screen brightness adjusting method in the electronic device, and the scheme of the present application may be implemented in a hardware and/or software manner, 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 adjustment 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 open, which is typically in a first sampling period before the holster is opened.
In this application embodiment, when the user opens the holster, the electronic device can sense the action of the holster 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 350 ms.
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 350 ms. In the embodiment of the present application, regarding the setting of the waiting time after completion of integration, the waiting time supported by the device may be set in the range of 0ms to the maximum waiting time supported by the device. The reason is that: firstly, whether a function waiting after integration is started or not can be set, and if the function is not started, the waiting time is 0 ms; 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 waiting time 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 the embodiment of the present application, in the process of opening the holster, an included angle (also referred to as a holster opening and closing angle) between the holster and the front-facing screen of the mobile phone gradually increases, for example, the included angle may be generally changed from 0 degree to 360 degrees, and accordingly, as the included angle increases, the degree of shielding the ambient light by the holster gradually decreases. 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, an included angle α between the front screen of the mobile phone and the holster is 0 °, and at this time, the holster completely blocks the ambient light, so that 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 α between the front screen of the mobile phone and the holster is 180 °, 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 several hundred ms, the opening and closing angle of the leather sheath can reach more than 90 degrees in several hundred 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 fig. 5 (a), 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 increases 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 start high-frequency sampling of ambient light and perform first-frame brightness value prediction more quickly, which is beneficial to completing high-frequency integration sampling for more times, and can improve the reliability of prediction.
For another example, as shown by the dashed line B1B2 in fig. 5 (B), the side is the left side edge of the mobile phone, the leather sheath 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 sheath is opened, the distance between the hall sensor and the magnetic element on the leather sheath increases slightly and exceeds the preset distance threshold value relatively slowly, so that the hall sensor senses a hall distant event with a large time delay, the high-frequency sampling starts to be delayed, 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 200 ms. 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 example that the sampling period is shortened from 350ms to 30 ms:
when the sampling period is 350ms, sampling can be completed at most 1 time 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, the sampling period is shortened from 350ms to 50 ms:
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, taking an example of shortening the sampling period from 350ms to 50ms, 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 first frame luminance value is denoted as lux1, the second frame luminance value is denoted as lux2, and the third frame luminance value is denoted as lux 3. 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, specifically, the determining process is as follows:
on the one hand, if the lux3 is less than or equal to the lux2, the maximum value of the three sampled data may be used as the ambient light brightness value to be reported at this time (the first ambient light brightness value to be determined). For example, if the maximum value of the three times of sampling 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 forward 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 at this time may be quickly obtained. 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 required to determine the ambient light brightness value to be reported after the 4 th sampling is finished and the acquired data is stable. However, in actual implementation, prediction can be performed in advance when certain conditions are met; 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) + lux 3.
It is understood that the above manner of calculating the ambient light brightness through 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, compensation calculation can be performed by using the multi-frame sample data and the forward slope K, and the actual ambient light brightness value is predicted.
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 brightness of the environment predicted by the first frame is ensured to be close to the real brightness of the external environment as much as possible, the screen is lightened according to the brightness value of the first frame, the brightness of the display screen is kept 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, too high glaring of the display screen due to too high display brightness in a darker 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., 50ms) 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., 200ms) may be cancelled.
Optionally, after the brightness value data of the first frame is reported, the brightness obtaining module of the display engine may also periodically (every 350m) receive the brightness value of the ambient light reported by the ambient light sensor and the corresponding timestamp thereof. 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 the brightness after the screen is lit up, with reference to the drawings.
Referring to fig. 6, as shown in fig. 7, after step S103, the screen brightness adjusting 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 multiple 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 lux value; that is, the ambient light sensor performs multiple sampling, and reports the sampling multiple times.
After the first frame of brightness value data is reported, the ambient light sensor performs sampling in a conventional default sampling period, and reports the second ambient light brightness value obtained by the acquisition to the ambient light sensor driver, and further reports the second ambient light brightness value 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 and other frames reported subsequently after the first frame brightness value data is reported.
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 process proceeds to step S108 described below.
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 greater 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, 350ms) 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: 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, the brightness of the display screen is kept 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 light brightness value of the plurality of frames is not within the preset threshold range, which indicates that the ambient light 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 light 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, in which case a new dimming target value may not be decided.
On the other hand, after the collected 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 multi-frame data is higher than the upper dimming threshold, which indicates that the brightness of the external environment where the electronic device is located may increase after the screen is lightened, the brightness of the display screen may be increased, i.e., lightened. 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 adjusting method when the display screen is lighted provided by the embodiment of the present application will be described with reference to 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 the screen brightness is realized.
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 schematic block diagrams are 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 are both running 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. Which processors are specifically 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 kernel layer can comprise a kernel node and an OLED driver, the kernel node is used for storing a light-emitting brightness value of the OLED device, and the OLED driver is used for acquiring the light-emitting brightness value from the kernel 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 may be understood as a sensor hub (sensor hub) that can control the sensors and process data related to the sensors. The implementation of the embodiment of the present application needs to rely on: 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 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 screen brightness adjusting method when the display screen is lit according to the embodiment of the present application may include steps S1 to S19 described below. Accordingly, fig. 9 is a module interaction timing diagram of a screen brightness adjustment method when a display screen is lighted according to an embodiment of the present application.
And step S1, when the Hall sensor in the SCP processor detects that the 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 leather sheath from contact, namely when the hall sensor is close to far away, and the leather sheath is in an opening process state, the hall sensor can sense the action of the leather sheath from closing to opening.
The Hall sensor drive can monitor the state change of the Hall sensor. After the hall sensor driving monitors that the hall sensor is far away from the closed position, the step S2 is continuously executed, and the step S5 is 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.
Step S2, the hall sensor driver sends a message to the ambient light sensor driver for notifying the hall away 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 the hall far event, the ambient light sensor driver may start predicting the ambient light brightness, i.e. triggering the ambient light sensor to perform high frequency sampling, in a specific prediction manner as shown in steps S3 and S4 below.
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 the high-frequency sampling, for example, 150ms is consumed if 3 times are sampled, and after 150ms is counted from the hall far, 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 level needs to be started based on the time difference T2 to T1. For example, when the time difference T2-T1 is greater than or equal to the preset time period of 200ms, the prediction of the ambient light level can be started.
And step 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, 50ms), 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 a specific implementation, after the ambient light sensor driver monitors the hall sensor far event, a new sampling period (for example, 50ms) 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 step S4, responding to the brightness acquisition command, acquiring the brightness value of the ambient light by the ambient light sensor at a high sampling rate, and reporting the acquired brightness value of the ambient light 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 50ms) within an effective time (for example, 200ms), 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 driven by the ambient light sensor to be reported to the brightness acquisition module of the display engine. 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 ambient light sampled subsequently is reported according to a conventional process, and whether the command of the first frame is received is not considered.
Alternatively, the luminance value may be expressed in lux (lux) which is 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 step S5, the Hall sensor driver reports the Hall far event to the Hall sensor application.
And step S6, the Hall sensor application reports the Hall far event to the Hall sensor interface in the AP processor.
And step S7, the Hall sensor interface reports the Hall far-away event to the power management module through the sensor service module.
Step S8, the power management module sends the bright screen event to the brightness obtaining module of the display engine to instruct the brightness obtaining module to obtain 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 that the scheme of this application relates to. 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.
Step S9, the brightness obtaining module issues a batch processing (batch) command to the ambient light sensor interface through the sensor service module, where the batch command is used to instruct obtaining the brightness value of the first frame.
The brightness obtaining 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 to obtain a first frame brightness value. The specific batch command issuing process refers to the description of steps S9-S12.
Optionally, the luminance obtaining module starts timing when the luminance obtaining module issues the batch command, and if the luminance obtaining module obtains the luminance value of the first frame within the valid time, the luminance value of the first frame may be used as the luminance value when the display screen is on.
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 step S12, after the ambient light sensor drive monitors the batch command, the ambient light sensor reports the predicted first frame brightness value to the ambient light sensor application.
It can be understood that, as described above, the first frame brightness value 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 before bright may 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 acquire multi-frame brightness value data, and the first-frame brightness value is calculated according to the multi-frame brightness value data, so that the first-frame brightness value can be reported timely and accurately.
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 luminance 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 the 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).
The specific process of reporting the brightness value of the first frame refers to the following description of step S13 and step S14.
And step S13, the ambient light sensor application reports the received brightness value of the first frame to the ambient light sensor interface.
Step S14, the ambient light sensor interface reports the brightness value of the first frame to the brightness obtaining module through the sensor service.
Through the above steps S9 to S14, the brightness obtaining module obtains the brightness value of the first frame when the display screen is turned on.
And step 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 is described in step S18-step S21.
And step S16, the power management module sends the received brightness value of the first frame to the OLED interface.
And step S17, the OLED interface stores the received brightness value of the first frame into the kernel node.
And step 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 step S19, the OLED driver issues 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.
As can be seen from the foregoing steps S17 to S21, after the power management module obtains the brightness value of the first frame, the brightness of the electronic device display screen when being lit can be set, so that the brightness of the display screen is consistent with the brightness of the environment, thereby avoiding a problem that the screen is obviously changed in brightness or the screen is obviously delayed after being lit, and 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
In S203, the ambient light sensor is driven at a high sampling rate (for example, a sampling period t of 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 50 ms.
In particular implementations, the ambient light sensor driver may write an updated sampling period (e.g., 50ms) 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, 200 ms.
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 samples: 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 is 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 the linear slope value K ═ L B -L A )/((T B -T A ) T) and calculating the theoretical sampling number n ═ T (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 the 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 drives 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 10lux), 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 closed to open.
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 a part 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 that ambient light sensor gathered, 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-end ambient light sensor but also the rear-end ambient light sensor, the front-end ambient light sensor and the rear-end ambient light sensor may be used in combination to acquire the actual ambient light level data. Specifically, the brightness value collected by the front-end environment light sensor can be properly compensated or corrected based on the brightness value collected by the rear-end environment light sensor, so that the accuracy of measuring the actual environment light brightness value is improved, further, the brightness of the display screen during the bright screen is consistent with the actual environment light brightness, the problem that the screen is obviously changed in brightness or is obviously delayed after the bright screen is lightened is avoided, and therefore the problem that the display screen is too dazzling due to too high display brightness in a dark environment can be avoided, or the problem that the display screen is not clearly seen due to too low display brightness in a bright environment is avoided, and the user experience is improved.
It should be noted that the first frame luminance algorithm provided by the application is not only suitable for predicting the first frame luminance of a leather case opening scene, but also can be used for predicting the first frame luminance 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 making, the ambient light sampling value lux is low at the moment, when the mobile phone is taken away from the ear, the screen needs to be bright due to the close light, the first frame luminance value lux acquired at the moment is low due to previous shielding, and the problem that the probability is firstly dark and then bright in 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. Exemplarily, in actual implementation, when the luminance value lux of the previous frame is greater than a certain value, it indicates that the ambient light is not blocked, and the normal sampling and reporting steps 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 components (e.g., chips or circuits) that can be used in 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 embodiments corresponds to the description of the method embodiments, and therefore, for brevity, details are not repeated here, since the details that are not described in detail may be referred to the above method embodiments.
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 would appreciate that the various illustrative components 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 as 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.
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 ambient light sensor's sampling rate, 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 be so that luminance when the leather sheath is opened the in-process display screen bright screen is unanimous with actual environment luminance, can avoid behind the bright screen that the screen takes place the light and shade change phenomenon that is showing or the 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. Wherein sensor module 980 may include a pressure sensor 980A, a gyroscope sensor 980B, a barometric 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, among others.
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.
Processor 910 may include one or more processing units, such as: the processor 910 may include an Application Processor (AP), a modem processor, a Graphics Processing Unit (GPU), an Image Signal Processor (ISP), a controller, a memory, a video codec, a Digital Signal Processor (DSP), a baseband processor, and/or a neural-Network Processing Unit (NPU), etc. The different processing units may be separate devices or may be integrated into one or more processors. The controller may be, among other things, a neural center and a command center of the electronic device 900. The controller can generate an operation control signal according to the instruction operation code and the timing signal to complete the control of instruction fetching and instruction execution.
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 (mobile industry processor interface, GPIO), a general-purpose-input/output (GPIO) interface, a Subscriber Identity Module (SIM) interface, a bus/Universal Serial Bus (USB) interface, and/or the like. 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 for receiving charging input from the charger. The charger can 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 may 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 the 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 including 2G/3G/4G/5G wireless communication 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 modules of the mobile communication module 950 may be disposed in the same device as at least some of the modules 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 transferred 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 located 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 electromagnetic waves via the antenna 2, performs frequency modulation and filtering on the 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 (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, and the like. 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 functionality via the GPU, the display screen 994, and the application processor, among other things. The GPU is a microprocessor for image processing, and is connected to the display screen 994 and an application processor. The GPU is used to perform mathematical and geometric calculations for graphics rendering. Processor 910 may include one or more GPUs that execute program instructions to generate or alter 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 (active-organic light emitting diode), a Flexible Light Emitting Diode (FLED), a miniature, a Micro-ole, 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 shooting function through an ISP, a camera 993, a video codec, a GPU, a display screen 994, an 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 the 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. 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, which processes input information quickly by referring to a biological neural network structure, for example, by referring to 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 the preset service (such as file transmission service) exists, the 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 through the speaker 970A or listen to a hands-free call.
Receiver 970B, also referred to as an "earpiece," is used to convert the electrical audio signal into an acoustic signal. 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 into the microphone 970C by making a sound by approaching 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, and 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 diodes. 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 light 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 level. 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 referred to as 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 in direct proportion to the displacement, and the electronic device 900 obtains the hall potential, so that the displacement can be measured.
The fingerprint sensor 980H is used to capture 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 temperatures causing the electronic device 900 to shut down abnormally. 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 related to user settings and function control 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 when it is operated by touching different areas of the display screen 994. Different application scenarios (e.g., time reminding, receiving information, alarm clock, game, etc.) may also correspond to different vibration feedback effects. The touch vibration feedback effect may also support customization.
The indicator 992 may be an indicator light, and may be used to indicate a charging state, a change in the amount of power, or may be used to indicate a message, a missed call, a notification, or the like.
The SIM card interface 995 is used to connect SIM cards. 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 be used to 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 embodiment of the present application does not specifically limit the device type of the electronic device 900.
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 respectively correspond to the brightness adjusting unit 830, the hall sensing unit 810 and the ambient light sensing unit 820 in the apparatus 800 in fig. 13.
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 coupled with a memory, and configured to read and execute a computer program or instructions stored in the memory to perform the method in the above 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 methods in the embodiments are performed.
Optionally, in some embodiments, the present application further provides a computer-readable storage medium storing program code, which, when the computer program code runs on a computer, causes the computer to execute 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 in which codes of the method provided by the embodiment of the present application are recorded. For example, an execution main body 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 referred to 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, etc. 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 of the application 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 (DRAM), Synchronous Dynamic Random Access Memory (SDRAM), double data rate synchronous dynamic random access memory (DDR SDRAM), enhanced synchronous SDRAM (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 is clear to those skilled in the art that, for convenience and brevity 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 logical division, and other divisions may be realized in practice, for example, a plurality of 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 place, or may be distributed on a plurality of 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, if implemented in the form of software functional units and sold or used as a stand-alone product, may be stored in a computer readable storage medium. 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: a U disk, a removable hard disk, a ROM, a RAM, a magnetic disk or an optical disk, and various media capable of storing program codes.
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 (34)

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;
and lightening the display screen according to the first ambient light brightness value.
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:
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.
3. The method of claim 2, wherein 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 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.
4. The method of claim 3, wherein 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; alternatively, the first and second electrodes may be,
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.
5. The method of claim 4, wherein 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 brightness value and the last sampled brightness value by using the following equation:
Figure FDA0003290695710000011
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:
y=K×(m-n)+L B
Figure FDA0003290695710000012
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.
6. The method according to any one of claims 1 to 5, 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.
7. The method of any of claims 1 to 6, 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.
8. The method according to any one of claims 1 to 7, wherein 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 closing, determining the leather case is opened from buckling;
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.
9. The method of any of claims 1-8, 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.
10. The method of claim 9, 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; alternatively, the first and second electrodes may be,
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.
11. The method of claim 10, wherein 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 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; alternatively, the first and second electrodes may be,
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.
12. Method according to any of claims 2 to 4, characterized in that 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.
13. The method of claim 12, 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.
14. The method of claim 13, wherein 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.
15. The method of any one of claims 12 to 14, 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.
16. The method of any one of claims 1 to 15, wherein the ambient light sensor is an off-screen ambient light sensor or a non-off-screen ambient light sensor.
17. A screen brightness adjusting method is applied to an electronic device with a display screen, wherein the electronic device is provided with a preposed ambient light sensor and is provided with a leather sheath, the electronic device comprises a sensor coprocessor SCP and an application processor AP, and the method comprises the following steps:
in response to a user opening the 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;
and the AP processor lights the display screen according to the first environment light brightness value.
18. The method of claim 17, 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 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 from the plurality of brightness values.
19. The method of claim 18, wherein said SCP processor determining said first ambient light brightness value from said plurality of brightness values comprises:
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 Indicating the timestamp recorded when the holster was detected as being opened.
20. The method of claim 19, wherein said SCP processor determining said first ambient light brightness value from said plurality of brightness values comprises:
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; alternatively, the first and second electrodes may be,
if the latest sampled brightness value is greater than the last sampled brightness value, the SCP processor predicts the first ambient light brightness value based on a linear relationship between the latest sampled brightness value and the last sampled brightness value.
21. The method of claim 20, wherein said SCP processor predicting said first ambient light brightness value from a linear relationship between said most recent sampled brightness value and said last sampled brightness value comprises:
the SCP processor calculates a linear slope K from the last sampled luminance value and the last sampled luminance value using the following equation:
Figure FDA0003290695710000041
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;
the SCP processor predicts the first ambient light brightness value y from the linear slope K using the following equation:
y=K×(m-n)+L B
Figure FDA0003290695710000042
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.
22. A method according to any of claims 17 to 21 wherein the SCP processor samples by the ambient light sensor at the second sampling period to obtain a first ambient light brightness value, comprising:
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.
23. The method of any one of claims 17 to 22, 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.
24. The method according to any of claims 17 to 23, wherein the electronic device is provided with a hall sensor, the holster is provided with a magnetic element, 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.
25. A method according to any of claims 17 to 24, 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, by a drive unit of an ambient light sensor, a sampling period of the ambient light sensor from the second sampling period to the first sampling period.
26. A method according to any of claims 18 to 20 wherein the SCP processor determines the first ambient light brightness value from the 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.
27. The method of claim 24, 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.
28. The method of claim 27, 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.
29. The method according to any one of claims 17 to 25, wherein said AP processor illuminating said display screen according to said first ambient light brightness value comprises:
the AP processor receives the first ambient light brightness value;
the AP processor sets the first ambient light brightness value as a first brightness value when the display screen is lightened through the display engine unit, and triggers the display screen to be switched from a screen-off state to a screen-on state.
30. The method of any one of claims 17 to 29, wherein the ambient light sensor is an off-screen ambient light sensor or a non-off-screen ambient light sensor.
31. An electronic device comprising a sensor co-processor SCP, an application processor AP, a display screen and a front-mounted 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 16.
32. A chip system comprising a sensor co-processor SCP and an application processor AP, both coupled to a memory, for reading and executing computer programs stored in the memory to implement the method of any of claims 17 to 30.
33. A computer-readable storage medium, characterized in that it stores a computer program which, when run on an electronic device, causes the electronic device to perform the method of any of claims 1 to 16 or the method of any of claims 17 to 30.
34. A computer program product, which, when run on a computer, causes the computer to perform the method of any one of claims 1 to 16 or the method of any one of claims 17 to 30.
CN202111163744.1A 2021-09-30 2021-09-30 Screen brightness adjusting method and electronic equipment Active CN114999421B (en)

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 true CN114999421A (en) 2022-09-02
CN114999421B 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)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116682367A (en) * 2022-10-14 2023-09-01 荣耀终端有限公司 Screen ambient light detection method, electronic device, medium and program product

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070097065A1 (en) * 2005-10-31 2007-05-03 Research In Motion Limited Automatic screen and keypad brightness adjustment on a mobile handheld electronic device
WO2007051288A1 (en) * 2005-10-31 2007-05-10 Research In Motion Limited Automatic screen and keypad brightness adjustment on a mobile handheld electronic device
US20090278828A1 (en) * 2008-05-12 2009-11-12 Research In Motion Limited Method and Apparatus for Automatic Brightness Adjustment on a Display of a Mobile Electronic Device
CN101819898A (en) * 2009-02-27 2010-09-01 捷讯研究有限公司 Automatic keypad backlight on the ambulatory handheld electronic device is regulated
US20110074690A1 (en) * 2009-02-27 2011-03-31 Research In Motion Limited Automatic keypad backlight adjustment on a mobile handheld electronic device
US20110102451A1 (en) * 2009-11-05 2011-05-05 Research In Motion Limited Multiple orientation mobile electronic handheld device and method of ambient light sensing and backlight adjustment implemented therein
EP2403223A1 (en) * 2010-06-30 2012-01-04 Research In Motion Limited Adaptation of display illumination depending on ambient light
WO2021169337A1 (en) * 2020-02-29 2021-09-02 荣耀终端有限公司 In-screen fingerprint display method and electronic device
CN113395388A (en) * 2020-02-26 2021-09-14 华为技术有限公司 Screen brightness adjusting method and electronic equipment

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070097065A1 (en) * 2005-10-31 2007-05-03 Research In Motion Limited Automatic screen and keypad brightness adjustment on a mobile handheld electronic device
WO2007051288A1 (en) * 2005-10-31 2007-05-10 Research In Motion Limited Automatic screen and keypad brightness adjustment on a mobile handheld electronic device
CN101346755A (en) * 2005-10-31 2009-01-14 捷讯研究有限公司 Automatic screen and keypad brightness adjustment on a mobile handheld electronic device
US20090278828A1 (en) * 2008-05-12 2009-11-12 Research In Motion Limited Method and Apparatus for Automatic Brightness Adjustment on a Display of a Mobile Electronic Device
CN101819898A (en) * 2009-02-27 2010-09-01 捷讯研究有限公司 Automatic keypad backlight on the ambulatory handheld electronic device is regulated
US20110074690A1 (en) * 2009-02-27 2011-03-31 Research In Motion Limited Automatic keypad backlight adjustment on a mobile handheld electronic device
US20110102451A1 (en) * 2009-11-05 2011-05-05 Research In Motion Limited Multiple orientation mobile electronic handheld device and method of ambient light sensing and backlight adjustment implemented therein
EP2403223A1 (en) * 2010-06-30 2012-01-04 Research In Motion Limited Adaptation of display illumination depending on ambient light
CN113395388A (en) * 2020-02-26 2021-09-14 华为技术有限公司 Screen brightness adjusting method and electronic equipment
WO2021169337A1 (en) * 2020-02-29 2021-09-02 荣耀终端有限公司 In-screen fingerprint display method and electronic device

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116682367A (en) * 2022-10-14 2023-09-01 荣耀终端有限公司 Screen ambient light detection method, electronic device, medium and program product
CN116682367B (en) * 2022-10-14 2024-03-29 荣耀终端有限公司 Screen ambient light detection method, electronic equipment and medium

Also Published As

Publication number Publication date
CN114999421B (en) 2023-03-31

Similar Documents

Publication Publication Date Title
CN113407053B (en) Touch screen, electronic equipment and display control method
CN113395388B (en) Screen brightness adjusting method and electronic equipment
CN113475057B (en) Video frame rate control method and related device
CN113810601B (en) Terminal image processing method and device and terminal equipment
CN113824834B (en) Control method for screen-off display, electronic equipment, chip and computer readable storage medium
CN113625860B (en) Mode switching method and device, electronic equipment and chip system
CN113722030B (en) Display method, electronic equipment and computer storage medium
CN113542580B (en) Method and device for removing light spots of glasses and electronic equipment
CN114095666B (en) Photographing method, electronic device, and computer-readable storage medium
CN111552451A (en) Display control method and device, computer readable medium and terminal equipment
CN114863494A (en) Screen brightness adjusting method and device and terminal equipment
CN111930335A (en) Sound adjusting method and device, computer readable medium and terminal equipment
CN114999421B (en) Screen brightness adjusting method and electronic equipment
CN111580671A (en) Video image processing method and related device
CN115597706B (en) Ambient light detection method, electronic equipment and chip system
CN112188094B (en) Image processing method and device, computer readable medium and terminal equipment
CN111399659B (en) Interface display method and related device
CN113674258B (en) Image processing method and related equipment
CN114070916A (en) Light supplementing method for shooting and related device
CN114115513B (en) Key control method and key device
CN116206560A (en) Anti-afterimage processing method of OLED display screen and electronic equipment
CN115862564A (en) Screen brightness adjusting method, screen brightness adjusting device and storage medium
CN116527807A (en) Stream re-broadcasting method, electronic device, storage medium and program product
CN116661984A (en) Load control method, electronic equipment and storage medium
CN116582743A (en) Shooting method, electronic equipment and medium

Legal Events

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