CN110837289A - Power saving method and device applied to OLED screen equipment and electronic equipment - Google Patents

Power saving method and device applied to OLED screen equipment and electronic equipment Download PDF

Info

Publication number
CN110837289A
CN110837289A CN201910995593.2A CN201910995593A CN110837289A CN 110837289 A CN110837289 A CN 110837289A CN 201910995593 A CN201910995593 A CN 201910995593A CN 110837289 A CN110837289 A CN 110837289A
Authority
CN
China
Prior art keywords
target webpage
real
equipment
electric quantity
value
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.)
Pending
Application number
CN201910995593.2A
Other languages
Chinese (zh)
Inventor
高凌霄
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Sankuai Online Technology Co Ltd
Original Assignee
Beijing Sankuai Online Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Sankuai Online Technology Co Ltd filed Critical Beijing Sankuai Online Technology Co Ltd
Priority to CN201910995593.2A priority Critical patent/CN110837289A/en
Publication of CN110837289A publication Critical patent/CN110837289A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F1/00Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
    • G06F1/26Power supply means, e.g. regulation thereof
    • G06F1/32Means for saving power
    • G06F1/3203Power management, i.e. event-based initiation of a power-saving mode
    • G06F1/3234Power saving characterised by the action undertaken
    • G06F1/325Power saving in peripheral device
    • G06F1/3265Power saving in display device

Abstract

The application discloses a power saving method applied to OLED screen equipment, belongs to the technical field of electronic equipment, and is beneficial to improving the power saving performance of the equipment. The power saving method applied to the OLED screen device comprises the following steps: responding to the interface call of the display target webpage, and monitoring the real-time electric quantity of the equipment; then, modifying a root label style sheet of the target webpage according to the monitored real-time electric quantity value of the equipment so as to adjust the gray value of each pixel point in the target webpage; and finally, rendering the target webpage according to the modified root tag style sheet, and controlling the equipment to display the target webpage based on webpage data obtained by rendering, wherein in the process of controlling the equipment to display the target webpage based on the webpage data obtained by rendering, the equipment drives the luminous material at the corresponding position of the OLED screen of the equipment by using current matched with the gray value of each pixel point in the target webpage, so that the power consumption of the OLED screen in webpage display can be effectively saved.

Description

Power saving method and device applied to OLED screen equipment and electronic equipment
Technical Field
The present application relates to the field of electronic devices, and in particular, to a power saving method and apparatus applied to an OLED screen device, an electronic device, and a computer-readable storage medium.
Background
In order to save power consumption and reduce power consumption speed, electronic devices are usually provided with a power saving mode. Taking a smart phone as an example, when the battery power is only 20% and 10%, the battery management application of the smart phone may remind the user whether the low power mode is turned on or not due to insufficient battery power. In the low power mode, the smart phone with the lcd generally achieves the purpose of saving power through the following two ways: first, some inactive application processes are shut down; second, some settings that can reduce the battery consumption of the phone are turned on (e.g., reduce the resolution, disable the display action). However, the power consumption saved by the above method is limited for OLED (organic light emitting diode) screen devices.
For OLED screen devices, it is desirable to provide an efficient method of saving power.
Disclosure of Invention
The application provides a power saving method applied to OLED screen equipment, which can improve the power saving performance of the equipment.
In order to solve the above problem, in a first aspect, an embodiment of the present application provides a power saving method applied to an OLED screen device, including:
responding to the interface call of the display target webpage, and monitoring the real-time electric quantity of the equipment;
modifying a root label style sheet of the target webpage according to the monitored real-time electric quantity value of the equipment so as to adjust the gray value of each pixel point in the target webpage;
rendering the target webpage according to the modified root tag style sheet, and controlling the equipment to display the target webpage based on webpage data obtained by rendering;
and in the process of controlling the equipment to display the target webpage based on webpage data obtained by rendering, the equipment drives the luminous material at the corresponding position of the OLED screen of the equipment by using the current matched with the gray value of each pixel point in the target webpage.
In a second aspect, an embodiment of the present application provides a power saving device applied to an OLED screen device, including:
the real-time electric quantity monitoring module is used for responding to the interface call of the display target webpage and monitoring the real-time electric quantity of the equipment;
the webpage gray value adjusting module is used for modifying the root label style sheet of the target webpage according to the monitored real-time electric quantity value of the equipment so as to adjust the gray value of each pixel point in the target webpage;
the webpage display module is used for rendering the target webpage according to the modified root tag style sheet and controlling the equipment to display the target webpage based on webpage data obtained through rendering;
and in the process of controlling the equipment to display the target webpage based on webpage data obtained by rendering, the equipment drives the luminous material at the corresponding position of the OLED screen of the equipment by using the current matched with the gray value of each pixel point in the target webpage.
In a third aspect, an embodiment of the present application further discloses an electronic device, which includes a memory, a processor, and a computer program stored in the memory and executable on the processor, and when the processor executes the computer program, the electronic device implements the power saving method applied to the OLED screen device according to the embodiment of the present application.
In a fourth aspect, the present application provides a computer-readable storage medium, on which a computer program is stored, which when executed by a processor, performs the steps of the power saving method applied to the OLED screen device disclosed in the embodiments of the present application.
According to the power saving method applied to the OLED screen equipment, the real-time electric quantity of the equipment is monitored by responding to the interface call of the display target webpage; then, modifying a root label style sheet of the target webpage according to the monitored real-time electric quantity value of the equipment so as to adjust the gray value of each pixel point in the target webpage; and finally, rendering the target webpage according to the modified root tag style sheet, and controlling the equipment to display the target webpage based on webpage data obtained by rendering, wherein in the process of controlling the equipment to display the target webpage based on the webpage data obtained by rendering, the equipment drives the luminous material at the corresponding position of the OLED screen of the equipment by using the current matched with the gray value of each pixel point in the target webpage, so that the power consumption of the OLED screen when the webpage is displayed can be effectively saved, and the power saving performance of the equipment is improved.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings needed to be used in the description of the embodiments or the prior art will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without inventive exercise.
Fig. 1 is a flowchart of a power saving method applied to an OLED screen device according to a first embodiment of the present application;
FIG. 2 is a flowchart of a power saving method applied to an OLED screen device according to a second embodiment of the present application;
FIG. 3 is a schematic diagram illustrating an original webpage display effect according to a second embodiment of the present application;
fig. 4 is a schematic diagram illustrating an adjusted webpage display effect according to a second embodiment of the present application;
FIG. 5 is a second schematic diagram illustrating an adjusted webpage display effect according to a second embodiment of the present application;
FIG. 6 is a flowchart of a power saving method applied to an OLED screen device according to a third embodiment of the present application;
FIG. 7 is a schematic structural diagram of a power saving device applied to an OLED screen device according to a fourth embodiment of the present application;
fig. 8 is a second schematic structural diagram of a power saving device applied to an OLED screen device according to a fourth embodiment of the present application.
Detailed Description
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, but not all, embodiments of the present application. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
Example one
As shown in fig. 1, the method for saving power applied to an OLED screen device includes: step 110 to step 130.
And step 110, responding to the interface call for displaying the target webpage, and monitoring the real-time electric quantity of the equipment.
In some embodiments of the present application, the power saving method applied to the OLED screen device disclosed in the embodiments of the present application may be installed in a browser in the form of a plug-in, or may be called by a target web page in the form of a method or a code library. Then, the power saving method applied to the OLED screen device disclosed in the embodiment of the present application will be executed while the target web page is displayed.
When the power saving method applied to the OLED screen device disclosed by the embodiment of the application is operated, the real-time electric quantity monitoring of the device is started firstly.
In some embodiments of the present application, the real-time electric quantity of the device may be obtained by calling a power management interface provided by an operating system of the device in real time (for example, the real-time electric quantity of the device is obtained by calling the power management interface provided by the operating system of the device once every 30 seconds), so as to monitor the real-time electric quantity of the device.
In other embodiments of the present application, a battery power change event (generally, a battery power change event is triggered every time the battery power changes by 1%) may also be monitored through a system application for monitoring the battery power built in the device, so as to monitor the real-time power of the device.
In other embodiments of the present application, other methods may also be used to monitor the real-time electric quantity of the device, which is not illustrated herein. The specific implementation mode of the real-time electric quantity of the monitoring equipment is not limited.
And 120, modifying the root label style sheet of the target webpage according to the monitored real-time electric quantity value of the equipment so as to adjust the gray value of each pixel point in the target webpage.
An OLED (Organic Light Emitting diode) display is a display based on thin film display technology. An AMOLED (Active-matrix organic light-emitting diode) screen is one of the OLED screens. OLED screens have the property of self-luminescence, using very thin coatings of organic materials and glass substrates, which emit light when a current is passed through them. Each pixel of the OLED screen can be controlled independently without the need for a constant backlight.
The inventor repeatedly tests the power consumption of the OLED screen by displaying wallpapers with different colors on OLED screen equipment to find that the power consumption of the OLED screen is the least when the OLED screen displays black wallpapers, the power consumption is the least when green and other dark wallpapers are displayed, and the power consumption is the highest when white wallpapers are displayed. And by combining the display principle of the OLED screen, the OLED screen does not emit light under the condition of no power supply, and the screen displays black. Therefore, the inventor finds that the effect of saving screen power consumption can be achieved by adjusting the color of the page displayed by the OLED screen.
Specifically, in the embodiment of the application, after the real-time electric quantity value of the device is obtained, the real-time electric quantity value is used as a setting parameter of a webpage element label style in the target webpage, and the gray value of each pixel point in the target webpage is adjusted according to the setting parameter. For example, when the real-time electric quantity value of the device is greater than the preset low-electric-quantity threshold, the gray value of each pixel point in the webpage can be linearly increased along with the reduction of the real-time electric quantity of the device, so as to reduce the electric quantity consumption when the webpage is displayed; when the real-time electric quantity value of the equipment is smaller than or equal to the preset low-electric-quantity threshold value, namely the battery of the equipment is already in a low-electric-quantity state, the gray value of each pixel point in the webpage can be set to be the maximum, and the background color and the foreground color of the webpage are subjected to reverse color processing, so that the electric quantity consumption is further reduced when the webpage is displayed.
The display style of the whole webpage can be determined by the root label style of the webpage, so the gray value of each pixel point in the target webpage, the background color and the foreground color of the webpage are adjusted by modifying the follow label style of the target webpage.
And step 130, rendering the target webpage according to the modified root tag style sheet, and controlling the equipment to display the target webpage based on webpage data obtained by rendering.
And in the process of controlling the equipment to display the target webpage based on webpage data obtained by rendering, the equipment drives the luminous material at the corresponding position of the OLED screen of the equipment by using the current matched with the gray value of each pixel point in the target webpage.
For example, a target webpage is accessed on an OLED screen smart phone through a browser, the browser first obtains a page code of the target webpage and executes the page code to obtain page data. And then, rendering the page according to the obtained page data, and sending the rendered data to a display interface provided by the system of the smart phone for display. Specifically, in the embodiment of the present application, when the browser executes the code of the target webpage, the step of setting the foreground color, the background color and the gray value of the target webpage according to the obtained device real-time electric quantity value is executed, and then, the browser performs rendering on the target webpage according to the set foreground color, background color and gray value of the target webpage to obtain page data after the target webpage is adjusted.
And then, the browser sends the rendered page data to a display memory of the equipment, calls a display interface of an OLED screen and displays the page data.
As described in the previous steps, for a web page with a white background and a black foreground, when the battery of the device is in a low-power state, the web page is adjusted to be the black background and the white foreground. At this time, because the background pixel points are more than the foreground pixel points, when the background pixel points are displayed, the current does not need to be output to the screen pixel points corresponding to the pixel points, and therefore, the electric quantity consumption required by displaying the webpage can be greatly reduced.
According to the power saving method applied to the OLED screen equipment, the real-time electric quantity of the equipment is monitored by responding to the interface call of the display target webpage; then, modifying a root label style sheet of the target webpage according to the monitored real-time electric quantity value of the equipment so as to adjust the gray value of each pixel point in the target webpage; and finally, rendering the target webpage according to the modified root tag style sheet, and controlling the equipment to display the target webpage based on webpage data obtained by rendering, wherein in the process of controlling the equipment to display the target webpage based on the webpage data obtained by rendering, the equipment drives the luminous material at the corresponding position of the OLED screen of the equipment by using the current matched with the gray value of each pixel point in the target webpage, so that the power consumption of the OLED screen when the webpage is displayed can be effectively saved, and the power saving performance of the equipment is improved.
On the other hand, under the condition that screen brightness is higher, risk of screen burning and screen aging is more likely to occur, the gray value of the webpage displayed on the sub-screen is adjusted according to the real-time electric quantity value of the equipment, the pixel brightness value of the screen can be effectively reduced, risk of screen burning is reduced, screen aging is slowed down, and the service life of the screen is prolonged.
Example two
The following describes in detail a technical solution of a power saving method applied to an OLED screen device, which is disclosed in an embodiment of the present application, with reference to fig. 2. As shown in fig. 2, the method: step 210 to step 250.
Step 210, responding to the interface call of the display target webpage, and monitoring the real-time electric quantity of the equipment.
For a specific implementation manner of monitoring the real-time electric quantity of the device in response to the interface call for displaying the target webpage, reference is made to embodiment one, and details are not repeated in this embodiment.
Step 220, determining whether the monitored real-time electric quantity value of the device is less than or equal to a preset low electric quantity threshold value, if so, executing step 230, otherwise, executing step 240.
In the embodiment of the application, after the real-time electric quantity value of the device is obtained, the real-time electric quantity value is used as a setting parameter of a webpage element label style in the target webpage, and the gray value of each pixel point in the target webpage is adjusted according to the setting parameter. When the real-time electric quantity value of the equipment is larger than the preset low-electric-quantity threshold value, along with the reduction of the real-time electric quantity of the equipment, the gray value of each pixel point in the webpage can be linearly increased so as to reduce the electric quantity consumption when the webpage is displayed; when the real-time electric quantity value of the equipment is smaller than or equal to the preset low-electric-quantity threshold value, namely the battery of the equipment is already in a low-electric-quantity state, the gray value of each pixel point in the webpage can be set to be the maximum, and the background color and the foreground color of the webpage are subjected to reverse color processing, so that the electric quantity consumption is further reduced when the webpage is displayed.
And step 230, in response to that the real-time electric quantity value of the device obtained by the real-time electric quantity monitoring is smaller than or equal to a preset low-electric-quantity threshold value, performing reverse color processing on the foreground color and the background color of the target webpage by modifying parameters of the foreground color, the background color and the page gray value set in the root tag style sheet of the target webpage.
In some embodiments of the present application, the modifying the root tag style sheet of the target webpage according to the monitored real-time electric quantity value of the device to adjust the gray value of each pixel point in the target webpage includes: and in response to the fact that the real-time electric quantity value of the equipment obtained by the real-time electric quantity monitoring is smaller than or equal to a preset low-electric-quantity threshold value, performing reverse color processing on the foreground color and the background color of the target webpage by modifying parameters of setting the foreground color, the background color and the page gray value in a root tag style sheet of the target webpage, and setting the page gray value of the target webpage as the maximum value. CSS (Cascading styles lists) is used to set the display style and rules of a web page, and by modifying a row in CSS, the middle display style of all pages defined by the list changes accordingly. For example, the filter in CSS, gray () method, is used to perform gray conversion on a picture. In specific implementation, the amount of the conversion value of the gray scale (amount) may be a numerical value or a percentage, when the amount value is 100%, the gray scale of the image obtained by conversion is the largest, and when the amount value is 0%, the gray scale of the image obtained by conversion is not different from that of the original image. An amount value between 0% and 100% will cause the picture to change in gray linearly.
In some embodiments of the present application, the foreground color, the background color and the page gray value of the target webpage are set by calling the style setting method filter in the CSS, i.e., invert (1) and gray (1). It can be seen from the above method that when the original foreground color of the target web page is black and the original background color is white, the foreground color of the target web page is set to be white and the background color is set to be black by calling the above style setting method. Since most web pages have white original background color and black original foreground color, when the device battery is in a low-power state, the background color of the web pages can be adjusted to black and the foreground color can be adjusted to white by executing the above-described root tag style setting method. Taking the original web page displayed in fig. 3 as an example, the display effect of the adjusted target web page is shown in fig. 4.
And jumping to the step 250, rendering and displaying the adjusted target webpage.
Step 240, in response to that the real-time electric quantity value of the device obtained by the real-time electric quantity monitoring is larger than a preset low-electric-quantity threshold value, taking the real-time electric quantity value of the device as a parameter for setting foreground color, background color and page gray value in a root tag style sheet of the target webpage, and adjusting the gray value of the target webpage.
In some embodiments of the present application, the modifying the root tag style sheet of the target webpage according to the monitored real-time electric quantity value of the device to adjust the gray value of each pixel point in the target webpage includes: in response to the real-time electric quantity value of the device obtained through the real-time electric quantity monitoring being larger than a preset low-electric quantity threshold value, taking the real-time electric quantity value of the device as a parameter for setting foreground color, background color and page gray value in a root label style sheet of the target webpage, and adjusting the gray value of the target webpage, wherein the foreground color is set to be inversely proportional to the real-time electric quantity value of the device, the background color is set to be directly proportional to the real-time electric quantity value of the device, and the page gray value is set to be inversely proportional to the real-time electric quantity value of the device.
Taking the monitored real-time electric quantity value of the device as x, wherein the real-time electric quantity value is that x is more than or equal to 0 and less than or equal to 1, when x is 0, the battery is in an electric quantity exhaustion state, and when x is 1, the battery is in a full electric state. Assuming that the preset low-power threshold is 20%, when the real-time power value x of the device is greater than or equal to 20%, it indicates that the device does not reach a low-power state at present, and in order to reduce the power consumption speed of the device, and simultaneously avoid the risks of screen burn-in and screen aging, and prolong the service life of the screen, in the embodiment of the application, the brightness achieved by each pixel point of the screen is reduced by modifying the gray value of each pixel point of the target webpage.
In some embodiments of the application, the foreground color, the background color and the page gray value are set by calling a style setting method filter (1-x) in the CSS, wherein x is a monitored real-time electric quantity value of the device. It can be seen from the above method that the foreground color of the target webpage is set to be inversely proportional to the device real-time electric quantity value, and the background color is set to be directly proportional to the device real-time electric quantity value. That is, when x is equal to 1 (i.e., when the battery is full), the background color of the target web page is set to white, and the foreground color (i.e., the font color) is set to black, and at this time, the gray scale value of the target web page is the minimum (i.e., the gray scale value of the target web page is the same as the original gray scale value), and the display effect of the target web page is as shown in fig. 3. When x is equal to 0 (i.e., when the battery power is low), the background color of the target web page is set to be close to black, and the foreground color (i.e., the font color) is set to be close to white, at this time, the gray value of the target web page is the largest, and the display effect of the target web page is similar to the web page display effect shown in fig. 4. When x is equal to 0.5 (i.e. when the battery level is low), the grayscale value of the target webpage is greater than the grayscale value of the original webpage, and at this time, the display effect of the target webpage is as shown in fig. 5.
And 250, rendering the target webpage according to the modified root tag style sheet, and controlling the equipment to display the target webpage based on webpage data obtained by rendering.
And in the process of controlling the equipment to display the target webpage based on webpage data obtained by rendering, the equipment drives the luminous material at the corresponding position of the OLED screen of the equipment by using the current matched with the gray value of each pixel point in the target webpage.
The specific implementation of rendering the target webpage according to the modified root tag style sheet and controlling the device to display the target webpage based on the rendered webpage data is referred to in embodiment one, and details are not repeated in this embodiment.
According to the power saving method applied to the OLED screen equipment, the real-time electric quantity of the equipment is monitored by responding to the interface call of the display target webpage; responding to the fact that the real-time electric quantity value of the device obtained through the real-time electric quantity monitoring is larger than a preset low-electric-quantity threshold value, taking the real-time electric quantity value of the device as parameters for setting foreground color, background color and page gray value in a root label style sheet of the target webpage, and adjusting the gray value of the target webpage; wherein the foreground color is set to be inversely proportional to the device real-time electric quantity value, the background color is set to be directly proportional to the device real-time electric quantity value, and the page gray value is set to be inversely proportional to the device real-time electric quantity value; responding to that the real-time electric quantity value of the equipment obtained by the real-time electric quantity monitoring is smaller than or equal to a preset low-electric-quantity threshold value, performing reverse color processing on foreground color and background color of the target webpage by modifying parameters of setting foreground color, background color and page gray value in a root tag style sheet of the target webpage, and setting the page gray value of the target webpage as a maximum value; and finally, rendering the target webpage according to the modified root tag style sheet, and controlling the equipment to display the target webpage based on the webpage data obtained by rendering, so that the power consumption of the OLED screen when the webpage is displayed can be effectively saved, and the power saving performance of the equipment is improved.
On the other hand, under the condition that screen brightness is higher, risk of screen burning and screen aging is more likely to occur, the gray value of the webpage displayed on the sub-screen is adjusted according to the real-time electric quantity value of the equipment, the pixel brightness value of the screen can be effectively reduced, risk of screen burning is reduced, screen aging is slowed down, and the service life of the screen is prolonged.
EXAMPLE III
Based on the first embodiment and the second embodiment, as shown in fig. 6, in another embodiment of the present application, after the step of responding to the interface call of the display target web page, the method further includes: step 260 to step 280.
Step 260, timing the operation interval of the target webpage of the user.
In specific implementation, after the browser acquires the webpage data of the target webpage according to the interface call for displaying the target webpage, or after the browser finishes displaying the target webpage, the method times the operation interval of the target webpage of the user.
In some embodiments of the present application, a timing task may be started first, then, an operation of a user on the target webpage is detected through a trigger event of a registration screen, and when the operation of the user on the target webpage is detected, the timing task is restarted. And if the operation of the user on the target webpage is not detected, the timing task carries out accumulated timing on the webpage operation time interval of the user.
When the power saving method applied to the OLED screen device disclosed by the embodiment of the application is operated, the real-time electric quantity monitoring of the device is started firstly.
Step 270, determining whether the operation interval is greater than or equal to a preset time interval, if so, executing step 280, otherwise, continuing timing.
And if the user does not operate the target webpage within the preset time interval, adjusting the gray value of the displayed webpage to reduce the electric quantity consumption of the equipment.
Step 280, in response to the operation interval being greater than or equal to the preset time interval, modifying the root tag style sheet of the target webpage to adjust the gray value of each pixel point in the target webpage.
In some embodiments of the application, the modifying the root tag style sheet of the target webpage in response to the operation interval being greater than or equal to a preset time interval to adjust the gray value of each pixel point in the target webpage includes: and performing reverse color processing on the foreground color and the background color of the target webpage by modifying parameters of setting the foreground color, the background color and the page gray value in the root tag style sheet of the target webpage, and setting the page gray value of the target webpage as the maximum value.
The parameters of the foreground color, the background color and the page gray value set in the root tag style sheet of the target webpage are modified, the foreground color and the background color of the target webpage are subjected to reverse color processing, the page gray value of the target webpage is set to be the maximum value, see embodiment two, and this embodiment is not repeated.
After the target webpage is subjected to the reverse color processing, for the target webpage with the original background color being white and the foreground color being black, the target webpage with the background color being black and the foreground color being white is adjusted (as shown in fig. 4), then, the step 250 is skipped, the adjusted target webpage is rendered according to the modified root tag style sheet, and the device is controlled to display the adjusted target webpage based on the rendered webpage data.
According to the power saving method applied to the OLED screen device, the operation interval of the target webpage of the user is timed, and under the condition that the target webpage is not operated for a long time, the target webpage is subjected to reverse color processing, so that the power consumption of the screen when the target webpage is displayed is saved, the power consumption of the device when the webpage is displayed is saved, and the power saving performance of the device is improved.
Example four
As shown in fig. 7, the power saving device applied to an OLED screen device disclosed in this embodiment includes:
the real-time electric quantity monitoring module 710 is used for responding to the interface call of the display target webpage and monitoring the real-time electric quantity of the equipment;
the web page gray value adjusting module 720 is configured to modify the root label style sheet of the target web page according to the monitored real-time electric quantity value of the device, so as to adjust the gray value of each pixel point in the target web page;
a web page display module 730, configured to render the target web page according to the modified root tag style sheet, and control the device to display the target web page based on web page data obtained through rendering;
and in the process of controlling the equipment to display the target webpage based on webpage data obtained by rendering, the equipment drives the luminous material at the corresponding position of the OLED screen of the equipment by using the current matched with the gray value of each pixel point in the target webpage.
In some embodiments of the present application, the web page gray-level adjusting module 720 is further configured to:
responding to the fact that the real-time electric quantity value of the device obtained through the real-time electric quantity monitoring is larger than a preset low-electric-quantity threshold value, taking the real-time electric quantity value of the device as parameters for setting foreground color, background color and page gray value in a root label style sheet of the target webpage, and adjusting the gray value of the target webpage; wherein the foreground color is set to be inversely proportional to the device real-time electric quantity value, the background color is set to be directly proportional to the device real-time electric quantity value, and the page gray value is set to be inversely proportional to the device real-time electric quantity value.
In other embodiments of the present application, the web page gray-level value adjusting module 720 is further configured to:
and in response to the fact that the real-time electric quantity value of the equipment obtained by the real-time electric quantity monitoring is smaller than or equal to a preset low-electric-quantity threshold value, performing reverse color processing on the foreground color and the background color of the target webpage by modifying parameters of setting the foreground color, the background color and the page gray value in a root tag style sheet of the target webpage, and setting the page gray value of the target webpage as the maximum value.
In some embodiments of the present application, as shown in fig. 8, the apparatus further comprises:
an operation interval timing module 740, configured to time an operation interval of the target web page;
the web page gray value adjusting module 720 is further configured to modify the root tag style sheet of the target web page in response to that the operation interval is greater than or equal to a preset time interval, so as to adjust the gray value of each pixel point in the target web page.
And then, calling the webpage display module, rendering the target webpage according to the modified root tag style sheet, and controlling the equipment to display the target webpage based on webpage data obtained by rendering.
In some embodiments of the application, the modifying the root tag style sheet of the target webpage in response to the operation interval being greater than or equal to a preset time interval to adjust the gray value of each pixel point in the target webpage includes: and performing reverse color processing on the foreground color and the background color of the target webpage by modifying parameters of setting the foreground color, the background color and the page gray value in the root tag style sheet of the target webpage, and setting the page gray value of the target webpage as the maximum value.
The power saving device applied to the OLED screen device disclosed in the embodiment of the present application is used to implement each step of the power saving method applied to the OLED screen device described in the first and second embodiments of the present application, and specific implementation manners of each module of the device refer to the corresponding step, which is not described herein again.
The power saving device applied to the OLED screen equipment disclosed by the embodiment of the application monitors the real-time electric quantity of the equipment by responding to the interface call of a display target webpage; then, modifying a root label style sheet of the target webpage according to the monitored real-time electric quantity value of the equipment so as to adjust the gray value of each pixel point in the target webpage; and finally, rendering the target webpage according to the modified root tag style sheet, and controlling the equipment to display the target webpage based on webpage data obtained by rendering, wherein in the process of controlling the equipment to display the target webpage based on the webpage data obtained by rendering, the equipment drives the luminous material at the corresponding position of the OLED screen of the equipment by using the current matched with the gray value of each pixel point in the target webpage, so that the power consumption of the OLED screen when the webpage is displayed can be effectively saved, and the power saving performance of the equipment is improved.
On the other hand, under the condition that screen brightness is higher, risk of screen burning and screen aging is more likely to occur, the gray value of the webpage displayed on the sub-screen is adjusted according to the real-time electric quantity value of the equipment, the pixel brightness value of the screen can be effectively reduced, risk of screen burning is reduced, screen aging is slowed down, and the service life of the screen is prolonged.
Correspondingly, the application also discloses an electronic device, which comprises a memory, a processor and a computer program which is stored on the memory and can run on the processor, wherein when the processor executes the computer program, the power saving method applied to the OLED screen device is realized according to any one of the first embodiment to the third embodiment of the application. The electronic device can be a PC, a mobile terminal, a personal digital assistant, a tablet computer and the like.
The application also discloses a computer readable storage medium, on which a computer program is stored, which when executed by a processor implements the steps of the power saving method applied to the OLED screen device as described in any one of the first to third embodiments of the application.
The embodiments in the present specification are described in a progressive manner, each embodiment focuses on differences from other embodiments, and the same and similar parts among the embodiments are referred to each other. For the device embodiment, since it is basically similar to the method embodiment, the description is simple, and for the relevant points, refer to the partial description of the method embodiment.
The foregoing describes in detail a power saving method and apparatus applied to an OLED screen device, and the present application applies specific examples to explain the principle and the implementation of the present application, and the description of the foregoing examples is only used to help understand the method and the core idea of the present application; meanwhile, for a person skilled in the art, according to the idea of the present application, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present application.
Through the above description of the embodiments, those skilled in the art will clearly understand that each embodiment can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware. With this understanding in mind, the above-described technical solutions may be embodied in the form of a software product, which can be stored in a computer-readable storage medium such as ROM/RAM, magnetic disk, optical disk, etc., and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to execute the methods described in the embodiments or some parts of the embodiments.

Claims (10)

1. A power saving method applied to an OLED screen device is characterized by comprising the following steps:
responding to the interface call of the display target webpage, and monitoring the real-time electric quantity of the equipment;
modifying a root label style sheet of the target webpage according to the monitored real-time electric quantity value of the equipment so as to adjust the gray value of each pixel point in the target webpage;
rendering the target webpage according to the modified root tag style sheet, and controlling the equipment to display the target webpage based on webpage data obtained by rendering;
and in the process of controlling the equipment to display the target webpage based on webpage data obtained by rendering, the equipment drives the luminous material at the corresponding position of the OLED screen of the equipment by using the current matched with the gray value of each pixel point in the target webpage.
2. The method according to claim 1, wherein the step of modifying the root tag style sheet of the target webpage according to the monitored real-time electric quantity value of the device to adjust the gray value of each pixel point in the target webpage comprises:
responding to the fact that the real-time electric quantity value of the device obtained through the real-time electric quantity monitoring is larger than a preset low-electric-quantity threshold value, taking the real-time electric quantity value of the device as parameters for setting foreground color, background color and page gray value in a root label style sheet of the target webpage, and adjusting the gray value of the target webpage; wherein the foreground color is set to be inversely proportional to the device real-time electric quantity value, the background color is set to be directly proportional to the device real-time electric quantity value, and the page gray value is set to be inversely proportional to the device real-time electric quantity value.
3. The method according to claim 1, wherein the step of modifying the root tag style sheet of the target webpage according to the monitored real-time electric quantity value of the device to adjust the gray value of each pixel point in the target webpage comprises:
and in response to the fact that the real-time electric quantity value of the equipment obtained by the real-time electric quantity monitoring is smaller than or equal to a preset low-electric-quantity threshold value, performing reverse color processing on the foreground color and the background color of the target webpage by modifying parameters of setting the foreground color, the background color and the page gray value in a root tag style sheet of the target webpage, and setting the page gray value of the target webpage as the maximum value.
4. The method of any of claims 1 to 3, wherein the step of responding to the interface call to display the target webpage is followed by further comprising:
timing the operation interval of the target webpage of the user;
in response to the operation interval being greater than or equal to a preset time interval, modifying a root tag style sheet of the target webpage to adjust the gray value of each pixel point in the target webpage;
rendering the target webpage according to the modified root tag style sheet, and controlling the equipment to display the target webpage based on webpage data obtained by rendering.
5. The method of claim 4, wherein the step of modifying the root tag style sheet of the target webpage to adjust the gray value of each pixel point in the target webpage in response to the operation interval being greater than or equal to a preset time interval comprises:
and performing reverse color processing on the foreground color and the background color of the target webpage by modifying parameters of setting the foreground color, the background color and the page gray value in the root tag style sheet of the target webpage, and setting the page gray value of the target webpage as the maximum value.
6. A power saving device for an OLED screen device, comprising:
the real-time electric quantity monitoring module is used for responding to the interface call of the display target webpage and monitoring the real-time electric quantity of the equipment;
the webpage gray value adjusting module is used for modifying the root label style sheet of the target webpage according to the monitored real-time electric quantity value of the equipment so as to adjust the gray value of each pixel point in the target webpage;
the webpage display module is used for rendering the target webpage according to the modified root tag style sheet and controlling the equipment to display the target webpage based on webpage data obtained through rendering;
and in the process of controlling the equipment to display the target webpage based on webpage data obtained by rendering, the equipment drives the luminous material at the corresponding position of the OLED screen of the equipment by using the current matched with the gray value of each pixel point in the target webpage.
7. The apparatus of claim 6, wherein the web page grayvalue adjustment module is further configured to:
responding to the fact that the real-time electric quantity value of the device obtained through the real-time electric quantity monitoring is larger than a preset low-electric-quantity threshold value, taking the real-time electric quantity value of the device as parameters for setting foreground color, background color and page gray value in a root label style sheet of the target webpage, and adjusting the gray value of the target webpage; wherein the foreground color is set to be inversely proportional to the device real-time electric quantity value, the background color is set to be directly proportional to the device real-time electric quantity value, and the page gray value is set to be inversely proportional to the device real-time electric quantity value.
8. The apparatus of claim 6, wherein the web page grayvalue adjustment module is further configured to:
and in response to the fact that the real-time electric quantity value of the equipment obtained by the real-time electric quantity monitoring is smaller than or equal to a preset low-electric-quantity threshold value, performing reverse color processing on the foreground color and the background color of the target webpage by modifying parameters of setting the foreground color, the background color and the page gray value in a root tag style sheet of the target webpage, and setting the page gray value of the target webpage as the maximum value.
9. An electronic device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, wherein the processor implements the power saving method of any one of claims 1 to 5 applied to an OLED screen device when executing the computer program.
10. A computer-readable storage medium, on which a computer program is stored, characterized in that the program, when being executed by a processor, carries out the steps of the power saving method as claimed in any one of claims 1 to 5 applied to an OLED screen device.
CN201910995593.2A 2019-10-18 2019-10-18 Power saving method and device applied to OLED screen equipment and electronic equipment Pending CN110837289A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910995593.2A CN110837289A (en) 2019-10-18 2019-10-18 Power saving method and device applied to OLED screen equipment and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910995593.2A CN110837289A (en) 2019-10-18 2019-10-18 Power saving method and device applied to OLED screen equipment and electronic equipment

Publications (1)

Publication Number Publication Date
CN110837289A true CN110837289A (en) 2020-02-25

Family

ID=69575454

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910995593.2A Pending CN110837289A (en) 2019-10-18 2019-10-18 Power saving method and device applied to OLED screen equipment and electronic equipment

Country Status (1)

Country Link
CN (1) CN110837289A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111610847A (en) * 2020-05-29 2020-09-01 Oppo广东移动通信有限公司 Page display method and device of third-party application program and electronic equipment

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20100174930A1 (en) * 2009-01-05 2010-07-08 Samsung Electronics Co., Ltd. Mobile device having organic light emitting display and related display method for power saving
CN102004784A (en) * 2010-11-25 2011-04-06 北京播思软件技术有限公司 Electricity-saving method of handheld terminal browser
CN107346167A (en) * 2016-05-06 2017-11-14 中兴通讯股份有限公司 The method and device of a kind of display control
CN108174436A (en) * 2017-12-27 2018-06-15 北京传嘉科技有限公司 Display methods and device

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20100174930A1 (en) * 2009-01-05 2010-07-08 Samsung Electronics Co., Ltd. Mobile device having organic light emitting display and related display method for power saving
CN102004784A (en) * 2010-11-25 2011-04-06 北京播思软件技术有限公司 Electricity-saving method of handheld terminal browser
CN107346167A (en) * 2016-05-06 2017-11-14 中兴通讯股份有限公司 The method and device of a kind of display control
CN108174436A (en) * 2017-12-27 2018-06-15 北京传嘉科技有限公司 Display methods and device

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
黑马程序员: "《网页制作与网站建设实战教程[M]》", 31 October 2018 *

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111610847A (en) * 2020-05-29 2020-09-01 Oppo广东移动通信有限公司 Page display method and device of third-party application program and electronic equipment
CN111610847B (en) * 2020-05-29 2022-05-17 Oppo广东移动通信有限公司 Page display method and device of third-party application program and electronic equipment

Similar Documents

Publication Publication Date Title
CN111486950B (en) Ambient light detection method, ambient light detection device, electronic apparatus, and storage medium
EP3584676B1 (en) Method, device, medium, and electronic apparatus for dynamically adjusting power saving level of terminal
CN103050108B (en) A kind of screen backlight dynamic adjustment method and user terminal
EP1758357B1 (en) Apparatus and method for displaying a mobile terminal standby screen
US20200335048A1 (en) Method, apparatus, and device for adjusting backlight brightness based on human eye characteristics
CN107111992B (en) method and terminal for adjusting backlight brightness
US20110069089A1 (en) Power management for organic light-emitting diode (oled) displays
CN110299104B (en) Driving circuit and driving method of display panel and display device
KR101997776B1 (en) Method for reducing for consumption power of display unit and an electronic device thereof
US20100225640A1 (en) Switching Operating Modes of Liquid Crystal Displays
US20120293477A1 (en) Reducing power consumption for a mobile terminal
CN102272817A (en) Display apparatus and drive method for display apparatus
WO2015070676A1 (en) Terminal display control method and terminal
WO2022001492A1 (en) Interface processing method and apparatus, electronic device, and computer-readable storage medium
CN111866482A (en) Display method, terminal and storage medium
CN113130607B (en) Display device, electronic apparatus, control method, device, and readable storage medium
CN114093323B (en) Screen control method and device, electronic equipment and storage medium
WO2013082940A1 (en) Oled display control method and device, and terminal device
CN110837289A (en) Power saving method and device applied to OLED screen equipment and electronic equipment
US10176766B2 (en) Display driving method and apparatus and display device comprising the display driving apparatus
CN113885824A (en) Screen control method and device, electronic equipment and storage medium
CN113053313B (en) OLED screen ghost reduction method, system, device and storage medium
US20200192554A1 (en) Terminal device, display control method implemented by the terminal device, computer readable storage medium and computer program product
CN103533319A (en) Method and device for reducing power consumption of mobile terminal
CN116781878A (en) Pixel parameter adjusting method and device, computer equipment and storage 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