A method, system, terminal and storage medium for controlling an HPD signal

CN117667772BActive Publication Date: 2026-08-11JWIPC TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-10-23
Publication Date
2026-08-11

AI Technical Summary

Technical Problem

[0002]当HDMI显示器(High Definition MultimediaInterface Dispaly,HDMIDispaly)需要与计算机主机建立连接时,HDMI显示器会有一个HPD信号(Hot Plug Detection,HPD)输入到主机的CPU(Central Processing Unit,CPU),CPU会通过HPD信号的输入状态判断是否有显示器接入;正常状态下,计算机处于POST阶段时,如果检测到HPD信号拉高,BIOS(Basic Input Output System,BIOS)会读取HDMI显示器的EDID(Extended DisplayIdentification Data,EDID),然后安装GOP Protocol,在POST阶段后期,调用操作系统前,显示程序会启动从而点亮显示器;然而当HDMI显示器在HDMI显示接口检测不到稳定的视频信号输入时,会切换到其他显示接口进行扫描,如果其他显示接口有稳定的视频信号输入,HDMI显示器将使用其他显示接口来显示,但如果其他显示接口也没有稳定的视频信号输入,将轮询重新切换回HDMI显示接口;切换到其他显示接口进行扫描时,HPD信号会被拉低,而当轮询切换回HDMI显示接口时,HPD信号又会被拉高;HPD信号拉低会导致之前已安装的GOP Protocol被卸载,而GOP Protocol一旦被卸载,即使HPD信号再次拉高,GOP Protocol重新安装也无济于事;在Gop Protocol卸载后,或者Gop Protocol卸载再重新安装后,BIOS中的GOP Protocol全局指针都将成为失效指针,BIOS代码中继续使用这种失效指针会导致宕机,虽然不同型号的HDMI显示器遇到这种情况发生宕机的概率不同,但是一旦宕机,无疑会导致设备寿命受损,还会严重影响用户体验

Benefits of technology

[0020]本发明的有益效果在于:在进入计算机系统前,如果检测到GOP Protocol全局指针为空或者已更新,反复确认无误后,将直接跳过显示程序,直接进入系统,不会出现宕机问题,提高了用户体验,也有效避免了设备受损。

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117667772B_ABST
    Figure CN117667772B_ABST
Patent Text Reader

Abstract

This invention relates to the field of computer technology and provides an HPD signal control method, system, terminal, and storage medium. The method includes: before entering the computer system, checking if the GOP Protocol global pointer is null; if the GOP Protocol global pointer is null, the BIOS will not call the GOP Protocol global pointer and will skip the display program to directly enter the computer system; if the GOP Protocol global pointer is not null, checking if the GOP Protocol global pointer has been updated; if the GOP Protocol global pointer has been updated, the BIOS will not call the GOP Protocol global pointer and will skip the display program to directly enter the computer system; if the GOP Protocol global pointer has not been updated, the BIOS calls the GOP Protocol global pointer, the display program starts, and then the computer system is entered. This invention, by detecting that the GOP Protocol global pointer is null or has been updated before entering the computer system, will directly skip the display program and enter the system, preventing system crashes, improving user experience, and effectively avoiding device damage.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention belongs to the field of computer technology, and in particular relates to an HPD signal control method, system, terminal and storage medium. Background Technology

[0002] When an HDMI (High Definition Multimedia Interface Display) needs to establish a connection with a computer, the HDMI display sends a Hot Plug Detection (HPD) signal to the CPU (Central Processing Unit). The CPU uses the HPD signal's input status to determine if a display is connected. Under normal conditions, when the computer is in the POST (Post-Processing) phase, if the HPD signal is detected as high, the BIOS (Basic Input Output System) reads the HDMI display's Extended Display Identification Data (EDID) and then installs the Group of Points (GOP). During the later stages of the POST phase, before calling the operating system, the display program starts and powers on the monitor. However, when the HDMI monitor cannot detect a stable video signal input at the HDMI display interface, it switches to other display interfaces for scanning. If a stable video signal input is found at another display interface, the HDMI monitor will use that interface to display the signal. But if no stable video signal input is found at another display interface, it will poll and switch back to the HDMI display interface. When switching to another display interface for scanning, the HPD signal is pulled low, and when polling switches back to the HDMI display interface, the HPD signal is pulled high again. The low HPD signal causes the previously installed GOP Protocol to be uninstalled. Once the GOP Protocol is uninstalled, even if the HPD signal goes high again, reinstalling the GOP Protocol will not help. After the GOP Protocol is uninstalled, or after uninstalling and reinstalling the GOP Protocol, the global pointer of the GOP Protocol in the BIOS will become invalid. Continuing to use this invalid pointer in the BIOS code will cause a system crash. Although the probability of a crash varies among different HDMI monitor models, a crash will undoubtedly damage the device's lifespan and severely impact the user experience. Summary of the Invention

[0003] The purpose of this invention is to provide an HPD signal control method, system, terminal, and storage medium that can effectively solve the above-mentioned problems.

[0004] On one hand, the present invention provides an HPD signal control method, the method comprising the following steps:

[0005] Before entering the computer system, check if the GOP Protocol global pointer is null;

[0006] If the GOP Protocol global pointer is null, the BIOS will not call the GOP Protocol global pointer and will skip the display program and directly enter the computer system;

[0007] If the GOP Protocol global pointer is not null, check whether the GOP Protocol global pointer has been updated;

[0008] If the GOP Protocol global pointer has been updated, the BIOS will not call the GOP Protocol global pointer and will skip the display program and directly enter the computer system;

[0009] If the GOP Protocol global pointer is not updated, the BIOS calls the GOP Protocol global pointer, and the display program starts and then enters the computer system.

[0010] The HPD signal control method of the present invention further includes:

[0011] After checking whether the GOP Protocol global pointer is null or updated, regardless of the result, the system will repeatedly query for two seconds to ensure the accuracy of the check result.

[0012] On the other hand, the present invention provides an HPD signal control system, the system comprising:

[0013] The detection unit is used to check whether the GOP Protocol global pointer is null and whether it has been updated before the execution unit enters the computer system. The detection unit first checks whether the GOP Protocol global pointer is null. If it is null, it instructs the execution unit to execute step A. If it is not null, it checks whether the GOP Protocol global pointer has been updated. If it has been updated, it instructs the execution unit to execute step A. If it has not been updated, it instructs the execution unit to execute step B.

[0014] The execution unit includes a BIOS and the GOP Protocol global pointer processing function. The execution unit is used to start a program that enters the computer system and to determine, according to the instructions of the detection unit, whether to call the GOP Protocol global pointer and whether to start a display program before entering the computer system.

[0015] Step A is that the execution unit does not call the GOP Protocol global pointer, skips the display program, and directly starts the program that enters the computer system;

[0016] Step B involves the execution unit calling the GOP Protocol global pointer to start the display program and then starting the program that enters the computer system.

[0017] In the HPD signal control system of the present invention, the detection unit repeatedly queries for two seconds after each check of whether the GOP Protocol global pointer is empty or updated, regardless of the check result, to ensure the accuracy of the check result.

[0018] The present invention also provides an HPD signal control terminal, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the computer program to implement the steps of the HPD signal control method.

[0019] The present invention also provides a computer-readable storage medium storing a computer program that, when executed by a processor, implements the steps of the HPD signal control method.

[0020] The beneficial effects of this invention are as follows: before entering the computer system, if the global pointer of the GOP Protocol is detected to be empty or has been updated, after repeated confirmation, the display program will be skipped and the system will be entered directly without any crashes, thus improving the user experience and effectively preventing device damage. Attached Figure Description

[0021] Figure 1 This is a flowchart illustrating the implementation of the HPD signal control method provided in Embodiment 1 of the present invention.

[0022] Figure 2 This is a schematic diagram of the HPD signal control system provided in Embodiment 2 of the present invention;

[0023] Figure 3 This is a schematic diagram of the HPD signal control terminal provided in Embodiment 3 of the present invention. Detailed Implementation

[0024] To make the objectives, technical solutions, and advantages of this invention clearer, the invention will be further described in detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative and not intended to limit the invention.

[0025] The specific implementation of the present invention will be described in detail below with reference to specific embodiments:

[0026] Example 1:

[0027] Figure 1 The implementation flow of the HPD signal control method provided in Embodiment 1 of the present invention is shown. For ease of explanation, only the parts related to the embodiments of the present invention are shown, and are described in detail below:

[0028] The HPD signal control method provided in Embodiment 1 of the present invention specifically includes the following steps:

[0029] Before entering the computer system, check if the GOP Protocol global pointer is null;

[0030] If the GOP Protocol global pointer is null, it means that the HPD signal has been pulled low, causing the GOP Protocol to be unloaded. At this time, the GOP Protocol global pointer is an invalid pointer, so the BIOS will not call the GOP Protocol global pointer and will skip the display program and directly enter the computer system.

[0031] If the GOP Protocol global pointer is not null, check if the GOP Protocol global pointer has been updated;

[0032] If the GOP Protocol global pointer has been updated, it means that the HPD signal went low and then rose again, causing GOP Protocol to be uninstalled and then reinstalled. At this time, the GOP Protocol global pointer is also an invalid pointer. Therefore, the BIOS will not call the GOP Protocol global pointer and will skip the display program and directly enter the computer system.

[0033] If the GOP Protocol global pointer is not updated and is not empty, it means that the HPD signal has not caused the GOP Protocol to change. At this time, the GOP Protocol global pointer is a valid pointer. Then the BIOS calls the GOP Protocol global pointer, displays the program, and then enters the computer system.

[0034] Preferably, after checking whether the GOP Protocol global pointer is null or updated, regardless of the result, the system will repeatedly query for two seconds to ensure the accuracy of the result. This can prevent changes in the HPD signal in a short period of time from causing the GOP Protocol global pointer to become invalid, thereby affecting the detection result.

[0035] The HPD signal control method provided by this invention, before entering the computer system, if it detects that the global pointer of the GOP Protocol is empty or has been updated, after repeated confirmation, will directly skip the display program and directly enter the system, without causing a crash, thus improving the user experience and effectively avoiding device damage.

[0036] Example 2:

[0037] Figure 2 The structure of the HPD signal control system provided in Embodiment 2 of the present invention is shown. For ease of explanation, only the parts related to the embodiments of the present invention are shown, including:

[0038] The detection unit is used to check whether the GOP Protocol global pointer is null and whether it has been updated before the execution unit enters the computer system. The detection unit first checks whether the GOP Protocol global pointer is null. If it is null, it instructs the execution unit to execute step A. If it is not null, it checks whether the GOP Protocol global pointer has been updated. If it has been updated, it instructs the execution unit to execute step A. If it has not been updated, it instructs the execution unit to execute step B.

[0039] The execution unit, including BIOS and GOP Protocol global pointer processing functions, is used to start the program that enters the computer system and, according to the instructions of the detection unit, decides whether to call the GOP Protocol global pointer and whether to start the display program before entering the computer system.

[0040] Step A: The execution unit does not call the GOP Protocol global pointer, skips the display program, and directly starts the program that enters the computer system;

[0041] Step B: The execution unit calls the GOP Protocol global pointer to start the display program and then starts the program that enters the computer system.

[0042] Preferably, after each check of whether the GOP Protocol global pointer is empty or updated, the detection unit will repeatedly query for two seconds regardless of the check result to ensure the accuracy of the check result. This can prevent changes in the HPD signal in a short period of time from causing the GOP Protocol global pointer to become invalid, thereby affecting the detection result.

[0043] In this embodiment of the invention, each unit of the HPD signal control system can be implemented by a corresponding hardware or software unit. Each unit can be an independent hardware or software unit, or it can be integrated into a hardware or software unit. This is not intended to limit the invention.

[0044] Example 3:

[0045] Figure 3 The structure of the HPD signal control terminal provided in Embodiment 3 of the present invention is shown. For ease of explanation, only the parts related to the embodiments of the present invention are shown.

[0046] The HPD signal control terminal 4 of this embodiment includes a processor 40, a memory 41, and a computer program 42 stored in the memory 41 and executable on the processor 40. When the processor 40 executes the computer program 42, it implements the steps described in the HPD signal control method embodiment above, for example... Figure 1 The flowchart of the HPD signal control method is shown; or, when the processor 40 executes the computer program 42, it implements the functions of each unit in the above-described HPD signal control system embodiment.

[0047] When the processor 40 in the HPD signal control terminal 4 of this embodiment executes the computer program 42 to implement the HPD signal control method, the steps implemented can be referred to the description of the aforementioned HPD signal control method embodiment, and will not be repeated here.

[0048] Example 4:

[0049] In Embodiment 4 of the present invention, a computer-readable storage medium is provided, which stores a computer program. When executed by a processor, the computer program implements the steps in the above-described HPD signal control method embodiments. For example... Figure 1 The implementation steps of the HPD signal control method shown, or the functions of each unit in the HPD signal control system described above, when the computer program is executed by the processor.

[0050] The computer-readable storage medium in embodiments of the present invention may include any entity or device capable of carrying computer program code, a recording medium, such as ROM / RAM, disk, optical disk, flash memory, etc.

[0051] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. Any modifications, equivalent substitutions, and improvements made within the spirit and principles of the present invention should be included within the protection scope of the present invention.

Claims

1. An HPD signal control method, characterized in that, The method includes the following steps: Before entering the computer system, check if the GOP Protocol global pointer is null; If the GOP Protocol global pointer is null, the BIOS will not call the GOP Protocol global pointer and will skip the display program and directly enter the computer system; If the GOP Protocol global pointer is not null, check whether the GOP Protocol global pointer has been updated; If the GOP Protocol global pointer has been updated, the BIOS will not call the GOP Protocol global pointer and will skip the display program and directly enter the computer system; If the GOP Protocol global pointer is not updated, the BIOS calls the GOP Protocol global pointer, and the display program starts and then enters the computer system.

2. The method as described in claim 1, characterized in that, The method further includes: After checking whether the GOP Protocol global pointer is null or updated, regardless of the result, the system will repeatedly query for two seconds to ensure the accuracy of the check result.

3. An HPD signal control system, characterized in that, The system includes: The detection unit is used to check whether the GOP Protocol global pointer is null and whether it has been updated before the execution unit enters the computer system. The detection unit first checks whether the GOP Protocol global pointer is null. If it is null, it instructs the execution unit to execute step A. If it is not null, it checks whether the GOP Protocol global pointer has been updated. If it has been updated, it instructs the execution unit to execute step A. If it has not been updated, it instructs the execution unit to execute step B. The execution unit includes a BIOS and the GOP Protocol global pointer processing function. The execution unit is used to start a program that enters the computer system and to determine, according to the instructions of the detection unit, whether to call the GOP Protocol global pointer and whether to start a display program before entering the computer system. Step A is that the execution unit does not call the GOP Protocol global pointer, skips the display program, and directly starts the program that enters the computer system; Step B involves the execution unit calling the GOP Protocol global pointer to start the display program and then starting the program that enters the computer system.

4. The system as described in claim 3, characterized in that, Each time the detection unit checks whether the GOP Protocol global pointer is null or updated, it will repeatedly query for two seconds regardless of the result to ensure the accuracy of the check result.

5. An HPD signal control terminal, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that, When the processor executes the computer program, it implements the steps of the method as described in any one of claims 1 to 2.

6. A computer-readable storage medium storing a computer program, characterized in that, When the computer program is executed by a processor, it implements the steps of the method as described in any one of claims 1 to 2.

Citation Information

Patent Citations

  • Power-on self-detection method

    CN101192181A

  • Method for loading display card BIOS

    CN101907994A