1. Technical Field
The present disclosure relates to electronic devices, and particularly, to an electronic device having a display and a method for adjusting brightness of the display.
2. Description of Related Art
Some computers have an automatic brightness control function for automatically adjusting the brightness of its display screen according an ambient illumination. Typically, the brightness of the display screen is adjusted in such a way that the display screen is bright in a brightly lit environment but is dark in a dimly lit environment.
However, when a user or other object inadvertently shadows the ambient light of the detected area where the illumination sensor senses, the brightness of the display screen may be incorrectly adjusted to be dark.
Therefore, what is needed is a means to solve the problem described above.
Many aspects of the present disclosure should be better understood with reference to the following drawings. The units in the drawings are not necessarily drawn to scale, the emphasis instead being placed upon clearly illustrating the principles of the present disclosure. Moreover, in the drawings, like reference numerals designate corresponding portions throughout the views.
In the embodiment, the electronic device 1 further includes an illumination sensor 12, a distance detecting unit 13, a storage unit 14, and a control unit 15. The illumination sensor 12 periodically detects the current ambient illumination when the electronic device 1 is under the automatic mode. In the embodiment, the illumination sensor 12 is a photosensitive diode, a photosensitive triode, or a photosensitive resistor. The detection of the ambient illumination implemented by the photosensitive diode, the photosensitive triode, and the photosensitive resistor is a well known technique, thus a detailed description thereof is omitted herein for conciseness in explanation.
The distance detecting unit 13 periodically detects the current distance between the user and the electronic device 1 when the electronic device 1 is under the automatic mode.
In the embodiment, the detected ambient illumination is divided into ten illumination levels, namely, a first illumination level to a tenth illumination level, and each illumination level corresponds to a predefined ambient illumination range. More specifically, the first illumination level corresponds to a lowest ambient illumination range, and the tenth illumination level corresponds to a greatest ambient illumination range. For example, the first illumination level corresponds to a brightness range of 0˜10 candela, the second illumination level corresponds to a brightness range of 1˜20 candela, and so forth.
The control unit 15 obtains the detected current distance and the detected current ambient illumination, determines a current illumination level corresponding to the detected current ambient illumination. In the embodiment, the control unit 15 determines the brightness range which the detected ambient illumination falls to determine the illumination level corresponding to the detected ambient illumination. Then, the control unit 15 stores the determined current illumination level and the detected current distance in the storage unit 14. The current illumination level determined previously is a historical illumination level, and the current distance detected previously is a historical distance. After the current illumination level is determined, the current illumination level replaces the historical illumination level to update the historical illumination level; similarly, after the current distance is obtained, the current distance replaces the historical distance to update the historical distance. The control unit 15 further compares the current illumination level with the historical illumination level. If the current illumination level differs from the historical illumination level, the control unit 15 further compares the current distance with the historical distance. If the current distance differs from the historical distance, the control unit 15 maintains the brightness of the display 11; otherwise, the control unit 15 adjusts the brightness of the display 11 according to the determined illumination level.
In the embodiment, the illumination sensor 12 and the distance detecting unit 13 stop detecting the current ambient illumination and the current distance when the electronic device 1 is in a stand-by state, thereby avoiding adjusting the brightness of the display 11 when the user does not use the electronic device 1. The detecting period of the illumination sensor 12 and the distance detecting unit 13 can be set by the user.
In the embodiment, the storage unit 14 further stores a brightness table, and the brightness table includes a variety of illumination levels and an optimal brightness of the display 11 associated with each illumination level. For example, the first illumination level is associated with an optimal brightness of 10%, and the second illumination level is associated with an optimal brightness of 20%, and so forth. As mentioned above, after determining the illumination level corresponding to the detected ambient illumination, the control unit 15 determines the associated optimal brightness based on the brightness table, and then adjusts the brightness of the display 11 according to the determined optimal brightness.
In the embodiment, the electronic device 1 further includes an input unit 16. The input unit 16, such as a variety of mechanical buttons or touch-sensitive buttons provided on the electronic device 1, is provided for the user to manually adjust the brightness of the display 11 under the manual mode and then generates a first instruction signal correspondingly. The control unit 15 adjusts the brightness of the display 11 only according to the first instruction signal when the electronic device 1 is under the manual mode. In the embodiment, the input unit 12 is further for the user to manually select the manual mode or the automatic mode, and then generates a second instruction signal. The control unit 15 controls the electronic device 1 to enter the corresponding mode according to the second instruction signal.
In the embodiment, when the electronic device 1 is under the automatic mode, the control unit 15 adjusts the brightness of the display 11 further according to a ratio (labeled as R) based on an actual brightness of the display 11 adjusted according to the first instruction signal with respect to the optimal brightness of the display 11 associated with the current illumination level. In the embodiment, the ratio R is obtained by the control unit 15 and then stored in the storage unit 14 when the electronic device 1 is under the manual mode. In this case, the illumination sensor 12 also detects the ambient illumination when the electronic device 1 is under the manual mode. After responding to the first instruction signal, the control unit 15 adjusts the brightness of the display 11 to the actual brightness. Then, the control unit 15 obtains the optimal brightness associated with the corresponding illumination level, thus the ratio R is obtained based on the actual brightness with respect to the obtained optimal brightness.
When the electronic device 1 is switched to the automatic mode, the control unit 15 obtains the optimal brightness associated with the determined illumination level based on the brightness table, and then calculates a actual brightness by multiplying the obtained optimal brightness and the ratio R, thus the brightness of the display 11 is allowed to be adjusted to the calculated actual brightness.
For example, at one moment when the electronic device 1 is under the manual mode, the user manually adjusts the brightness of the display 11 to be 30%. At this moment, the ambient illumination detected by the illumination sensor 12 corresponds to the second illumination level, and the second illumination level is associated with the optimal brightness of 20%. In this case, the ratio R is obtained to be 1.5, indicating that the actual brightness of the display 11 that the user prefers is 1.5 times than the optimal brightness preset for the display 11. If the electronic device 1 is switched to the automatic mode and the detected ambient illumination varies to correspond to the third illumination level, the control unit 15 obtains the optimal brightness 30% associated with the third illumination level, and then adjusts the brightness of the display 11 to 45% that is calculated by multiplying the obtained brightness 30% and the calculated ratio 1.5. Therefore, the brightness of the display 11 is adjusted not only according to the ambient illumination, but also according to the user's preference.
In step S21, the input unit 12 generates a second instruction signal when the user manually selects the manual mode or the automatic mode.
In step S22, the control unit 15 controls the electronic device 1 to enter the corresponding mode according to the second instruction signal.
In step S23, when the electronic device 1 is under the automatic mode, the illumination sensor 12 periodically detects the current ambient illumination; the distance detecting unit 13 periodically detects the current distance between the user and the electronic device 1; and the control unit 15 determines the current illumination level corresponding to the detected current ambient illumination.
In step S24, the control unit 15 compares the current illumination level with the historical illumination level, if the current illumination level differs from the historical illumination level, the procedure goes to step S25; otherwise, the procedure goes back to step S23.
In step S25, the control unit 15 compares the current distance with the historical distance, if the current distance differs from the historical distance, the procedure goes to step S26; otherwise, the procedure goes to step S27.
In step S26, the control unit 15 maintains the brightness of the display 11.
In step S27, the control unit 15 obtains the optimal brightness of the display 11 associated with the current illumination level, calculates the actual brightness of the display 11 by multiplying the obtained optimal brightness and the ratio R, and then adjusts the brightness of the display 11 to the calculated actual brightness.
In step S28, the control unit 15 stores the current illumination level and the current distance in the storage unit 14 to update the historical illumination level and the historical distance.
It is believed that the present embodiments and their advantages will be understood from the foregoing description, and it will be apparent that various changes may be made thereto without departing from the spirit and scope of the disclosure or sacrificing all of its material advantages, the examples hereinbefore described merely being exemplary embodiments of the present disclosure.
Number | Date | Country | Kind |
---|---|---|---|
201110409261.5 | Dec 2011 | CN | national |