Method and system for optimizing remote desktop display rear end in wayland environment and medium
By detecting the physical display connection status in the Wayland environment and initializing and displaying the virtual desktop, the problem of high resource consumption of the remote desktop display backend is solved, and efficient remote desktop display without a physical display and flexible display property modification are achieved.
Patent Information
- Application Number
- CN202510826144.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-06-19
- Publication Date
- 2025-09-26
- Estimated Expiration
- 2045-06-19
AI Technical Summary
In the Wayland environment, the remote desktop display backend needs to rely on the local physical display, resulting in high system resource consumption, heavy CPU and GPU load, and affecting display efficiency.
By detecting whether the remote desktop server is connected to a physical display, if not, 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, remote desktop display is achieved without a physical display.
It reduces system resource consumption, lowers the system occupancy rate and CPU/GPU load of the compositor, improves display efficiency, and enables flexible modification of desktop display properties even without a physical monitor.
Smart Images

Figure CN120704787A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of remote desktop display backend optimization, and in particular to a method, system and medium for optimizing a remote desktop display backend in a Wayland environment. Background Art
[0002] On the Linux platform, 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 access screen data. Screen data is transferred via a shared frame buffer. However, screen data transfer requires that the computer be connected to a physical monitor, that is, that there is actual display output. Only then can the remote desktop server obtain the corresponding screen data 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 an output (a channel or interface connected to a 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 on the local and remote screens must be consistent. Local output consumes a large amount of system resources, resulting in high compositor system utilization, CPU and GPU load, and poor compositor display efficiency.
[0004] For example, Chinese patent application CN112527219A discloses a graphics synthesis method, device, and system based on the Wayland protocol. The method comprises: obtaining 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 sent by at least one graphics application client via the window management channel; receiving graphics buffers drawn by at least one graphics application client via the graphics management channel, applying the graphics buffers drawn by at least one graphics application client to the window management request sent by at least one graphics application client to obtain a synthesized graphics window; and outputting the synthesized graphics window to at least one display device. This solution, which displays the synthesized graphics window via a local display device based on the Wayland protocol, relies on at least one local output port. As a result, the system occupancy rate of the synthesizer, as well as the CPU and GPU load, are high, which in turn affects the display efficiency of the synthesizer.
[0005] Some practitioners have proposed using a third-party driver to build a virtual screen. Upon receiving a remote operation request 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 the remote client to operate the computing device normally even when the display device is not connected, it relies on a third-party driver to build and modify the virtual screen. Each modification must be submitted to the third-party driver for inspection, resulting in poor display performance and flexibility. Summary of the Invention
[0006] The technical problem to be solved by the present invention is as follows: In response to the above-mentioned problems of the prior art, a method, system and medium for optimizing the remote desktop display backend in a Wayland environment are provided, which can realize the remote desktop display function without relying on the remote desktop display backend to be connected to a physical display, reduce system resource consumption, reduce the system occupancy rate of the synthesizer and the load of the CPU and GPU, and improve the display efficiency of the synthesizer.
[0007] In order to solve the above technical problems, the technical solution adopted by the present invention is: A method for optimizing a remote desktop display backend in a Wayland environment comprises the following steps: Step S01, start the Wayland synthesizer and detect whether the remote desktop server is connected to a physical display; Step S02: If no physical display is currently detected, a preset output port configuration file in the remote desktop server is read, and a 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: receiving a remote desktop access request, and upon receiving the remote desktop access request and if no physical display is currently detected, sending rendering result data of the virtual Wayland desktop resource and mode information of the virtual output port to the remote desktop client for display by the remote desktop client; Step S04. Receive a request to modify desktop display properties, and upon receiving the request to modify desktop display properties, if no physical display is currently detected to be connected, update desktop status information according to the desktop display properties to be modified, wherein the desktop status information includes Wayland display backend information, virtual output port mode information, and output port configuration file information, and re-render the virtual Wayland desktop, and send the updated information and re-rendering result data to the remote desktop client for updated display.
[0008] Optionally, in step S01, one or more software and hardware backends of fbdev, drm, X11 or wayland are used to detect whether the remote desktop server is connected to a physical display.
[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 in the output port configuration file, establish a display pipeline resource, the display pipeline resource includes EDID, PLANE, CRTC, ENCODER and CONNECTOR one or more; Step S202, building a software display framework; Step S203: creating a virtual Wayland desktop background and its supporting module components, wherein the module components include one or more of a lower sidebar, background, icons, and control elements, and arranging the module components according to the preset resolution information; Step S204, initializing the properties of the virtual Wayland desktop overall area and available area; Step S205: Render and synthesize the virtual Wayland desktop content.
[0010] Optionally, the desktop display attributes include desktop resolution and / or scaling ratio.
[0011] Optionally, in step S04, when the request to modify the desktop display properties is received and no physical display is detected to be connected, after updating the desktop status information according to the desktop display properties to be modified, it also includes: sending the desktop status update information to the Wayland application through the Wayland protocol, notifying the Wayland application to update the display range and content.
[0012] Optionally, after step S04, the process further includes real-time monitoring of requests for modifying desktop display attributes. When a request for modifying desktop display attributes is received again, the process proceeds to step S04 to modify the desktop display attributes in real time.
[0013] Optionally, in step S01, if it is detected that a physical display is connected, the mode information of the connected display is read, and after the desktop is initialized according to the optimal mode, the read display content and 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 display is detected to be connected, the physical display desktop is directly reconfigured and the output port configuration file is updated, and the desktop display content and display mode are sent to the remote desktop client for updated display.
[0015] In addition, the present invention also provides an optimization system for a remote desktop display backend under a Wayland environment, comprising a microprocessor and a memory connected to each other, wherein the microprocessor is programmed or configured to execute the optimization method for a remote desktop display backend under the Wayland environment.
[0016] In addition, the present invention also provides a computer-readable storage medium, which stores a computer program or instruction, and the computer program or instruction is programmed or configured to execute the optimization method of the remote desktop display backend in the Wayland environment through a processor.
[0017] Compared with the prior art, the present invention mainly has the following advantages: 1. After starting the Wayland compositor, the present invention detects whether the remote desktop server is connected to a physical display. If no physical display is detected, the present invention reads an output port configuration file preset in the remote desktop server and initializes the virtual desktop according to the configuration information of the output port configuration file to create a virtual output port and a virtual Wayland desktop resource. When a remote desktop access request is received, the present invention sends the rendering result data of the virtual Wayland desktop resource and the mode information of the virtual output port to the remote desktop client for display. In this way, desktop rendering can be completed even when there is no local physical display, ensuring that the corresponding display output content can be obtained in the remote desktop scenario without relying on the connection to a physical display, thereby realizing the remote desktop display function.
[0018] 2. The present invention can realize the remote desktop function without relying on the remote desktop server to connect to the physical display, which can save the system resources required for the physical display, reduce the system occupancy rate of the synthesizer and the load of 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 display, the present invention can still receive requests to modify desktop display properties and update desktop status information based on the desired modified desktop display properties. This makes full use of the virtual Wayland desktop to conveniently and flexibly modify and configure desktop display properties without being restricted by the physical display mode. During the modification process, there is no need to disconnect and reconnect, and there is no need to rely on third-party drivers. This can greatly enhance the flexibility of remote desktop display. BRIEF DESCRIPTION OF THE DRAWINGS
[0020] Figure 1 The present invention is a flowchart illustrating a method for optimizing a remote desktop display backend in a Wayland environment according to an embodiment of the present invention.
[0021] Figure 2The present invention is a detailed flowchart of a remote desktop display backend optimization in a Wayland environment in a specific application embodiment.
[0022] Figure 3 This is a schematic diagram of the principle of the Wayland synthesizer remote desktop virtual output according to an embodiment of the present invention. DETAILED DESCRIPTION
[0023] To facilitate understanding, technical terms that may be involved in the embodiments of the present invention are first introduced.
[0024] Wayland: Wayland is a communication protocol and library for building display server and client applications, designed to replace the X Window System as the graphical display system on Linux and other operating systems.
[0025] Wayland Compositor: It is the Wayland server that communicates with the Wayland client and also has window synthesis and management functions.
[0026] Remote Desktop Protocol (RDP): is a multi-channel protocol that allows users (the computer they are on is 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 server software, which captures the local desktop image and sends it to the client. The client software receives and displays this image and sends the user's mouse and keyboard input back to the server.
[0028] The technical solution of the present invention will be further described in detail below with reference to the accompanying drawings.
[0029] like Figure 1 As shown, the optimization method of the remote desktop display backend in the Wayland environment of this embodiment includes the following steps: Step S01, start the Wayland synthesizer and detect whether the remote desktop server is connected to a physical display; Step S02: If no physical display is currently detected, a preset output port configuration file in the remote desktop server is read, and a 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: receiving a remote desktop access request, and when the remote desktop access request is received and no physical display is currently detected, sending rendering result data of the virtual Wayland desktop resource and mode information of the virtual output port to the remote desktop client for display by the remote desktop client; Step S04. Receive a request to modify desktop display properties, and when receiving the request to modify desktop display properties, and if no physical display is currently detected to be connected, update 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, and re-render the virtual Wayland desktop, and send the updated information and re-rendering result data to the remote desktop client for updated display.
[0030] After starting the Wayland compositor, the method detects whether the remote desktop server is connected to a physical display. If the remote desktop server is not detected to be connected to a physical display, the method reads the output port configuration file preset in the remote desktop server and initializes the virtual desktop according to the configuration information read from the output port configuration file to create a virtual output port and a virtual Wayland desktop resource. Upon receiving a remote desktop access request, the method sends the rendering result data of the virtual Wayland desktop resource and the mode information of the virtual output port to the remote desktop client for display. This allows the remote desktop client to display the desktop even when there is no local physical display. This ensures that the corresponding display output content can be obtained in the remote desktop scenario without relying on the connection to a physical display, thereby realizing the remote desktop display function. At the same time, since the remote desktop server does not rely on the connection to a physical display to realize the remote desktop function, it can save the system resources required for the physical display, reduce the system occupancy rate of the compositor and the load on the CPU and GPU, thereby improving the display efficiency of the compositor. In addition, when the remote desktop server is not connected to a physical monitor, it can also receive requests to modify the desktop display properties, update the desktop status information according to the desktop display properties that need to be modified, and make full use of the virtual Wayland desktop to conveniently and flexibly modify the desktop display properties. It is not restricted by the physical monitor mode, and there is no need to disconnect and reconnect during the modification process, nor to rely on third-party drivers, which can greatly improve the flexibility of the remote desktop display.
[0031] As an optional implementation, in step S01, a hardware and software backend 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 display. The specific selection can be made according to actual needs.
[0032] As an optional implementation, in step S02, creating a virtual output port and establishing a virtual Wayland desktop resource includes: Step S201: Acquire the virtual output port name 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 saved after modification by the last remote user. Display pipeline resources may include one or more of EDID (Extended Display Identification Data), PLANE (Layer Plane), CRTC (Cathode Ray Tube Controller), ENCODER (Encoder), and CONNECTOR (Connector), and the specific selection can be based on actual needs. Step S202: Building a software display framework. Since the software display framework does not need to interact with the actual physical display, there is no extra resource consumption and waiting time caused by interacting with the physical display.
[0033] Step S203: establishing a virtual Wayland desktop background and its supporting module components, wherein the module components include one or more of a lower sidebar, background, icons, and control elements, which can be selected according to actual needs and arranged according to the resolution information in the output port configuration file; Step S204, initializing the properties of the virtual Wayland desktop overall area and available area; Step S205: Render and synthesize 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 through the network for display.
[0035] As an optional implementation, the desktop display properties may include desktop resolution, scaling ratio, etc. By sending a request to modify the desktop resolution, scaling ratio, etc. properties, the desktop resolution, scaling ratio, etc. may be modified in real time accordingly.
[0036] As an optional implementation, in step S04, when a request to modify the desktop display properties is received and no physical display is detected to be connected, after updating the desktop status information according to the desktop display properties to be modified, it also includes: sending the desktop status update information to the Wayland application through the Wayland protocol, notifying the Wayland application to update the display range and content.
[0037] As an optional implementation, after step S04, the process further includes 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. This helps ensure that users can modify the remote desktop server desktop in real time on the remote client interface, providing a fast response and eliminating the need to disconnect and reconnect the remote desktop.
[0038] For example, when a request is received from the remote desktop to modify the desktop resolution or scale, 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 the desktop status update information is sent to the wayland application through the wayland protocol, the wayland application is notified to update the display range and content, the virtual wayland desktop is re-rendered, and the rendering result data is sent to the remote desktop client through the remote desktop transmission protocol; when the display properties need to be modified again, the above steps are repeated, and the user can quickly implement any resolution modification in the remote client interface similar to dragging the window edge and it takes effect in real time, without having to disconnect and reconnect the remote desktop, submit the configuration to the kernel through the KMS interface and wait for kernel confirmation, and communicate with a third party to complete complex operations such as virtual desktop construction and display mode configuration.
[0039] As an optional implementation, in step S01, if it is detected that a physical display is connected, the mode information of the connected display is read, and after the desktop is initialized according to the optimal mode, the read display content and mode information are sent to the remote desktop client for display. This can be used to implement the remote desktop display function when there is a local physical display output.
[0040] As an optional implementation, when a request to modify desktop display properties is received and a physical display is detected, the physical display desktop is directly reconfigured, the output port configuration file is updated, and the desktop display content and display mode are sent to the remote desktop client for updated display. In other words, if a local physical display output is available, the desktop display properties can be modified in real time by directly reconfiguring the physical display 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 method, when a request to modify the desktop display properties is received and a physical display is detected to be connected, an attempt is made to update the display mode of the physical display. The hardware configuration of the physical display is first detected. If the physical display supports the display settings of the modified desktop, the physical display desktop is reconfigured and the output port configuration file is updated. The desktop display content and display mode are sent to the remote desktop client for updated display. Otherwise, the original display mode of the physical display is restored without changing the display mode. The user is notified that the modification of the desktop display properties has failed to facilitate timely adjustments by the user.
[0042] Through the above-mentioned method, this embodiment can take into account the situations of having physical display output and not having physical display output in the remote desktop scenario. If no physical display output is detected, the display control process corresponding to no physical display output is triggered, and the remote desktop display function is realized by creating a virtual output port and a virtual Wayland desktop resource. At the same time, the desktop attribute modification request such as modifying the desktop resolution or scaling can be received from the remote desktop, and the desktop attributes can be modified in real time; if physical display output is detected, the display control process corresponding to the physical display output is triggered, and the mode information of the connected display is directly read, and the remote desktop client is controlled to display according to the optimal mode. At the same time, the desktop attributes can be modified in real time by directly reconfiguring the physical display desktop and updating the output port configuration file, so that it can be flexibly applied to various scenarios to ensure continuous and stable output of the remote desktop client.
[0043] like Figure 2 As shown, in a specific application embodiment, the detailed steps of using the above method of the present invention to implement remote desktop display backend optimization in the Wayland environment are as follows: Step 1: The Wayland synthesizer starts and detects the output port through fbdev, drm or X11, Wayland and other hardware and software backends; if no output port is detected, go to step 2, otherwise go to step 3; Step 2: Start 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, 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, and then display it on the remote desktop client; Step 2.3: Process the currently received remote desktop property modification request to modify the desktop resolution or scale, 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 through the Wayland protocol, notifying the Wayland application to update the display range and content; Step 2.5: Re-render the virtual Wayland desktop; send the rendering result data to the remote desktop client via the remote desktop transmission protocol, and the remote user obtains the latest desktop in real time; Step 2.6: When a new desktop attribute modification request is received, repeat steps 2.4 to 2.6 to continue modifying display attributes 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 the desktop display properties, directly reconfigure the physical display desktop and update the output port configuration file, and send the desktop display content and display mode to the remote desktop client for updated display; Step 3.3: When a request to modify the desktop display properties is received, an attempt is made to update the display mode of the physical monitor. The hardware configuration of the physical monitor is first detected. If the physical monitor supports the display settings of the modified desktop, the physical monitor desktop is reconfigured and the output port configuration file is updated. The desktop display content and display mode are sent to the remote desktop client for updated display. Otherwise, the original display mode of the physical monitor is restored without changing the display mode. The user is notified that the modification of the desktop display properties has failed, so that the user can make timely adjustments.
[0044] like Figure 3 As shown, the remote desktop server accelerates the rendering and synthesis of content from different application layers on the physical host, eliminating the need to submit display content to a physical monitor for display or wait for a physical output flip signal. The remote desktop server sends desktop data to the remote desktop client via RDP or VNC for display. The remote desktop client does not need to use a graphics processing chip for graphics rendering and synthesis. Since the remote desktop client does not need to perform graphics rendering locally, it obtains the synthesized display image from the server over the network and submits it directly for display. Only basic display output hardware modules are required. This reduces the number of processing objects on the remote desktop server from two: local output and remote output, to one. This alleviates the pressure on the remote desktop server to synchronize displays and reduces 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, comprising a microprocessor and a memory connected to each other, 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, which stores a computer program or instruction. The computer program or instruction is programmed or configured to execute a method for optimizing a remote desktop display backend in a Wayland environment through a processor.
[0047] Those skilled in the art should understand that the technical solutions provided by the embodiments of the present application may be in the form of methods, systems, or computer program products. Therefore, the present application may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware aspects. Moreover, the present application may take the form of a computer program product implemented 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. The present application is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the embodiments of the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of processes and / or boxes in the flowchart and / or block diagram, may be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the steps in the process. Figure 1 a process or multiple processes and / or boxes Figure 1 These computer program instructions can also be stored in a computer-readable memory that can guide a computer or other programmable data processing device to work in a specific way, so that the instructions stored in the computer-readable memory produce a product including the instruction device, which implements the function specified in the process. Figure 1 a process or multiple processes and / or boxes Figure 1 These computer program instructions can also be loaded onto a computer or other programmable data processing device, so that a series of operation steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process in the process. Figure 1 a process or multiple processes and / or boxes Figure 1 A step that specifies a function 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 embodiment. All technical solutions based on the concept of the present invention are within the scope of protection of the present invention. It should be noted that for those skilled in the art, various improvements and modifications that do not depart from the principles of the present invention should also be considered within the scope of protection of the present invention.
Claims
1. A method for optimizing the remote desktop display backend in a Wayland environment, characterized in that: The steps include: Step S01, start the Wayland synthesizer and detect whether the remote desktop server is connected to a physical display; Step S02: If no physical display is currently detected, a preset output port configuration file in the remote desktop server is read, and a 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: receiving a remote desktop access request, and upon receiving the remote desktop access request and if no physical display is currently detected, sending rendering result data of the virtual Wayland desktop resource and mode information of the virtual output port to the remote desktop client for display by the remote desktop client; Step S04. Receive a request to modify desktop display properties. When receiving the request to modify desktop display properties and if no physical display is currently detected to be connected, update desktop status information according to the desktop display properties to be modified, the desktop status information including 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-rendering result data to the remote desktop client for updated display.
2. The optimization method for the remote desktop display backend under the Wayland environment according to claim 1, characterized in that In step S01, one or more software and hardware backends among fbdev, drm, X11 or wayland are used to detect whether the remote desktop server is connected to a physical display.
3. The optimization method for the remote desktop display backend under 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 in the output port configuration file, and establish a display pipeline resource, wherein the display pipeline resource includes one or more of EDID, PLANE, CRTC, ENCODER and CONNECTOR; Step S202, building a software display framework; Step S203: creating a virtual Wayland desktop background and its supporting module components, wherein the module components include one or more of a lower sidebar, a background, icons, and control elements, and arranging the module components according to the preset resolution information; Step S204, initializing the properties of the virtual Wayland desktop overall area and available area; Step S205: Render and synthesize the virtual Wayland desktop content.
4. The optimization method for the remote desktop display backend under the Wayland environment according to claim 1, characterized in that: The desktop display attributes include desktop resolution and / or scaling ratio.
5. The optimization method for the remote desktop display backend under the Wayland environment according to claim 1, characterized in that: In the step S04, when the request to modify the desktop display properties is received and no physical display is detected to be connected, after updating the desktop status information according to the desktop display properties to be modified, it also includes: sending the desktop status update information to the Wayland application through the Wayland protocol, notifying the Wayland application to update the display range and content.
6. The optimization method for the remote desktop display backend under the Wayland environment according to any one of claims 1 to 5, characterized in that: After step S04, the process also includes real-time monitoring of requests for modifying the desktop display attributes. When a request for modifying the desktop display attributes is received again, the process proceeds to step S04 to modify the desktop display attributes in real time.
7. The method for optimizing the remote desktop display backend under the Wayland environment according to any one of claims 1 to 5, characterized in that: In step S01, if it is detected that a physical display is connected, the mode information of the connected display is read, and after the desktop is initialized according to the optimal mode, the read display content and mode information are sent to the remote desktop client for display.
8. The method for optimizing the remote desktop display backend under the Wayland environment according to any one of claims 1 to 5, characterized in that: When the request to modify the desktop display properties is received and a physical display is detected to be connected, the physical display desktop is directly reconfigured and the output port configuration file is updated, and the desktop display content and display mode are sent to the remote desktop client for updated display.
9. A system for optimizing a remote desktop display backend in a Wayland environment, comprising a microprocessor and a memory connected to each other, characterized in that: The microprocessor is programmed or configured to execute the optimization method for the remote desktop display backend in the Wayland environment described in any one of claims 1 to 8.
10. A computer-readable storage medium having a computer program or instruction stored therein, characterized in that: The computer program or instruction is programmed or configured to execute the optimization method for the remote desktop display backend in the Wayland environment described in any one of claims 1 to 8 through a processor.
Citation Information
Patent Citations
Graph synthesis method, device and system based on wayland protocol
CN112527219A
Method and system for directly displaying drm of video and UI based on Wayland protocol
CN113050899A
Implementation method for remote desktop to obtain hardware cursor in wayland environment
CN116560532A
Application rendering method and system and electronic equipment
CN117917682A
Screen expansion method and device and computing equipment
CN118377451A