Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

Automatic switching method between Xwindows display mode and console display mode

A display mode and automatic switching technology, applied in the direction of program startup/switching, multi-program device, etc., can solve the problems of occupying system resources, too many, and unable to guarantee functions, etc., to reduce complexity and avoid occupying system resources.

Inactive Publication Date: 2007-03-07
INVENTEC CORP
View PDF3 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

But doing so will bring the following two problems: first, when the Linux system on which the application runs does not provide the chvt N command or rename the function to achieve the same function, the realization of the required function cannot be guaranteed; second, the use of the System function Call the system command chvt N to create and run another process based on the current process (Process), which will occupy too many system resources

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Automatic switching method between Xwindows display mode and console display mode
  • Automatic switching method between Xwindows display mode and console display mode
  • Automatic switching method between Xwindows display mode and console display mode

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0018] The present invention provides a kind of automatic switching method of Xwindows display mode and console display mode, at first the method of the present invention is explained in Fig. 1, and this figure is the operation flowchart of the present invention, at first obtains the state of all virtual terminals in the core (step 110), obtain and save the current virtual terminal number (step 120), then obtain and save the callable display mode (step 130), switch to the target display mode (step 140), and finally wait for the target display mode to start (step 150) .

[0019] In the above process of obtaining the status of all virtual terminals in the core, first obtain the file descriptor (File Description) of the current virtual terminal (Virtual Terminal), and then the system calls the ioctl function (fd, VT_GETSTATE, &vs) to obtain the kernel (Kernel) Status of the virtual terminal.

[0020] Firstly, the present invention will be described in detail by taking the automa...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

An automatic switch method between a x windows display mode and a console display mode is used under Linux in the following steps: first of all fetching all analog terminal states in the core, then fetching and storing the current analog terminal numbers, fetching and storing the transferable display modes to be switched to the target display mode, finally, waiting for the start of the target display mode to realize the automatic switch of the console display mode under Linux and Xwindows display mode.

Description

technical field [0001] The invention relates to a display mode switching method, in particular to an automatic switching method between an Xwindows display mode and a console display mode under Linux. Background technique [0002] The development of the Linux operating system can be described as rapid. In just a few years, it has not only laid a solid network foundation, become the strong support of many servers (Server), and even developed into the desktop field. The significance of the graphical desktop lies in the ability to use rich and colorful windows to bring users a sense of intimacy, so that people no longer feel strange. Xwindows is an open window in Linux. This "window" interface brings many practical and easy-to-use effects to people. The console (Console) display mode of the Linux operating system is the basic user-oriented display mode provided by Linux, and the Xwindows system is a set of window systems based on the Client-Server architecture. It is a modern ...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
Patent Type & Authority Patents(China)
IPC IPC(8): G06F9/48
Inventor 刘文涵宋建福王鹏
Owner INVENTEC CORP
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products