A fault detection method, device, apparatus and storage medium

CN115964236BActive Publication Date: 2026-08-28INSPUR (SHANDONG) COMPUTER TECH CO LTD
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202211663292.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-12-23
Publication Date
2026-08-28
Estimated Expiration
2042-12-23

AI Technical Summary

Technical Problem

但是上述方法较为原始,无法及时发现故障,定位发生时间;BMC等方法只能检测显卡在位情况,无法检测错误原因;通过显卡驱动查看原因,需要对驱动日志有了解;且需要先能正常使用OS才可以检查日志,较为繁琐

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115964236B_ABST
    Figure CN115964236B_ABST
Patent Text Reader

Abstract

The application discloses a fault detection method and device, equipment and storage medium, and relates to the technical field of computers, and is used for solving the shortcoming that faults cannot be found in time at present, and comprises the following steps: obtaining target information, and judging whether the target display is normally displayed based on the target information; if the display is not normally displayed, obtaining basic information corresponding to the current fault through a preset information obtaining method; and generating log information corresponding to the current fault based on the basic information and storing the log information. According to the application, whether the target display is normally displayed is judged through target information, fault information is automatically obtained when the target display is not normally displayed, corresponding log information is generated and stored, fault positioning is performed according to the log information, time is saved, resource waste is avoided, the sensitivity of fault detection and the accuracy of fault positioning are improved, and the operation is simplified and the detection efficiency is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of computer technology, and in particular to a fault detection method, apparatus, device, and storage medium. Background Technology

[0002] In recent years, cloud computing, big data, and artificial intelligence have developed rapidly, and human society is accelerating into the intelligent era. As high-performance computers, servers store and process massive amounts of information on the network, earning them the title of the network's soul; therefore, servers occupy a crucial position in today's world. The graphics card is plugged into an expansion slot on the motherboard (usually a PCI-E (Peripheral Component Interconnect Express, a high-speed serial computer expansion bus standard) slot). Its main responsibility is to convert the display signals sent from the host to the monitor into general electrical signals, enabling the monitor to understand what the personal computer is instructing it to do. A graphics card mainly consists of a graphics card motherboard, a display chip, display memory, and a heatsink (heat sink, fan). The main chip of the graphics card is called the "display chip" (also called GPU (Graphics Processing Unit) or VPU (Video Processing Unit)), which is the main processing unit of the graphics card. The graphics card also has memory similar to computer memory, called "display memory," or simply VRAM. The operation of the graphics card determines the normal display of the server. If the graphics card malfunctions, the server will fail to display anything upon startup. When a graphics card malfunctions, quickly identifying the cause is crucial for repair personnel to resolve the issue promptly and ensure the server's normal operation.

[0003] In servers, the operating system (OS) is the most basic and crucial foundational system software. From the user's perspective, it provides various services; from a programmer's perspective, it mainly refers to the user login interface; and from a designer's perspective, it refers to the connections between various modules and units. In fact, the key to designing and improving a new operating system lies in its architecture design. Over the decades, operating systems have evolved from simple control loops to more complex distributed operating systems. Coupled with increasingly diverse user needs, operating systems have become one of the most complex and massive computer software systems.

[0004] Existing methods for detecting graphics card display faults include: visual inspection, such as moving the mouse to check if the monitor is displaying normally; if the monitor is not lit or the screen is unresponsive, methods such as changing the display interface, logging into the BMC (Baseboard Manager Controller) to check if the graphics card is properly installed, or checking information in the display driver can be used for confirmation. However, these methods are relatively primitive and cannot detect faults in a timely manner or pinpoint the time of occurrence; methods like BMC can only detect the presence of the graphics card, not the cause of the error; checking the cause through the graphics card driver requires knowledge of the driver logs; and checking the logs requires a working OS, which is quite cumbersome. Summary of the Invention

[0005] In view of this, the purpose of this invention is to provide a fault detection method, apparatus, device, and storage medium that can save time and avoid waste of resources, improve the sensitivity of fault detection and the accuracy of fault location, simplify operation, and improve detection efficiency. The specific solution is as follows:

[0006] In a first aspect, this application discloses a fault detection method applied to an operating system, comprising:

[0007] Acquire target information and determine whether the target display is normal based on the target information;

[0008] If the display is malfunctioning, the basic information corresponding to the current fault is obtained through a preset information acquisition method.

[0009] Based on the aforementioned basic information, log information corresponding to the current fault is generated and stored.

[0010] Optionally, the step of acquiring target information and determining whether the target display is normal based on the target information includes:

[0011] The target display's graphics card driver information and power management information are acquired in real time.

[0012] Based on the graphics card driver information and the power management information, determine whether the target monitor display is normal.

[0013] Optionally, determining whether the target monitor displays correctly based on the graphics card driver information and the power management information includes:

[0014] The first state information of the target display is determined based on the graphics card driver information;

[0015] The second state information of the target display is determined based on the power management information;

[0016] Based on the first status information and the second status information, it is determined whether the target display is normal.

[0017] Optionally, determining the first state information of the target display based on the graphics card driver information includes:

[0018] The graphics card driver is tested using a preset self-test method to obtain the graphics card driver information;

[0019] Based on the graphics card driver information, it is determined whether the target monitor is in a normal or abnormal graphics card driver state.

[0020] Optionally, determining the second state information of the target display based on the power management information includes:

[0021] Based on the power management information, it is determined whether the target display is in a screen-off state or a screen-on state.

[0022] Optionally, determining whether the target display is functioning correctly based on the first state information and the second state information includes:

[0023] When the conditions are met that the first status information indicates the graphics card driver is in a normal state and the second status information indicates the display screen is on, the target display is determined to be normal.

[0024] If the conditions that the first status information indicates that the graphics card driver is in a normal state and the second status information indicates that the display screen is on are not met, the target display is determined to be abnormal.

[0025] Optionally, if the display malfunctions, basic information corresponding to the current fault is obtained through a preset information acquisition method, including:

[0026] If the display is not working properly, the current display information is obtained from the driver; wherein, the display information includes the current resolution;

[0027] The current time is obtained using a clock tool, so that the basic information can be generated based on the currently displayed information and the current time.

[0028] Secondly, this application discloses a fault detection device applied to an operating system, comprising:

[0029] The display judgment module is used to acquire target information and determine whether the target display is normal based on the target information;

[0030] The basic information acquisition module is used to acquire basic information corresponding to the current fault by means of a preset information acquisition method if the display is not normal.

[0031] The log information generation module is used to generate and store log information corresponding to the current fault based on the basic information.

[0032] Thirdly, this application discloses an electronic device, including:

[0033] Memory is used to store computer programs;

[0034] A processor is used to execute the computer program to implement the steps of the fault detection method disclosed above.

[0035] Fourthly, this application discloses a computer-readable storage medium for storing a computer program; wherein, when the computer program is executed by a processor, it implements the fault detection method disclosed above.

[0036] As can be seen, this application provides a fault detection method, including: acquiring target information and determining whether the target display is normal based on the target information; if the display is abnormal, acquiring basic information corresponding to the current fault through a preset information acquisition method; generating and storing log information corresponding to the current fault based on the basic information. Therefore, this application determines whether the target display is normal by using target information, automatically acquires fault information when the target display is abnormal, and generates and stores corresponding log information to facilitate fault location based on the log information. This saves time and avoids resource waste, improves the sensitivity of fault detection and the accuracy of fault location, simplifies operation, and improves detection efficiency. Attached Figure Description

[0037] To more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are only embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on the provided drawings without creative effort.

[0038] Figure 1 This is a flowchart of a fault detection method disclosed in this application;

[0039] Figure 2 This is a flowchart of a specific fault detection method disclosed in this application;

[0040] Figure 3 This is a flowchart of a specific fault detection method disclosed in this application;

[0041] Figure 4 A schematic diagram of the fault detection device provided in this application;

[0042] Figure 5 This application provides a structural diagram of an electronic device. Detailed Implementation

[0043] 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.

[0044] Current methods for detecting graphics card display faults include: visual inspection, checking if the monitor is displaying normally by moving the mouse; if the monitor is not lit or the screen is unresponsive, checking the display interface, logging into the BMC (Browser Control Center) to check if the graphics card is properly installed, or checking information in the display driver. However, these methods are relatively primitive and cannot detect faults in a timely manner or pinpoint the time of occurrence; methods like BMC can only detect the presence of the graphics card, not the cause of the error; checking the cause through the graphics card driver requires knowledge of the driver logs and requires the OS to be working properly before checking the logs, which is cumbersome; when the monitor needs to be lit for a long time, both methods require manual supervision, and if no one is on duty, the time of the error will be unknown; if the monitor goes dark during a stress test, existing stress test scripts cannot automatically recognize it. Therefore, this application provides a fault detection method that saves time and avoids resource waste, improves the sensitivity of fault detection and the accuracy of fault location, simplifies operation, and improves detection efficiency.

[0045] This invention discloses a fault detection method, see [link to relevant documentation]. Figure 1 As shown, applied to an operating system, the method includes:

[0046] Step S11: Obtain target information and determine whether the target display is normal based on the target information.

[0047] In this embodiment, target information is acquired, and the display status of the target monitor is determined based on the target information. It is understood that there are typically two methods for detecting graphics card failures: visually observing whether the display is normal; or detecting the monitor status through the graphics card driver. When the monitor needs to remain lit for an extended period, both methods require manual monitoring. If an error occurs unattended, the time of the error is unknown. If the monitor fails to light up during a stress test restart, existing stress test scripts cannot automatically identify this. Therefore, this solution automatically detects the graphics card display status without manual intervention, i.e., it acquires target information in real time and determines the current display status of the target monitor based on the status information contained in the target information. The target information includes graphics card driver information and power management information.

[0048] Step S12: If the display is not working properly, obtain the basic information corresponding to the current fault through a preset information acquisition method.

[0049] In this embodiment, after acquiring target information and determining whether the target display is functioning correctly based on the target information, if the display is not functioning correctly, basic information corresponding to the current fault is acquired through a preset information acquisition method. It can be understood that if the display is not functioning correctly, basic information corresponding to the current fault is acquired, such as the fault time and the location of the fault.

[0050] Step S13: Generate and store log information corresponding to the current fault based on the basic information.

[0051] In this embodiment, if the display malfunctions, basic information corresponding to the current fault is obtained through a preset information acquisition method. Based on this basic information, log information corresponding to the current fault is generated and stored. It is understood that information exchange is performed between the OS power management and the graphics card driver to automatically acquire fault information, automatically generate an error log based on the fault information, and automatically report and store the error log to the target directory. Multiple displays are encoded, and the location and time of the display fault are automatically confirmed through the error information displayed in the log. The graphics card driver obtains relevant information about the graphics card display fault and feeds it back to the log, enabling maintenance personnel to locate the fault time and obtain the cause of the fault.

[0052] This application uses power management under the OS and graphics card driver to exchange information, thereby automatically obtaining fault information and automatically generating error logs. This allows on-site maintenance personnel to find the cause of the graphics card display failure in a timely manner based on the error logs, and to take different solutions according to the different causes recorded in the logs, saving time and avoiding waste of resources.

[0053] As can be seen, this application provides a fault detection method, including: acquiring target information and determining whether the target display is normal based on the target information; if the display is abnormal, acquiring basic information corresponding to the current fault through a preset information acquisition method; generating and storing log information corresponding to the current fault based on the basic information. Therefore, this application determines whether the target display is normal by using target information, automatically acquires fault information when the target display is abnormal, and generates and stores corresponding log information to facilitate fault location based on the log information. This saves time and avoids resource waste, improves the sensitivity of fault detection and the accuracy of fault location, simplifies operation, and improves detection efficiency.

[0054] See Figure 2 As shown, this embodiment of the invention discloses a fault detection method. Compared with the previous embodiment, this embodiment further explains and optimizes the technical solution.

[0055] Step S21: Obtain the graphics card driver information and power management information of the target display in real time.

[0056] In this embodiment, the graphics card driver information and power management information of the target display are acquired in real time. It is understood that, as... Figure 3 As shown, the operating system acquires the graphics card driver information and power management information of the target monitor in real time. Specifically, it performs a self-test using a preset method to detect the graphics card driver and obtain its information. Based on this information, it determines whether the target monitor's graphics card driver is in a normal or abnormal state. Based on the power management information, it determines whether the target monitor is in a screen-off or screen-on state. The graphics card driver performs a self-test to determine if the display status is normal; if abnormal, it saves the relevant display information.

[0057] Step S22: Determine whether the target monitor display is normal based on the graphics card driver information and the power management information.

[0058] In this embodiment, after acquiring the graphics card driver information and power management information of the target display in real time, the system determines whether the target display is functioning correctly based on the graphics card driver information and the power management information. Specifically, the system determines the first state information of the target display based on the graphics card driver information; determines the second state information of the target display based on the power management information; and determines whether the target display is functioning correctly based on the first state information and the second state information. When the conditions are met that the first state information indicates the graphics card driver is functioning correctly and the second state information indicates the display screen is on, the target display is determined to be functioning correctly; when the conditions are not met, the target display is determined to be functioning incorrectly.

[0059] It should be noted that if the target display is determined to be normal, the process will re-enter the step of obtaining the graphics card driver information and power management information of the target display in real time, so as to perform real-time detection of the target display.

[0060] Step S23: If the display is not working properly, obtain the current display information from the driver.

[0061] In this embodiment, after determining whether the target display is normal based on the graphics card driver information and the power management information, if the display is not normal, the current display information is obtained from the driver; wherein, the display information includes information such as the current resolution.

[0062] Step S24: Obtain the current time using a clock tool, so as to generate the basic information based on the current display information and the current time.

[0063] In this embodiment, after obtaining the current display information from the driver, the current time is obtained through a clock tool so as to generate the basic information based on the current display information and the current time. That is, the time is obtained through a clock tool, and the time, along with the display information, is saved to a log file. It can be understood that a log can be automatically generated when a fault occurs, allowing maintenance personnel to determine the location and time of the fault, thus solving the problem that the graphics card cannot automatically identify the monitor's display status during display testing.

[0064] Step S25: Generate and store log information corresponding to the current fault based on the basic information.

[0065] For details regarding step S25, please refer to the corresponding content disclosed in the foregoing embodiments, which will not be repeated here.

[0066] As can be seen, this embodiment of the application obtains the graphics card driver information and power management information of the target display in real time; determines whether the target display is normal based on the graphics card driver information and the power management information; if the display is abnormal, obtains the current display information from the driver; obtains the current time through a clock tool, so as to generate the basic information based on the current display information and the current time; generates and stores log information corresponding to the current fault based on the basic information, which saves time and avoids waste of resources, improves the sensitivity of fault detection and the accuracy of fault location, simplifies operation and improves detection efficiency.

[0067] See Figure 4 As shown in the illustration, this application also discloses a fault detection device applied to an operating system, comprising:

[0068] The display judgment module 11 is used to acquire target information and determine whether the target display is normal based on the target information;

[0069] The basic information acquisition module 12 is used to acquire the basic information corresponding to the current fault through a preset information acquisition method if the display is abnormal.

[0070] The log information generation module 13 is used to generate and store log information corresponding to the current fault based on the basic information.

[0071] As can be seen, this application includes: acquiring target information and determining whether the target display is normal based on the target information; if the display is abnormal, acquiring basic information corresponding to the current fault through a preset information acquisition method; generating and storing log information corresponding to the current fault based on the basic information. Therefore, this application determines whether the target display is normal by using target information, automatically acquires fault information when the target display is abnormal, and generates and stores corresponding log information to facilitate fault location based on the log information. This saves time and avoids resource waste, improves the sensitivity of fault detection and the accuracy of fault location, simplifies operation, and improves detection efficiency.

[0072] In some specific embodiments, the display display determination module 11 specifically includes:

[0073] The information acquisition unit is used to acquire the graphics card driver information and power management information of the target display in real time.

[0074] The first display judgment unit is used to determine whether the target display is normal based on the graphics card driver information and the power management information.

[0075] In some specific embodiments, the display display determination module 11 specifically includes:

[0076] The first state information determination unit is used to determine the first state information of the target display based on the graphics card driver information.

[0077] The second state information determination unit is used to determine the second state information of the target display based on the power management information.

[0078] The second display judgment unit is used to determine whether the target display is normal based on the first status information and the second status information.

[0079] In some specific embodiments, the display display determination module 11 specifically includes:

[0080] The graphics card driver information acquisition unit is used to detect the graphics card driver through a preset self-test method to obtain the graphics card driver information;

[0081] A graphics card driver status determination unit is used to determine whether the target display is in a normal or abnormal state based on the graphics card driver information.

[0082] The display status determination unit is used to determine whether the target display is in a screen-off state or a screen-on state based on the power management information.

[0083] The display normality determination unit is used to determine that the target display is normal when the first status information is that the graphics card driver is in a normal state and the second status information is that the display screen is in a bright state.

[0084] The display abnormality determination unit is used to determine that the target display is abnormal when the first state information is that the graphics card driver is in a normal state and the second state information is that the display screen is on.

[0085] In some specific embodiments, the basic information acquisition module 12 specifically includes:

[0086] The current display information acquisition unit is used to acquire current display information from the driver if the display is not working properly; wherein, the display information includes the current resolution;

[0087] The current time acquisition unit is used to acquire the current time through a clock tool, so as to generate the basic information based on the current display information and the current time.

[0088] In some specific embodiments, the log information generation module 13 specifically includes:

[0089] The log information generation unit is used to generate and store log information corresponding to the current fault based on the basic information.

[0090] Furthermore, embodiments of this application also provide an electronic device. Figure 5 This is a structural diagram of an electronic device 20 according to an exemplary embodiment. The content of the diagram should not be construed as limiting the scope of this application.

[0091] Figure 5 This is a schematic diagram of the structure of an electronic device 20 provided in an embodiment of this application. Specifically, the electronic device 20 may include: at least one processor 21, at least one memory 22, a power supply 23, a communication interface 24, an input / output interface 25, and a communication bus 26. The memory 22 stores a computer program, which is loaded and executed by the processor 21 to implement the relevant steps in the fault detection method disclosed in any of the foregoing embodiments. Furthermore, the electronic device 20 in this embodiment may specifically be an electronic computer.

[0092] In this embodiment, the power supply 23 is used to provide operating voltage for each hardware device on the electronic device 20; the communication interface 24 can create a data transmission channel between the electronic device 20 and external devices, and the communication protocol it follows can be any communication protocol applicable to the technical solution of this application, and is not specifically limited here; the input / output interface 25 is used to acquire external input data or output data to the outside world, and its specific interface type can be selected according to specific application needs, and is not specifically limited here.

[0093] In addition, the memory 22, as a carrier for resource storage, can be a read-only memory, random access memory, disk or optical disk, etc. The resources stored thereon can include operating system 221, computer program 222, etc., and the storage method can be temporary storage or permanent storage.

[0094] The operating system 221 is used to manage and control the various hardware devices on the electronic device 20 and the computer program 222, which may be Windows Server, Netware, Unix, Linux, etc. In addition to including a computer program capable of performing the fault detection method executed by the electronic device 20 as disclosed in any of the foregoing embodiments, the computer program 222 may further include a computer program capable of performing other specific tasks.

[0095] Furthermore, this application also discloses a storage medium storing a computer program, which, when loaded and executed by a processor, implements the fault detection method steps disclosed in any of the foregoing embodiments.

[0096] The various embodiments in this specification are described in a progressive manner, with each embodiment focusing on its differences from other embodiments. Similar or identical parts between embodiments can be referred to interchangeably. For the apparatus disclosed in the embodiments, since it corresponds to the method disclosed in the embodiments, the description is relatively simple; relevant parts can be referred to in the method section.

[0097] Finally, it should be noted that in this document, relational terms such as "first" and "second" are used only to distinguish one entity or operation from another, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Furthermore, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus. Without further limitations, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes said element.

[0098] The above provides a detailed description of the fault detection method, apparatus, device, and storage medium provided by the present invention. Specific examples have been used to illustrate the principles and implementation methods of the present invention. The description of the above embodiments is only for the purpose of helping to understand the method and core ideas of the present invention. At the same time, for those skilled in the art, there will be changes in the specific implementation methods and application scope based on the ideas of the present invention. Therefore, the content of this specification should not be construed as a limitation of the present invention.

Claims

1. A fault detection method, characterized in that, Applied to operating systems, including: Acquire target information and determine whether the target display is normal based on the target information; If the display is malfunctioning, the basic information corresponding to the current fault is obtained through a preset information acquisition method. Log information corresponding to the current fault is generated and stored based on the basic information; the basic information includes the fault time and the location where the fault occurred. The step of acquiring target information and determining whether the target display is functioning correctly based on the target information includes: The target display's graphics card driver information and power management information are acquired in real time. Based on the graphics card driver information and the power management information, determine whether the target monitor display is normal; The step of determining whether the target monitor display is normal based on the graphics card driver information and the power management information includes: The first state information of the target display is determined based on the graphics card driver information; The second state information of the target display is determined based on the power management information; Based on the first status information and the second status information, determine whether the target display is normal; The step of determining the first state information of the target display based on the graphics card driver information includes: The graphics card driver is tested using a preset self-test method to obtain the graphics card driver information; Based on the graphics card driver information, determine whether the target monitor is in a normal or abnormal graphics card driver state. Determining the second state information of the target display based on the power management information includes: Based on the power management information, it is determined whether the target display is in a screen-off state or a screen-on state.

2. The fault detection method according to claim 1, characterized in that, The step of determining whether the target display is functioning correctly based on the first state information and the second state information includes: When the conditions are met that the first status information indicates the graphics card driver is in a normal state and the second status information indicates the display screen is on, the target display is determined to be normal. If the conditions that the first status information indicates that the graphics card driver is in a normal state and the second status information indicates that the display screen is on are not met, the target display is determined to be abnormal.

3. The fault detection method according to any one of claims 1 to 2, characterized in that, If the display malfunctions, basic information corresponding to the current fault is obtained through a preset information acquisition method, including: If the display is not working properly, the current display information is obtained from the driver; wherein, the display information includes the current resolution; The current time is obtained using a clock tool, so that the basic information can be generated based on the currently displayed information and the current time.

4. A fault detection device, characterized in that, Applied to operating systems, including: The display judgment module is used to acquire target information and determine whether the target display is normal based on the target information; The basic information acquisition module is used to acquire basic information corresponding to the current fault by means of a preset information acquisition method if the display is abnormal; the basic information includes the fault time and the location of the fault occurrence. The log information generation module is used to generate and store log information corresponding to the current fault based on the basic information. The device is further configured to: acquire graphics card driver information and power management information of the target display in real time; determine whether the display of the target display is normal based on the graphics card driver information and the power management information; determine first state information of the target display based on the graphics card driver information; determine second state information of the target display based on the power management information; and determine whether the display of the target display is normal based on the first state information and the second state information. The display judgment module specifically includes: The graphics card driver information acquisition unit is used to detect the graphics card driver through a preset self-test method to obtain the graphics card driver information; A graphics card driver status determination unit is used to determine whether the target display is in a normal or abnormal state based on the graphics card driver information. The display status determination unit is used to determine whether the target display is in a screen-off state or a screen-on state based on the power management information.

5. An electronic device, characterized in that, include: Memory, used to store computer programs; A processor for executing the computer program to implement the steps of the fault detection method as described in any one of claims 1 to 3.

6. A computer-readable storage medium, characterized in that, Used to store a computer program; wherein, when the computer program is executed by a processor, it implements the fault detection method as described in any one of claims 1 to 3.

Citation Information

Patent Citations

  • Display screen fault monitoring method and system

    CN104378627A