Method, system and medium for optimizing remote desktop display backend under wayland environment

By initializing the virtual desktop when no physical monitor is detected in the Wayland environment, the problem of high backend resource consumption for remote desktop display is solved, achieving efficient and flexible remote desktop display and reducing system resource consumption and CPU/GPU load.

CN120704787BActive Publication Date: 2026-08-25KYLIN CORP
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
CN202510826144.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2025-06-19
Publication Date
2026-08-25
Estimated Expiration
2045-06-19

AI Technical Summary

Technical Problem

In the Wayland environment, the remote desktop display backend relies on the local physical display, resulting in high system resource consumption, heavy CPU and GPU load, and affecting display efficiency.

Method used

By detecting whether the remote desktop server is connected to a physical monitor, if it is not connected, the virtual desktop is initialized, a virtual output port and a virtual Wayland desktop resource are created, and the rendering result data is sent to the remote desktop client for display, thus enabling remote desktop display in the absence of a physical monitor.

Benefits of technology

It reduces system resource consumption, lowers the synthesizer's system utilization and CPU/GPU load, improves display efficiency, and enhances the flexibility of remote desktop display and its ability to operate without relying on third-party drivers.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120704787B_ABST
    Figure CN120704787B_ABST
Patent Text Reader

Abstract

The application discloses a kind of optimization method, system and medium of remote desktop display back end under wayland environment, method includes the following steps: starting wayland synthesizer, and whether remote desktop server is connected with physical display is detected;If current physical display is not detected to be connected, then virtual desktop initialization is carried out;Remote desktop access request is received, and the rendering result data of virtual wayland desktop resource is handed over to remote desktop client display;Request of modifying desktop display attribute is received, and desktop state information is updated according to the desktop display attribute needed to be modified, and the updated information and re-rendering result data are sent to remote desktop client.The method realizes that desktop rendering can be completed under the condition that there is no physical display in local, ensures that corresponding display output content can be obtained in remote desktop scene, realizes remote desktop function, and improves sending display efficiency.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of remote desktop display backend optimization technology, specifically to an optimization method, system, and medium for a remote desktop display backend in a Wayland environment. Background Technology

[0002] On Linux platforms, Wayland can replace the X Window System as a graphics display system. In a Wayland environment, the remote desktop server is a client of the Wayland compositor and cannot directly obtain screen data; screen data transfer is achieved through shared frame buffers. However, screen data transfer requires the computer to be connected to a physical monitor, i.e., there must be actual display output, for the remote desktop server to obtain the corresponding screen data for sharing. Therefore, the most basic tasks of implementing a remote desktop include: obtaining screen display data from the compositor and sending remote client mouse and keyboard events to the compositor.

[0003] However, in the existing Wayland compositor rendering framework, each screen corresponds to one output (a channel or interface connected to the display device). The compositor is responsible for compositing the graphics data from various client applications onto one or more outputs for display. Therefore, in remote mode, at least one local output is required, and the output images of the local and remote screens need to be consistent. However, the local output consumes a lot of system resources, resulting in high system utilization of the compositor and high CPU and GPU load, which in turn leads to poor display efficiency of the compositor.

[0004] For example, Chinese patent application CN112527219A discloses a graphics compositing method, apparatus, and system based on the Wayland protocol. The method includes: acquiring kernel input events; calculating window focus based on the kernel input events; and sending the kernel input events to the graphics application client corresponding to the window focus via an input management channel; receiving window management requests from at least one graphics application client via a window management channel; receiving graphics buffers drawn by at least one graphics application client via a graphics management channel; applying the window management requests from at least one graphics application client to the graphics buffers drawn by at least one graphics application client to obtain a composited graphics window; and outputting the composited graphics window to at least one display device. This scheme displays the composited graphics window on a local display device based on the Wayland protocol, which requires at least one local output port. Therefore, the compositor's system utilization and the CPU and GPU load are high, thus affecting the compositor's display efficiency.

[0005] Some practitioners have proposed using third-party drivers to build virtual screens. When a remote operation request is received from a client, the virtual screen is sent to the client, allowing the client to operate the computing device based on the virtual screen. While this approach allows remote clients to operate the computing device even without a connected display device, it relies on third-party drivers for building and configuring the virtual screen. Furthermore, each modification requires submission to the third-party driver for review, resulting in poor actual display performance and flexibility. Summary of the Invention

[0006] The technical problem to be solved by this invention is to provide an optimization method, system and medium for remote desktop display backend in the Wayland environment, which can realize remote desktop display function without relying on the remote desktop display backend to connect to a physical display, reduce system resource consumption, reduce the system occupancy rate of the synthesizer and the load of CPU and GPU, and improve the display efficiency of the synthesizer.

[0007] To solve the above-mentioned technical problems, the technical solution adopted by the present invention is as follows: An optimization method for remote desktop display backend in a Wayland environment includes the following steps: Step S01: Start the Wayland synthesizer and check if the remote desktop server is connected to a physical monitor; Step S02: If no physical monitor is currently detected, the preset output port configuration file in the remote desktop server is read, and the virtual desktop is initialized according to the configuration information of the read output port configuration file. The virtual desktop initialization includes creating a virtual output port and establishing virtual Wayland desktop resources. Step S03: Receive a remote desktop access request. When the remote desktop access request is received and no physical monitor is currently detected, send the rendering result data of the virtual Wayland desktop resources and the mode information of the virtual output port to the remote desktop client for display. Step S04. Receive a request to modify desktop display properties. Upon receiving the request to modify desktop display properties, and if no physical monitor is currently detected, update the desktop status information according to the desktop display properties to be modified. The desktop status information includes Wayland display backend information, virtual output port mode information, and output port configuration file information. Re-render the virtual Wayland desktop and send the updated information and re-rendered result data to the remote desktop client for display update.

[0008] Optionally, in step S01, one or more of the following hardware and software backends are used to detect whether the remote desktop server is connected to a physical monitor.

[0009] Optionally, in step S02, creating a virtual output port and establishing a virtual Wayland desktop resource includes: Step S201: Obtain the virtual output port name information and display attribute information from the output port configuration file, and establish display pipeline resources. The display pipeline resources include one or more of EDID, PLANE, CRTC, ENCODER, and CONNECTOR. Step S202: Build the software display framework; Step S203: Create a virtual Wayland desktop background and its associated module components. The module components include one or more of the following: bottom bar, background, icons, and control elements. Arrange the module components according to the preset resolution information. Step S204: Initialize the attributes of the overall area and available areas of the virtual Wayland desktop; Step S205: Render and composite the virtual Wayland desktop content.

[0010] Optionally, the desktop display attributes include desktop resolution and / or scaling.

[0011] Optionally, in step S04, when the request to modify the desktop display attributes is received and no physical monitor is detected connected, after updating the desktop status information according to the desktop display attributes to be modified, the method further includes: sending desktop status update information to the Wayland application via the Wayland protocol to notify the Wayland application to update the display range and content.

[0012] Optionally, after step S04, the process may further include real-time monitoring of requests to modify desktop display properties. When another request to modify desktop display properties is received, the process proceeds to step S04 to modify the desktop display properties in real time.

[0013] Optionally, in step S01, if a physical monitor is detected to be connected, the mode information of the connected monitor is read, the desktop is initialized according to the optimal mode, and the read content of the monitor and the mode information are sent to the remote desktop client for display.

[0014] Optionally, when the request to modify the desktop display properties is received and a physical monitor is detected to be connected, the physical monitor desktop is directly reconfigured and the output port configuration file is updated. The desktop display content and display mode are then sent to the remote desktop client for display updates.

[0015] Furthermore, the present invention also provides an optimization system for a remote desktop display backend in a Wayland environment, comprising a microprocessor and a memory interconnected thereto, wherein the microprocessor is programmed or configured to execute the optimization method for the remote desktop display backend in a Wayland environment.

[0016] Furthermore, the present invention also provides a computer-readable storage medium storing a computer program or instructions that are programmed or configured to execute, via a processor, an optimized method for a remote desktop display backend in the Wayland environment.

[0017] Compared with the prior art, the present invention has the following main advantages: 1. After starting the Wayland compositor, this invention detects whether the remote desktop server is connected to a physical monitor. If no physical monitor is detected, the invention reads the preset output port configuration file in the remote desktop server and initializes the virtual desktop based on the configuration information in the output port configuration file to create a virtual output port and virtual Wayland desktop resources. When a remote desktop access request is received, the invention sends the rendering result data of the virtual Wayland desktop resources and the mode information of the virtual output port to the remote desktop client for display. This enables desktop rendering even when there is no physical monitor on the local machine, ensuring that the corresponding display output content can be obtained without relying on a physical monitor connection in the remote desktop scenario, thus realizing the remote desktop display function.

[0018] 2. This invention can realize remote desktop functionality without relying on a remote desktop server to connect to a physical display, which can save the system resources required by the physical display, reduce the system occupancy of the synthesizer and the load on the CPU and GPU, thereby improving the display efficiency of the synthesizer.

[0019] 3. Even when the remote desktop server is not connected to a physical monitor, this invention can still receive requests to modify desktop display attributes, update desktop status information according to the required modifications, and fully utilize the convenient and flexible modification and configuration of the virtual Wayland desktop to modify desktop display attributes. It is not limited by the physical monitor mode, does not require disconnection and reconnection during the modification process, and does not rely on third-party drivers, which can greatly improve the flexibility of remote desktop display. Attached Figure Description

[0020] Figure 1 This is a schematic diagram illustrating the implementation process of the optimization method for the remote desktop display backend in the Wayland environment according to an embodiment of the present invention.

[0021] Figure 2This is a detailed execution flow diagram illustrating the optimization of the remote desktop display backend in the Wayland environment in a specific application embodiment of the present invention.

[0022] Figure 3 This is a schematic diagram illustrating the principle of remote desktop virtual output of the Wayland synthesizer in an embodiment of the present invention. Detailed Implementation

[0023] To facilitate understanding, the technical terms that may be involved in the embodiments of the present invention will be introduced first.

[0024] Wayland: Wayland is a communication protocol and library for building display servers and client applications, designed to replace the X Window System as the graphics display system on Linux and other operating systems.

[0025] The Wayland Compositor is the Wayland server that interacts with Wayland clients and also has window composition and management functions.

[0026] Remote Desktop Protocol (RDP): is a multi-channel protocol that allows a user (on the computer where the user is located, called the client or "local computer") to connect to a computer that provides remote terminal services (called the server or "remote computer").

[0027] Virtual Network Computing (VNC) is a cross-platform remote desktop access technology that uses a client-server architecture. The server runs VNC service software, which is responsible for capturing image information of the local desktop and sending it to the client; the client software is responsible for receiving and displaying this image information, while sending the user's mouse and keyboard input back to the server.

[0028] The technical solution of the present invention will now be described in further detail with reference to the accompanying drawings.

[0029] like Figure 1 As shown in this embodiment, the optimization method for the remote desktop display backend in the Wayland environment includes the following steps: Step S01: Start the Wayland synthesizer and check if the remote desktop server is connected to a physical monitor; Step S02: If no physical monitor is currently detected, the preset output port configuration file in the remote desktop server is read, and the virtual desktop is initialized according to the configuration information of the read output port configuration file. The virtual desktop initialization includes creating a virtual output port and establishing a virtual Wayland desktop resource. Step S03: Receive a remote desktop access request. When a remote desktop access request is received and no physical monitor is currently detected, send the rendering result data of the virtual Wayland desktop resources and the mode information of the virtual output port to the remote desktop client for display. Step S04. Receive a request to modify desktop display properties. When the request to modify desktop display properties is received and no physical monitor is currently detected, update the desktop status information according to the desktop display properties to be modified. The desktop status information includes Wayland display backend information, virtual output port mode information, and output port configuration file information. Re-render the virtual Wayland desktop and send the updated information and re-rendered result data to the remote desktop client for display update.

[0030] This method, upon starting the Wayland compositor, checks whether a physical monitor is connected to the remote desktop server. If no physical monitor is detected, it reads a preset output port configuration file from the remote desktop server and initializes the virtual desktop based on the configuration information in the file. This creates virtual output ports and virtual Wayland desktop resources. Upon receiving a remote desktop access request, it sends the rendering result data of the virtual Wayland desktop resources and the mode information of the virtual output port to the remote desktop client for display. This enables desktop rendering even without a physical monitor on the local machine, ensuring that the remote desktop can obtain the corresponding display output content without relying on a physical monitor connection, thus realizing the remote desktop display function. Furthermore, since the remote desktop server achieves remote desktop functionality without relying on a physical monitor connection, it saves the system resources required for a physical monitor, reducing the compositor's system occupancy and CPU / GPU load, thereby improving the compositor's display efficiency. Furthermore, even when the remote desktop server is not connected to a physical monitor, it can still receive requests to modify desktop display properties. It updates the desktop status information according to the required desktop display properties, making full use of the virtual Wayland desktop to conveniently and flexibly modify and configure desktop display properties. It is not limited by the physical monitor mode, and there is no need to disconnect and reconnect during the modification process, nor does it rely on third-party drivers, which can greatly improve the flexibility of remote desktop display.

[0031] As an optional implementation, in step S01, software and hardware backends such as fbdev (Frame Buffer Device), drm (Direct Rendering Manager), X11 (X Window System Version 11), or Wayland can be used to detect whether the remote desktop server is connected to a physical monitor. The specific choice can be made according to actual needs.

[0032] As an optional implementation, step S02, creating a virtual output port and establishing a virtual Wayland desktop resource, includes: Step S201: Obtain the virtual output port name information and display attribute information from the output port configuration file, and establish display pipeline resources. Specifically, the configuration file can be a preset file or a file modified and saved by the user who last logged in remotely. Display pipeline resources can include one or more of EDID (Extended Display Identification Data), PLANE (Layer Plane), CRTC (Cathode Ray Tube Controller), ENCODER (Encoder), and CONNECTOR (Connector), which can be selected according to actual needs; Step S202: Build the software display framework. Since the software display framework does not need to interact with the actual physical display, it will not incur additional resource consumption or waiting time due to interaction with the physical display.

[0033] Step S203: Create a virtual Wayland desktop background and its associated module components. The module components include one or more of the following: bottom bar, background, icons, and control elements. The specific components can be selected according to actual needs, and the module components are arranged according to the resolution information in the output port configuration file. Step S204: Initialize the attributes of the overall area and available areas of the virtual Wayland desktop; Step S205: Render and composite the virtual Wayland desktop content.

[0034] After completing the above configuration, you can prepare to use the remote desktop protocol to transmit the display content data to the client over the network for display.

[0035] As an optional implementation, desktop display attributes may include desktop resolution, scaling ratio, etc. By sending a request to modify attributes such as desktop resolution and scaling ratio, the desktop resolution, scaling ratio, etc. can be modified in real time.

[0036] As an optional implementation, in step S04, when a request to modify the desktop display attributes is received and no physical monitor is detected connected, after updating the desktop status information according to the desktop display attributes to be modified, the method further includes: sending desktop status update information to the Wayland application via the Wayland protocol to notify the Wayland application to update the display range and content.

[0037] As an optional implementation, step S04 further includes real-time monitoring of requests to modify desktop display attributes. When another request to modify desktop display attributes is received, the process proceeds to step S04 to modify the desktop display attributes in real time. This helps ensure that users can modify the remote desktop server desktop in real time from the remote client interface, with a fast response and without needing to disconnect and reconnect to the remote desktop.

[0038] For example, when a request to modify the desktop resolution or scaling is received from a remote desktop, the request is first processed, the Wayland display backend is updated, the virtual output port mode is updated, and the system configuration file is updated. Then, desktop status update information is sent to the Wayland application via the Wayland protocol, notifying the Wayland application to update the display range and content, re-rendering the virtual Wayland desktop, and sending the rendering result data to the remote desktop client via the remote desktop transmission protocol. When the display attributes need to be modified again, the above steps are repeated. Thus, the user can quickly modify any resolution on the remote client interface, similar to dragging the edge of a window, and the changes will take effect in real time, without having to disconnect and reconnect to the remote desktop, submit configurations to the kernel via the KMS interface and wait for kernel confirmation, or communicate with third parties to complete complex operations such as virtual desktop construction and display mode configuration.

[0039] As an optional implementation, in step S01, if a physical display is detected to be connected, the mode information of the connected display is read, the desktop is initialized according to the optimal mode, and the read content of the display and the mode information are sent to the remote desktop client for display. This can be applied to the case where there is a local physical display output to realize the remote desktop display function.

[0040] As an optional implementation, when a request to modify desktop display properties is received and a physical monitor is detected, the physical monitor desktop is directly reconfigured and the output port configuration file is updated. The desktop display content and display mode are then sent to the remote desktop client for display updates. In other words, if a local physical display output is available, real-time modification of desktop display properties can be achieved by directly reconfiguring the physical monitor desktop, updating the output port configuration file, and then sending the desktop display content and display mode to the remote desktop client.

[0041] As an optional implementation, when a request to modify desktop display properties is received and a physical monitor is detected to be connected, an attempt is made to update the display mode of the physical monitor. First, the hardware configuration of the physical monitor is checked. If the physical monitor supports the modified desktop display settings, the physical monitor desktop is reconfigured and the output port configuration file is updated. The desktop display content and display mode are then sent to the remote desktop client for display update. Otherwise, the original display mode of the physical monitor is restored, the display mode is not changed, and the user is notified that the modification of desktop display properties failed, so that the user can make timely adjustments.

[0042] This embodiment, through the above method, can accommodate both scenarios with and without physical display output in remote desktop environments. If no physical display output is detected, the corresponding display control process is triggered, and the remote desktop display function is realized by creating a virtual output port and virtual Wayland desktop resources. Simultaneously, it can receive desktop attribute modification requests from the remote desktop, such as requests to modify desktop resolution or scaling, and modify desktop attributes in real time. If physical display output is detected, the corresponding display control process is triggered, directly reading the mode information of the connected monitor and controlling the remote desktop client to display according to the optimal mode. Furthermore, desktop attributes can be modified in real time by directly reconfiguring the physical monitor desktop and updating the output port configuration file. This allows for flexible application in various scenarios, ensuring continuous and stable output from the remote desktop client.

[0043] like Figure 2 As shown in the detailed steps of optimizing the remote desktop display backend in the Wayland environment using the method of the present invention in a specific application embodiment, are as follows: Step 1: Start the Wayland synthesizer and detect the output port through software and hardware backends such as fbdev, drm, X11, or Wayland; if no output port is detected, proceed to step 2, otherwise proceed to step 3. Step 2: Initiate the display control process without physical display output; Step 2.1: Read the configuration file information saved by the system, initialize the Wayland display backend, create a virtual output port, and establish a virtual Wayland desktop resource; Step 2.2: Process the remote desktop access request, and send the rendering result data of the virtual Wayland desktop and the virtual output port mode information to the remote desktop client through the remote desktop transmission protocol for display by the remote desktop client; Step 2.3: Process the currently received remote desktop request to modify desktop resolution or scaling, update the Wayland display backend, update the virtual output port mode, and update the system configuration file; Step 2.4: Send desktop status update information to the Wayland application via the Wayland protocol to notify the Wayland application to update the display range and content; Step 2.5: Re-render the virtual Wayland desktop; send the rendered data to the remote desktop client via the remote desktop transfer protocol, so that the remote user can obtain the latest desktop in real time; Step 2.6: When a new desktop property modification request is received, repeat steps 2.4-2.6 to continue modifying display properties as needed; Step 3: Start the display control process with physical display output; Step 3.1: Read the mode information of the connected monitor, initialize the desktop according to the optimal mode, and then send the read monitor content and mode information to the remote desktop client for display; Step 3.2: Process the received request to modify desktop display properties, directly reconfigure the physical monitor desktop and update the output port configuration file, and send the desktop display content and display mode to the remote desktop client for display update; Step 3.3: When a request to modify desktop display properties is received, an attempt is made to update the display mode of the physical monitor. First, the hardware configuration of the physical monitor is checked. If the physical monitor supports the modified desktop display settings, the physical monitor desktop is reconfigured and the output port configuration file is updated. The desktop display content and display mode are then sent to the remote desktop client for display update. Otherwise, the original display mode of the physical monitor is restored, no change to the display mode is made, and the user is notified that the modification of desktop display properties failed, so that the user can make timely adjustments.

[0044] like Figure 3 As shown, the remote desktop server accelerates the rendering and compositing of content from different application layers on the physical host, eliminating the need to submit the display content to the physical monitor for display or wait for the physical output's flip signal. The remote desktop server sends desktop data to the remote desktop client for display via RDP or VNC. The remote desktop client does not need to perform graphics rendering and compositing through a graphics processing chip. Since the remote desktop client does not need to perform graphics rendering locally but instead obtains the composited display from the server over the network and submits it directly, only basic display output hardware modules are required. This reduces the processing objects of the remote desktop server from two objects (local output and remote output) to one, alleviating the display synchronization pressure on the remote desktop server and reducing the consumption of software and hardware resources.

[0045] In addition, this embodiment also provides an optimization system for a remote desktop display backend in a Wayland environment, including a microprocessor and a memory interconnected, wherein the microprocessor is programmed or configured to execute an optimization method for a remote desktop display backend in a Wayland environment.

[0046] In addition, this embodiment also provides a computer-readable storage medium storing a computer program or instructions that are programmed or configured to execute an optimized method for a remote desktop display backend in a Wayland environment via a processor.

[0047] Those skilled in the art will understand that the technical solutions provided by the embodiments of this application may be in the form of a method, system, or computer program product. Therefore, this application may take the form of a completely hardware embodiment, a completely software embodiment, or an embodiment combining software and hardware aspects. Furthermore, this application may take the form of a computer program product embodied on one or more computer-readable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code. This application is described with reference to flowchart illustrations and / or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of this application. It should be understood that each block of the flowchart illustrations and / or block diagrams, and combinations of blocks in the flowchart illustrations and / or block diagrams, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, special-purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create an implementation for the process. Figure 1 One or more processes and / or boxes Figure 1 The computer program instructions may also be stored in a computer-readable storage medium that can direct a computer or other programmable data processing device to function in a particular manner, such that the instructions stored in the computer-readable storage medium produce an article of manufacture including instruction means, which are implemented in a process. Figure 1 One or more processes and / or boxes Figure 1 The functions specified in one or more boxes. These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer-implemented process, thereby providing instructions that execute on the computer or other programmable apparatus for implementing the process. Figure 1 One or more processes and / or boxes Figure 1 The steps of the function specified in one or more boxes.

[0048] The above description is merely a preferred embodiment of the present invention. The scope of protection of the present invention is not limited to the above embodiments. All technical solutions falling within the scope of the present invention's concept are within the scope of protection of the present invention. It should be noted that for those skilled in the art, any improvements and modifications made without departing from the principles of the present invention should also be considered within the scope of protection of the present invention.

Claims

1. An optimization method for a remote desktop display backend in a Wayland environment, characterized in that, Includes the following steps: Step S01: Start the Wayland synthesizer and check if the remote desktop server is connected to a physical monitor; Step S02: If no physical monitor is currently detected, the preset output port configuration file in the remote desktop server is read, and the virtual desktop is initialized according to the configuration information of the read output port configuration file. The virtual desktop initialization includes creating a virtual output port and establishing virtual Wayland desktop resources. Step S03: Receive a remote desktop access request. When the remote desktop access request is received and no physical monitor is currently detected, send the rendering result data of the virtual Wayland desktop resources and the mode information of the virtual output port to the remote desktop client for display. Step S04. Receive a request to modify desktop display properties. Upon receiving the request to modify desktop display properties, and if no physical monitor is currently connected, update the desktop status information according to the desktop display properties to be modified. The desktop status information includes Wayland display backend information, virtual output port mode information, and output port configuration file information. Re-render the virtual Wayland desktop and send the updated information and re-rendered result data to the remote desktop client for display update.

2. The optimization method for the remote desktop display backend in the Wayland environment according to claim 1, characterized in that, In step S01, one or more of the following hardware and software backends are used to detect whether the remote desktop server is connected to a physical monitor: fbdev, drm, X11, or Wayland.

3. The optimization method for the remote desktop display backend in the Wayland environment according to claim 1, characterized in that, In step S02, creating a virtual output port and establishing a virtual Wayland desktop resource includes: Step S201: Obtain the virtual output port name information and display attribute information from the output port configuration file, and establish display pipeline resources. The display pipeline resources include one or more of EDID, PLANE, CRTC, ENCODER, and CONNECTOR. Step S202: Build the software display framework; Step S203: Create a virtual Wayland desktop background and its associated module components. The module components include one or more of the following: bottom bar, background, icons, and control elements. Arrange the module components according to preset resolution information. Step S204: Initialize the attributes of the overall area and available areas of the virtual Wayland desktop; Step S205: Render and composite the virtual Wayland desktop content.

4. The optimization method for the remote desktop display backend in the Wayland environment according to claim 1, characterized in that, The desktop display attributes include desktop resolution and / or scaling.

5. The optimization method for the remote desktop display backend in the Wayland environment according to claim 1, characterized in that, In step S04, when the request to modify the desktop display attributes is received and no physical monitor is detected connected, after updating the desktop status information according to the desktop display attributes to be modified, the method further includes: sending desktop status update information to the Wayland application via the Wayland protocol to notify the Wayland application to update the display range and content.

6. The optimization method for the remote desktop display backend in the Wayland environment according to any one of claims 1 to 5, characterized in that, Step S04 is followed by real-time monitoring of requests to modify desktop display properties. When another request to modify desktop display properties is received, the process proceeds to step S04 to modify the desktop display properties in real time.

7. The optimization method for the remote desktop display backend in the Wayland environment according to any one of claims 1 to 5, characterized in that, In step S01, if a physical monitor is detected to be connected, the mode information of the connected monitor is read, the desktop is initialized according to the optimal mode, and the read monitor content and mode information are sent to the remote desktop client for display.

8. The optimization method for the remote desktop display backend in the Wayland environment according to any one of claims 1 to 5, characterized in that, When a request to modify desktop display properties is received, and a physical monitor is detected to be connected, the physical monitor desktop is directly reconfigured and the output port configuration file is updated. The desktop display content and display mode are then sent to the remote desktop client for display updates.

9. An optimized system for a remote desktop display backend in a Wayland environment, comprising a microprocessor and a memory interconnected, characterized in that, The microprocessor is programmed or configured to execute the optimization method for the remote desktop display backend in the Wayland environment as described in any one of claims 1 to 8.

10. A computer-readable storage medium storing a computer program or instructions, characterized in that, The computer program or instructions are programmed or configured to execute, via a processor, the optimized method for the remote desktop display backend in the Wayland environment as described in any one of claims 1 to 8.

Citation Information

Patent Citations

  • Graph synthesis method, device and system based on wayland protocol

    CN112527219A

  • Implementation method for remote desktop to obtain hardware cursor in wayland environment

    CN116560532A

  • Application rendering method and system and electronic equipment

    CN117917682A