Protecting method for frame buffer zone state

The present invention relates to a frame buffer (Frame Buffer) state protection method comprising the steps of: real mode to initialize the system to support the current computer basic input card display / output system (BIOS) of the interrupt call, when the basic input / output system (BIOS) supports the video Electronics standards Association (VESA) 4F04 interrupt calls to return to save / restore the current state of the frame buffer memory size of the system needed to save the state of the frame buffer, the frame buffer status to read and write, as well as in the recovery after the end of the test frame buffer state before the test; otherwise, after the end of the test card, transferred to the Linux kernel frame buffer in accordance with the current system of a display activation mode display mode reset. The method is applied to the display card test Linux Qt / Embedded systems, in order to avoid conflicts use the frame buffer, to ensure safety.