Display function management method and device of system equipment, equipment and product

By loading graphics card or virtual display drivers on the system device, the problem that remote desktop cannot be realized without display devices is solved, and the remote desktop function on display devices is realized, which improves the flexibility and adaptability of the device.

CN120234086AInactive Publication Date: 2025-07-01KYLIN CORP
View PDF 5 Cites 0 Cited by

Patent Information

Application Number
CN202510724194.8
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-06-03
Publication Date
2025-07-01
Estimated Expiration
Not applicable · inactive patent

AI Technical Summary

Technical Problem

The prior art cannot implement a remote desktop environment on servers without display devices or embedded devices, resulting in limited flexibility in use and deployment of these devices.

Method used

By determining whether the system device has a graphics card installed, loading the corresponding graphics card driver or virtual display driver, and starting the remote shared desktop service program, the desktop display output is realized to the remote shared client.

Benefits of technology

Remote desktop function is implemented on display-free devices, with reliable performance and wide application range, and supports automatic remote desktop operation on system devices without display functions.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120234086A_ABST
    Figure CN120234086A_ABST
Patent Text Reader

Abstract

The invention discloses a display function management method and device of system equipment, equipment and a product. The method comprises the steps that whether a display card is installed or not is determined; after the corresponding drive program is successfully loaded, starting a system equipment desktop environment program; and starting a remote shared desktop service program, and displaying and outputting the shared desktop to a remote shared client. The invention discloses a display function management method and device of system equipment, equipment and a product, which can automatically realize a remote desktop function directly on system equipment without a display function or on system equipment with default display equipment, and have the characteristics of reliable performance and wide application range.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the field of operating system devices, and particularly relates to a method, device, equipment and product for managing the display function of system devices. Background Art

[0002] Under the existing technical conditions, the deployment of all remote desktop environments is generally based on hardware system devices with display functions. Therefore, in the prior art, it is impossible to use a remote desktop environment on a server or embedded device without a display device, which brings great inconvenience to the full use of the server or embedded device without a display device, and affects the flexible use and deployment of the server or embedded device without a display device. Summary of the Invention

[0003] In view of this, the present invention aims to overcome the defects in the prior art and proposes a method, device, equipment and product for managing the display function of system devices.

[0004] To achieve the above object, the technical solution of the present invention is realized as follows: In a first aspect, the present invention discloses a method for managing the display function of system devices, including: Determine whether a graphics card is installed in the system device. If a graphics card is installed in the system device, load the graphics card driver corresponding to the graphics card; if no graphics card is installed in the system device, load the virtual display driver; After successfully loading the graphics card driver or the virtual display driver, start the desktop environment program of the system device; The desktop environment program of the system device starts the remote shared desktop service program, and the remote shared desktop service program shares the desktop display output of the graphics card driver or the desktop display output of the virtual display driver to the remote shared client.

[0005] In an embodiment of the present invention, determining whether a graphics card is installed in the system device includes: if there is one of the direct rendering device node or the frame buffer device node in the system device, a graphics card is installed in the system device; if neither the direct rendering device node nor the frame buffer device node exists in the system device, no graphics card is installed in the system device.

[0006] In an embodiment of the present invention, if no graphics card is installed in the system device, loading the virtual display driver includes: reading a preset configuration file, and if the virtual display function is not enabled in the configuration file, give up loading the virtual display driver.

[0007] In an embodiment of the present invention, use the access function to determine whether there is a direct rendering device node or a frame buffer device node in the system device.

[0008] In one embodiment of the present invention, the remote sharing client sets an IP address through the input of the remote sharing desktop service program, and establishes a network connection between the remote sharing client and the remote sharing desktop service program.

[0009] In one embodiment of the present invention, loading the virtual display driver includes: first installing the virtual display driver package, and then loading the virtual display driver.

[0010] In a second aspect, the present invention discloses a display function management device for a system device, and the device includes: A loading module, configured to determine whether a graphics card is installed in the system device. If a graphics card is installed in the system device, the graphics card driver corresponding to the graphics card is loaded; if no graphics card is installed in the system device, the virtual display driver is loaded; A start-up module, configured to start the system device desktop environment program after successfully loading the graphics card driver or the virtual display driver; A sharing module, configured to start the remote sharing desktop service program by the system device desktop environment program, and the remote sharing desktop service program shares the desktop display output of the graphics card driver or the desktop display output of the virtual display driver to the remote sharing client.

[0011] In a third aspect, the present invention discloses an electronic device, including: one or more processors; a storage device, configured to store one or more programs, wherein when the one or more programs are executed by the one or more processors, the one or more processors are caused to execute the above method.

[0012] In a fourth aspect, the present invention discloses a computer-readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, the above method is implemented.

[0013] In a fifth aspect, the present invention discloses a computer program product, including a computer program, and when the computer program is executed by a processor, the above method is implemented.

[0014] Compared with the prior art, the present invention has the following advantages: The present invention discloses a display function management method, device, device and product for a system device, including: determining whether a graphics card is installed; starting the system device desktop environment program after successfully loading the corresponding driver program; starting the remote sharing desktop service program and sharing the desktop display output to the remote sharing client; the present invention discloses a display function management method, device, device and product for a system device, which can directly implement the remote desktop function on a system device without a display function or on a system device with a default display device, and has the characteristics of reliable performance and wide application range. Description of the Drawings

[0015] The accompanying drawings, which form a part of the present invention, are used to provide a further understanding of the present invention. The schematic embodiments and descriptions thereof of the present invention are used to explain the present invention and do not constitute an improper limitation of the present invention.

[0016] In the accompanying drawings: Figure 1 It is a schematic diagram of the application scenario of a method for managing the display function of a system device according to an embodiment of the present invention; Figure 2 It is the first schematic diagram of a method for managing the display function of a system device according to an embodiment of the present invention; Figure 3 It is the second schematic diagram of a method for managing the display function of a system device according to an embodiment of the present invention; Figure 4 It is a schematic diagram of a device for managing the display function of a system device according to an embodiment of the present invention; Figure 5 It is a schematic diagram of an electronic device of a method for managing the display function of a system device according to an embodiment of the present invention. Detailed implementation manners

[0017] It should be noted that, without conflict, the embodiments in the present invention and the features in the embodiments may be combined with each other.

[0018] In the description of the present invention, it should be understood that the orientation or positional relationship indicated by the terms "center", "longitudinal", "transverse", "upper", "lower", "front", "rear", "left", "right", "vertical", "horizontal", "top", "bottom", "inner", "outer", etc. is based on the orientation or positional relationship shown in the accompanying drawings, and is only for the convenience of describing the present invention and simplifying the description, rather than indicating or implying that the device or element referred to must have a specific orientation, be constructed and operated in a specific orientation, and thus should not be construed as a limitation of the present invention.

[0019] In the description of the present invention, it should be noted that, unless otherwise clearly defined and limited, the terms "installed", "connected", "connected" should be understood in a broad sense. For example, it may be a fixed connection, a detachable connection, or an integral connection; it may be a mechanical connection or an electrical connection; it may be directly connected or indirectly connected through an intermediate medium, and it may be the communication inside two elements. For those of ordinary skill in the art, the specific meanings of the above terms in the present invention can be understood through specific situations.

[0020] In the description of the present invention, it should be further noted that the terms "first", "second", etc. are only used for descriptive purposes and cannot be construed as indicating or implying relative importance or implicitly specifying the quantity of the indicated technical features. Thus, features defined with "first", "second", etc. may explicitly or implicitly include one or more of such features. In the description of the present invention, unless otherwise specified, the meaning of "a plurality" is two or more.

[0021] The application scenarios of a display function management method, device, equipment, and product of a system device disclosed by the present invention are as Figure 1 shown. In the prior art, it is impossible to use a remote desktop environment on a server or an embedded device without a display device, which brings great inconvenience to the full use of the server or the embedded device without a display device, and affects the flexible use and deployment of the server or the embedded device without a display device. A display function management method, device, equipment, and product disclosed by the present invention includes: determining whether a graphics card is installed; after successfully loading the corresponding driver program, starting the desktop environment program of the system device; starting the remote shared desktop service program to share the desktop display output to the remote shared client; the present invention can automatically implement the remote desktop function directly on a system device without a display function or on a system device with a display device by default, and has the characteristics of reliable performance, good adaptability, and wide application range.

[0022] The present invention will be described in detail below with reference to the accompanying drawings and in conjunction with embodiments.

[0023] As Figures 2 to 3 shown, a display function management method of a system device includes: Step S201, determining whether a graphics card is installed in the system device. If a graphics card is installed in the system device, then loading the graphics card driver corresponding to the graphics card; if no graphics card is installed in the system device, then loading the virtual display driver. Exemplarily, by starting the display manager lightdm and starting the Xorg program, when the display manager lightdm starts the desktop environment, it will scan the configuration file 50-xserver-command.conf in the / usr / share / lightdm / lightdm.conf.d directory regarding how to start the Xorg program. The configuration file 50-xserver-command.conf describes how the display manager lightdm starts the Xorg program. The configuration file 50-xserver-command.conf represents that the Xorg service is started in the way of executing "X-core", where X is the encapsulation of the corresponding Xorg program startup.

[0024] In this embodiment, if a graphics card is installed in the system device, the Xorg program will load the corresponding DDX driver (DeviceDependentX, DDX). Step S202, after successfully loading the graphics card driver program or the virtual display driver program, start the desktop environment program of the system device. In this embodiment, loading the virtual display driver program includes: first installing the virtual display driver program package, and then loading the virtual display driver program.

[0025] Step S203, the desktop environment program of the system device starts the remote shared desktop service program, and the remote shared desktop service program shares the desktop display output of the graphics card driver program or the desktop display output of the virtual display driver program to the remote shared client.

[0026] Exemplarily, the desktop environment program of the system device is the ukui desktop environment of the Kylin system device, and the display manager lightdm will read the configuration file / usr / share / xsessions / ukui.desktop of the Kylin desktop environment to start the desktop environment.

[0027] The display manager lightdm starts the ukui-session program in Exec=ukui-session in ukui.deskop. The ukui-session program is a program set that contains a group of programs required for starting the desktop environment. The ukui-session program will start the corresponding components required for the ukui desktop environment in / etc / xdg / autostart according to the actual definition, and most of these components appear in the form of xxx.desktop.

[0028] Exemplarily, the remote shared desktop service program is the remote display desktop service program Vino, and the startup information of the remote display desktop service program Vino is in vino-server.desktop. This embodiment provides a method for implementing remote shared desktop service on a system device without a display function, which can meet the requirement that in some special scenarios, even without a display function or when the display driver cannot be normally loaded, the remote desktop function can still be used for remote login operations.

[0029] Based on the previous embodiment, in another embodiment of the present invention, as Figure 2As shown, in step S201, it is determined whether a graphics card is installed in the system device, including: if there is either a direct rendering device node or a frame buffer device node in the system device, then a graphics card is installed in the system device; if neither a direct rendering device node nor a frame buffer device node exists in the system device, then no graphics card is installed in the system device.

[0030] Exemplarily, during the startup process of the Xorg program, a function is added to determine whether a graphics card is installed in the system device. The direct rendering device node is represented as the node / dev / dri / *, and the frame buffer device node is represented as the node / dev / fb*. If neither the node / dev / dri / * nor the node / dev / fb* exists, then there is no graphics card device in the system device or the graphics card driver is not loaded properly.

[0031] The node / dev / dri / * is used to store the pixel data displayed on the monitor, and the node / dev / fb* is used to directly operate the video memory to achieve control of the screen.

[0032] Since not all display devices can support the display rendering of the corresponding DRI interface, it is necessary to simultaneously determine whether the node / dev / dri / * and the node / dev / fb* exist. And since multiple nodes may be visible if there are multiple graphics cards, for example, in the case of dual graphics cards, there are nodes / dev / fb0, / dev / fb1, / dev / dri / card0, and / dev / dri / card1. Use the access function to determine whether there is a direct rendering device node or a frame buffer device node in the system device.

[0033] Exemplarily, for the access function (" / dev / fb0", F_OK), if the return value is 0, it means the node exists; if it is non - zero, it means the node does not exist.

[0034] In the previous embodiment, as Figure 2 shown, step S201 also includes: reading a preset configuration file. If the virtual display function is not enabled in the configuration file, then give up loading the virtual display driver program.

[0035] Exemplarily, use the Xorg program to read the configuration file to see if the virtual display function is configured.

[0036] Further, if the virtual display function is configured, set XORGCONF through the system device standard function setenv in the Xorg program code. For example, setenv("XORGCONF"," / usr / share / X11 / custom / dummy.conf",1); that is, set the XORGCONF variable through setenv to load the configuration file / usr / share / X11 / custom / dummy.conf customized by the specific dummy driver. Here, dummy is the virtual display driver program. Further, the Xorg program will load dummy according to the Driver "dummy" node information in dummy.conf. To load dummy, the corresponding virtual display driver package xserver-xorg-video-dummy needs to be installed first. You can use sudo dpkg -i xserver-xorg-video-dummy to install the corresponding dummy. The Xorg program will search the corresponding / usr / lib / xorg / modules / drivers / directory to match the corresponding dummy_drv.so library to load the corresponding driver.

[0037] In the previous embodiment, the remote sharing client sets the IP address through the input remote sharing desktop service program to establish a network connection between the remote sharing client and the remote sharing desktop service program.

[0038] As Figure 4 shown, the present invention also discloses a display function management device for a system device, including: A loading module 401, configured to determine whether a graphics card is installed in the system device. If a graphics card is installed in the system device, load the graphics card driver corresponding to the graphics card; if no graphics card is installed in the system device, load the virtual display driver program. A starting module 402, configured to start the system device desktop environment program after successfully loading the graphics card driver program or the virtual display driver program. A sharing module 403, configured to start the remote sharing desktop service program by the system device desktop environment program, and the remote sharing desktop service program shares the desktop display output of the graphics card driver program or the desktop display output of the virtual display driver program to the remote sharing client.

[0039] The present invention also discloses an electronic device. As Figure 5 shown, a block diagram of an embodiment of an electronic device applicable to the display function management of the above system device is disclosed.

[0040] The electronic device 50 in this embodiment includes a processor 501, which can perform various appropriate actions and processes according to the program stored in the ROM 502 or the program loaded from the storage section 508 into the RAM 503. The processor 501 can include, for example, a general microprocessor, an instruction set processor, and / or a related chipset, and / or a dedicated microprocessor, etc. The processor 501 can also include on-board memory for caching purposes. The processor 501 can include a single processing unit or multiple processing units for performing different actions of the method flow according to the embodiments of the present invention.

[0041] In the RAM 503, various programs and data required for the operation of the electronic device 50 are stored. The processor 501, the ROM 502, and the RAM 503 are connected to each other via a bus 504, and the processor 501 performs various operations of the method flow according to the embodiments of the present invention by executing the programs in the ROM 502 and / or the RAM 503. It should be noted that the program can also be stored in one or more memories other than the ROM 502 and the RAM 503, and the processor 501 can also perform various operations of the method flow according to the embodiments of the present invention by executing the programs stored in one or more memories.

[0042] According to an embodiment of the present invention, the electronic device 50 may further include an I / O interface 505, and the I / O interface 505 is also connected to the bus 504. The electronic device 50 may further include one or more of the following components connected to the I / O interface 505: an input section 506 including a keyboard, a mouse, etc.; an output section 507 including a cathode ray tube, a liquid crystal display, a speaker, etc.; a storage section 508 including a hard disk, etc.; and a communication section 509 including a network interface card such as a LAN card, a modem, etc. The communication section 509 performs communication processing via a network such as the Internet. A drive 5010 is also connected to the I / O interface 505 as needed. A removable medium 5011, such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, etc., is installed on the drive 5010 as needed so that a computer program read from it can be installed into the storage section 508 as needed.

[0043] The present invention also provides a computer-readable storage medium.

[0044] The computer-readable storage medium may be included in the electronic device / device system device described in the above embodiment; or it may exist separately and not be assembled into the electronic device / device. The above computer-readable storage medium carries one or more programs, and when the one or more programs are executed, the method according to the embodiments of the present invention is implemented.

[0045] According to an embodiment of the present invention, the computer-readable storage medium may be a non-volatile computer-readable storage medium. For example, it may include but is not limited to: portable computer disks, hard disks, random access memory RAM, read-only memory ROM, erasable programmable read-only memory EPROM or flash memory, portable compact disk read-only memory CDROM, optical storage devices, magnetic storage devices, or any suitable combination of the above. In the present invention, the computer-readable storage medium may be any tangible medium that contains or stores a program, and this program can be used by or in conjunction with an instruction execution system, device, or apparatus.

[0046] An embodiment of the present invention further includes a computer program product.

[0047] This computer program product includes a computer program, and this computer program contains program code for executing the method provided by the embodiment of the present invention. When the computer program product runs on an electronic device, this program code is used to cause the electronic device to implement the method provided by the embodiment of the present invention.

[0048] In one embodiment, this computer program may rely on tangible storage media such as optical storage devices, magnetic storage devices, etc. In another embodiment, this computer program may also be transmitted and distributed in the form of a signal on a network medium. The program code contained in this computer program can be transmitted using any suitable network medium, including but not limited to: wireless, wired, etc., or any suitable combination of the above.

[0049] According to an embodiment of the present invention, the program code for executing the computer program provided by the embodiment of the present invention can be written in any combination of one or more programming languages. Specifically, these computing programs can be implemented using high-level procedures and / or object-oriented programming languages. Programming languages include but are not limited to, for example, Java, C++, python, C language, or similar programming languages. The program code can be executed entirely on the user's computing device, partially on the user's device, partially on a remote computing device, or entirely on a remote computing device or server. In the case of a remote computing device, the remote computing device can be connected to the user's computing device through any type of network, including a local area network or a wide area network, or can be connected to an external computing device.

[0050] The flowcharts and block diagrams in the accompanying drawings illustrate the possible architectures, functions, and operations of system devices, methods, and computer program products according to various embodiments of the present invention. In this regard, each block in the flowchart or block diagram may represent a module, a segment of a program, or a portion of code that contains one or more executable instructions for implementing a specified logical function. It should also be noted that, in some alternative implementations, the functions noted in the blocks may occur in a different order than that noted in the accompanying drawings. For example, two consecutive blocks shown may actually be executed substantially in parallel, or they may sometimes be executed in the reverse order, depending on the functions involved. It should also be noted that each block in the block diagram or flowchart, and combinations of blocks in the block diagram or flowchart, can be implemented by a dedicated hardware-based system device that performs the specified functions or operations, or can be implemented by a combination of dedicated hardware and computer instructions. Those skilled in the art will understand that the features recited in the various embodiments and / or claims of the present invention can be combined and / or combined in various ways, even if such combinations or combinations are not explicitly recited in the present invention. In particular, without departing from the spirit and teachings of the present invention, the features recited in the various embodiments and / or claims of the present invention can be combined and / or combined in various ways. All such combinations and / or combinations fall within the scope of the present invention.

[0051] The embodiments of the present invention have been described above. However, these embodiments are for illustrative purposes only and are not intended to limit the scope of the present invention. Although the embodiments have been described separately above, this does not mean that the measures in the respective embodiments cannot be used advantageously in combination. The scope of the present invention is defined by the appended claims and their equivalents, and without departing from the scope of the present invention, those skilled in the art can make various substitutions and modifications, and all such substitutions and modifications should fall within the scope of the present invention.

Claims

1. A method for managing the display function of a system device, characterized in that, Including: Determine whether a graphics card is installed in the system device. If a graphics card is installed in the system device, load the graphics driver corresponding to the graphics card; If no graphics card is installed in the system device, load the virtual display driver; After successfully loading the graphics driver or the virtual display driver, start the desktop environment program of the system device; The desktop environment program of the system device starts the remote shared desktop service program, and the remote shared desktop service program shares the desktop display output of the graphics driver or the desktop display output of the virtual display driver to the remote shared client.

2. The display function management method of a system device according to claim 1, wherein, The determination of whether a graphics card is installed in the system device includes: if either a direct rendering device node or a frame buffer device node exists in the system device, then a graphics card is installed in the system device; if neither a direct rendering device node nor a frame buffer device node exists in the system device, then no graphics card is installed in the system device.

3. A method for managing the display function of a system device according to claim 1, characterized in that, The step of, if no graphics card is installed in the system device, loading the virtual display driver includes: read a preset configuration file. If the virtual display function is not enabled in the configuration file, then abandon loading the virtual display driver.

4. A method for managing the display function of a system device according to claim 2, characterized in that, The method further includes: using the access function to determine whether the direct rendering device node or the frame buffer device node exists in the system device.

5. A method for managing the display function of a system device according to claim 1, characterized in that, The method further includes: the remote shared client sets an IP address through the remote shared desktop service program to establish a network connection between the remote shared client and the remote shared desktop service program.

6. The display function management method of a system device according to claim 1, characterized in that, The loading of the virtual display driver includes: first install the virtual display driver package, and then load the virtual display driver.

7. A display function management device for a system device, characterized in that, The apparatus includes: A loading module, configured to determine whether a graphics card is installed in the system device. If a graphics card is installed in the system device, load the graphics driver corresponding to the graphics card; If no graphics card is installed in the system device, load the virtual display driver; A start module, configured to start the desktop environment program of the system device after successfully loading the graphics driver or the virtual display driver; A sharing module, configured to the desktop environment program of the system device starts the remote shared desktop service program, and the remote shared desktop service program shares the desktop display output of the graphics driver or the desktop display output of the virtual display driver to the remote shared client.

8. An electronic device, characterized in that, Including: One or more processors; A storage device, configured to store one or more programs. Wherein, when the one or more programs are executed by the one or more processors, the one or more processors execute the method according to any one of claims 1 to 6.

9. A computer-readable storage medium having a computer program stored thereon, characterized in that , the computer program, when executed by a processor, implements the method according to any one of claims 1 to 6.

10. A computer program product, comprising a computer program, characterized in that, , the computer program, when executed by a processor, implements the method according to any one of claims 1 to 6.

Citation Information

Patent Citations

  • Sharing method and system of remote desktop

    CN103780621A

  • Cloud desktop display method and system

    CN114327318A

  • Cross-operating-environment display output sharing method based on heterogeneous rendering

    CN114741044A

  • Image processing method and device

    CN116820783A

  • Method and system for improving remote operation experience of cloud computer

    CN117519887A