Display screen brightness adjustment method and device, equipment and storage medium

By simulating keyboard hotkeys with an embedded controller and generating HID keyboard event data using the double-edge triggered interrupt mode of GPIO pins, the problem of display conversion chips not supporting PWM dimming is solved. This enables physical buttons to quickly adjust the brightness of the display screen, reducing hardware costs and improving the user experience.

CN122157615APending Publication Date: 2026-06-05SHENZHEN WEIBU INFORMATION

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
SHENZHEN WEIBU INFORMATION
Filing Date
2026-02-03
Publication Date
2026-06-05

AI Technical Summary

Technical Problem

In all-in-one devices using the MIPI to LVDS display solution, the display conversion chip does not support PWM dimming, resulting in high costs, long development cycles, and significant compatibility risks associated with physical button brightness adjustment. Traditional solutions increase hardware costs and complexity.

Method used

By simulating keyboard hotkeys with an embedded controller, physical key signals are captured using the double-edge triggered interrupt mode of GPIO pins, generating HID keyboard event data, and then converting it into brightness adjustment instructions through a hotkey mapping table, thus bypassing the hardware limitations of the display conversion chip.

Benefits of technology

It enables quick and convenient adjustment of the display brightness via physical buttons, reducing hardware costs, shortening the development cycle, and improving the user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN122157615A_ABST
    Figure CN122157615A_ABST
Patent Text Reader

Abstract

The application provides a display screen brightness adjusting method, device, equipment and storage medium, a physical button is connected to a GPIO pin of an embedded controller and is configured as a double-edge triggered external interrupt mode, a level change signal is generated when the button is pressed or released to trigger an interrupt response, and valid button state data is generated after a debounce process. Keyboard event data conforming to the HID protocol specification is generated according to the button state data, a Make code is generated when the button is pressed, and a Break code is generated when the button is released, to simulate complete keyboard button operation. An operating system converts received HID key values into brightness adjusting instructions through a preconfigured hotkey mapping table and executes the instructions, thereby bypassing hardware limitations of a display conversion chip and realizing control of the display screen brightness by the physical button.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of power electronics, and in particular to a method, apparatus, device, and storage medium for adjusting the brightness of a display screen. Background Technology

[0002] With the widespread application of all-in-one devices in commercial displays, conference rooms, and educational settings, users are increasingly demanding greater ease of operation. Screen brightness adjustment, as a fundamental and frequently used function, directly impacts the user experience.

[0003] Currently, screen brightness adjustment in all-in-one PCs mainly relies on the following methods: First, adjustment is made through the software interface provided by the operating system. Users need to enter the system settings or use the mouse to click the taskbar icon to complete the operation, which is cumbersome and not intuitive. Second, adjustment is made through the OSD (On-Screen Display) menu built into the display panel. However, this method usually requires an additional control board and multiple buttons, increasing hardware costs and design complexity. Third, some high-end devices use display conversion chips that support PWM dimming, adjusting the backlight brightness by directly controlling the PWM output of the chip. However, these chips are expensive, and changing the chip solution will bring a long adaptation period and compatibility risks.

[0004] In all-in-one devices employing MIPI (Mobile Industry Processor Interface) to LVDS (Low-Voltage Differential Signaling) display solutions, commonly used display conversion chips such as the LT9211 primarily handle signal format conversion and do not possess backlight PWM control functionality. When customers require physical buttons for quick brightness adjustment, the traditional approach is to replace the conversion chip with one equipped with PWM control or add a dedicated backlight control circuit. This not only increases hardware costs but also extends product development cycles and introduces uncertainty into project delivery.

[0005] In view of the above, this application is hereby submitted. Summary of the Invention

[0006] This invention discloses a method, apparatus, device, and storage medium for adjusting the brightness of a display screen, aiming to solve the technical problem of how to achieve physical button control of display screen brightness by simulating keyboard hotkeys through an embedded controller when the display conversion chip does not support PWM dimming function.

[0007] The first embodiment of the present invention provides a method for adjusting the brightness of a display screen, comprising: The system acquires the level change signal generated by the physical button, performs interrupt response processing on the level change signal, and generates an original interrupt event. The level change signal is generated by the physical button connected to the GPIO pin of the embedded controller when it is pressed or released. The interrupt response processing is implemented by configuring the GPIO pin to a double-edge triggered external interrupt mode. The original interrupt event is debouncing to generate valid key status data; HID keyboard event data is generated based on the valid key state data. When the valid key state data is in the pressed state, HID keyboard event data containing the Make code is generated. When the valid key state data is in the released state, HID keyboard event data containing the Break code is generated. The key values ​​in the HID keyboard event data are converted into brightness adjustment commands according to the pre-configured hotkey mapping table, and the brightness adjustment commands are executed to complete the brightness adjustment of the display screen.

[0008] Preferably, the level change signal includes a falling edge signal and a rising edge signal, wherein the falling edge signal is generated when the physical button is pressed, the rising edge signal is generated when the physical button is released, and the pin of the physical button is pulled up to a high level through an external pull-up resistor.

[0009] Preferably, the debouncing process includes delaying for a preset time after detecting the original interrupt event, then reading the current level value of the GPIO pin, and determining whether the valid key state data is a pressed state or a released state based on the current level value. Specifically, when the current level value is high, the valid key state data is determined to be a released state; when the current level value is low, the valid key state data is determined to be a pressed state.

[0010] Preferably, the HID keyboard event data further includes a report identifier, and after generating the HID keyboard event data, the method further includes: setting the HID report buffer according to the report identifier, filling the HID keyboard event data into the HID report buffer, and clearing the keyboard recording register to prepare for the next event processing.

[0011] Preferably, before converting the key values ​​in the HID keyboard event data into brightness adjustment commands according to a pre-configured hotkey mapping table, the method further includes: The HID keyboard event data is written to the I2C data register to generate HID report data to be read, and the HID report data is read through the I2C-HID driver.

[0012] Preferably, the initialization of the I2C-HID driver includes: configuring an I2C-HID device node in the operating system's device tree, wherein the I2C-HID device node includes a device compatibility identifier, an I2C slave address, an interrupt parent node, an interrupt trigger type, and an HID descriptor address.

[0013] Preferably, the configuration of the hotkey mapping table includes: setting a keyboard manufacturer identifier, a keyboard product identifier, a number of hotkeys, and a hotkey mapping array in the device tree of the operating system. The hotkey mapping array contains multiple sets of key-value pairs, and each set of key-value pairs defines the correspondence between HID key values ​​and system function key values.

[0014] A second embodiment of the present invention provides a display screen brightness adjustment device, comprising: An interrupt handling module is used to acquire the level change signal generated by the physical button, perform interrupt response processing on the level change signal, and generate an original interrupt event. The level change signal is generated by the physical button connected to the GPIO pin of the embedded controller when it is pressed or released. The interrupt response processing is implemented by configuring the GPIO pin to a double-edge triggered external interrupt mode. The debouncing module is used to debouncing the original interrupt event and generate valid key status data; The HID keyboard event data generation module is used to generate HID keyboard event data based on the valid key state data. When the valid key state data is in the pressed state, HID keyboard event data containing the Make code is generated. When the valid key state data is in the released state, HID keyboard event data containing the Break code is generated. The brightness adjustment execution module is used to convert the key values ​​in the HID keyboard event data into brightness adjustment commands according to the pre-configured hotkey mapping table, and execute the brightness adjustment commands to complete the brightness adjustment of the display screen.

[0015] The third embodiment of the present invention provides a display screen brightness adjustment device, including a memory and a processor. The memory stores a computer program, which can be executed by the processor to implement a display screen brightness adjustment method as described in any of the above embodiments.

[0016] The fourth embodiment of the present invention provides a computer-readable storage medium storing a computer program, which can be executed by a processor of the device in which the computer-readable storage medium is located, to implement a display screen brightness adjustment method as described in any of the above embodiments.

[0017] Based on the display brightness adjustment method, apparatus, device, and storage medium provided by this invention, physical buttons are connected to the GPIO pins of an embedded controller and configured in a dual-edge triggered external interrupt mode. When a button is pressed or released, a level change signal is generated to trigger an interrupt response. After debouncing, valid button state data is generated. Keyboard event data conforming to the HID protocol specification is generated based on the button state data; a Make code is generated when a button is pressed, and a Break code is generated when a button is released, simulating a complete keyboard key operation. The operating system converts the received HID key values ​​into brightness adjustment instructions through a pre-configured hotkey mapping table and executes them, thereby bypassing the hardware limitations of the display conversion chip and realizing the control of display brightness by physical buttons. Attached Figure Description

[0018] Figure 1 This is a flowchart illustrating a display screen brightness adjustment method provided in the first embodiment of the present invention; Figure 2 This is a circuit diagram of the peripheral button provided in the first embodiment of the present invention; Figure 3 This is a schematic diagram of a display screen brightness adjustment device provided in the second embodiment of the present invention. Detailed Implementation

[0019] The technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.

[0020] To better understand the technical solution of the present invention, the embodiments of the present invention will be described in detail below with reference to the accompanying drawings.

[0021] This invention discloses a method, apparatus, device, and storage medium for adjusting the brightness of a display screen, aiming to solve the technical problem of how to achieve physical button control of display screen brightness by simulating keyboard hotkeys through an embedded controller when the display conversion chip does not support PWM dimming function.

[0022] Please see Figure 1 The first embodiment of the present invention provides a display screen brightness adjustment method, which can be executed by a display screen brightness adjustment device (hereinafter referred to as the adjustment device or system), and in particular, by one or more processors within the adjustment device, to at least implement the following steps: S101, acquire the level change signal generated by the physical button, perform interrupt response processing on the level change signal, and generate an original interrupt event. The level change signal is generated by the physical button connected to the GPIO pin of the embedded controller when it is pressed or released. The interrupt response processing is implemented by configuring the GPIO pin to a double-edge triggered external interrupt mode. The level change signal includes a falling edge signal and a rising edge signal. The falling edge signal is generated when the physical button is pressed, and the rising edge signal is generated when the physical button is released. The pin of the physical button is pulled up to a high level through an external pull-up resistor.

[0023] In this embodiment, please refer to Figure 2 The physical button pins are connected to the GPIO pins of the embedded controller EC. Specifically, the brightness decrease button and the brightness increase button are connected to the PE pins of the EC (e.g., PE12 or PE13, not specifically limited here, but all these schemes are within the protection scope of this invention). The physical button pins are pulled up to a high level through external pull-up resistors, so that the GPIO pins remain at a high level when the button is not triggered. When the user presses the physical button, the button is internally grounded, and the level of the GPIO pin jumps from high to low, generating a falling edge signal; when the user releases the physical button, due to the effect of the external pull-up resistor, the level of the GPIO pin returns from low to high, generating a rising edge signal. In order to capture both button press and release operations, the embedded controller configures the GPIO pins in a dual-edge triggered external interrupt mode, i.e., GPIO_IRQ_BOTH mode. In this mode, both falling edge and rising edge signals will trigger an interrupt response. The embedded controller completes interrupt registration by calling the hal_gpio_register_irq function, registering the corresponding interrupt service functions app_event_irq_lvdsdown and app_event_irq_lvdsup for GPIO_LVDSDOWN and GPIO_LVDSUP respectively. When the level change signal triggers an interrupt, the embedded controller immediately enters the corresponding interrupt service function to perform subsequent processing and generate the original interrupt event.

[0024] S102, Debouncing the original interrupt event is performed to generate valid key status data; In this embodiment, after the embedded controller detects a raw interrupt event, it needs to perform debouncing to prevent multiple false triggers caused by level jitter due to contact bounce when the mechanical button is pressed or released. Specifically, after the interrupt service function is triggered, the embedded controller first calls the `hal_delay_ms` function to delay for 10 milliseconds, waiting for the level signal to stabilize. After the delay, the embedded controller calls the `hal_gpio_check_status` function to read the actual level value of the current GPIO pin and determines the valid state of the button based on the read level value. When the read current level value is high (GPIO_HIGH), it indicates that the button has been released, and the external pull-up resistor pulls the pin level back to high, thus determining the valid button state data as released. When the read current level value is low, it indicates that the button is still pressed, and the button is internally grounded, thus determining the valid button state data as pressed. This debouncing method, which delays the reading of the key level before reading it, effectively filters out unstable signals generated during the key contact bounce process, ensuring that the generated valid key state data accurately reflects the user's true operation intention, and providing a reliable basis for the subsequent generation of correct HID (Human Interface Device) keyboard event data.

[0025] S103, generate HID keyboard event data based on the valid key state data, wherein when the valid key state data is in the pressed state, generate HID keyboard event data containing Make code, and when the valid key state data is in the released state, generate HID keyboard event data containing Break code. In this embodiment, the embedded controller generates keyboard event data conforming to the HID protocol specification based on the valid key state data obtained after debouncing. When the valid key state data is pressed, the embedded controller calls the `modules_hid_keyboard_event` function and passes in parameter 0 and the corresponding key value, such as 0xA5 or 0xA6, to generate HID keyboard event data containing a Make code, indicating that the key is pressed. When the valid key state data is released, the embedded controller calls the `modules_hid_keyboard_event` function and passes in parameter 2 and the corresponding key value, to generate HID keyboard event data containing a Break code, indicating that the key is released. After generating the HID keyboard event data, the embedded controller calls the `modules_hid_setup_reprot_buffer` function to set the HID report buffer according to the report identifier `REPORT_ID_KEYBOARD`, fills the generated HID keyboard event data into the report buffer according to the HID protocol format, and then calls the `modules_hid_clear_keyboard_reprod` function to clear the keyboard recording register, preparing for the processing of the next key event. The embedded controller writes data byte by byte from the HID report buffer to the I2C data register by repeatedly calling the I2C_WriteData function, generating the HID report data to be read. The operating system reads this HID report data through the I2C-HID driver. The initialization of the I2C-HID driver is completed in the operating system's device tree. The I2C-HID device node configured in the device tree includes parameters such as the device compatibility identifier hid-over-i2c, the I2C slave address 0x3A, the interrupt parent node gpio12, the interrupt trigger type IRQ_TYPE_LEVEL_LOW, and the HID descriptor address 0x1, enabling the operating system to correctly identify the embedded controller as a standard HID input device and establish a communication connection.

[0026] S104, convert the key values ​​in the HID keyboard event data into brightness adjustment instructions according to the pre-configured hotkey mapping table, and execute the brightness adjustment instructions to complete the brightness adjustment of the display screen.

[0027] In this embodiment, after the operating system reads the HID report data through the I2C-HID driver, it converts the key values ​​in the data into corresponding brightness adjustment commands according to the pre-configured hotkey mapping table. The configuration of the hotkey mapping table is completed in the operating system's device tree through the echab_hotkey node. This node sets the keyboard manufacturer identifier echab_hotkey_kbd_vendor to 0x14f3, the keyboard product identifier echab_hotkey_kbd_product to 0x1400, and the number of hotkeys echab_hotkey_nums to 0xA. The hotkey mapping array echab_hotkey_map contains multiple sets of key-value pairs. Each set of key-value pairs consists of an HID key value and a system function key value, defining the correspondence between the two. For example, 0xa5 corresponds to 0xe0, 0xa6 corresponds to 0xe1, etc., where 0xa5 and 0xa6 are the HID key values ​​reported by the brightness decrease button and the brightness increase button, respectively, and 0xe0 and 0xe1 are the screen brightness decrease and brightness increase function key values ​​defined in the operating system. When the operating system receives HID keyboard event data reported by the embedded controller, it looks up the corresponding system function key value according to the hotkey mapping table, converts it into the corresponding brightness adjustment command, and the operating system executes the brightness adjustment command to adjust the backlight brightness of the display screen through the system's built-in backlight control mechanism, thereby completing the display screen brightness adjustment operation triggered by the user through physical buttons.

[0028] In implementing this invention, the inventors discovered that all-in-one devices have multiple display modes in actual use scenarios, such as normal office mode, audio-visual entertainment mode, and eye-protection reading mode. Users' needs for brightness adjustment differ significantly between these modes. In normal office mode, users typically prefer smaller brightness adjustment steps for fine-tuning; while in audio-visual entertainment mode, users often want to quickly switch to higher or lower brightness, requiring larger adjustment steps. In traditional solutions, the brightness adjustment step value triggered by physical buttons is fixed and cannot adaptively adjust according to the current display mode, resulting in a poor user experience.

[0029] To address the aforementioned technical issues, this embodiment further proposes an adaptive brightness adjustment method based on key behavior characteristics. When generating HID keyboard event data, the embedded controller not only records key press and release events but also records the duration of key presses using a timer. When a key release event is detected, the embedded controller calculates the duration of the press and encodes this duration information into an extended field of the HID report data, reporting it accordingly. Upon receiving the HID report data, the brightness adjustment service on the operating system side parses the press duration information and, in conjunction with preset duration thresholds, determines the user's intent: when the press duration is less than the first threshold, it is determined to be a short press operation, and fine-grained brightness adjustment in small steps is performed; when the press duration is between the first and second thresholds, it is determined to be a medium press operation, and regular brightness adjustment in medium steps is performed; when the press duration is greater than the second threshold, it is determined to be a long press operation, triggering a continuous rapid adjustment mode, where the brightness value continuously increases or decreases at a preset rate until the user releases the key or reaches a brightness boundary value.

[0030] In addition, the embedded controller also records the time interval between two adjacent button events. When it detects that the user presses the same button multiple times in a short period of time, it automatically increases the adjustment step value of subsequent buttons to achieve an accelerated adjustment effect, allowing the user to quickly reach the target brightness by pressing continuously without having to press for a long time.

[0031] Please see Figure 2 The second embodiment of the present invention provides a display screen brightness adjustment device, comprising: Interrupt handling module 201 is used to acquire the level change signal generated by the physical button, perform interrupt response processing on the level change signal, and generate an original interrupt event. The level change signal is generated by the physical button connected to the GPIO pin of the embedded controller when it is pressed or released. The interrupt response processing is implemented by configuring the GPIO pin to a double-edge triggered external interrupt mode. Debouncing module 202 is used to debouncing the original interrupt event and generate valid key status data; HID keyboard event data generation module 203 is used to generate HID keyboard event data based on the valid key state data, wherein when the valid key state data is in the pressed state, HID keyboard event data containing Make code is generated, and when the valid key state data is in the released state, HID keyboard event data containing Break code is generated. The brightness adjustment execution module 204 is used to convert the key values ​​in the HID keyboard event data into brightness adjustment instructions according to the pre-configured hotkey mapping table, and execute the brightness adjustment instructions to complete the brightness adjustment of the display screen.

[0032] The third embodiment of the present invention provides a display screen brightness adjustment device, including a memory and a processor. The memory stores a computer program, which can be executed by the processor to implement a display screen brightness adjustment method as described in any of the above embodiments.

[0033] The fourth embodiment of the present invention provides a computer-readable storage medium storing a computer program, which can be executed by a processor of the device in which the computer-readable storage medium is located, to implement a display screen brightness adjustment method as described in any of the above embodiments.

[0034] Based on the display brightness adjustment method, apparatus, device, and storage medium provided by this invention, physical buttons are connected to the GPIO pins of an embedded controller and configured in a dual-edge triggered external interrupt mode. When a button is pressed or released, a level change signal is generated to trigger an interrupt response. After debouncing, valid button state data is generated. Keyboard event data conforming to the HID protocol specification is generated based on the button state data; a Make code is generated when a button is pressed, and a Break code is generated when a button is released, simulating a complete keyboard key operation. The operating system converts the received HID key values ​​into brightness adjustment instructions through a pre-configured hotkey mapping table and executes them, thereby bypassing the hardware limitations of the display conversion chip and realizing the control of display brightness by physical buttons.

[0035] Exemplary examples show that the computer program described in the third and fourth embodiments of the present invention can be divided into one or more modules, which are stored in the memory and executed by the processor to complete the present invention. The one or more modules can be a series of computer program instruction segments capable of performing specific functions, which describe the execution process of the computer program in implementing a display screen brightness adjustment device. For example, the apparatus described in the second embodiment of the present invention.

[0036] The processor referred to can be a Central Processing Unit (CPU), or other general-purpose processors, digital signal processors (DSPs), application-specific integrated circuits (ASICs), field-programmable gate arrays (FPGAs), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. The general-purpose processor can be a microprocessor or any conventional processor. The processor is the control center of the aforementioned display screen brightness adjustment method, connecting various parts of the entire display screen brightness adjustment method via various interfaces and lines.

[0037] The memory can be used to store the computer program and / or modules. The processor implements various functions of a display screen brightness adjustment method by running or executing the computer program and / or modules stored in the memory and calling the data stored in the memory. The memory may mainly include a program storage area and a data storage area. The program storage area may store the operating system, at least one application program required for a function (such as sound playback function, text conversion function, etc.), etc.; the data storage area may store data created according to the use of the mobile phone (such as audio data, text message data, etc.). In addition, the memory may include high-speed random access memory, and may also include non-volatile memory, such as hard disk, memory, plug-in hard disk, smart media card (SMC), secure digital (SD) card, flash card, at least one disk storage device, flash memory device, or other volatile solid-state storage device.

[0038] If the implemented module is implemented as a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, all or part of the processes in the above embodiments of the present invention can also be implemented by a computer program instructing related hardware. The computer program can be stored in a computer-readable storage medium, and when executed by a processor, it can implement the steps of the various method embodiments described above. The computer program includes computer program code, which can be in the form of source code, object code, executable files, or certain intermediate forms. The computer-readable medium can include: any entity or device capable of carrying the computer program code, recording media, USB flash drives, portable hard drives, magnetic disks, optical disks, computer memory, read-only memory (ROM), random access memory (RAM), electrical carrier signals, telecommunication signals, and software distribution media, etc. It should be noted that the content included in the computer-readable medium can be appropriately added or removed according to the requirements of legislation and patent practice in the jurisdiction. For example, in some jurisdictions, according to legislation and patent practice, computer-readable media do not include electrical carrier signals and telecommunication signals.

[0039] It should be noted that the device embodiments described above are merely illustrative. The units described as separate components may or may not be physically separate, and the components shown as units may or may not be physical units; that is, they may be located in one place or distributed across multiple network units. Some or all of the modules can be selected to achieve the purpose of this embodiment according to actual needs. Furthermore, in the accompanying drawings of the device embodiments provided by this invention, the connection relationships between modules indicate that they have communication connections, which can be specifically implemented as one or more communication buses or signal lines. Those skilled in the art can understand and implement this without any creative effort.

[0040] The above description is merely a preferred embodiment of the present invention, but the scope of protection of the present invention is not limited thereto. Any variations or substitutions that can be easily conceived by those skilled in the art within the technical scope disclosed in the present invention should be included within the scope of protection of the present invention. Therefore, the scope of protection of the present invention should be determined by the scope of the claims.

Claims

1. A method for adjusting the brightness of a display screen, characterized in that, include: The system acquires the level change signal generated by the physical button, performs interrupt response processing on the level change signal, and generates an original interrupt event. The level change signal is generated by the physical button connected to the GPIO pin of the embedded controller when it is pressed or released. The interrupt response processing is implemented by configuring the GPIO pin to a double-edge triggered external interrupt mode. The original interrupt event is debouncing to generate valid key status data; HID keyboard event data is generated based on the valid key state data. When the valid key state data is in the pressed state, HID keyboard event data containing the Make code is generated. When the valid key state data is in the released state, HID keyboard event data containing the Break code is generated. The key values ​​in the HID keyboard event data are converted into brightness adjustment commands according to the pre-configured hotkey mapping table, and the brightness adjustment commands are executed to complete the brightness adjustment of the display screen.

2. The display screen brightness adjustment method according to claim 1, characterized in that, The level change signal includes a falling edge signal and a rising edge signal. The falling edge signal is generated when the physical button is pressed, and the rising edge signal is generated when the physical button is released. The pin of the physical button is pulled up to a high level through an external pull-up resistor.

3. The display screen brightness adjustment method according to claim 1, characterized in that, The debouncing process includes delaying for a preset time after detecting the original interrupt event, then reading the current level value of the GPIO pin, and determining whether the valid key state data is a pressed state or a released state based on the current level value. Specifically, when the current level value is high, the valid key state data is determined to be a released state; when the current level value is low, the valid key state data is determined to be a pressed state.

4. The display screen brightness adjustment method according to claim 1, characterized in that, The HID keyboard event data also includes a report identifier. After generating the HID keyboard event data, the process further includes: setting the HID report buffer according to the report identifier, filling the HID keyboard event data into the HID report buffer, and clearing the keyboard recording register to prepare for the next event processing.

5. The display screen brightness adjustment method according to claim 1, characterized in that, Before converting the key values ​​in the HID keyboard event data into brightness adjustment commands according to the pre-configured hotkey mapping table, the method further includes: The HID keyboard event data is written to the I2C data register to generate HID report data to be read, and the HID report data is read through the I2C-HID driver.

6. The display screen brightness adjustment method according to claim 1, characterized in that, The initialization of the I2C-HID driver includes configuring an I2C-HID device node in the operating system's device tree. The I2C-HID device node includes a device compatibility identifier, an I2C slave address, an interrupt parent node, an interrupt trigger type, and an HID descriptor address.

7. The display screen brightness adjustment method according to claim 1, characterized in that, The configuration of the hotkey mapping table includes: setting the keyboard manufacturer identifier, keyboard product identifier, number of hotkeys, and hotkey mapping array in the device tree of the operating system. The hotkey mapping array contains multiple sets of key-value pairs, and each set of key-value pairs defines the correspondence between HID key values ​​and system function key values.

8. A display screen brightness adjustment device, characterized in that, include: An interrupt handling module is used to acquire the level change signal generated by the physical button, perform interrupt response processing on the level change signal, and generate an original interrupt event. The level change signal is generated by the physical button connected to the GPIO pin of the embedded controller when it is pressed or released. The interrupt response processing is implemented by configuring the GPIO pin to a double-edge triggered external interrupt mode. The debouncing module is used to debouncing the original interrupt event and generate valid key status data; The HID keyboard event data generation module is used to generate HID keyboard event data based on the valid key state data. When the valid key state data is in the pressed state, HID keyboard event data containing the Make code is generated. When the valid key state data is in the released state, HID keyboard event data containing the Break code is generated. The brightness adjustment execution module is used to convert the key values ​​in the HID keyboard event data into brightness adjustment commands according to the pre-configured hotkey mapping table, and execute the brightness adjustment commands to complete the brightness adjustment of the display screen.

9. A display screen brightness adjustment device, characterized in that, The device includes a memory and a processor, wherein the memory stores a computer program that can be executed by the processor to implement the display screen brightness adjustment method as described in any one of claims 1 to 7.

10. A computer-readable storage medium, characterized in that, The device contains a computer program that can be executed by a processor of the device on which the computer-readable storage medium is located to implement the display screen brightness adjustment method as described in any one of claims 1 to 7.