CN112435635B - Brightness adjusting method and device and computer storage medium - Google Patents

Brightness adjusting method and device and computer storage medium Download PDF

Info

Publication number
CN112435635B
CN112435635B CN202011221672.7A CN202011221672A CN112435635B CN 112435635 B CN112435635 B CN 112435635B CN 202011221672 A CN202011221672 A CN 202011221672A CN 112435635 B CN112435635 B CN 112435635B
Authority
CN
China
Prior art keywords
brightness
card mode
matching
mode
display card
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202011221672.7A
Other languages
Chinese (zh)
Other versions
CN112435635A (en
Inventor
应健
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
LCFC Hefei Electronics Technology Co Ltd
Original Assignee
LCFC Hefei Electronics 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 LCFC Hefei Electronics Technology Co Ltd filed Critical LCFC Hefei Electronics Technology Co Ltd
Priority to CN202011221672.7A priority Critical patent/CN112435635B/en
Publication of CN112435635A publication Critical patent/CN112435635A/en
Application granted granted Critical
Publication of CN112435635B publication Critical patent/CN112435635B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G09EDUCATION; CRYPTOGRAPHY; DISPLAY; ADVERTISING; SEALS
    • G09GARRANGEMENTS OR CIRCUITS FOR CONTROL OF INDICATING DEVICES USING STATIC MEANS TO PRESENT VARIABLE INFORMATION
    • G09G5/00Control arrangements or circuits for visual indicators common to cathode-ray tube indicators and other visual indicators
    • G09G5/10Intensity circuits
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/14Digital output to display device ; Cooperation and interconnection of the display device with other functional units
    • GPHYSICS
    • G09EDUCATION; CRYPTOGRAPHY; DISPLAY; ADVERTISING; SEALS
    • G09GARRANGEMENTS OR CIRCUITS FOR CONTROL OF INDICATING DEVICES USING STATIC MEANS TO PRESENT VARIABLE INFORMATION
    • G09G2320/00Control of display operating conditions
    • G09G2320/06Adjustment of display parameters
    • G09G2320/0626Adjustment of display parameters for control of overall brightness

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Human Computer Interaction (AREA)
  • General Engineering & Computer Science (AREA)
  • Computer Hardware Design (AREA)
  • Controls And Circuits For Display Device (AREA)
  • Transforming Electric Information Into Light Information (AREA)

Abstract

The invention discloses a brightness adjusting method, a device and a computer storage medium, wherein the method comprises the following steps: receiving a mode conversion instruction for switching a first video card mode into a second video card mode; responding to the mode conversion instruction, and acquiring the current brightness and the brightness threshold of the first display card mode; matching the current brightness of the first display card mode with a brightness threshold value based on a first brightness matching range, and determining expected brightness, wherein the expected brightness is used for representing standard brightness corresponding to the current brightness of the first display card mode; matching the expected brightness based on a second brightness matching range, and determining the target brightness of a second display card mode; and adjusting the screen brightness to the target brightness according to the brightness adjustment rule so as to keep the screen brightness consistent before and after the display card is switched.

Description

Brightness adjusting method and device and computer storage medium
Technical Field
The present invention relates to the field of computer technologies, and in particular, to a brightness adjustment method, a brightness adjustment device, and a computer storage medium.
Background
The display card is one of the components of the base of the personal computer and has the functions of converting the display information required by the computer system, providing signal to the display and controlling the correct display of the display. In recent years, with the development of computer technology, a dual-graphics-card computer is gradually becoming one of the mainstream products in the current market by virtue of its higher performance. However, in the application process, after the dual-display-card computer realizes the real-time switching of the display sources of different display cards, the brightness needs to be determined again after the display output sources of the display cards are switched because the brightness conversion algorithm modes adjusted by different display cards are different.
Disclosure of Invention
The embodiment of the invention provides a brightness adjusting method, brightness adjusting equipment and a computer storage medium, which have the function of keeping the brightness of a screen consistent before and after the display card is switched.
One aspect of the present invention provides a brightness adjustment method, including: receiving a mode conversion instruction for switching a first video card mode into a second video card mode; responding to the mode conversion instruction, and acquiring the current brightness and the brightness threshold of the first display card mode; matching the current brightness of the first display card mode with a brightness threshold value based on a first brightness matching range, and determining expected brightness, wherein the expected brightness is used for representing standard brightness corresponding to the current brightness of the first display card mode; matching the expected brightness based on a second brightness matching range, and determining the target brightness of a second display card mode; and adjusting the screen brightness to the target brightness according to a brightness adjustment rule.
In an embodiment, the method further comprises: detecting whether a dynamic display card switching mode is supported or not; and when the display card mode supporting dynamic switching is detected, acquiring the first brightness matching range and the second brightness matching range.
In one embodiment, the brightness adjustment rule includes at least one of the following rules: a first brightness adjustment rule corresponding to the startup brightness; and a second brightness adjustment rule corresponding to the brightness gradual change mode.
In an implementation manner, the matching the current brightness of the first graphics card mode and the brightness threshold based on the first brightness matching range to determine the expected brightness includes: integrating the current brightness and the brightness threshold value of the first display card mode to obtain a first integration coefficient; and matching the first integration coefficient based on the first brightness matching range to obtain the expected brightness.
In an embodiment, the matching the expected brightness based on the second brightness matching range to determine the target brightness of the second graphics card mode includes: matching the expected brightness based on the brightness matching range to obtain a second integration coefficient; and determining the target brightness of the second video card mode according to the second integration coefficient.
Another aspect of the present invention provides a brightness adjustment apparatus, comprising: the receiving module is used for receiving a mode conversion instruction for switching from the first video card mode to the second video card mode; the acquisition module is used for responding to the mode conversion instruction and acquiring the current brightness and the brightness threshold of the first display card mode; the matching module is used for matching the current brightness of the first display card mode with a brightness threshold value based on a first brightness matching range to determine expected brightness, and the expected brightness is used for representing standard brightness corresponding to the current brightness of the first display card mode; the matching module is further used for matching the expected brightness based on a second brightness matching range to determine the target brightness of a second display card mode; and the adjusting module is used for adjusting the screen brightness to the target brightness according to the brightness adjusting rule.
In an embodiment, the apparatus further comprises: the detection module detects whether the mode of dynamically switching the display card is supported or not; the acquisition module is further configured to acquire the first luminance matching range and the second luminance matching range when it is detected that a mode supporting dynamic switching of a graphics card is available.
In one embodiment, the matching module comprises: the integration submodule is used for integrating the current brightness and the brightness threshold of the first display card mode to obtain a first integration coefficient; and the first matching sub-module is used for matching the first integration coefficient based on the first brightness matching range to obtain the expected brightness.
In an embodiment, the matching module further comprises: the second matching submodule is used for matching the expected brightness based on the brightness matching range to obtain a second integration coefficient; and the determining submodule is used for determining the target brightness of the second display card mode according to the second integration coefficient.
Another aspect of the present invention provides a computer-readable storage medium comprising a set of computer-executable instructions, which when executed, perform any one of the above-described brightness adjustment methods.
In the brightness adjustment method, the brightness adjustment device, and the computer storage medium provided in the embodiments of the present invention, after receiving a mode switching instruction for switching a first graphics card mode to a second graphics card mode, in response to the mode switching instruction, a current brightness and a brightness threshold of the first graphics card mode are obtained, a current brightness and a brightness threshold of the first graphics card mode are subjected to matching processing based on a first brightness matching range to determine an expected brightness, then the expected brightness is subjected to matching based on a second brightness matching range to determine a target brightness of the second graphics card mode, and finally, the screen brightness is adjusted to the target brightness according to a brightness adjustment rule. By applying the brightness adjusting method, the brightness adjusting device and the computer storage medium provided by the embodiment of the invention, the brightness of the screen can be kept unchanged before and after the mode switching of the display card, and the effect of protecting the eyesight of a user is achieved.
Drawings
The above and other objects, features and advantages of exemplary embodiments of the present invention will become readily apparent from the following detailed description read in conjunction with the accompanying drawings. Several embodiments of the invention are illustrated by way of example, and not by way of limitation, in the figures of the accompanying drawings and in which:
in the drawings, the same or corresponding reference numerals indicate the same or corresponding parts.
Fig. 1 is a schematic flow chart illustrating an implementation of a brightness adjustment method according to an embodiment of the present invention;
FIG. 2 is a schematic diagram illustrating a process of determining an expected brightness according to an embodiment of the present invention;
fig. 3 is a schematic diagram illustrating a target brightness determination process of a brightness adjustment method according to an embodiment of the present invention;
fig. 4 is a schematic diagram illustrating a luminance range obtaining process of a luminance adjusting method according to an embodiment of the present invention;
fig. 5 is a block diagram of a brightness adjusting apparatus according to an embodiment of the present invention.
Detailed Description
In order to make the objects, features and advantages of the present invention more obvious and understandable, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention, and it is apparent that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
Fig. 1 is a schematic flow chart illustrating an implementation of a brightness adjustment method according to an embodiment of the present invention.
Referring to fig. 1, an aspect of the present invention provides a brightness adjustment method, including: an operation 101, receiving a mode conversion instruction for switching from a first graphics card mode to a second graphics card mode; operation 102, in response to the mode conversion instruction, acquiring the current brightness and the brightness threshold of the first graphics card mode; operation 103, performing matching processing on the current brightness and the brightness threshold of the first graphics card mode based on the first brightness matching range, and determining an expected brightness, where the expected brightness is used to represent a standard brightness corresponding to the current brightness of the first graphics card mode; operation 104, performing matching processing on the expected brightness based on the second brightness matching range, and determining the target brightness of the second graphics card mode; in operation 105, the screen brightness is adjusted to the target brightness according to the brightness adjustment rule.
The embodiment of the invention aims to provide a brightness adjusting method which is mainly applied to the technical field of computers, in particular to a dual-display-card computer and is used for ensuring that the brightness of a screen before and after mode conversion of a display card is unchanged, so that the discomfort of eyes of a user caused by the jump of the brightness after the mode conversion of the display card is avoided, and the function of protecting the vision of the user is achieved. Specifically, the brightness adjusting method provided in the embodiments of the present invention may obtain the current brightness and the brightness threshold of the first graphics card mode according to the received mode conversion instruction, match the current brightness and the brightness threshold of the first graphics card mode based on the current brightness and the brightness threshold of the first graphics card mode and the first brightness matching range, determine the expected brightness, finally match the expected brightness according to the second brightness matching range, determine the target brightness of the second graphics card mode, and adjust the screen brightness to the target brightness of the second graphics card mode according to the brightness adjusting rule.
Specifically explaining the operation process, when the brightness adjustment method provided by the embodiment of the present invention is applied to perform brightness adjustment, in operation 101, the first graphics card mode and the second graphics card mode may be any one of graphics card modes in the dual graphics card computer system, and may be determined by a graphics card that controls a display output source. The mode switching instruction is used for instructing the computer system to switch and control the display card of the display output source. Specifically, under an implementable condition, the brightness adjusting method provided by the embodiment of the invention can be applied to a dual-display-card notebook with an independent display card and an integrated display card. The display card mode can be divided into an independent display card mode and an integrated display card mode, wherein the independent display card mode can be a mode in which the independent display card controls the display output source, and the integrated display card mode can be a mode in which the integrated display card controls the display output source. Further, in the embodiment of the present invention, the first graphics card mode may be any one of an independent graphics card mode and an integrated graphics card mode, and the embodiment of the present invention does not limit the type of the first graphics card mode, and only needs to satisfy the requirement of not affecting the conversion of the graphics card mode. In addition, the second graphics card mode may be any one of an independent graphics card mode and an integrated graphics card mode, as opposed to the first graphics card mode. It should be clear that the type of the second graphics card mode may be the same as or different from the first graphics card mode, and only the mode switching of the graphics card is not affected. Therefore, the brightness adjusting method provided by the embodiment of the invention is still applicable to the situation that the first graphics card mode and the second graphics card mode are the same in type and the brands and/or performances of the graphics cards controlling the display output sources are different.
After receiving the mode conversion instruction, executing operation 102, and in response to the mode conversion instruction, obtaining the current brightness and the brightness threshold of the first graphics card mode; the current brightness of the first graphics card mode is a screen brightness value in the first graphics card mode, that is, a screen brightness value when no graphics card mode conversion is performed, and correspondingly, the brightness threshold of the first graphics card mode is a maximum screen brightness value in the first graphics card mode, it is clear that the screen brightness of the first graphics card mode and the screen brightness of the second graphics card mode can be adjusted by a Pulse Width Modulation (PWM), and the PWM values are in a proportional relationship with the adjusted screen brightness value. That is, in an implementable case, the current brightness and the brightness threshold of the first graphics card mode may be represented by corresponding PWM values, and thus, the obtaining of the current brightness and the brightness threshold of the first graphics card mode in operation 102 is to obtain the PWM value corresponding to the current brightness and the PWM value corresponding to the brightness threshold, respectively.
In operation 103, a current luminance of the first graphics card mode and a luminance threshold are matched based on the first luminance matching range, and an expected luminance is determined, where the expected luminance is used to represent a standard luminance corresponding to the current luminance of the first graphics card mode. The standard luminance is a measure of the brightness of the light emitting surface, and is a ratio of the light emission intensity of the light emitting surface in a predetermined direction to the area of the light emitting surface perpendicular to and in the predetermined direction. Correspondingly, the first brightness matching range may be a comparison table of the current brightness and the brightness threshold of the first graphics card mode and the standard brightness, and the first brightness matching range is determined by the graphics card corresponding to the first graphics card mode. Specifically, when the first graphics card mode is the integrated graphics card mode, the first brightness matching range is a comparison table of the current brightness and the brightness threshold of the integrated graphics card mode and the standard brightness. In an implementation case, the first brightness matching range may be information of a comparison relationship between PWM values corresponding to the current brightness and the brightness threshold respectively in the first graphics card mode and the standard brightness, and is used to determine the expected brightness according to the PWM value corresponding to the current brightness and the PWM value corresponding to the brightness threshold in the first graphics card mode. The expected brightness is one of the standard brightness in the first brightness matching range, and the expected brightness can be used for representing the standard brightness corresponding to the current brightness of the first graphics card mode. It should be clear that the expected brightness may be obtained by matching the PWM value corresponding to the current brightness in the first brightness matching range, or may be obtained by matching the PWM value corresponding to the current brightness and the PWM value corresponding to the brightness threshold in the first brightness matching range after being preprocessed. And the expected brightness may be used to indicate or determine a target brightness for the second graphics card mode.
Fig. 2 is a schematic diagram illustrating a process of determining an expected brightness of a brightness adjustment method according to an embodiment of the present invention.
Referring to fig. 2, in an implementation, the matching, in operation 103, the current luminance of the first graphics card mode and the luminance threshold based on the first luminance matching range to determine the expected luminance includes: operation 1031, integrating the current brightness and the brightness threshold of the first graphics card mode to obtain a first integration coefficient; in operation 1032, the first integration coefficient is matched based on the first luminance matching range to obtain the desired luminance.
Specifically, in order to obtain the expected brightness for indicating or determining the target brightness, in operation 1031, the current brightness and the brightness threshold of the first graphics card mode are integrated to obtain a first integration coefficient. In one implementation case, the first graphics card mode may be an integrated graphics card mode. The integration of the current brightness and the brightness threshold of the first graphics card mode may obtain a first integration coefficient, where the integration operation may be to obtain a ratio of the current brightness and the brightness threshold of the first graphics card mode, and at this time, the first integration coefficient is a ratio of a PWM value corresponding to the current brightness and a PWM value corresponding to the brightness threshold. Then, in operation 1032, matching is performed in the first luminance matching range according to the first integration coefficient, and a desired luminance is obtained. In an implementation case, the first luminance matching range may be a comparison table of the first integration coefficient of the first graphics card mode and the standard luminance, which may include a comparison relationship between the first integration coefficient and the standard luminance, and the expected luminance may be finally determined by performing matching in the first luminance matching range according to the first integration coefficient. Wherein the expected brightness is one of the standard brightness in the first brightness matching range.
After determining the expected brightness, in order to determine the target brightness of the second graphics card mode, in operation 104, the expected brightness is matched based on the second brightness matching range, and the target brightness of the second graphics card mode is determined. The second brightness matching range may be a comparison table of standard brightness and target brightness of the second graphics card mode. Specifically, the second brightness matching range may be a comparison table of the standard brightness and the PWM value corresponding to the target brightness in the second graphics card mode, and it is to be understood that the expected brightness is one of the standard brightness in the second brightness matching range, so that the second brightness matching range may be used to determine the PWM value corresponding to the target brightness in the second graphics card mode, that is, the target brightness in the second graphics card mode, based on the expected brightness. It should be clear that the standard brightness corresponding to the target brightness of the second graphics card mode should be consistent with the expected brightness.
Fig. 3 is a schematic diagram illustrating a target brightness determination process of a brightness adjustment method according to an embodiment of the present invention.
Referring to fig. 3, in an implementation, the operation 104, performing matching processing on the expected luminance based on the second luminance matching range to determine the target luminance of the second graphics card mode, includes: operation 1041, matching the expected brightness based on the second brightness matching range to obtain a second integration coefficient; in operation 1042, the target brightness of the second video card mode is determined according to the second integration coefficient.
Specifically, in operation 1041, in order to determine the target brightness of the second graphics card mode, the expected brightness is matched based on the second brightness matching range, and a second integration coefficient is obtained. In one implementation, the expected brightness may be determined by a first brightness matching range matching a current brightness of the first graphics card mode to a brightness threshold. The second luminance matching range may be a comparison table of the standard luminance and the second integration coefficient, which may include a comparison relationship of the standard luminance and the second integration coefficient. Further, the expected luminance may be one of the standard luminances in the second luminance matching range, and therefore, the second integration coefficient may be determined based on the expected luminance that can be matched in the second luminance matching range. The type of the second integration coefficient is not limited herein, but it is to be understood that the second integration coefficient has a contrast relationship with the target brightness of the second graphics card mode, and therefore, the operation 1042 may determine the target brightness of the second graphics card mode according to the second integration coefficient. In one implementation case, the second integration coefficient is the same kind as the first integration coefficient, and is a ratio of two PWM values.
Finally, operation 105 is performed to adjust the screen brightness to the target brightness according to the brightness adjustment rule. The brightness regulation rule is a rule for controlling the brightness regulation method, and it is clear that the brightness regulation method regulated by the rule precedes the brightness regulation rule itself, and the function of the rule is to control, change or unify the mode of the brightness regulation method.
In one embodiment, the brightness adjustment rule includes at least one of the following rules: a first brightness adjustment rule corresponding to the startup brightness; and a second brightness adjustment rule corresponding to the brightness gradual change mode.
The first brightness adjustment rule corresponding to the startup brightness is a brightness adjustment rule for adjusting the startup brightness, and can be applied to the conditions of startup, sleep termination and dormancy of a computer system. Specifically, when the computer is power-on self-test, the brightness value stored in the computer system may be the brightness information before the previous system shutdown. Further, the graphics card mode before the previous system shutdown is the integrated graphics card mode, and the integrated graphics card mode before the previous shutdown is determined as the first graphics card mode, so that the brightness setting may include current brightness information and brightness threshold information of the first graphics card mode. Further, the screen brightness is adjusted to a brightness threshold value by pulse width modulation according to the brightness threshold value information to indicate that the user computer is being powered on. After the computer system is started, in order to ensure that the brightness of the screen after the computer system is started is consistent with the brightness before the computer system is shut down for the previous time, the brightness of the screen is adjusted by pulse width modulation according to the current brightness information of the first display card mode.
Further, the second brightness adjustment rule corresponding to the brightness gradual change mode is a brightness adjustment rule for smoothly adjusting brightness, and can be applied to the situation of screen brightness jump, for example, when a user manually adjusts the screen brightness, the second brightness adjustment rule plays a role in smoothly adjusting the brightness. In an implementable situation, the second brightness adjustment rule provided in the embodiment of the present invention may be further applied to a process of adjusting the screen brightness according to the current brightness information of the first graphics card mode when the computer system is started. Specifically, after the computer system is started, in order to ensure that the brightness of the screen after the computer system is started is consistent with the brightness before the computer system is started, the brightness of the screen needs to be adjusted according to the current brightness information of the first graphics card mode, wherein the brightness of the screen after the computer system is started can be represented by a PWM value corresponding to a brightness threshold, correspondingly, the current brightness of the first graphics card mode can be represented by the PWM value corresponding to the current brightness, and in addition, the graphics card mode after the computer system is started is consistent with the graphics card mode before the computer system is stopped, so that a brightness difference value can be determined according to the PWM value corresponding to the brightness threshold and the PWM value corresponding to the current brightness, and is used for representing the difference between the PWM value corresponding to the brightness threshold and the PWM value corresponding to the current brightness. And finally, adjusting the brightness based on the equally divided brightness difference, thereby achieving the effect of smoothly adjusting the brightness when the brightness jumps. In addition, under another implementation condition, whether the user applies the shortcut key to adjust the brightness or not can be detected, when the condition that the user applies the shortcut key to adjust the brightness is detected, the brightness difference is obtained according to the brightness adjusting information of the user, and then the brightness can be adjusted based on the second brightness adjusting rule, so that the brightness can be smoothly adjusted.
In order to facilitate further understanding of the implementation method, a specific implementation scenario is provided below, where the brightness adjustment method provided in the embodiment of the present invention can keep the screen brightness unchanged before and after the mode switching of the graphics card, and has an effect of protecting the eyesight of the user. Specifically, in an implementation scenario of the embodiment of the present invention, the first graphics card mode is a mode in which the integrated graphics card controls the display output source, the second graphics card mode may be a mode in which the independent graphics card controls the display output source, and the current brightness of the first graphics card mode is a screen brightness value in the first graphics card mode, that is, a screen brightness value when the graphics card mode is not converted. Correspondingly, the brightness threshold of the first graphics card mode is the maximum screen brightness value in the first graphics card mode, in addition, the first brightness matching range may be a comparison table of the current brightness and the brightness threshold of the first graphics card mode and the standard brightness, and the second brightness matching range may be a comparison table of the standard brightness and the target brightness of the second graphics card mode. When the brightness adjusting method provided by the embodiment of the invention is applied, the PWM value corresponding to the current brightness of the first graphics card mode and the PWM value corresponding to the brightness threshold can be obtained according to the obtained mode conversion instruction, based on the PWM value corresponding to the current brightness of the first graphics card mode and the PWM value corresponding to the brightness threshold, matching the current brightness and the brightness threshold value of the first display card mode with a reference table of standard brightness to determine the standard brightness of the current screen, wherein the standard brightness is the expected brightness, which is used for indicating or determining the target brightness of the second graphics card mode, specifically, matching in the second brightness matching range according to the expected brightness in the standard brightness, determining the target brightness of the second graphics card mode, and finally, adjusting the screen brightness to the target brightness of the second video card mode based on the brightness adjusting rule according to the PWM value corresponding to the expected brightness in the second video card mode.
Fig. 4 is a schematic diagram of a luminance range obtaining process of a luminance adjusting method according to an embodiment of the present invention.
Referring to fig. 4, in an embodiment, the method further comprises: operation 401, detecting whether a dynamic display card switching mode is supported; in operation 402, when it is detected that the mode of dynamically switching the graphics card is supported, a first luminance matching range and a second luminance matching range are obtained.
In an implementation manner, before receiving a mode switching instruction for switching from the first graphics card mode to the second graphics card mode in operation 101, the method for adjusting brightness according to an embodiment of the present invention may further include operation 401 of detecting whether a dynamic switching graphics card mode is supported. The dynamic display card switching mode is a mode which can meet the requirement that an independent display card mode and an integrated display card mode are freely switched in a starting state, and is a mode which can exert the performance of a computer to a great extent. When the dynamic switching of the graphics card mode is detected, a first brightness matching range and a second brightness matching range are obtained according to operation 402. In an implementation case, the first brightness matching range may be a comparison table of the current brightness and the brightness threshold of the first display card mode and the standard brightness, and is determined by the first display card controlling the display output source. Correspondingly, the second brightness matching range may be a comparison table of the standard brightness and the target brightness of the second display card mode, and is determined by the second display card controlling the display output source. Further, the first luminance matching range and the second luminance matching range can be obtained by networking and downloading after being determined according to the display card, and can also be obtained after reading a bottom layer program of the display card.
In a specific implementation situation, an embodiment of the present invention provides a brightness adjustment method, which has an effect of keeping screen brightness unchanged before and after mode switching of a graphics card, and prevents discomfort of eyes of a user caused by screen brightness jump after switching of a display output source of the graphics card, thereby achieving an effect of protecting eyesight of the user. In an implementation situation, the brightness adjusting method provided in the embodiment of the present invention can be applied to a chip for adjusting the screen brightness of a dual-display-card computer. Specifically, in the embodiment of the present invention, the first graphics card mode is a mode in which the integrated graphics card controls the display output source, that is, an integrated graphics card mode. The second video card mode may be a mode in which the independent video card controls the display output source, i.e., an independent video card mode. The current brightness of the first graphics card mode is a screen brightness value in the first graphics card mode, that is, a screen brightness value when the graphics card mode conversion is not performed. Correspondingly, the brightness threshold of the first graphics card mode is the maximum screen brightness value in the first graphics card mode, in addition, the first brightness matching range may be a comparison table of the current brightness and the brightness threshold of the first graphics card mode and the standard brightness, and the second brightness matching range may be a comparison table of the standard brightness and the target brightness of the second graphics card mode.
Further, when the embodiment of the invention is applied, whether the dual-display-card computer supports the dynamic switching of the display card mode is detected, and when the dual-display-card computer supports the dynamic switching of the display card mode, the first brightness matching range and the second brightness matching range are determined to be obtained. Then, after receiving a mode conversion command for switching the integrated display card mode into the independent display card mode, acquiring a PWM value corresponding to the current brightness of the integrated graphics card mode and a PWM value corresponding to a brightness threshold according to the acquired mode conversion instruction, based on the PWM value corresponding to the current brightness of the integrated graphics card mode and the PWM value corresponding to the brightness threshold, matching the current brightness and the brightness threshold value of the integrated display card mode with a comparison table of standard brightness to determine the standard brightness of the current screen, wherein the standard brightness is the expected brightness, which is used for indicating or determining the target brightness of the independent graphics card mode, specifically, matching in the second brightness matching range according to the expected brightness in the standard brightness, determining the target brightness of the independent graphics card mode, and finally, adjusting the screen brightness to the target brightness of the independent display card mode based on the brightness adjusting rule according to the PWM value corresponding to the expected brightness in the independent display card mode. The brightness adjustment rule is a rule for controlling a brightness adjustment method, and the brightness adjustment method adjusted by the rule precedes the brightness adjustment rule. In one implementation, the brightness adjustment rule includes a first brightness adjustment rule corresponding to the starting brightness and a second brightness adjustment rule corresponding to the brightness gradual change mode. In addition, after the screen brightness is adjusted to the target brightness of the independent display card mode based on the brightness adjusting rule, the brightness progress bar can be synchronously adjusted according to the target brightness, and therefore the situation that the brightness is not matched or the difference is too large and inconsistent when the user uses the progress bar for adjustment due to the fact that the brightness progress bar is not matched with the brightness progress bar under the system is avoided.
Fig. 5 is a block diagram of a brightness adjusting apparatus according to an embodiment of the present invention.
Referring to fig. 5, another aspect of the present invention provides a brightness adjusting apparatus, the apparatus including: a receiving module 502, configured to receive a mode conversion instruction for switching from a first graphics card mode to a second graphics card mode; an obtaining module 501, configured to respond to a mode switching instruction, and obtain current brightness and a brightness threshold of the first graphics card mode; the matching module 503 is configured to perform matching processing on the current luminance and the luminance threshold of the first graphics card mode based on the first luminance matching range, and determine an expected luminance, where the expected luminance is used to represent a standard luminance corresponding to the current luminance of the first graphics card mode; the matching module 503 is further configured to perform matching processing on the expected brightness based on the second brightness matching range, and determine a target brightness of the second graphics card mode; and the adjusting module 504 is used for adjusting the screen brightness to the target brightness according to the brightness adjusting rule.
In one embodiment, the apparatus further comprises: the detection module 505 detects whether the dynamic display card switching mode is supported; the obtaining module 501 is further configured to obtain a first luminance matching range and a second luminance matching range when it is detected that the mode of dynamically switching the display card is supported.
In one embodiment, the matching module 503 comprises: the integrating sub-module 5031 is configured to integrate the current luminance and the luminance threshold of the first graphics card mode to obtain a first integration coefficient; the first matching sub-module 5032 is configured to match the first integration coefficient based on the first luminance matching range to obtain the expected luminance.
In one embodiment, the matching module 503 further includes: the second matching submodule 5033 is configured to match the expected luminance based on the luminance matching range to obtain a second integration coefficient; the determining sub-module 5034 is configured to determine the target brightness of the second graphics card mode according to the second integration coefficient.
Another aspect of the present invention provides a computer-readable storage medium comprising a set of computer-executable instructions, which when executed, perform any one of the above-described brightness adjustment methods.
In the description herein, references to the description of the term "one embodiment," "some embodiments," "an example," "a specific example," or "some examples," etc., mean that a particular feature, structure, material, or characteristic described in connection with the embodiment or example is included in at least one embodiment or example of the invention. Furthermore, the particular features, structures, materials, or characteristics described may be combined in any suitable manner in any one or more embodiments or examples. Furthermore, various embodiments or examples and features of different embodiments or examples described in this specification can be combined and combined by one skilled in the art without contradiction. Furthermore, the terms "first", "second" and "first" are used for descriptive purposes only and are not to be construed as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include at least one such feature. In the description of the present invention, "a plurality" means two or more unless specifically defined otherwise.
The above description is only for the specific embodiments of the present invention, but the scope of the present invention is not limited thereto, and any person skilled in the art can easily conceive of the changes or substitutions within the technical scope of the present invention, and the changes or substitutions should be covered within the scope of the present invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the claims.

Claims (10)

1. A method of adjusting brightness, the method comprising:
receiving a mode conversion instruction for switching a first video card mode into a second video card mode;
responding to the mode conversion instruction, and acquiring the current brightness and the brightness threshold of the first display card mode;
matching the current brightness of the first display card mode with a brightness threshold value based on a first brightness matching range, and determining expected brightness, wherein the expected brightness is used for representing standard brightness corresponding to the current brightness of the first display card mode;
matching the expected brightness based on a second brightness matching range, and determining the target brightness of a second display card mode;
adjusting the screen brightness to the target brightness according to a brightness adjustment rule,
the first display card mode can be any one of an independent display card mode and an integrated display card mode, and the second display card mode can be any one of an independent display card mode and an integrated display card mode.
2. The method of claim 1, further comprising:
detecting whether a dynamic display card switching mode is supported or not;
and when the display card mode supporting dynamic switching is detected, acquiring the first brightness matching range and the second brightness matching range.
3. The method of claim 1, wherein the brightness adjustment rule comprises at least one of: a first brightness adjustment rule corresponding to the startup brightness; and a second brightness adjustment rule corresponding to the brightness gradual change mode.
4. The method of claim 1, wherein matching the current brightness of the first graphics card mode with a brightness threshold based on a first brightness matching range to determine an expected brightness comprises:
integrating the current brightness and the brightness threshold value of the first display card mode to obtain a first integration coefficient;
and matching the first integration coefficient based on the first brightness matching range to obtain the expected brightness.
5. The method of claim 1, wherein matching the expected luminance based on a second luminance matching range to determine a target luminance of a second graphics card mode comprises:
matching the expected brightness based on the brightness matching range to obtain a second integration coefficient;
and determining the target brightness of the second video card mode according to the second integration coefficient.
6. A brightness adjustment apparatus, characterized in that the apparatus comprises:
the receiving module is used for receiving a mode conversion instruction for switching from the first video card mode to the second video card mode;
the acquisition module is used for responding to the mode conversion instruction and acquiring the current brightness and the brightness threshold of the first display card mode;
the matching module is used for matching the current brightness of the first display card mode with a brightness threshold value based on a first brightness matching range to determine expected brightness, and the expected brightness is used for representing standard brightness corresponding to the current brightness of the first display card mode;
the matching module is further used for matching the expected brightness based on a second brightness matching range to determine the target brightness of a second display card mode;
and the adjusting module is used for adjusting the screen brightness to the target brightness according to the brightness adjusting rule.
7. The apparatus of claim 6, further comprising:
the detection module detects whether the mode of dynamically switching the display card is supported or not;
the acquisition module is further configured to acquire the first luminance matching range and the second luminance matching range when it is detected that a mode supporting dynamic switching of a graphics card is available.
8. The apparatus of claim 6, wherein the matching module comprises:
the integration submodule is used for integrating the current brightness and the brightness threshold of the first display card mode to obtain a first integration coefficient;
and the matching sub-module is used for matching the first integration coefficient based on the first brightness matching range to obtain the expected brightness.
9. The apparatus of claim 6, wherein the matching module comprises:
the second matching submodule is used for matching the expected brightness based on the brightness matching range to obtain a second integration coefficient;
and the determining submodule is used for determining the target brightness of the second display card mode according to the second integration coefficient.
10. A computer-readable storage medium comprising a set of computer-executable instructions that, when executed, perform the brightness adjustment method of any one of claims 1-5.
CN202011221672.7A 2020-11-05 2020-11-05 Brightness adjusting method and device and computer storage medium Active CN112435635B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011221672.7A CN112435635B (en) 2020-11-05 2020-11-05 Brightness adjusting method and device and computer storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011221672.7A CN112435635B (en) 2020-11-05 2020-11-05 Brightness adjusting method and device and computer storage medium

Publications (2)

Publication Number Publication Date
CN112435635A CN112435635A (en) 2021-03-02
CN112435635B true CN112435635B (en) 2022-03-08

Family

ID=74695415

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011221672.7A Active CN112435635B (en) 2020-11-05 2020-11-05 Brightness adjusting method and device and computer storage medium

Country Status (1)

Country Link
CN (1) CN112435635B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116650955B (en) * 2023-07-27 2023-10-13 深圳市芯盈科技有限公司 Display card switching control method and device, computer equipment and storage medium

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TWI345203B (en) * 2006-12-29 2011-07-11 Chimei Innolux Corp Debugging system and method of display device
CN103092304B (en) * 2011-10-31 2015-11-18 宏碁股份有限公司 The power control method of two video card module and the computer apparatus of application the method
CN202871265U (en) * 2012-09-03 2013-04-10 南京安德普电子科技有限公司 Screen-brightness self-feedback adjusting correcting apparatus
CN103853513B (en) * 2012-12-04 2017-06-27 联想(北京)有限公司 A kind of method and a kind of electronic equipment of control video card
CN106959807A (en) * 2017-03-24 2017-07-18 北京小米移动软件有限公司 View angle switch method and device
CN107170424B (en) * 2017-06-30 2020-02-21 联想(北京)有限公司 Display control method, display method and electronic equipment

Also Published As

Publication number Publication date
CN112435635A (en) 2021-03-02

Similar Documents

Publication Publication Date Title
US10586509B2 (en) Techniques for supporting brightness adjustment across multiple displays
US9953553B2 (en) Background plateau manipulation for display device power conservation
JP3495362B2 (en) Image display device and image display method
US8884866B2 (en) Electronic apparatus and backlight brightness control method thereof
CN109712593B (en) Brightness control method and terminal equipment
JP2002072998A (en) Luminance controller, luminance adjusting system, computer system, liquid crystal display device, luminance control method, computer program and storage medium
US20110069089A1 (en) Power management for organic light-emitting diode (oled) displays
WO2017113343A1 (en) Method for adjusting backlight brightness and terminal
US7786988B2 (en) Window information preservation for spatially varying power conservation
JP2007535695A (en) Dynamic display control of portable electronic device display
KR20040024129A (en) Apparatus and method for adjusting brightness and color temperature
CN106033666B (en) A kind of information processing method and electronic equipment
CN112433768A (en) Display card control method, equipment and computer storage medium
US10944910B2 (en) Display apparatus, control method thereof, and non-transitory computer readable medium
US11417259B2 (en) Driving method of display device and driving device
CN112435635B (en) Brightness adjusting method and device and computer storage medium
EP3218897B1 (en) Display brightness control
JP2004004372A (en) Contrast control system for content
US10535289B2 (en) Display device, display method, recording medium, and television receiver
US20080094478A1 (en) Image capture and display devices, methods, and computer readable media
US20190227420A1 (en) Image projection apparatus
JP4588936B2 (en) Liquid crystal display device and automatic dimming control method thereof
US20220270566A1 (en) Electronic device for changing attributes of display and operation method in electronic device
US20210241703A1 (en) Control device, display device, and control method
US20200090603A1 (en) Display image adjusting method, display device, and computer readable 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
GR01 Patent grant
GR01 Patent grant