Disclosure of Invention
In view of the above, an object of the present invention is to provide an interface control method and apparatus, which can prolong a power supply duration of a power supply device in an electronic device by reducing power consumption of a display device in the electronic device. The specific technical scheme is as follows:
the invention provides an interface control method, which comprises the following steps:
acquiring the type of a display device configured by the electronic equipment;
when the type of the display device is a first type, controlling the display device to call a first type interface matched with the first type, and displaying the first type interface on the display device;
and when the type of the display device is a second type, controlling the display device to call a second type interface matched with the second type, and displaying the second type interface on the display device, wherein the proportion of at least a first type tone in the second type interface is larger than that of a second type tone in the second type interface, and the power consumption of the first type tone is smaller than that of the second type tone.
Preferably, when the type of the display device is a second type, controlling the display device to call a second type interface matched with the second type includes:
and when the type of the display device is a second type, setting the tone of the pixel of the background part in the original interface corresponding to the display device as the first type tone and setting the tone of the pixel of the content part in the original interface as the second type tone to obtain the second type interface.
Preferably, when the type of the display device is a second type, controlling the display device to call a second type interface matched with the second type includes:
and when the type of the display device is a second type, setting the tone of each pixel in the original interface corresponding to the display device as the first type tone, and filling the content part in the original interface with the color of the second type tone to obtain a second type interface.
Preferably, the first type of shade is black or gray and the second type of shade is white.
Preferably, the obtaining of the type of the display device configured by the electronic device includes:
acquiring an identifier of a display device from a storage device corresponding to the display device;
determining a type of the display device based on the identity of the display device.
The present invention also provides an interface control apparatus, the apparatus comprising:
the device comprises an acquisition unit, a display unit and a display unit, wherein the acquisition unit is used for acquiring the type of a display device configured by the electronic equipment;
the first control unit is used for controlling the display device to call a first type interface matched with the first type when the type of the display device is the first type, and displaying the first type interface on the display device;
and the second control unit is used for controlling the display device to call a second type interface matched with the second type and display the second type interface on the display device when the type of the display device is the second type, wherein the proportion of at least a first type tone in the second type interface is larger than that of a second type tone in the second type interface, and the power consumption of the first type tone is smaller than that of the second type tone.
Preferably, when the type of the display device is a second type, the second control unit is configured to set a tone of a pixel of a background portion in an original interface corresponding to the display device to a first type tone and set a tone of a pixel of a content portion in the original interface to a second type tone, so as to obtain the second type interface.
Preferably, when the type of the display device is the second type, the second control unit is configured to set the color tone of each pixel in the original interface corresponding to the display device as the first type color tone, and fill the content part in the original interface with the color of the second type color tone to obtain the second type interface.
Preferably, the first type of shade is black or gray and the second type of shade is white.
Preferably, the obtaining unit is configured to obtain an identifier of the display device from a storage device corresponding to the display device; determining a type of the display device based on the identity of the display device.
Compared with the prior art, the technical scheme provided by the invention has the following advantages:
according to the technical scheme, after the type of the display device configured by the electronic equipment is obtained, when the type of the display device is the first type, the display device is controlled to call a first type interface matched with the first type, and the first type interface is displayed on the display device; and when the type of the display device is the second type, controlling the display device to call a second type interface matched with the second type, and displaying the second type interface on the display device, so as to configure different types of interfaces for different types of display devices.
And the proportion of at least the first type tone in the second type interface is greater than the proportion of the second type tone in the second type interface, and the power consumption of the first type tone is less than the power consumption of the second type tone, so that when the display device displays the second type interface, the power consumption of the display device can be reduced by configuring the proportion of the first type tone and the second type tone in the second type interface, so as to prolong the power supply time of the power supply device in the electronic equipment.
Detailed Description
The inventors studied the power consumption of two types of Display devices, i.e., an O L ED (Organic light Emitting Display) device and a L CD (L acquired Crystal Display), and found that, taking the 5 inch FHD (Full High Definition) resolution as an example, a L CD type of Display device has a backlight in an electronic apparatus always in an on state during the Display of contents by the Display device, and thus the power consumption of the Display device is about 850mW (milliwatts) regardless of the type of interface displayed by the Display device, whereas, in the O L ED type of Display device, the power consumption of an O L ED device varies depending on the type of interface displayed by an O L ED device during the Display of contents by the O L ED device.
The three types of interfaces of fig. 1 to 3 are respectively displayed by the O L ED device, wherein the color tone of the pixel of the background portion in the original interface shown in fig. 1 is white, the color tone of the pixel of the background portion in the original interface is changed from white to gray by the interface shown in fig. 2, the color tone of the pixel of the background portion in the original interface is changed from white to black by the interface shown in fig. 3, the O L ED device is compared with L CD of the same size and the same 5 inch FHD resolution by the inventor, and it is found that the power consumption of the O L ED device is 831mW when the O L ED device displays the interface shown in fig. 1, the power consumption of the O L ED device displays the interface shown in fig. 2 is 335mW, the power consumption of the O L ED device displays the interface shown in fig. 3 is 164mW, and the power consumption is reduced to 20% of the original interface shown in fig..
According to the research on the power consumption of the two types of display devices, namely the O L ED device and the L CD, the power consumption of the display device can be reduced by controlling the type of the interface displayed by the display device, particularly the type of the interface displayed by the O L ED device, so that the power supply time of a power supply device in the electronic equipment is prolonged.
In order to make the objects, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, but not all, embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
Referring to fig. 4, a flowchart of an interface control method according to an embodiment of the present invention is shown, where the method includes the following steps:
401: and acquiring the type of the display device configured by the electronic equipment. It can be understood that: the type of the display device is used to indicate which type of display device is used by the electronic equipment, and in the embodiment of the present invention, the type of the display device may be indicated by identification information of the display device.
For example, when the display device is a display screen, a register is set in a module driver of the display screen, where the register is a storage device corresponding to the display screen, and represents the type of the display screen by a cured value burned in the register, optionally, when the burned cured value is 0, the type of the display screen is a first type (e.g., L CD), and when the burned cured value is 1, the type of the display screen is a second type (e.g., O L ED).
In the embodiment of the present invention, a feasible way to acquire the type of the display device configured in the electronic device is as follows: and acquiring the identifier of the display device from the storage device corresponding to the display device, and determining the type of the display device based on the identifier of the display device.
402: and when the type of the display device is a first type, controlling the display device to call a first type interface matched with the first type, and displaying the first type interface on the display device.
In the embodiment of the present invention, in the case that the pixels in the first type interface adopt different hues, the power consumption of the first type display device does not change significantly, that is, the power consumption of the first type display device does not decrease or increase significantly due to the difference in hue of the pixels in the displayed first type interface, such as the display device of the type L CD described above, which displays any one of the interfaces of fig. 1 to 3, the power consumption of L CD is about 850, so that for this type of display device, the display device may be controlled to call the original interface matched with the first type to use the original interface as the first type interface.
The original interface is considered as the first type of interface because: the original interface is an interface which is set for the electronic equipment and accords with the requirements of the electronic equipment and user experience based on the physical characteristics of the electronic equipment and the characteristics of system application, the definition of the display content of the electronic equipment is improved due to the arrangement of the tone and other colors in the original interface, and therefore the display device is controlled to display the original interface under the condition that the power consumption of the display device is not obviously reduced or increased due to the difference of the pixel tone in the displayed first type interface, so that the definition of the display content is improved, and the user experience is improved.
403: and when the type of the display device is a second type, controlling the display device to call a second type interface matched with the second type, and displaying the second type interface on the display device.
In the embodiment of the present invention, in the case where the pixels in the second type interface have different hues, the power consumption of the second type display device may significantly change, that is, the power consumption of the second type display device may significantly decrease or increase due to the hue difference of the pixels in the displayed second type interface, such as the above-mentioned OIED type display device, which may significantly differ in the power consumption of the OIED when displaying any one of the interfaces of fig. 1 to 3, and therefore, for this type of display device, it is necessary to control the hue of the pixels in the second type interface displayed by the display device.
Alternatively, one possible way of controlling the hue of the pixels in the second type of interface displayed by the display device is: the aspect ratio of at least the first type tone in the second type interface is greater than the aspect ratio of the second type tone in the second type interface, and the power consumption of the first type tone is less than the power consumption of the second type tone.
Taking the above fig. 1 to fig. 3 as an example, when the percentage of black in the interface is the largest, the power consumption of the display device is the smallest; when the gray proportion in the interface is the maximum, the power consumption of the display device is the second lowest; therefore, in the embodiment of the present invention, if the number of the tones in the second type interface is two, black or gray may be used as the first type tone in the second type interface, and white may be used as the second type tone in the second type interface, and the duty ratio of black or gray in the second type interface is controlled to be greater than the duty ratio of white in the second type interface.
If the number of the hues in the second-type interface is greater than two, black can be used as the first-type hue, white as the second-type hue, and gray as the other-type hue, or gray as the first-type hue, white as the second-type hue, and black as the other-type hue, for these two cases, the ratio of the first-type hue to the ratio of the other-type hue can be controlled to be greater than the ratio of the second-type hue.
And in order to make the ratio of at least the first type hue in the second type interface larger than the ratio of the second type hue in the second type interface, the embodiment of the present invention may obtain the second type interface in the following feasible manner:
one possible way is to: setting the tone of each pixel in the original interface corresponding to the display device as the first type tone, and filling the content part in the original interface with the color of the second type tone to obtain the second type interface, as shown in the above fig. 2 or fig. 3.
Another possibility is: and setting the tone of the pixel of the background part in the original interface corresponding to the display device as a first type tone and setting the tone of the pixel of the content part in the original interface as a second type tone to obtain a second type interface.
Taking an original interface of an application displayed by the display device shown in fig. 5 as an example, the color tone of the pixels of the background portion in the original interface is white, the color tone of the pixels of the content portion in the original interface is a combination of white and black (the background color in the content portion is white, and the text indicating the content is black), and the power consumption of the original interface shown in fig. 5 is 748mW as displayed by the display device.
In order to reduce the power consumption of the display device, the tone of the pixel of the background portion in the original interface may be set to a first type tone, such as setting the tone of the pixel of the background portion to black or gray, and the tone of the pixel of the content portion in the original interface to a second type tone, such as setting the tone of the pixel of the content portion to white, and the resulting second type interface is as shown in fig. 6 or fig. 7, and when the display device displays the second type interface shown in fig. 6, the power consumption of the display device is 289 mW; when the display device displays the second type interface shown in fig. 7, the power consumption of the display device was 142 mW.
According to the technical scheme, after the type of the display device configured by the electronic equipment is obtained, when the type of the display device is the first type, the display device is controlled to call a first type interface matched with the first type, and the first type interface is displayed on the display device; and when the type of the display device is the second type, controlling the display device to call a second type interface matched with the second type, and displaying the second type interface on the display device, so as to configure different types of interfaces for different types of display devices.
And the proportion of at least the first type tone in the second type interface is greater than the proportion of the second type tone in the second type interface, and the power consumption of the first type tone is less than the power consumption of the second type tone, so that when the display device displays the second type interface, the power consumption of the display device can be reduced by configuring the proportion of the first type tone and the second type tone in the second type interface, so as to prolong the power supply time of the power supply device in the electronic equipment.
Referring to fig. 8, a schematic structural diagram of an interface control device according to an embodiment of the present invention is shown, configured to prolong a power supply duration of a power supply device in an electronic device by reducing power consumption of a display device in the electronic device. Specifically, the interface control device may include: anacquisition unit 11, afirst control unit 12 and asecond control unit 13.
The obtainingunit 11 is configured to obtain a type of a display device configured by the electronic apparatus. It can be understood that: the type of the display device is used to indicate which type of display device is used by the electronic equipment, and in the embodiment of the present invention, the type of the display device may be indicated by identification information of the display device.
For example, when the display device is a display screen, a register is set in a module driver of the display screen, where the register is a storage device corresponding to the display screen, and represents the type of the display screen by a cured value burned in the register, optionally, when the burned cured value is 0, the type of the display screen is a first type (e.g., L CD), and when the burned cured value is 1, the type of the display screen is a second type (e.g., O L ED).
In the embodiment of the present invention, the available manner for the obtainingunit 11 to obtain the type of the display device configured in the electronic apparatus is as follows: and acquiring the identifier of the display device from the storage device corresponding to the display device, and determining the type of the display device based on the identifier of the display device.
And afirst control unit 12, configured to control the display device to call a first type interface matched with the first type and display the first type interface on the display device when the type of the display device is the first type.
In the embodiment of the present invention, in the case where the pixels in the first type interface have different hues, the power consumption of the first type display device does not change significantly, that is, the power consumption of the first type display device does not decrease or increase significantly due to the hue difference of the pixels in the displayed first type interface, such as the display device of the aforementioned L CD, which displays any one of the interfaces in fig. 1 to 3, the power consumption of L CD is about 850, so for this type of display device, thefirst control unit 12 may control the display device to call the original interface matching the first type to use the original interface as the first type interface.
The original interface is considered as the first type of interface because: the original interface is an interface which is set for the electronic equipment and accords with the requirements of the electronic equipment and user experience based on the physical characteristics of the electronic equipment and the characteristics of system application, the definition of the display content of the electronic equipment is improved due to the arrangement of the tone and other colors in the original interface, and therefore the display device is controlled to display the original interface under the condition that the power consumption of the display device is not obviously reduced or increased due to the difference of the pixel tone in the displayed first type interface, so that the definition of the display content is improved, and the user experience is improved.
And thesecond control unit 13 is configured to, when the type of the display apparatus is the second type, control the display apparatus to call a second type interface matched with the second type, and display the second type interface on the display apparatus.
In the embodiment of the present invention, in the case where the pixels in the second type interface have different hues, the power consumption of the second type display device may significantly change, that is, the power consumption of the second type display device may significantly decrease or increase due to the hue difference of the pixels in the displayed second type interface, such as the above-mentioned OIED type display device, which displays any one type interface from fig. 1 to fig. 3, the power consumption of the O L ED may significantly differ, and therefore, for this type of display device, it is necessary to control the hue of the pixels in the second type interface displayed by the display device.
Alternatively, thesecond control unit 13 controls one possible way of the hue of the pixels in the second type of interface displayed by the display device: the aspect ratio of at least the first type tone in the second type interface is greater than the aspect ratio of the second type tone in the second type interface, and the power consumption of the first type tone is less than the power consumption of the second type tone.
Taking the above fig. 1 to fig. 3 as an example, when the percentage of black in the interface is the largest, the power consumption of the display device is the smallest; when the gray proportion in the interface is the maximum, the power consumption of the display device is the second lowest; therefore, in the embodiment of the present invention, if the number of the tones in the second type interface is two, black or gray may be used as the first type tone in the second type interface, and white may be used as the second type tone in the second type interface, and the duty ratio of black or gray in the second type interface is controlled to be greater than the duty ratio of white in the second type interface.
If the number of the hues in the second-type interface is greater than two, black can be used as the first-type hue, white as the second-type hue, and gray as the other-type hue, or gray as the first-type hue, white as the second-type hue, and black as the other-type hue, for these two cases, the ratio of the first-type hue to the ratio of the other-type hue can be controlled to be greater than the ratio of the second-type hue.
And in order to make the ratio of at least the first type hue in the second type interface larger than the ratio of the second type hue in the second type interface, thesecond control unit 13 may obtain the second type interface by:
one possible way is to: setting the tone of each pixel in the original interface corresponding to the display device as the first type tone, and filling the content part in the original interface with the color of the second type tone to obtain the second type interface, as shown in the above fig. 2 or fig. 3.
Another possibility is: and setting the tone of the pixel of the background part in the original interface corresponding to the display device as a first type tone and setting the tone of the pixel of the content part in the original interface as a second type tone to obtain a second type interface.
Taking an original interface of an application displayed by the display device shown in fig. 5 as an example, the color tone of the pixels of the background portion in the original interface is white, the color tone of the pixels of the content portion in the original interface is a combination of white and black (the background color in the content portion is white, and the text indicating the content is black), and the power consumption of the original interface shown in fig. 5 is 748mW as displayed by the display device.
In order to reduce the power consumption of the display device, thesecond control unit 13 may set the tone of the pixel of the background portion in the original interface to a first type tone, such as setting the tone of the pixel of the background portion to black or gray, and set the tone of the pixel of the content portion in the original interface to a second type tone, such as setting the tone of the pixel of the content portion to white, the resulting second type interface being as shown in fig. 6 or 7, and the power consumption of the display device is 289mW when the display device displays the second type interface shown in fig. 6; when the display device displays the second type interface shown in fig. 7, the power consumption of the display device was 142 mW.
According to the technical scheme, after the type of the display device configured by the electronic equipment is obtained, when the type of the display device is the first type, the display device is controlled to call a first type interface matched with the first type, and the first type interface is displayed on the display device; and when the type of the display device is the second type, controlling the display device to call a second type interface matched with the second type, and displaying the second type interface on the display device, so as to configure different types of interfaces for different types of display devices.
And the proportion of at least the first type tone in the second type interface is greater than the proportion of the second type tone in the second type interface, and the power consumption of the first type tone is less than the power consumption of the second type tone, so that when the display device displays the second type interface, the power consumption of the display device can be reduced by configuring the proportion of the first type tone and the second type tone in the second type interface, so as to prolong the power supply time of the power supply device in the electronic equipment.
It is noted that, herein, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.
The previous description of the disclosed embodiments is provided to enable any person skilled in the art to make or use the present invention. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the generic principles defined herein may be applied to other embodiments without departing from the spirit or scope of the invention. Thus, the present invention is not intended to be limited to the embodiments shown herein but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.
The foregoing is only a preferred embodiment of the present invention, and it should be noted that, for those skilled in the art, various modifications and decorations can be made without departing from the principle of the present invention, and these modifications and decorations should also be regarded as the protection scope of the present invention.