Dual-screen brightness adjusting method and device based on domestic operating system and storage medium

By determining the main and secondary screens based on the mouse activity area and duration of the activity on the dual-screen notebook, and generating adjustment curves based on the power and brightness, the problem of cumbersome brightness adjustment operation of the dual-screen notebook is solved, and smooth brightness adjustment and energy-saving effects are achieved, improving the efficiency of improvement. The work efficiency of users.

CN119512486APending Publication Date: 2025-02-25KYLIN CORP
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411572152.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-11-06
Publication Date
2025-02-25

AI Technical Summary

Technical Problem

In the prior art, the brightness adjustment of dual-screen notebooks based on domestic operating systems is complicated and complicated, which affects work efficiency.

Method used

Determine whether it is a dual-screen comprehensive use scenario based on the mouse's activity area and activity duration, determine the home screen and sub-screen; check the screen brightness of the home screen and sub-screen and the current remaining battery of the notebook; based on the remaining battery, screen brightness and preset standards Brightness generates a brightness adjustment curve to adjust the brightness of the home screen and the sub screen.

Benefits of technology

It realizes the adjustment of screen brightness without the need for tedious operations by users, and the brightness adjustment is smoother and has an energy-saving effect. It extends the usage time of dual-screen notebooks and improves user work efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119512486A_ABST
    Figure CN119512486A_ABST
Patent Text Reader

Abstract

The embodiment of the invention discloses a double-screen brightness adjusting method and device based on a domestic operating system and a storage medium, and the method comprises the steps: determining whether a scene is a double-screen comprehensive use scene or not based on an activity region and an activity duration of a mouse, and determining a main screen and an auxiliary screen when the scene is the double-screen comprehensive use scene; the screen brightness of the main screen and the auxiliary screen is inquired, and the current remaining power of the notebook computer is inquired; and generating a brightness adjusting curve according to the current residual electric quantity, the screen brightness of the main screen and the auxiliary screen and preset standard brightness, and adjusting the brightness of the main screen and the auxiliary screen according to the brightness adjusting curve. According to the technical scheme, the brightness can be adjusted more gently, meanwhile, the energy-saving effect can be achieved, the service life of the double-screen notebook computer is prolonged, and the method is particularly suitable for application scenes where main and auxiliary screens are switched frequently.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of heterogeneous multi-systems, and in particular to a dual-screen brightness adjustment method, device and storage medium based on a domestic operating system. Background Art

[0002] A dual-screen laptop generally refers to a laptop with two display screens. This type of notebook innovatively adds a secondary screen to provide a complete and coherent user experience and expand the available space of the main screen. The main screen and the secondary screen can display different content respectively, and information resources can be browsed within a limited field of view, thereby improving work efficiency. Different office content can also be displayed on two screens, and multiple tasks can be processed at the same time. Compared with traditional notebooks, although dual-screen laptops have an additional secondary screen, the body design does not increase the size or burden too much weight. Due to the above advantages of dual-screen laptops, their application in the field of localization is becoming more and more extensive.

[0003] At present, for traditional laptops, screen brightness is usually adjusted by using shortcut keys or the brightness adjustment function provided by the operating system. However, since dual-screen laptops have two screens, more keys need to be set for brightness adjustment, which is inconvenient for users to operate. If the brightness adjustment function provided by the operating system is used, the operation will be cumbersome when the main and secondary screens are frequently switched, which will affect work efficiency. Summary of the invention

[0004] The embodiments of the present invention provide a dual-screen brightness adjustment method, device and storage medium based on a domestic operating system to solve the technical problem in the prior art that the brightness adjustment operation of a dual-screen notebook based on a domestic operating system is cumbersome and complicated, affecting work efficiency.

[0005] In a first aspect, an embodiment of the present invention provides a dual-screen brightness adjustment method based on a domestic operating system, comprising:

[0006] Determine whether it is a dual-screen comprehensive usage scenario based on the mouse activity area and activity duration, and if it is a dual-screen comprehensive usage scenario, determine the main screen and the secondary screen;

[0007] Query the screen brightness of the main screen and the secondary screen, and query the current remaining power of the notebook;

[0008] A brightness adjustment curve is generated according to the current remaining power, the screen brightness of the main screen and the sub-screen, and the preset standard brightness, and the brightness of the main screen and the sub-screen is adjusted according to the brightness adjustment curve.

[0009] In a second aspect, an embodiment of the present invention further provides a dual-screen brightness adjustment device based on a domestic operating system, comprising:

[0010] A determination module, used to determine whether it is a dual-screen comprehensive use scenario based on the mouse activity area and activity duration, and when it is a dual-screen comprehensive use scenario, determine the main screen and the secondary screen;

[0011] A query module, used to query the screen brightness of the main screen and the secondary screen, and query the current remaining power of the notebook;

[0012] The adjustment module is used to generate a brightness adjustment curve according to the current remaining power, the screen brightness of the main screen and the sub-screen and the preset standard brightness, and adjust the brightness of the main screen and the sub-screen according to the brightness adjustment curve.

[0013] In a third aspect, an embodiment of the present invention further provides a storage medium comprising computer executable instructions, which, when executed by a computer processor, are used to execute the dual-screen brightness adjustment method based on a domestic operating system as provided in the above embodiment.

[0014] The dual-screen brightness adjustment method, device and storage medium based on the domestic operating system provided in the embodiment of the present invention determine whether it is a dual-screen comprehensive use scenario based on the active area and activity duration of the mouse. When it is a dual-screen comprehensive use scenario, the main screen and the sub-screen are determined; the screen brightness of the main screen and the sub-screen are queried, and the current remaining power of the notebook is queried; a brightness adjustment curve is generated according to the current remaining power, the screen brightness of the main screen and the sub-screen, and the preset standard brightness, and the brightness of the main screen and the sub-screen is adjusted according to the brightness adjustment curve. The main screen and the sub-screen can be determined according to the user's operation, and the brightness adjustment curve can be generated according to the power and the current screen brightness, which can make the brightness adjustment smoother, and can also produce energy-saving effects, extend the use time of the dual-screen notebook, and is particularly suitable for application scenarios where the main and sub-screens are frequently switched. The screen brightness can be adjusted without the user's tedious operations, further improving the user's work efficiency. BRIEF DESCRIPTION OF THE DRAWINGS

[0015] Other features, objects and advantages of the present invention will become more apparent from the detailed description of non-limiting embodiments made with reference to the following drawings:

[0016] Figure 1 It is a flowchart of a dual-screen brightness adjustment method based on a domestic operating system provided in Embodiment 1 of the present invention;

[0017] Figure 2 It is a flowchart of a dual-screen brightness adjustment method based on a domestic operating system provided in Embodiment 2 of the present invention;

[0018] Figure 3 It is a structural schematic diagram of a dual-screen brightness adjustment device based on a domestic operating system provided in Example 3 of the present invention. DETAILED DESCRIPTION

[0019] The present invention will be further described in detail below in conjunction with the accompanying drawings and embodiments. It is to be understood that the specific embodiments described herein are only used to explain the present invention, rather than to limit the present invention. It should also be noted that, for ease of description, only parts related to the present invention, rather than all structures, are shown in the accompanying drawings.

[0020] Embodiment 1

[0021] Figure 1 : is a flowchart of a dual-screen brightness adjustment method based on a domestic operating system provided in Embodiment 1 of the present invention. This embodiment is applicable to booting a heterogeneous operating system in a multi-core system. The method can be performed by a dual-screen brightness adjustment device based on a domestic operating system, and specifically includes the following steps:

[0022] Step 110: determine whether it is a dual-screen integrated usage scenario based on the mouse activity area and activity duration, and if it is a dual-screen integrated usage scenario, determine the main screen and the sub-screen.

[0023] In this embodiment, the dual-screen comprehensive use scenario may include: Office and learning scenarios: For example, when using Word, communication tools such as WeChat and DingTalk can be moved to the secondary screen to facilitate viewing new messages, while the main screen is focused on typing. During an online meeting, the conference software can be placed on the secondary screen, and the main screen can open a word document for recording, or PDF documents and materials can be browsed on the main screen, while the key points can be recorded on the secondary screen. Design work scenario Designers perform the main design work on the main screen while viewing reference pictures or color samples on the secondary screen, which improves design efficiency and accuracy. Video production and editing scenarios: For video editors who need to view multiple materials or references at the same time, dual screens can provide a larger display area, which is convenient for operating multiple software windows or previewing multiple video clips at the same time. Professional analysis and research scenarios: In professional fields that require processing large amounts of data or performing complex calculations at the same time, dual screens can display different data sets or analysis tools to improve work efficiency. Game and entertainment scenarios: For gamers, a dual-screen setting can provide a better gaming experience. One screen is used for the game itself, and the other screen can display a game guide, map, or other related information.

[0024] In the above dual-screen comprehensive usage scenario, the main screen and the secondary screen are not fixed, but are determined by activity. For example, in an office scenario, when browsing files, the screen displaying the files is the main screen, and when recording, the screen recording the documents is the secondary screen. The focus of the user is constantly changing.

[0025] Therefore, in this embodiment, the qt function based on the operating system can determine the mouse activity area within a period of time, and based on this, determine whether it is a dual-screen comprehensive usage scenario.

[0026] When it is determined to be a dual-screen comprehensive usage scenario, it is necessary to determine the main screen and the sub-screen. Exemplarily, when a peripheral operation is received, a statistical period is set according to a preset duration; the occupancy rate of each screen is determined according to the peripheral operation within the statistical period, and the main screen and the sub-screen are determined according to the occupancy rate. Furthermore, the main screen and the sub-screen can also be determined based on the peripheral operation type and the corresponding occupancy rate, wherein the main screen and the sub-screen can realize identity conversion according to the user's operation. Furthermore, the method can also add the following steps: query the current active process, determine the application according to the active process, and determine the preset duration according to the application. For example: word operation relies more on the keyboard, and its set duration may be longer, while when browsing documents, it mainly relies on mouse operation, and the set duration is shorter.

[0027] Step 120, query the screen brightness of the main screen and the sub-screen, and query the current remaining power of the notebook.

[0028] For example, the newly added interface is used to obtain the brightness function gcm_backlight_helper_get_best_backlight1() for dual-screen notebooks in the domestic operating system, and the brightness adjustment interface of the two screens in the operating system system backlight directory is obtained respectively; and the newly added brightness acquisition function: gpm_brightness_helper_get_value() function is used to obtain the current brightness from the file of the brightness adjustment interface. And the current remaining power of the current notebook is obtained through the power acquisition function.

[0029] Since the brightness is affected by the laptop's battery level, if the brightness is high, the remaining battery level will be consumed quickly, affecting the duration of the screen. Therefore, it is necessary to query the remaining battery level and generate a comprehensive adjustment plan based on the remaining battery level.

[0030] Step 130, generating a brightness adjustment curve according to the current remaining power, the screen brightness of the main screen and the sub-screen and the preset standard brightness, and adjusting the brightness of the main screen and the sub-screen according to the brightness adjustment curve.

[0031] When adjusting the brightness, it is necessary to change it gradually to avoid rapid changes in brightness from irritating the user's eyes. Therefore, in this embodiment, a brightness adjustment curve is generated according to the current remaining power, the screen brightness of the main screen and the sub-screen, and the preset standard brightness. The brightness adjustment curve is generated by comprehensively considering comprehensive factors such as power and target brightness, and the brightness of the main screen and the sub-screen are adjusted respectively according to the brightness adjustment curve.

[0032] This embodiment determines whether it is a dual-screen comprehensive use scenario based on the mouse's active area and activity duration. When it is a dual-screen comprehensive use scenario, the main screen and the sub-screen are determined; the screen brightness of the main screen and the sub-screen is queried, and the current remaining power of the notebook is queried; a brightness adjustment curve is generated based on the current remaining power, the screen brightness of the main screen and the sub-screen, and the preset standard brightness, and the brightness of the main screen and the sub-screen is adjusted according to the brightness adjustment curve. The main screen and the sub-screen can be determined according to the user's operation, and a brightness adjustment curve can be generated according to the power and the current screen brightness, which can make the brightness adjustment smoother and also produce energy-saving effects, extending the use time of the dual-screen notebook. It is particularly suitable for application scenarios where the main and sub-screens are frequently switched. The screen brightness can be adjusted without the user's tedious operations, further improving the user's work efficiency.

[0033] In a preferred implementation of this embodiment, before determining whether it is a dual-screen comprehensive use scenario based on the mouse's active area and activity duration, the method may also add the following steps: read the directory information of the system brightness of the domestic operating system; determine whether the main and sub-screen brightness interface provided by the graphics card can be obtained; accordingly, the determination of whether it is a dual-screen comprehensive use scenario based on the mouse's active area and activity duration can be specifically optimized as follows: when the main and sub-screen brightness interface can be obtained, determine whether it is a dual-screen comprehensive use scenario based on the mouse's active area and activity duration. Exemplarily, the directory information under / sys / class / backlight can be read to obtain the main and sub-screen brightness interface provided by the graphics card, and then determine that the currently used laptop is a dual-screen laptop.

[0034] Embodiment 2

[0035] Figure 2 It is a flow chart of a dual-screen brightness adjustment method based on a domestic operating system provided in the second embodiment of the present invention. This embodiment is optimized on the basis of the above embodiment, and the brightness adjustment curve is generated according to the current remaining power, the screen brightness of the main screen and the sub-screen and the preset standard brightness. The specific optimization is as follows: a duration reference line is generated according to the remaining power and the preset standard brightness; an initial adjustment step is set, an initial curve is generated based on the initial step adjustment step and the screen brightness of the main screen and the sub-screen, and a main screen brightness power area and a sub-screen power brightness area are generated based on the initial curve and the duration reference line; the initial step adjustment step is adjusted, and the sum of the areas of the main screen brightness power area and the sub-screen power brightness area is calculated, wherein the area value of the power brightness area on the right side of the duration reference line is a negative value, so that the sum of the areas of the main screen brightness power area and the sub-screen power brightness area is minimized; a brightness adjustment curve is generated according to the step adjustment step corresponding to the minimum sum of the areas of the main screen brightness power area and the sub-screen power brightness area.

[0036] See also Figure 2 The dual-screen brightness adjustment method based on the domestic operating system includes:

[0037] Step 210: determine whether it is a dual-screen integrated usage scenario based on the mouse activity area and activity duration. If it is a dual-screen integrated usage scenario, determine the main screen and the sub-screen.

[0038] Step 220, query the screen brightness of the main screen and the sub-screen, and query the current remaining power of the notebook.

[0039] Step 230: Generate a duration reference line according to the remaining power and the preset standard brightness.

[0040] Exemplarily, the remaining power available for the screen can be determined based on the proportion of power used by the screen in the remaining power, and a reference line segment can be established as a duration reference line based on the power used per unit time at a preset standard brightness.

[0041] Step 240, setting an initial adjustment step, generating an initial curve based on the initial step adjustment step and the screen brightness of the main screen and the sub-screen, and generating a main screen brightness power area and a sub-screen power brightness area based on the initial curve and the duration reference line.

[0042] The initial adjustment step can be set based on experience, usually set to a minimum value. Based on the adjusted brightness corresponding to the initial step adjustment step and the amount of power required for the time corresponding to the brightness, a curve can be established as the initial curve. Correspondingly, since both the main screen and the sub-screen need to be adjusted, the brightness of the main screen may increase, while the brightness of the sub-screen may decrease. Corresponding initial curves are established respectively. And the area surrounded by the duration reference line generated based on the curve and the above steps is used as the main screen brightness power area and the sub-screen power brightness area. That is, the brightness adjustment decrease is drawn on the right side of the time reference line, and the time is the total adjustment duration, which is a positive value. So that the left side reflects the increased power consumption, and the right side reflects the decreased power consumption. Among them, the adjustment step sizes of the main screen and the sub-screen can be the same or different.

[0043] Step 250, adjust the initial step adjustment step size, calculate the sum of the main screen brightness power area and the sub-screen power brightness area area, wherein the power brightness area area value located on the right side of the duration reference line is a negative value, so that the sum of the main screen brightness power area and the sub-screen power brightness area area is minimized.

[0044] In this embodiment, setting different step sizes can affect power consumption, so an iterative optimization method can be used to continuously adjust the step size, continuously calculate the sum of the main screen brightness power area and the auxiliary screen power brightness area, and obtain the minimum sum by calculation to determine the optimal step size. Furthermore, different step sizes can be set as the optimal step size according to different time periods.

[0045] Furthermore, in order to avoid the impact of too large a step size on the user experience, in this embodiment, the initial adjustment step size can be set to be optimized as follows: the initial adjustment step size interval and the change rate are set according to the screen brightness of the main screen and the secondary screen and the preset standard brightness; the initial adjustment step size is set based on the initial adjustment step size interval and the change rate. By using the above method, the impact of over-emphasizing energy saving on the user experience can be avoided.

[0046] Step 260: Generate a brightness adjustment curve according to the minimum corresponding step adjustment step length of the sum of the areas of the main screen brightness power area and the auxiliary screen power brightness area.

[0047] After the optimal step length is determined, the brightness adjustment curve can be generated using the optimal step length.

[0048] Step 270: Adjust the brightness of the main screen and the sub-screen according to the brightness adjustment curve.

[0049] For example, the on_brightness_changed() function can be used to obtain the target brightness value for adjustment, and the target brightness value can be written into the brightness adjustment interface of the two screens under the operating system background light directory through the set_display_brightness() function. By utilizing the characteristics of the domestic operating system, the brightness of the main screen and the secondary screen can be adjusted quickly.

[0050] This embodiment optimizes the brightness adjustment curve generated according to the current remaining power, the screen brightness of the main screen and the sub-screen and the preset standard brightness as follows: generating a duration reference line according to the remaining power and the preset standard brightness; setting an initial adjustment step, generating an initial curve based on the initial step adjustment step and the screen brightness of the main screen and the sub-screen, and generating a main screen brightness power area and a sub-screen power brightness area based on the initial curve and the duration reference line; adjusting the initial step adjustment step, calculating the sum of the main screen brightness power area and the sub-screen power brightness area, wherein the power brightness area area value located on the right side of the duration reference line is a negative value, so that the sum of the main screen brightness power area and the sub-screen power brightness area area is minimized; generating a brightness adjustment curve according to the step adjustment step corresponding to the minimum sum of the main screen brightness power area and the sub-screen power brightness area area. The brightness adjustment curve can be generated by comprehensively considering the remaining power usage time and the user experience. It can extend the usage time of the dual-screen notebook computer as much as possible on the basis of ensuring the user experience.

[0051] Embodiment 3

[0052] Figure 3 is a schematic diagram of the structure of a dual-screen brightness adjustment device based on a domestic operating system provided by Embodiment 3 of the present invention, see Figure 3 The dual-screen brightness adjustment device based on the domestic operating system includes:

[0053] A determination module 310, configured to determine whether it is a dual-screen integrated usage scenario based on the mouse activity area and activity duration, and to determine a primary screen and a secondary screen when it is a dual-screen integrated usage scenario;

[0054] A query module 320, used to query the screen brightness of the main screen and the secondary screen, and query the current remaining power of the notebook;

[0055] The adjustment module 330 is used to generate a brightness adjustment curve according to the current remaining power, the screen brightness of the main screen and the sub-screen and the preset standard brightness, and adjust the brightness of the main screen and the sub-screen according to the brightness adjustment curve.

[0056] The dual-screen brightness adjustment device based on the domestic operating system provided in this embodiment determines whether it is a dual-screen comprehensive use scenario based on the mouse's active area and activity duration. When it is a dual-screen comprehensive use scenario, it determines the main screen and the sub-screen; queries the screen brightness of the main screen and the sub-screen, and queries the current remaining power of the notebook; generates a brightness adjustment curve based on the current remaining power, the screen brightness of the main screen and the sub-screen, and the preset standard brightness, and adjusts the brightness of the main screen and the sub-screen according to the brightness adjustment curve. The main screen and the sub-screen can be determined according to the user's operation, and the brightness adjustment curve can be generated according to the power and the current screen brightness, which can make the brightness adjustment smoother, and can also produce energy-saving effects, extending the use time of the dual-screen notebook, especially suitable for application scenarios where the main and sub-screens are frequently switched. The screen brightness can be adjusted without the user's tedious operations, further improving the user's work efficiency.

[0057] Based on the above embodiments, the determining module includes:

[0058] A setting unit, used to set a statistical period according to a preset duration when receiving an operation from an external device;

[0059] The determination unit is used to determine the occupancy rate of each screen according to the peripheral operation in the statistical period, and determine the main screen and the sub-screen according to the occupancy rate.

[0060] Based on the above embodiments, the device further includes:

[0061] The preset duration determination module is used to query the current active process, determine the application according to the active process, and determine the preset duration according to the application.

[0062] Based on the above embodiments, the adjustment module includes:

[0063] A reference line generating unit, configured to generate a duration reference line according to the remaining power and a preset standard brightness;

[0064] An initial curve generating unit, used for setting an initial adjustment step, generating an initial curve based on the initial step adjustment step and the screen brightness of the main screen and the sub-screen, and generating a main screen brightness power area and a sub-screen power brightness area based on the initial curve and the duration reference line;

[0065] a calculation unit, configured to adjust the initial step adjustment step length, and calculate the sum of the areas of the main screen brightness power region and the sub-screen power brightness region, wherein the area value of the power brightness region located on the right side of the duration reference line is a negative value, so that the sum of the areas of the main screen brightness power region and the sub-screen power brightness region is minimized;

[0066] The brightness adjustment curve generating unit is used to generate a brightness adjustment curve according to the minimum corresponding step adjustment step length of the sum of the areas of the main screen brightness power area and the auxiliary screen power brightness area.

[0067] Based on the above embodiments, the initial curve generating unit includes:

[0068] A setting subunit, used to set an initial adjustment step interval and a change rate according to the screen brightness of the main screen and the auxiliary screen and a preset standard brightness;

[0069] The initial adjustment step length setting subunit is used to set the initial adjustment step length based on the initial adjustment step length interval and the change rate.

[0070] Based on the above embodiments, the device further includes:

[0071] Reading module, used to read the directory information of the brightness of the domestic operating system;

[0072] A judgment module, used to judge whether the main and secondary screen brightness interfaces provided by the graphics card can be obtained;

[0073] Accordingly, the judgment module includes:

[0074] The determination unit is used to determine whether it is a dual-screen comprehensive usage scenario based on the active area and activity duration of the mouse when the main and sub-screen brightness interfaces can be obtained.

[0075] Based on the above embodiments, the query module includes:

[0076] The acquisition unit is used to use the newly added interface acquisition function gcm_backlight_helper_get_best_backlight1() to respectively acquire the brightness adjustment interface of the two screens in the operating system system backlight directory;

[0077] The brightness acquisition unit is used to obtain the current brightness from the file of the brightness adjustment interface using the newly added gpm_brightness_helper_get_value() function.

[0078] Based on the above embodiments, the adjustment module includes:

[0079] The writing unit is used to obtain the adjusted target brightness value by using the on_brightness_changed() function, and write the target brightness value into the brightness adjustment interface of the two screens under the system background light directory of the operating system by using the set_display_brightness() function.

[0080] The dual-screen brightness adjustment device based on a domestic operating system provided in an embodiment of the present invention can execute the dual-screen brightness adjustment method based on a domestic operating system provided in any embodiment of the present invention, and has the corresponding functional modules and beneficial effects of the execution method.

[0081] Embodiment 4

[0082] Embodiment 4 of the present invention further provides a storage medium comprising computer executable instructions, which, when executed by a computer processor, are used to execute any of the dual-screen brightness adjustment methods based on a domestic operating system as provided in the above embodiments.

[0083] The computer storage medium of the embodiment of the present invention can adopt any combination of one or more computer-readable media. The computer-readable medium can be a computer-readable signal medium or a computer-readable storage medium. The computer-readable storage medium can be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples (non-exhaustive list) of computer-readable storage media include: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In this document, a computer-readable storage medium can be any tangible medium containing or storing a program, which can be used by an instruction execution system, device or device or used in combination with it.

[0084] Computer-readable signal media may include data signals propagated in baseband or as part of a carrier wave, which carry computer-readable program code. Such propagated data signals may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. Computer-readable signal media may also be any computer-readable medium other than a computer-readable storage medium, which may send, propagate, or transmit a program for use by or in conjunction with an instruction execution system, apparatus, or device.

[0085] Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.

[0086] Computer program code for performing the operations of the present invention may be written in one or more programming languages ​​or a combination thereof, including object-oriented programming languages ​​such as Java, Smalltalk, C++, and conventional procedural programming languages ​​such as "C" or similar programming languages. The program code may be executed entirely on the user's computer, partially on the user's computer, as a separate software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or device. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., through the Internet using an Internet service provider).

[0087] Note that the above are only preferred embodiments of the present invention and the technical principles used. Those skilled in the art will understand that the present invention is not limited to the specific embodiments described herein, and that various obvious changes, readjustments and substitutions can be made by those skilled in the art without departing from the scope of protection of the present invention. Therefore, although the present invention has been described in more detail through the above embodiments, the present invention is not limited to the above embodiments, and may include more other equivalent embodiments without departing from the concept of the present invention, and the scope of the present invention is determined by the scope of the appended claims.

Claims

1. A dual-screen brightness adjustment method based on a domestic operating system, characterized in that: include: Determine whether it is a dual-screen comprehensive usage scenario based on the mouse activity area and activity duration, and if it is a dual-screen comprehensive usage scenario, determine the main screen and the secondary screen; Query the screen brightness of the main screen and the secondary screen, and query the current remaining power of the notebook; A brightness adjustment curve is generated according to the current remaining power, the screen brightness of the main screen and the sub-screen and the preset standard brightness, and the brightness of the main screen and the sub-screen is adjusted according to the brightness adjustment curve.

2. The method according to claim 1, characterized in that The determining of the main screen and the sub-screen includes: When receiving an operation from a peripheral device, set a statistical period according to a preset duration; The occupancy rate of each screen is determined according to the peripheral device operations in the statistical period, and the main screen and the sub-screen are determined according to the occupancy rate.

3. The method according to claim 2, characterized in that The method further comprises: The currently active process is queried, an application is determined according to the active process, and the preset duration is determined according to the application.

4. The method according to claim 1, characterized in that: The generating of the brightness adjustment curve according to the current remaining power, the screen brightness of the main screen and the auxiliary screen and the preset standard brightness includes: generating a duration reference line according to the remaining power and a preset standard brightness; Setting an initial adjustment step, generating an initial curve based on the initial step adjustment step and the screen brightness of the main screen and the sub-screen, and generating a main screen brightness power area and a sub-screen power brightness area based on the initial curve and the duration reference line; Adjust the initial step adjustment step length, calculate the sum of the main screen brightness power area and the sub-screen power brightness area area, wherein the power brightness area area value located on the right side of the duration reference line is a negative value, so that the sum of the main screen brightness power area and the sub-screen power brightness area area is minimized; A brightness adjustment curve is generated according to the step adjustment step length corresponding to the minimum sum of the areas of the main screen brightness power region and the auxiliary screen power brightness region.

5. The method according to claim 4, characterized in that The step of setting the initial adjustment step comprises: Setting the initial adjustment step interval and change rate according to the screen brightness of the main screen and the sub-screen and the preset standard brightness; An initial adjustment step size is set based on the initial adjustment step size interval and the change rate.

6. The method according to claim 1, characterized in that Before determining whether it is a dual-screen comprehensive use scenario based on the mouse activity area and activity duration, the method further includes: Read the directory information of the system brightness of the domestic operating system; Determine whether the main and secondary screen brightness interfaces provided by the graphics card can be obtained; Accordingly, the determining whether it is a dual-screen comprehensive usage scenario based on the mouse activity area and activity duration includes: When the main and sub-screen brightness interfaces are available, determine whether it is a dual-screen comprehensive usage scenario based on the mouse's active area and activity duration.

7. The method according to claim 6, characterized in that The querying of the screen brightness of the main screen and the secondary screen includes: Use the newly added interface acquisition function gcm_backlight_helper_get_best_backlight1() to obtain the brightness adjustment interface of the two screens in the operating system system backlight directory; The new gpm_brightness_helper_get_value() function is used to obtain the current brightness from the file of the brightness adjustment interface.

8. The method according to claim 7, characterized in that The step of adjusting the brightness of the main screen and the sub-screen according to the brightness adjustment curve includes: The on_brightness_changed() function is used to obtain the target brightness value for adjustment, and the target brightness value is written into the brightness adjustment interface of the two screens under the system background light directory of the operating system through the set_display_brightness() function.

9. A dual-screen brightness adjustment device based on a domestic operating system, characterized in that: include: A determination module, used to determine whether it is a dual-screen comprehensive use scenario based on the mouse activity area and activity duration, and when it is a dual-screen comprehensive use scenario, determine the main screen and the secondary screen; A query module, used to query the screen brightness of the main screen and the secondary screen, and query the current remaining power of the notebook; The adjustment module is used to generate a brightness adjustment curve according to the current remaining power, the screen brightness of the main screen and the sub-screen and the preset standard brightness, and adjust the brightness of the main screen and the sub-screen according to the brightness adjustment curve.

10. A storage medium containing computer executable instructions, characterized in that: The computer executable instructions, when executed by a computer processor, are used to execute the dual-screen brightness adjustment method based on a domestic operating system as described in any one of claims 1-8.