CN117707392A - Display control method and system of BIOS graphical interface - Google Patents

Display control method and system of BIOS graphical interface Download PDF

Info

Publication number
CN117707392A
CN117707392A CN202311775273.9A CN202311775273A CN117707392A CN 117707392 A CN117707392 A CN 117707392A CN 202311775273 A CN202311775273 A CN 202311775273A CN 117707392 A CN117707392 A CN 117707392A
Authority
CN
China
Prior art keywords
bios
interface
graphic
graphical
window
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202311775273.9A
Other languages
Chinese (zh)
Inventor
陈小春
张超
朱立森
孙亮
宋超
肖志坤
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Kunlun Taike Beijing Technology Co ltd
Original Assignee
Kunlun Taike Beijing Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Kunlun Taike Beijing Technology Co ltd filed Critical Kunlun Taike Beijing Technology Co ltd
Priority to CN202311775273.9A priority Critical patent/CN117707392A/en
Publication of CN117707392A publication Critical patent/CN117707392A/en
Pending legal-status Critical Current

Links

Landscapes

  • Digital Computer Display Output (AREA)

Abstract

The invention discloses a display control method and a system of a BIOS graphical interface, wherein the graphical interface is drawn for a BIOS system through a graphical drawing engine; and controlling the display control of the graphical interface through the clicking device and the keyboard. The operation of clicking equipment such as a mouse and the like in the graphical configuration interface is supported, and all configuration operations can be completed only through the mouse, so that the method is more suitable for keyboard-free equipment. And switching between the graphical interface and the text interface is supported, and the content of the graphical interface is consistent with that of the text interface. And the interface maintenance workload is reduced by multiplexing the codes of the interface content description. And supporting the diversified customization of theme information such as colors, fonts, sizes and the like displayed on the interface.

Description

Display control method and system of BIOS graphical interface
Technical Field
The invention relates to the technical field of BIOS (basic input output System) of computers, in particular to a display control method and a display control system of a BIOS graphical interface.
Background
The user configuration interfaces of the main stream basic input/output system (Basic Input Output System, BIOS) at present are all displayed in a text mode, and because the display mode is simple and quick and occupies small memory, the text mode display can be realized only by setting a display mode and setting a color register, and then basic functions such as drawing points, drawing lines, drawing circles and the like are written according to the principle of graphic display, so that the color of the whole screen is single, the font and the size are uniform, the interface display color, font and size cannot be customized in a humanized way, pictures cannot be displayed, and a user can only customize the function and can not customize the theme mode.
Since only a keyboard can be used for operation, the text interface interaction mode is only suitable for a complete machine with a keyboard, such as a desktop computer, an all-in-one machine and a server, and is not suitable for equipment without a keyboard, such as a tablet computer and the like, so that the BIOS cannot meet the requirements of all computer equipment on the market, and a very large short board is displayed on the application of the equipment without the keyboard.
Disclosure of Invention
In view of this, the present invention provides a display control method and system for a graphical interface of a BIOS, which can implement the function of the graphical interface of the BIOS system.
The invention adopts the following specific technical scheme:
a display control method of BIOS graphical interface includes: drawing a graphical interface for a basic input/output system BIOS through a graphical drawing engine; and controlling the display control of the graphical interface through the clicking equipment and the keyboard.
Further, the graphic drawing engine is independent of the BIOS system, and the graphic drawing engine and the BIOS system conduct data transmission through a fixed communication protocol.
Further, the drawing, by the graphics drawing engine, of the graphical interface for the basic input output system BIOS includes: and the graphic drawing engine configures the graphic control and/or the window of the BIOS system, and displays the graphic control and/or the window on a screen of the BIOS system through an image input protocol GOP.
Further, the pointing device includes at least one of: a mouse; a touch panel; a touch screen.
Further, the controlling the display control of the graphical interface through the clicking device and the keyboard device includes: the click equipment controls the coordinates of the graphic control and/or the window and controls the display state of the display control of the graphic interface; and controlling the display state of the display control through the keyboard.
Further, the pointing device controls coordinates of the graphic control and/or the window, and the pointing device comprises: the BIOS system carries out event processing on the action of the clicking device through a mouse driver, the action of the clicking device triggers the BIOS system to call the state data of the clicking device, the X coordinate of the clicking device and the Y coordinate of the clicking device, and the BIOS system provides global variables for the clicking device through a unified extensible firmware interface UEFI.
Further, the pointing device controls coordinates of the graphic control and/or the window, and the pointing device comprises: and the BIOS records and controls the coordinates of the graphic control and/or the window through the PCD variable of the dynamic global configurable database of the UEFI.
A display control system for a BIOS graphical interface, comprising: the system comprises a basic input/output system BIOS, a graphic drawing engine module, a clicking device and a keyboard, wherein the graphic drawing engine module is independent of the BIOS system, and the graphic drawing engine module and the BIOS system perform data transmission through a fixed communication protocol; the graphic drawing engine module is used for drawing a graphic interface for the BIOS system; and the clicking equipment and the keyboard are used for controlling the display control of the graphical interface.
The beneficial effects are that:
(1) A display control method of BIOS graphical interface is to draw the graphical interface for BIOS system through the graphic drawing engine, to realize the function of BIOS graphical interface and to switch freely with the original text interface display. The configuration interface of the graphical interface of the BIOS system can meet the operation functions of keyboard-free equipment such as a tablet personal computer and the like, and can realize the functions of customizing the colors, fonts, sizes and inserting and displaying pictures of the configuration interface.
(2) The graphic drawing engine is independent of BIOS system setting, and the graphic drawing engine and the BIOS system conduct data transmission through a fixed communication protocol, so that original codes and functions of the BIOS are not affected, and the switching between the traditional UEFI interface and the display of the graphic interface can be well achieved.
(3) The display control of the graphical interface is controlled through the clicking device and the keyboard, so that the theme style of the interface can be flexibly customized, and the diversity customization of theme information such as colors, fonts, sizes and the like displayed on the interface is supported.
Drawings
FIG. 1 is a flow chart of a display control method of a BIOS graphical interface according to an embodiment of the invention;
FIG. 2 is a schematic diagram of the architecture of a graphics-rendering engine module in accordance with an embodiment of the present invention;
FIG. 3 is a graphical interface build flow diagram in accordance with an embodiment of the present invention;
FIG. 4 is a flow chart of window creation according to an embodiment of the present invention;
FIG. 5 is a schematic diagram of a graphical control interaction logic flow in accordance with an embodiment of the present invention;
FIG. 6 is a schematic diagram of a personalized customization framework for a graphical interface in accordance with an embodiment of the present invention.
Detailed Description
The invention will now be described in detail by way of example with reference to the accompanying drawings.
An embodiment of the present invention provides a display control method of a BIOS graphical interface, and fig. 1 is a flowchart of a display control method of a BIOS graphical interface according to an embodiment of the present invention, as shown in fig. 1, including:
step S101, drawing a graphical interface for a basic input output system (Basic Input Output System, BIOS) through a graphical drawing engine;
in one exemplary embodiment, the graphics-rendering engine is set up independently of the BIOS system, with which it communicates data via a fixed communication protocol.
In the practical implementation process, the graphic interface drawing engine module is an independent module, a Protocol is installed in the module, and an external module can call a program in the module through an interface provided in the Protocol.
In one exemplary embodiment, drawing a graphical interface for a basic input output system BIOS by a graphics rendering engine includes: the graphics rendering engine configures the BIOS system with graphics controls and/or windows and displays the graphics controls and/or windows on the BIOS system's screen via an image input protocol (Graphic Output Protocol, GOP).
And step S102, controlling display controls of the graphical interface through the clicking equipment and the keyboard.
In one exemplary embodiment, the pointing device includes at least one of: a mouse; a touch panel; a touch screen.
In one exemplary embodiment, controlling a display control of a graphical interface by a pointing device includes: the pointing device controls the display control of the graphical interface by controlling the coordinates of the graphical control and/or the window.
In one exemplary embodiment, the display state of the display control is controlled by a keyboard.
Wherein status displays of switches and the like may be included.
In one exemplary embodiment, the pointing device includes, by controlling coordinates of a graphical control and/or window: the BIOS system processes events of actions of the clicking device through the mouse driver, the actions of the clicking device trigger the BIOS system to call state data of the clicking device, X coordinates of the clicking device and Y coordinates of the clicking device, and the BIOS system provides global variables for the clicking device through a unified extensible firmware interface (Unified Extensible Firmware Interface, UEFI).
In one exemplary embodiment, the pointing device includes, by controlling coordinates of a graphical control and/or window: the BIOS system records and controls the coordinates of the graphic control and/or window through the dynamic global configurable database (Platform Configuration Database, PCD) variable of the UEFI.
In the practical implementation process, the function of BIOS configuration interface options is directly operated through clicking equipment (a mouse, a touch pad and a touch screen), so that BIOS configuration interface interaction of a notebook computer and a tablet computer can be better supported.
The embodiment of the invention also provides a display control system of the BIOS graphical interface, which comprises: the system comprises a basic input/output system BIOS, a graphic drawing engine module, a clicking device and a keyboard, wherein the graphic drawing engine module is independent of BIOS system setting, and the graphic drawing engine module and the BIOS system carry out data transmission through a fixed communication protocol; the graphic drawing engine module is used for drawing a graphic interface for the BIOS system; the clicking device and the keyboard are used for controlling display controls of the graphical interface.
In the actual implementation process, the interface drawing module of the embodiment of the invention adds word libraries with various fonts and font sizes, thereby realizing the customizing function of various themes. In the actual implementation process, a switching control can be set on the graphical interface, so that theme switching is realized, and a developer can also change the theme.
It should be clear to those skilled in the art that the display control system for a BIOS graphical interface in the above embodiment is used to implement specific steps and flows of the display control method for a BIOS graphical interface in the above embodiment, and the actual operations and execution steps may refer to specific steps and flows of the display control method for a BIOS graphical interface, which are not described herein again.
In order to enable those skilled in the art to better understand the technical solutions of the present invention, the following description is provided with reference to specific exemplary embodiments.
Scene embodiment one
Compared with the traditional BIOS configuration interface, the display control method and system for the BIOS graphical interface provided by the embodiment of the invention newly increases the drawing engine module of the graphical interface, realizes complete display of IFR content on the basis of being compatible with a standard UEFI IFR display mechanism, configures the interface on the basis of being compatible with the traditional keyboard operation, and can flexibly customize the theme style of the interface.
FIG. 2 is a schematic diagram of the architecture of a graphics-rendering engine module, as shown in FIG. 2, that includes the following: subject matter: configuration information of fonts, colors and font sizes displayed on an interface; setup page display: displaying a frame column, a help information column and the like; and (3) popup window display: according to the window information to be popped up by the user operation; display of multiple controls: text controls, switch controls, option controls, etc.
The information displayed in the screen is composed of controls or windows, the drawing engine calls the graphic controls according to the input information and the set theme information, and finally the graphic controls are displayed on the screen through GOP, each control or window comprises two coordinate positions, the two coordinate positions can position a rectangle, the two points are respectively the upper left part and the lower right part of the rectangle, and the position of the control or the window can be known only after the two coordinates are known.
The drawing flow of the configuration interface is to draw a sidebar, draw a help bar, create a control according to input information, and display the control, so that the whole configuration interface is drawn, the interface is in a state of waiting for user input, and the display of a space or a window is processed according to the input condition of the user.
FIG. 3 is a graphical interface build flow diagram according to an embodiment of the present invention, as shown in FIG. 3, comprising:
step one: waiting for input of information by an input device
Step two: the input device sends the input information to the drawing engine;
step three: drawing input information acquired by an engine, and uniformly transmitting the information to a graphic control by combining the theme information;
step four: after the graphic control acquires the user information, the graphic control processes the user information and returns the graphic information to the drawing engine;
step five: after the drawing engine acquires the graphic information, the graphic information is displayed on a screen through a GOP.
In the embodiment of the invention, the operation of drawing the window is created aiming at the condition that a plurality of windows appear, for example, a popup window appears after a key press, an original page is covered, a new window is drawn above the original window, the part of the process is a function of creating the window, all the windows in the page are stored by using a linked list, and important data contents in each linked list structure of the window are as follows:
the state of the window: indicating whether the window is active; the position of the window: storing two coordinate points of the window; drawing state: if the window is drawing, record as true; capture area (backup area) pointer: window content before window pop-up is stored, meaning the content that the screen displays at this window location before the window is limited, for use in resuming window display.
FIG. 4 is a flow chart of window creation according to an embodiment of the present invention, as shown in FIG. 4, comprising:
step one: creating a window interface to collect input information, and applying for a space for storing window information;
step two: creating a linked list node and initializing a linked list;
step three: creating a 200ms mouse event, waiting to be triggered;
step four: according to the size of the window, applying for a space with a corresponding size, and creating a renderer;
step five: and inserting the window into the linked list according to different window levels.
In the scene embodiment of the invention, on the basis of graphic interface display, the BIOS can realize the support of the mouse, can display the pattern of the mouse, can update the pattern according to the movement of the mouse, prepare global variables for the support of the mouse in UEFI, and transmit the state of the mouse, so that a program using a mouse driver can process events according to the action of the mouse, and each mouse action can trigger the BIOS to call the mouse driver and transmit three data, namely the state of the mouse, the X coordinate of the mouse and the Y coordinate of the mouse.
In the scene embodiment of the invention, the X, Y coordinates of the mouse are recorded by using dynamic PCD variables specific to UEFI. Dynamic PCD variables are similar to global variables in that their values can be passed between different modules, their values can be obtained by PCD Get, and their values can be updated by PCD Set. And checking whether the state of the mouse is changed at intervals by using a timer event in the UEFI, if the state of the mouse is changed, acquiring the offset of the transverse and longitudinal movement of the mouse through a mouse protocol, adding the offset with the X, Y coordinates of the old mouse recorded by the PCD to obtain the new X, Y coordinates of the moved mouse, and recording the new coordinates into the PCD. And when the mouse moves again, the original coordinates of the mouse are obtained from the PCD, and then the new coordinates of the mouse are obtained after the offset is added, and are updated into the PCD. In this process, the PCD assumes the function of recording the current coordinates of the mouse. The X, Y coordinates after the mouse moves and the state of the mouse are transmitted to each control, and the control checks whether the mouse coordinates and the control generate overlapping interaction or not and redraws according to the state after interaction.
The control of the mouse on the control is also judged according to the coordinates of the mouse, each control is formed by coordinates of two points, after the buttons of the mouse are obtained, which control is currently operated by the mouse can be judged according to the coordinates of the mouse, then the control is processed, and if a window is needed to be flicked, the corresponding window is popped up.
After the page is drawn, the configuration interface is always in a state of waiting for capturing input, and the page control or the popup frame is redrawn according to the input information of the user, so as to realize the interaction flow of the graphic control, and fig. 5 is a schematic diagram of the interaction logic flow of the graphic control according to the scene embodiment of the invention, as shown in fig. 5, and comprises:
step one: the text input interface always waits for the input information of the keyboard; the window manager is waiting for the mouse input information. If the text input interface or the window manager captures the input of the keyboard or the mouse, the operation is skipped to the second step;
step two: the interface is always in a state of waiting for user input, waiting for obtaining input information from the window manager and the text input interface, and entering a step three if information input of a keyboard or a mouse is obtained;
step three: the input of different input devices can be sent to the corresponding graphic control, for example, the input of a keyboard can be sent to the highlighted control, and the input of a mouse can be sent to the clicked control;
step four: after receiving the input information, the graphic control sets the state of the control according to different input devices;
step five: after the graphic control receives the input information, judging whether the control needs to be redrawn, if so, jumping to the step six for operation, otherwise, jumping to the step seven;
step six: re-drawing the control, and jumping to the seventh operation after drawing;
step seven: and processing the message and returning the control state to the step two.
Fig. 6 is a schematic diagram of a personalized customization framework of a graphical interface according to an embodiment of the present invention, and as shown in fig. 6, the personalized customization of the UEFI graphical interface illustrated by the embodiment of the present invention is mainly embodied in the following aspects:
picture: the method comprises the steps of including brands Logo of suppliers and pictures required to be displayed by the suppliers;
font: various word stock can be stored in the BIOS, and various word stock can be generated according to the needs of clients and stored in the BIOS, such as bold and Song Ti;
word size: each character size corresponds to a group of data, and fonts with various character sizes are built in the BIOS, so that the size of the fonts is adjusted;
font color: designating a single control or a font color on the interface;
the colors of the controls are respectively designated by the parts of each control, and the colors of the parts can be respectively adjusted;
the display mode of the fonts is consistent with the traditional display mode, and a tool is additionally used, so that a specific font lattice font library in the form of UEFI can be generated. When the fonts are added by calling Hii protocol, the font data of various fonts and font sizes are all added into Hii database, and when the interface is displayed, the fonts and font sizes can be designated, and the designated fonts can be displayed.
The standard image file format (Bitmap, BMP) is a standard image file format recommended and supported by microsoft, and image data is directly stored without compression. Standard UEFI implementations support parsing BMP pictures and provide a function that can convert BMP pictures into a frame buffer form recognizable by a GOP, thereby enabling the GOP to display BMP pictures.
After compiling UEFI, BMP pictures are stored in binary form in firmware files and identified by a unique globally unique identifier (Globally Unique Identifier, GUID). When the UEFI runs, binary data of BMP pictures in firmware are found through unique GUIDs, and the data are loaded into a memory. BMP picture data is converted into a frame buffer form recognizable by the GOP through the method provided by UEFI, and then transferred to the GOP, which finally displays the picture on a screen.
In the code structure, the pictures are placed in folders, when compiling, BMP pictures with appointed names under appointed paths can be compiled into a final firmware file, the BMP pictures are convenient to replace, and customized services are provided.
The fonts, the font sizes, the font colors and the colors of the controls can be specified, so that when a program is designed, a color table and a theme table are realized, the theme table contains the font information of each part, the color information of each part and the fonts of the color table controls, and a set of themes is formed by combining the font information and the colors of the controls.
In summary, the display control method and system for the BIOS graphical interface provided by the embodiment of the invention draw the graphical interface for the BIOS system through the graphical drawing engine; and controlling the display control of the graphical interface through the clicking device and the keyboard. The operation of clicking equipment such as a mouse and the like and a keyboard in a graphical configuration interface is supported, and all configuration operations can be completed only through the mouse, so that the method is more suitable for keyboard-free equipment. And switching between the graphical interface and the text interface is supported, and the content of the graphical interface is consistent with that of the text interface. And the interface maintenance workload is reduced by multiplexing the codes of the interface content description. And supporting the diversified customization of theme information such as colors, fonts, sizes and the like displayed on the interface.
The above specific embodiments merely describe the design principle of the present invention, and the shapes of the components in the description may be different, and the names are not limited. Therefore, the technical scheme described in the foregoing embodiments can be modified or replaced equivalently by those skilled in the art; such modifications and substitutions do not depart from the spirit and technical scope of the invention, and all of them should be considered to fall within the scope of the invention.

Claims (8)

1. A display control method of a BIOS graphical interface, comprising:
drawing a graphical interface for a basic input/output system BIOS through a graphical drawing engine;
and controlling the display control of the graphical interface through the clicking equipment and the keyboard.
2. The method of claim 1, wherein,
the graphic drawing engine is independent of the BIOS system setting, and the graphic drawing engine and the BIOS system conduct data transmission through a fixed communication protocol.
3. The method of claim 1, wherein the drawing, by the graphics-rendering engine, of the graphical interface for the basic input output system BIOS comprises:
and the graphic drawing engine configures the graphic control and/or the window of the BIOS system, and displays the graphic control and/or the window on a screen of the BIOS system through an image input protocol GOP.
4. The method of claim 1, wherein the pointing device comprises at least one of:
a mouse; a touch panel; a touch screen.
5. The method of claim 1, wherein the controlling the display control of the graphical interface via a pointing device and a keyboard comprises:
the click equipment controls the coordinates of the graphic control and/or the window and controls the display state of the display control of the graphic interface;
and controlling the display state of the display control through the keyboard.
6. The method of claim 5, wherein the pointing device comprises, by controlling coordinates of the graphical control and/or window:
the BIOS system carries out event processing on the action of the clicking device through a mouse driver, the action of the clicking device triggers the BIOS system to call the state data of the clicking device, the X coordinate of the clicking device and the Y coordinate of the clicking device, and the BIOS system provides global variables for the clicking device through a unified extensible firmware interface UEFI.
7. The method of claim 5, wherein the pointing device comprises, by controlling coordinates of the graphical control and/or window:
and the BIOS records and controls the coordinates of the graphic control and/or the window through the PCD variable of the dynamic global configurable database of the UEFI.
8. A display control system for a BIOS graphical interface, comprising:
the system comprises a basic input/output system BIOS, a graphic drawing engine module, a clicking device and a keyboard, wherein the graphic drawing engine module is independent of the BIOS system, and the graphic drawing engine module and the BIOS system perform data transmission through a fixed communication protocol;
the graphic drawing engine module is used for drawing a graphic interface for the BIOS system;
and the clicking equipment and the keyboard are used for controlling the display control of the graphical interface.
CN202311775273.9A 2023-12-21 2023-12-21 Display control method and system of BIOS graphical interface Pending CN117707392A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202311775273.9A CN117707392A (en) 2023-12-21 2023-12-21 Display control method and system of BIOS graphical interface

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202311775273.9A CN117707392A (en) 2023-12-21 2023-12-21 Display control method and system of BIOS graphical interface

Publications (1)

Publication Number Publication Date
CN117707392A true CN117707392A (en) 2024-03-15

Family

ID=90153136

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202311775273.9A Pending CN117707392A (en) 2023-12-21 2023-12-21 Display control method and system of BIOS graphical interface

Country Status (1)

Country Link
CN (1) CN117707392A (en)

Similar Documents

Publication Publication Date Title
US7030890B1 (en) Displaying graphical objects
JP4381708B2 (en) Graphical user interface system
US5062060A (en) Computer human interface comprising user-adjustable window for displaying or printing information
US5502839A (en) Object-oriented software architecture supporting input/output device independence
JP4381709B2 (en) server
EP2583154B1 (en) Contextual control of dynamic input device
US20140082511A1 (en) Method and system for emulating desktop software applications in a mobile communication network
JP2010009623A (en) Transformation of platform specific graphical user interface widgets migrated between heterogeneous device platforms
JP2000505924A (en) Method and apparatus for reformatting a mobile device screen using hypertext
JPH06342416A (en) Method and equipment for distributed processing of display-screen information
US20200249965A1 (en) Display Device with Built-In Web Browser for Graphical User Interface in an Embedded System
CN114020194A (en) Display data modification method and device, computer equipment and medium
CN105359104A (en) Synchronization points for state information
US20060236244A1 (en) Command links
KR100695080B1 (en) Mobile Communication Terminal Having Screen Splitting Function
KR102426198B1 (en) User interface distribution method for multi-device interaction
US20080162539A1 (en) Dynamic cockpit creator
CN117707392A (en) Display control method and system of BIOS graphical interface
CN101751197A (en) Multi-level input system, computer program product and method thereof
CN113407183A (en) Interface generation method, device, equipment and storage medium
EP0274087A2 (en) Computer human interface
KR102560619B1 (en) Electronic device providing no-code tool service and method thereof
KR102660531B1 (en) User interface distribution method for multi-device interaction
JPWO2007055002A1 (en) Browser with numbering function
CN110851066B (en) Method and device for supporting touch control of multiple display screens

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination