Backlight keyboard light effect regulation method and computer program product

By dynamically adjusting the number of constantly lit LEDs, the number of LEDs with varying brightness, and the color of the backlit keyboard, and by utilizing changes in user interaction duration and frequency, the problem of insufficient backlit keyboard lighting effect control has been solved, achieving greater practicality and fun, and enhancing the user interaction experience.

CN121862625BActive Publication Date: 2026-06-09ANHUI SHENGYUN INTELLIGENT TECH CO LTD

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
ANHUI SHENGYUN INTELLIGENT TECH CO LTD
Filing Date
2026-03-17
Publication Date
2026-06-09

AI Technical Summary

Technical Problem

Existing backlit keyboard lighting control technology has not yet fully utilized the changes in the duration and frequency of user interaction, and lacks more functions to enhance practicality and fun.

Method used

By acquiring the duration and frequency of continuous user interaction, the number of constantly lit and variable-brightness lights on the backlit keyboard are set to change linearly accordingly. Combined with audio loudness and display color data, the brightness and color of the lights are adjusted in real time to achieve dynamic control of the light effect.

Benefits of technology

This allows users to visually understand their interaction with the device, increases the practicality and fun of the lighting effects, provides a reminder to rest, and coordinates with the audio and display to enhance the user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN121862625B_ABST
    Figure CN121862625B_ABST
Patent Text Reader

Abstract

The present application relates to the technical field of keyboard, specifically to a backlight keyboard light effect regulation method and computer program product, comprising: acquiring the latest user continuous interaction time length and user interaction frequency of a target device; setting the number of constant light and the number of bright light of the backlight keyboard according to the user continuous interaction time length and a first preset rule; the first preset rule comprises: the number of constant light changes linearly with the user continuous interaction time length; setting the number of light-on of the bright light according to the user interaction frequency and a second preset rule; the second preset rule comprises: the number of light-on changes linearly with the user interaction frequency. The scheme makes the backlight keyboard light effect present the user continuous interaction time length and the interaction frequency change, helps the user to know the interaction condition between the user and the target device in time, increases the practicability of the backlight keyboard light effect, and also increases the interest of the user in human-computer interaction.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This disclosure relates to the field of keyboard technology, and in particular to a method for controlling the light effect of a backlit keyboard and a computer program product. Background Technology

[0002] This section is intended to provide background or context for the embodiments disclosed herein. The description herein is not intended to imply that it is prior art simply because it is included in this section.

[0003] With the continuous development of keyboard technology, backlit keyboards have emerged, which are keyboards with light sources installed under each key. The original design purpose of backlit keyboards was to increase key visibility in low-light environments, but with technological advancements, the light sources they use can now intelligently adjust parameters such as brightness and color. Backlit keyboards have now become computer peripherals that balance practicality and aesthetics, meeting the needs of scenarios such as nighttime office work and e-sports gaming.

[0004] However, the backlighting technology for adjusting the lighting effects of backlit keyboards still needs further improvement to enable them to have more functions. Summary of the Invention

[0005] Therefore, it is necessary to provide a method and computer program product for adjusting the backlight keyboard light effect that can reflect the changes in the duration and frequency of continuous user interaction, in order to address the above-mentioned technical problems.

[0006] Firstly, this disclosure provides a method for adjusting the lighting effects of a backlit keyboard. The method includes:

[0007] Obtain the latest user engagement duration and user interaction frequency for the target device;

[0008] Based on the duration of continuous user interaction and a first preset rule, the number of constantly lit LEDs and the number of LEDs with variable brightness are set for the backlit keyboard; the first preset rule includes: the number of constantly lit LEDs changes linearly with the duration of continuous user interaction;

[0009] The number of lights to be lit is set according to the user interaction frequency and the second preset rule; the second preset rule includes: the number of lights to be lit changes linearly with the user interaction frequency.

[0010] In one embodiment, the method further includes:

[0011] Based on the duration of continuous user interaction and a third preset rule, the first display brightness value of the always-on light is adjusted; the third preset rule includes: the first display brightness value decreases as the duration of continuous user interaction increases.

[0012] In one embodiment, the method further includes:

[0013] Obtain real-time loudness data of the target audio;

[0014] Based on the real-time loudness data and the fourth preset rule, the first display brightness value is adjusted to the second display brightness value in real time; the fourth preset rule includes: the increase in the first display brightness value is positively correlated with the loudness.

[0015] In one embodiment, the method further includes:

[0016] Acquire pixel data and backlight keyboard light distribution data of the target display screen;

[0017] The planar region corresponding to the pixel data space is divided into sub-regions arranged in M ​​rows and N columns, where M is not less than the maximum number of lights in a single row of the backlight keyboard and N is not less than the maximum number of lights in a single column of the backlight keyboard.

[0018] Calculate the average color value of all pixels corresponding to each sub-region to obtain the sub-region color distribution data;

[0019] The color distribution data of the sub-region and the distribution data of the backlight keyboard light are superimposed according to the spatial distribution, and the correspondence between the backlight keyboard light and the sub-region is established according to the superposition relationship;

[0020] Based on the aforementioned correspondence, the display color of the backlit keyboard light is adjusted to be the same as the average color value of the corresponding sub-region.

[0021] In one embodiment, the first preset rule further includes: when t1≤t0, a / s=d0+d1×t1 / t0, b=sa, where a is the number of constantly lit lights, b is the number of lights with variable brightness, s is the total number of backlit keyboard lights, d0 is the preset initial quantity percentage, d1 is the preset quantity adjustment percentage, t1 is the duration of continuous user interaction, and t0 is the preset duration threshold; when t1>t0, a / s=d0+d1;

[0022] The second preset rule also includes: when h1≤h0, b1=b×h1 / h0, where b1 is the number of lights that can be turned on, h1 is the user interaction frequency, and h0 is the preset frequency threshold; when h1>h0, b1=b.

[0023] In one embodiment, the third preset rule further includes: when t1≤t0, (m1-n) / m0=1-t1 / t0, where m1 is the first display brightness value, n is the preset minimum brightness value of the always-on light, m0 is the first preset brightness value, t1 is the duration of continuous user interaction, and t0 is the preset duration threshold; when t1>t0, m1=n.

[0024] In one embodiment, the fourth preset rule further includes:

[0025] The fourth preset rule also includes: m2=m1+p×q, where m1 is the first display brightness value, m2 is the second display brightness value, q is the second preset brightness value, and p is the normalized loudness.

[0026] In one embodiment, 0.5 hours ≤ t0 ≤ 1 hour, 60 times / minute ≤ h0 ≤ 300 times / minute, 10% ≤ d0 ≤ 90%, and 0 ≤ d0 + d1 ≤ 1.

[0027] In one embodiment, the method further includes:

[0028] Set the backlight keys that are closest to the main backlight keys to always-on lights;

[0029] The target device includes a backlit keyboard and / or mouse.

[0030] Secondly, this disclosure also provides a computer program product. The computer program product includes a computer program that, when executed by a processor, performs the following steps:

[0031] Obtain the latest user engagement duration and user interaction frequency for the target device;

[0032] Based on the user's continuous interaction duration and the first preset rule, the number of constantly lit backlights and the number of variable-brightness backlights are set; the first preset rule includes: the number of constantly lit backlights changes linearly with the user's continuous interaction duration, and the variable-brightness backlights are backlight keyboard lights that are not constantly lit.

[0033] The number of lights to be lit is set according to the user interaction frequency and the second preset rule; the second preset rule includes: the number of lights to be lit changes linearly with the user interaction frequency.

[0034] The aforementioned backlit keyboard lighting effect control method and computer program product use the duration and frequency of continuous interaction between the user and the target device as parameters to control the backlit keyboard lighting effect. The number of constantly lit LEDs changes linearly with the duration of continuous interaction, while the number of variable-brightness LEDs changes linearly with the frequency of interaction. This allows for visual display of the duration and frequency of continuous interaction, helping users understand their interaction status with the target device in a timely manner. This increases the practicality of the backlit keyboard lighting effect and enhances the enjoyment of human-computer interaction. Users can perceive that as the duration of continuous interaction increases, the number of constantly lit LEDs on the backlit keyboard increases or decreases, serving as a reminder to take a break. The backlit keyboard can reflect changes in the frequency of user interaction in a timely manner through the number of variable-brightness LEDs, adding to the enjoyment. When the user interacts with the target device, the higher the interaction frequency, the more or fewer the constantly lit LEDs will be; the longer the continuous interaction time, the more or fewer the constantly lit LEDs will be, giving the backlit keyboard a game console-like playability. Attached Figure Description

[0035] The accompanying drawings, which are incorporated in and form part of this specification, illustrate embodiments consistent with this disclosure and, together with the description, serve to explain the principles of this disclosure, and are not intended to unduly limit this disclosure.

[0036] Figure 1 This is a flowchart illustrating a method for controlling the backlight keyboard's light effect in one embodiment;

[0037] Figure 2 This is a schematic diagram of a method for controlling the color of a backlit keyboard light in one embodiment. Detailed Implementation

[0038] To make the objectives, technical solutions, and advantages of this disclosure clearer, the following detailed description, in conjunction with the accompanying drawings and embodiments, provides a more comprehensive understanding of this disclosure. It should be understood that the specific embodiments described herein are merely illustrative and not intended to limit the scope of this disclosure. In the following detailed description of this application, certain specific details are described in detail. Those skilled in the art can fully understand this application even without these detailed descriptions. To avoid obscuring the essence of this application, well-known methods, processes, flows, elements, and circuits are not described in detail.

[0039] It should be noted that the terms "first," "second," etc., used in the specification, claims, and accompanying drawings of this disclosure are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence. It should be understood that such data can be interchanged where appropriate so that the embodiments of this disclosure described herein can be implemented in orders other than those illustrated or described herein. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with this disclosure. Rather, they are merely examples of apparatuses and methods consistent with some aspects of this disclosure as detailed in the appended claims.

[0040] The backlight keyboard light effect control method provided in this disclosure can be applied to various application environments, such as those including a backlight keyboard, a processor, and a data storage system. The processor and data storage system are generally local to the computer. The backlight keyboard can communicate with the processor. The data storage system can store the data that the processor needs to process. The processor has a data acquisition port, capable of acquiring the latest user interaction duration and user interaction frequency data of the target device. The processor can set the number of constantly lit LEDs and the number of LEDs that change brightness on the backlight keyboard according to the user interaction duration and a first preset rule. The data storage system can store the first preset rule, which includes: the number of constantly lit LEDs changes linearly with the user interaction duration. The processor can set the number of LEDs that change brightness on the backlight keyboard according to the user interaction frequency and a second preset rule. The data storage system can store the second preset rule, which includes: the number of LEDs that change brightness changes linearly with the user interaction frequency. The processor can be implemented using a separate processor or a processor cluster composed of multiple processors. The processor can be a microprocessor located on the backlight keyboard, and the data storage system can be a micro-memory located on the backlight keyboard.

[0041] In one embodiment, such as Figure 1 As shown, a method for adjusting the backlight effect of a keyboard is provided. Taking the application of this method in the aforementioned scenario as an example, the method includes the following steps:

[0042] Step 102: Obtain the latest user continuous interaction duration and user interaction frequency of the target device.

[0043] The target device can refer to a device capable of human-computer interaction, such as a keyboard or mouse. The duration of continuous user interaction can refer to the duration of continuous interaction between a user and one or more devices. The user interaction frequency can refer to the number of times a user interacts with one or more devices per unit of time.

[0044] Specifically, regarding the criteria for determining continuous interaction, a minimum time interval for determining interaction interruption can be set. If the user does not interact with one or more target devices within this minimum time interval, the interaction is considered interrupted; otherwise, the interaction is considered continuous. When there is more than one target device, all target devices are treated as a whole when calculating the duration and frequency of user interaction. For example, if the target devices include a mouse and a keyboard, the user's use of either the mouse or the keyboard is considered an interaction with the target device. The aforementioned minimum time interval can be set by technicians or users according to actual needs; this disclosure does not impose restrictions. For example, the default value for the minimum time interval can be set to 30 seconds, 60 seconds, 90 seconds, 150 seconds, 200 seconds, 300 seconds, or other times within the range of 30 to 300 seconds before the backlit keyboard leaves the factory. In calculating the frequency of user interaction, one operation on the target device can be counted as one interaction; for example, a mouse click or scroll wheel movement, or a keyboard key press, can all be considered an interaction. The user interaction frequency is generally the average interaction frequency within a preset time range. For example, the preset time could be 1 second, 3 seconds, 5 seconds, 10 seconds, 15 seconds, 30 seconds, 60 seconds, or other times within the range of 1 to 60 seconds. Since it is an average interaction frequency, the user interaction frequency is not necessarily an integer. The processor's data acquisition port continuously acquires the latest user interaction duration and user interaction frequency from the target device. This disclosure does not limit the data update frequency; for example, it could be updated once, three times, or five times per second.

[0045] Step 104: Based on the user's continuous interaction duration and the first preset rule, set the number of constantly lit lights and the number of lights that change brightness on the backlit keyboard; the first preset rule includes: the number of constantly lit lights changes linearly with the user's continuous interaction duration, and the lights that change brightness are backlit keyboard lights that are not constantly lit.

[0046] Among them, a constantly lit light refers to a light that remains constantly lit after the target device is powered on. A brightness-changing light refers to a light whose brightness can be adjusted after the target device is powered on.

[0047] Specifically, the "brightness-changing" backlights are those that are not considered constantly lit. This means that the same backlight can be set to either constantly lit or brightness-changing; its category can change. The number of constantly lit backlights is not fixed but changes linearly with the duration of user interaction, specifically increasing or decreasing linearly. If, in the first preset rule, the number of constantly lit lights increases linearly with the duration of user interaction, it means that for every unit increase in user interaction time, the increase in the number of constantly lit lights remains constant. It's easy to understand that the number of backlights is finite, therefore the number of constantly lit lights has an upper limit. Thus, when the number of constantly lit lights reaches this limit, it will no longer increase linearly with the duration of user interaction. Similarly, if, in the first preset rule, the number of constantly lit lights decreases linearly with the duration of user interaction, it means that for every unit increase in user interaction time, the decrease in the number of constantly lit lights remains constant. It's easy to understand that the number of always-on lights has a lower limit, which is definitely not less than 0. Therefore, when the number of always-on lights reaches this lower limit, the number of always-on lights will no longer decrease linearly with the duration of user interaction. Additionally, it should be noted that the number of always-on lights and the number of lights that change brightness, calculated based on the duration of user interaction and the first preset rule, are not necessarily integers. In specific settings, the calculated values ​​can be rounded down first, and the number of the two types of lights on the backlit keyboard can be set according to the rounded values. The rounding method can be rounding to the nearest whole number, omitting decimals, or other methods; this disclosure does not impose any restrictions.

[0048] Step 106: Set the number of lights to be turned on according to the user interaction frequency and the second preset rule; the second preset rule includes: the number of lights changes linearly with the user interaction frequency.

[0049] Specifically, the number of lights illuminated is determined by the user interaction frequency, and the linear change can be either a linear increase or a linear decrease. If, in the second preset rule, the number of lights illuminates linearly with the user interaction frequency, it means that for every unit increase in the user interaction frequency, the increase in the number of lights remains constant. It's easy to understand that the number of lights illuminated has an upper limit; therefore, when the number of lights illuminated reaches this upper limit, the number of lights illuminated will no longer increase linearly with the duration of continuous user interaction. Similarly, in the second preset rule, if the number of lights illuminates linearly with the user interaction frequency, it means that for every unit increase in the user interaction frequency, the decrease in the number of lights illuminates remains constant. It's easy to understand that the number of lights illuminated has a lower limit, which is certainly not less than 0; therefore, when the number of lights illuminates reaches this lower limit, the number of lights illuminated will no longer decrease linearly with the user interaction frequency. Additionally, it should be noted that the number of lights calculated based on user interaction frequency and the second preset rule is not necessarily an integer. In specific settings, the calculated value can be rounded down first, and the number of lights to be turned on can be set according to the rounded value. The rounding method can be rounding to the nearest whole number, omitting decimals, or other methods, and this disclosure does not impose any restrictions.

[0050] In this embodiment, the duration and frequency of continuous interaction between the user and the target device are used as parameters to control the backlit keyboard's lighting effects. The number of constantly lit LEDs changes linearly with the duration of continuous interaction, while the number of variable-brightness LEDs changes linearly with the frequency of interaction. This allows the duration and frequency of continuous interaction to be visualized, helping users understand their interaction status with the target device in a timely manner. This increases the practicality of the backlit keyboard's lighting effects and enhances the fun of human-computer interaction. Users can perceive that as the duration of continuous interaction increases, the number of constantly lit LEDs on the backlit keyboard increases or decreases, serving as a reminder to take a break. The backlit keyboard can reflect changes in the frequency of user interaction in a timely manner through the number of variable-brightness LEDs, increasing its appeal. When a user interacts with the target device, the higher the interaction frequency, the more or fewer the number of constantly lit LEDs; the longer the continuous interaction time, the more or fewer the number of constantly lit LEDs on the backlit keyboard, giving the backlit keyboard a game console-like playability.

[0051] In one embodiment, the method further includes:

[0052] Based on the duration of continuous user interaction and a third preset rule, the first display brightness value of the always-on light is adjusted; the third preset rule includes: the first display brightness value decreases as the duration of continuous user interaction increases.

[0053] The first display brightness value can refer to the brightness level of the constantly lit lamp when it remains constantly lit.

[0054] Specifically, the longer a user interacts with the target device continuously, the more tired their eyes become. In this case, appropriately reducing the brightness of the always-on backlight on the keyboard helps protect the user's eyesight. Therefore, the brightness of the always-on backlight on the keyboard is set to decrease as the duration of continuous user interaction increases. Technicians can choose to set a lower limit for the first display brightness value of the always-on backlight based on actual needs and the hardware of the backlight keyboard, to meet the basic requirement of illuminating the keys in a dark environment. Specific solutions are not limited in this embodiment. Regarding the brightness of the variable-brightness indicator, this embodiment also does not limit it; the brightness of the variable-brightness indicator can be set to be the same as the brightness of the always-on backlight when it is lit.

[0055] In one embodiment, the method further includes:

[0056] Obtain real-time loudness data of the target audio;

[0057] Based on the real-time loudness data and the fourth preset rule, the first display brightness value is adjusted to the second display brightness value in real time; the fourth preset rule includes: the increase in the first display brightness value is positively correlated with the loudness.

[0058] Here, real-time loudness data can refer to data containing real-time loudness information of the target audio. The target audio can refer to the audio used for adjusting the brightness of the backlit keyboard light.

[0059] Specifically, the loudness of the target audio generally changes in real time, while the first display brightness value changes very slowly over time, remaining almost constant. Therefore, the first display brightness value can be used as the background brightness of the backlit keyboard light, and the second display brightness value can continuously change with the loudness of the audio based on the first display brightness value. In the fourth preset rule, the increase in the first display brightness value is positively correlated with the loudness; that is, the greater the real-time loudness of the target audio, the greater the increase in the first display brightness value. In this solution, the adjustable brightness range of the backlit keyboard light is actually divided into two parts. The value of the first part changes with the duration of continuous user interaction, resulting in the first display brightness value; the value of the second part changes with the real-time loudness of the audio, resulting in the second display brightness value based on the first display brightness value. Regarding the brightness of the variable brightness indicator, this embodiment does not impose any restrictions; it can be set so that when the variable brightness indicator is lit, its brightness is the same as that of the constantly lit indicator.

[0060] In this embodiment, by designing the brightness of the always-on backlight of the keyboard to change in real time with the audio volume, the keyboard lighting effects can be synchronized with the audio, helping to enhance the ambiance when listening to music. At the same time, the characteristic that the base brightness of the always-on light gradually decreases as the user's interaction time increases is retained, which helps to achieve automatic eye-protection adjustment of the backlight keyboard light.

[0061] In one embodiment, such as Figure 2 As shown, the method further includes:

[0062] Step 202: Obtain pixel data and backlight keyboard light distribution data of the target display screen.

[0063] The target display screen can refer to the screen used to adjust the color of the backlit keyboard lights. Pixel data can refer to data containing pixel positions and specific pixel values ​​at each position. Backlit keyboard light distribution data can refer to data containing the relative positions of each backlit keyboard light.

[0064] Specifically, the target display screen can be a portion or the entire screen of an electronic device such as a computer or mobile phone. This disclosure does not limit the shape of the target display screen, but it is recommended to choose a rectangular area that closely resembles the shape of the controlled backlit keyboard. The processor's data acquisition port can acquire pixel data and backlit keyboard light distribution data of the target display screen.

[0065] Step 204: Divide the planar region corresponding to the pixel data space into sub-regions arranged in M ​​rows and N columns, where M is not less than the maximum number of LEDs in a single row of the backlight keyboard and N is not less than the maximum number of LEDs in a single column of the backlight keyboard.

[0066] The maximum number of LEDs per row refers to the maximum number of backlight LEDs in a single row of a controlled backlit keyboard. The maximum number of LEDs per column refers to the maximum number of backlight LEDs in a single column of a controlled backlit keyboard.

[0067] Specifically, the pixel data includes the position and value data of each pixel, thus creating a planar region corresponding to the pixel data space, forming a pixel map, which is divided into numerous sub-regions arranged in M ​​rows and N columns. The segmentation process is generally done evenly. However, considering the spatial distribution characteristics of the backlit keyboard lights, the shapes of each sub-region can be slightly different to facilitate the subsequent establishment of the correspondence between the sub-regions and the backlit keyboard lights. M is not less than the maximum number of lights in a single row of the backlit keyboard, and N is not less than the maximum number of lights in a single column of the backlit keyboard. This ensures that in subsequent steps, each backlit keyboard light can independently establish a correspondence with at least one sub-region.

[0068] Step 206: Calculate the average color value of all pixels corresponding to each sub-region to obtain the sub-region color distribution data.

[0069] Specifically, the color of a pixel can refer to the color represented by three components—red, green, and blue—of each pixel in a digital image, with each component ranging from 0 to 255. A sub-region typically contains multiple pixels. In this case, the average color of all pixels within the sub-region is calculated, which is equivalent to calculating the average of the red, green, and blue components of all pixels. Thus, each sub-region has only one color, and the position and color of each sub-region constitute the sub-region color distribution data.

[0070] Step 208: Superimpose the color distribution data of the sub-region and the distribution data of the backlight keyboard lights according to the spatial distribution, and establish the correspondence between the backlight keyboard lights and the sub-region according to the superposition relationship.

[0071] Specifically, a sub-region color distribution map can be created based on the sub-region color distribution data. A backlight keyboard light distribution map can be created based on the backlight keyboard light distribution data. Adjust the two distribution maps to appropriate sizes, then overlap them to establish a correspondence between the overlapping backlight keyboard lights and the sub-regions. It should be noted that this is merely one example of establishing a correspondence. Technicians can also use other methods, such as specialized algorithms or artificial intelligence, to establish a correspondence between sub-regions and backlight keyboard lights based on their spatial distribution, achieving the same or similar effects as the example above. Further details will not be elaborated upon here.

[0072] Step 210: According to the correspondence, adjust the display color of the backlit keyboard light to be the same as the average color value of the corresponding sub-region.

[0073] Specifically, after establishing a correspondence between the backlit keyboard lights and sub-regions, the color of the corresponding backlit keyboard light can be adjusted according to the color of the sub-region. This ensures that the overall lighting color effect of the backlit keyboard matches the color distribution effect of the sub-regions described by the color distribution data, thus making the backlit keyboard's color effect consistent with the target display screen. When capturing the target display screen in real time, such as capturing the screen of an online game, the backlit keyboard can display a lighting effect consistent with the screen's color, thereby optimizing the user experience.

[0074] In one embodiment, the first preset rule further includes: when t1≤t0, a / s=d0+d1×t1 / t0, b=sa, where a is the number of constantly lit lights, b is the number of lights with variable brightness, s is the total number of backlit keyboard lights, d0 is a preset initial quantity percentage, d1 is a preset quantity adjustment percentage, t1 is the duration of continuous user interaction, and t0 is a preset duration threshold; when t1>t0, a / s=d0+d1. The second preset rule further includes: when h1≤h0, b1=b×h1 / h0, where b1 is the number of lights with variable brightness, h1 is the user interaction frequency, and h0 is a preset frequency threshold; when h1>h0, b1=b.

[0075] The preset duration threshold can refer to a pre-set threshold for the duration of continuous user interaction. The preset frequency threshold can refer to a pre-set threshold for the frequency of user interaction.

[0076] Specifically, when the user's continuous interaction time is 0, the number of always-on lights has an initial value, at which point a / s = d0. d1 represents the adjustable range of the ratio of always-on lights to the total number of backlit keyboard lights. When the number of always-on lights increases linearly with the user's continuous interaction time, d0 represents the minimum proportion of always-on lights to the total number of backlit keyboard lights, d1 is positive, and d0 can be 0. When the number of always-on lights decreases linearly with the user's continuous interaction time, d0 represents the maximum proportion of always-on lights to the total number of backlit keyboard lights, and d1 is negative. When t1 > t0, a / s = d0 + d1, meaning the number of always-on lights remains unchanged. When the user interaction frequency is 0, the number of lights is 0. Since h1 / h0, in this embodiment, the number of lights increases linearly with the user interaction frequency. When the user interaction frequency reaches a preset frequency threshold, all the lights are illuminated. Technicians or users can set specific values ​​for d0, d1, t0, and h0 according to actual needs. For example, they can choose appropriate values ​​from the following ranges: 0.5 hours ≤ t0 ≤ 1 hour, 60 times / minute ≤ h0 ≤ 300 times / minute, 10% ≤ d0 ≤ 90%, 0 ≤ d0 + d1 ≤ 1. t0 can be 0.5 hours, 0.75 hours, 0.8 hours, or 1 hour. h0 can be 60 times / minute, 90 times / minute, 150 times / minute, 200 times / minute, or 300 times / minute. d0 can be 10%, 20%, 30%, 50%, 60%, 70%, or 90%.

[0077] In one embodiment, the third preset rule further includes: when t1≤t0, (m1-n) / m0=1-t1 / t0, where m1 is the first display brightness value, n is the preset minimum brightness value of the always-on light, m0 is the first preset brightness value, t1 is the duration of continuous user interaction, and t0 is the preset duration threshold; when t1>t0, m1=n.

[0078] The first preset brightness value can refer to a pre-set brightness value for the always-on light, representing the upper limit of brightness change of the first display brightness value affected by the duration of continuous user interaction. The preset minimum brightness value for the always-on light represents the pre-set minimum brightness of the always-on light.

[0079] Specifically, when t1=0, m1=n+m0. When t1≤t0, the first display brightness value gradually decreases as the user's continuous interaction time increases, until it reaches n. When t1>t0, the first display brightness value is n.

[0080] In one embodiment, the fourth preset rule further includes:

[0081] The fourth preset rule also includes: m2=m1+p×q, where m1 is the first display brightness value, m2 is the second display brightness value, q is the second preset brightness value, and p is the normalized loudness.

[0082] The second preset brightness value can refer to another preset brightness value for the constantly lit lamp, representing the maximum difference between the second display brightness value and the first display brightness value. Normalized loudness can refer to the value obtained after normalizing the loudness data of the audio.

[0083] Specifically, the greater the loudness of the audio, the greater the corresponding normalized loudness. Normalized loudness reflects the relative amplitude of loudness changes, where 0 ≤ p ≤ 1. Based on the first display brightness value, a brightness increment that varies with the audio loudness is added to obtain the second display brightness value, thus improving the intelligent control level of the always-on light brightness.

[0084] In one embodiment, the method further includes:

[0085] Set the backlight keys that are closest to the main backlight keys to always-on lights;

[0086] The target device includes a backlit keyboard and / or mouse.

[0087] Among them, the backlit keyboard female keys refer to the raised keys on the backlit keyboard to facilitate touch typing, usually the F key and the J key.

[0088] Specifically, the distribution of the constantly lit lights can be designed. In this embodiment, the rule is to prioritize setting the backlight keyboard lights that are closer to the backlit keyboard's main key as constantly lit lights. The data storage system can pre-store the distance information between each key on the backlit keyboard and the backlit keyboard's main key, and sort the backlight keyboard lights according to the distance, thereby facilitating the setting of constantly lit lights. In this embodiment, prioritizing the setting of backlight keyboard lights that are closer to the main key as constantly lit lights can prioritize illuminating frequently used areas of the keyboard, thereby facilitating the use of the light effect control method of this disclosure by the user in a dark environment. The target device can be at least one of a backlit keyboard and a mouse. Since the general interaction frequency between the user and the keyboard and mouse differs, technicians or users can set a preset frequency threshold according to the specific situation of the target device.

[0089] It should be understood that although the steps in the flowcharts of the embodiments described above are shown sequentially according to the arrows, these steps are not necessarily executed in the order indicated by the arrows. Unless explicitly stated herein, there is no strict order restriction on the execution of these steps, and they can be executed in other orders. Moreover, at least some steps in the flowcharts of the embodiments described above may include multiple steps or multiple stages. These steps or stages are not necessarily completed at the same time, but can be executed at different times. The execution order of these steps or stages is not necessarily sequential, but can be performed alternately or in turn with other steps or at least some of the steps or stages of other steps.

[0090] Based on the same inventive concept, this disclosure also provides a computer program product for implementing the backlight keyboard light effect control method described above. The solution provided by this computer program product is similar to the implementation scheme described in the above method; therefore, the specific limitations in one or more computer program product embodiments provided below can be found in the limitations of the backlight keyboard light effect control method described above, and will not be repeated here.

[0091] In one embodiment, a computer program product is provided, including a computer program that, when executed by a processor, performs the following steps:

[0092] Obtain the latest user engagement duration and user interaction frequency for the target device;

[0093] Based on the user's continuous interaction duration and the first preset rule, the number of constantly lit backlights and the number of variable-brightness backlights are set; the first preset rule includes: the number of constantly lit backlights changes linearly with the user's continuous interaction duration, and the variable-brightness backlights are backlight keyboard lights that are not constantly lit.

[0094] The number of lights to be lit is set according to the user interaction frequency and the second preset rule; the second preset rule includes: the number of lights to be lit changes linearly with the user interaction frequency.

[0095] In one embodiment, when the computer program is executed by a processor, it further performs the following steps:

[0096] Based on the duration of continuous user interaction and a third preset rule, the first display brightness value of the always-on light is adjusted; the third preset rule includes: the first display brightness value decreases as the duration of continuous user interaction increases.

[0097] In one embodiment, when the computer program is executed by a processor, it further performs the following steps:

[0098] Obtain real-time loudness data of the target audio;

[0099] Based on the real-time loudness data and the fourth preset rule, the first display brightness value is adjusted to the second display brightness value in real time; the fourth preset rule includes: the increase in the first display brightness value is positively correlated with the loudness.

[0100] In one embodiment, when the computer program is executed by a processor, it further performs the following steps:

[0101] Acquire pixel data and backlight keyboard light distribution data of the target display screen;

[0102] The planar region corresponding to the pixel data space is divided into sub-regions arranged in M ​​rows and N columns, where M is not less than the maximum number of lights in a single row of the backlight keyboard and N is not less than the maximum number of lights in a single column of the backlight keyboard.

[0103] Calculate the average color value of all pixels corresponding to each sub-region to obtain the sub-region color distribution data;

[0104] The color distribution data of the sub-region and the distribution data of the backlight keyboard light are superimposed according to the spatial distribution, and the correspondence between the backlight keyboard light and the sub-region is established according to the superposition relationship;

[0105] Based on the aforementioned correspondence, the display color of the backlit keyboard light is adjusted to be the same as the average color value of the corresponding sub-region.

[0106] In one embodiment, when the computer program is executed by a processor, it further performs the following steps:

[0107] Set the backlight lights that are closest to the main backlight keys to always-on.

[0108] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, data stored, data displayed, etc.) involved in this disclosure are all information and data authorized by the user or fully authorized by all parties.

[0109] Those skilled in the art will understand that all or part of the processes in the above embodiments can be implemented by a computer program instructing related hardware. The computer program can be stored in a non-volatile computer-readable storage medium, and when executed, it can include the processes of the embodiments of the above methods. Any references to memory, databases, or other media used in the embodiments provided in this disclosure can include at least one of non-volatile and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (RRAM), magnetic random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. By way of illustration and not limitation, RAM can take many forms, such as Static Random Access Memory (SRAM) or Dynamic Random Access Memory (DRAM). The databases involved in the embodiments provided in this disclosure may include at least one type of relational database and non-relational database. Non-relational databases may include, but are not limited to, blockchain-based distributed databases. The processors involved in the embodiments provided in this disclosure may be general-purpose processors, central processing units, graphics processing units, digital signal processors, programmable logic devices, quantum computing-based data processing logic devices, etc., and are not limited to these.

[0110] The technical features of the above embodiments can be combined in any way. For the sake of brevity, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.

[0111] The embodiments described above are merely illustrative of several implementations of this disclosure, and while the descriptions are specific and detailed, they should not be construed as limiting the scope of this patent disclosure. It should be noted that those skilled in the art can make various modifications and improvements without departing from the concept of this disclosure, and these all fall within the protection scope of this disclosure. Therefore, the protection scope of this disclosure should be determined by the appended claims.

Claims

1. A method for adjusting the light effect of a backlit keyboard, characterized in that, The method includes: Obtain the latest user engagement duration and user interaction frequency for the target device; Based on the user's continuous interaction time and the first preset rule, the number of constantly lit lights and the number of lights that change brightness on the backlit keyboard are set; the first preset rule includes: the number of constantly lit lights changes linearly with the user's continuous interaction time, b=sa, where a is the number of constantly lit lights, b is the number of lights that change brightness, and s is the total number of backlit keyboard lights. The number of lights to be lit is set according to the user interaction frequency and the second preset rule; the second preset rule includes: the number of lights changes linearly with the user interaction frequency; The method further includes: Acquire pixel data and backlight keyboard light distribution data of the target display screen; The planar region corresponding to the pixel data space is divided into sub-regions arranged in M ​​rows and N columns, where M is not less than the maximum number of lights in a single row of the backlight keyboard and N is not less than the maximum number of lights in a single column of the backlight keyboard. Calculate the average color value of all pixels corresponding to each sub-region to obtain the sub-region color distribution data; The color distribution data of the sub-region and the distribution data of the backlight keyboard light are superimposed according to the spatial distribution, and the correspondence between the backlight keyboard light and the sub-region is established according to the superposition relationship; Based on the aforementioned correspondence, the display color of the backlit keyboard light is adjusted to be the same as the average color value of the corresponding sub-region.

2. The method according to claim 1, characterized in that, The method further includes: Based on the duration of continuous user interaction and a third preset rule, the first display brightness value of the always-on light is adjusted; the third preset rule includes: the first display brightness value decreases as the duration of continuous user interaction increases.

3. The method according to claim 2, characterized in that, The method further includes: Obtain real-time loudness data of the target audio; Based on the real-time loudness data and the fourth preset rule, the first display brightness value is adjusted to the second display brightness value in real time; the fourth preset rule includes: the increase in the first display brightness value is positively correlated with the loudness.

4. The method according to claim 1, characterized in that, The first preset rule also includes: when t1≤t0, a / s=d0+d1×t1 / t0, where d0 is the preset initial quantity percentage, d1 is the preset quantity control percentage, t1 is the user's continuous interaction duration, and t0 is the preset duration threshold; when t1>t0, a / s=d0+d1. The second preset rule also includes: when h1≤h0, b1=b×h1 / h0, where b1 is the number of lights that can be turned on, h1 is the user interaction frequency, and h0 is the preset frequency threshold; when h1>h0, b1=b.

5. The method according to claim 2, characterized in that, The third preset rule also includes: when t1≤t0, (m1-n) / m0=1-t1 / t0, where m1 is the first display brightness value, n is the preset minimum brightness value of the always-on light, m0 is the first preset brightness value, t1 is the duration of continuous user interaction, and t0 is the preset duration threshold; when t1>t0, m1=n.

6. The method according to claim 3, characterized in that, The fourth preset rule also includes: The fourth preset rule also includes: m2=m1+p×q, where m1 is the first display brightness value, m2 is the second display brightness value, q is the second preset brightness value, and p is the normalized loudness.

7. The method according to claim 4, characterized in that, 0.5 hours ≤ t0 ≤ 1 hour, 60 times / minute ≤ h0 ≤ 300 times / minute, 10% ≤ d0 ≤ 90%, 0 ≤ d0 + d1 ≤ 1.

8. The method according to claim 1, characterized in that, The method further includes: Set the backlight keys that are closest to the main backlight keys to always-on lights; The target device includes a backlit keyboard and / or mouse.

9. A computer program product, comprising a computer program, characterized in that, When the computer program is executed by a processor, it implements the steps of the method according to any one of claims 1 to 8.