Cloud desktop display method, electronic device, and computer program product

WO2026175228A1PCT designated stage Publication Date: 2026-08-27ZTE CORP
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
PCT/CN2026/078009
Authority / Receiving Office
WO · WO
Patent Type
Applications
Current Assignee / Owner
Priority Date
2025-02-21
Filing Date
2026-02-09
Publication Date
2026-08-27

Smart Images

  • Figure CN2026078009_27082026_PF_FP_ABST
    Figure CN2026078009_27082026_PF_FP_ABST
Patent Text Reader

Abstract

Embodiments of the present disclosure provide a cloud desktop display method, an electronic device, and a computer program product, applied to a virtual machine graphics driver. The method comprises: receiving parameter information of a terminal sent by a cloud desktop client, wherein the cloud desktop client is located on the terminal, and the terminal is connected to at least one screen; on the basis of the parameter information, modifying an external display device identification data (EDID) value corresponding to a cloud desktop, such that an operating system on the cloud desktop adjusts a dots per inch (DPI) value of the operating system on the basis of the modified EDID value.
Need to check novelty before this filing date? Find Prior Art

Description

Cloud desktop display methods, electronic devices and computer program products

[0001] Cross-reference to related applications

[0002] This disclosure is based on and claims priority to Chinese patent application CN202510197961.4, filed on February 21, 2025, entitled “Cloud Desktop Display Method, Electronic Device and Computer Program Product”, and incorporates the entire contents of that patent application by reference. Technical Field

[0003] This disclosure relates to the field of computer technology, and more specifically, to a cloud desktop display method, electronic device, and computer program product. Background Technology

[0004] With the development of cloud desktop technology, cloud desktop, as a new type of computer, provides users with a cloud desktop operation interface based on remote access technology of cloud computing platform, so as to realize cross-terminal resource sharing and interaction on different terminals.

[0005] In current scenarios where cloud desktops are logged into from different terminals, complex configurations between the cloud desktop client and its internal applications are typically relied upon. Specifically, the cloud desktop client needs to obtain the terminal's screen size and resolution information and record this information in a configuration file. Subsequently, the applications within the cloud desktop read the Dots Per Inch (DPI) value for the specific terminal type stored in the configuration file and set the cloud desktop's display scaling ratio accordingly. However, when a new terminal (of different size) is connected to the cloud desktop and is not recorded in the configuration file, the applications within the cloud desktop cannot read the pre-saved DPI value. This results in the cloud desktop failing to automatically adjust the display scaling ratio, leading to images that are too large or too small, negatively impacting the user experience.

[0006] In summary, no effective solution has yet been proposed in the relevant technologies. Summary of the Invention

[0007] This disclosure provides a cloud desktop display method, electronic device, and computer program product to at least solve the problem in the related art that cloud desktop display mainly relies on the DPI preset value recorded in the configuration file, which leads to the cloud desktop being unable to automatically adjust the DPI value when a terminal without a recorded DPI preset value logs in, resulting in poor cloud desktop display effect, thereby achieving the effect of improving cloud desktop display efficiency.

[0008] According to one embodiment of this disclosure, a cloud desktop display method is provided, applied to a virtual machine graphics card driver. The method includes: receiving terminal parameter information sent by a cloud desktop client, wherein the cloud desktop client is located on the terminal, and the terminal is connected to at least one screen; modifying the external display device identifier data (EDID) value corresponding to the cloud desktop according to the parameter information, so that the operating system on the cloud desktop adjusts the pixel DPI value of the operating system according to the modified EDID value.

[0009] According to another embodiment of this disclosure, a cloud desktop display method is provided, applied to a cloud desktop. The method includes: adjusting the pixel DPI value of the operating system on the cloud desktop according to a modified external display device identifier (EDID) value; wherein the EDID value is modified by the virtual machine graphics card driver according to parameter information, the parameter information being parameter information sent by the cloud desktop client to the terminal of the virtual machine graphics card driver, the cloud desktop client being located on the terminal, and the terminal being connected to at least one screen; and displaying the cloud desktop at a screen size corresponding to the adjusted DPI value.

[0010] According to yet another embodiment of this disclosure, an electronic device is also provided, including a memory and a processor, wherein the memory stores a computer program and the processor is configured to run the computer program to perform the steps in the above method embodiments.

[0011] According to yet another embodiment of this disclosure, a computer program product is also provided, including a computer program that, when executed by a processor, implements the steps in the above method embodiments. Attached Figure Description

[0012] Figure 1 is a hardware structure block diagram of a computer terminal for a cloud desktop display method according to an embodiment of the present disclosure;

[0013] Figure 2 is a flowchart of a cloud desktop display method applied to a virtual machine graphics card driver according to an embodiment of the present disclosure;

[0014] Figure 3 is a schematic diagram of parameter information of a terminal according to an embodiment of the present disclosure;

[0015] Figure 4 is a flowchart of cloud desktop display in a dual-screen scenario according to an embodiment of the present disclosure;

[0016] Figure 5 is a flowchart of storing automatically adjusted DPI values ​​to registry entries according to an embodiment of the present disclosure;

[0017] Figure 6 is a flowchart of a cloud desktop display method applied to a cloud desktop according to an embodiment of the present disclosure;

[0018] Figure 7 is a flowchart of storing manually adjusted DPI values ​​to registry entries according to an embodiment of the present disclosure;

[0019] Figure 8 is an overall flowchart of a cloud desktop display method according to an embodiment of the present disclosure. Detailed Implementation

[0020] The embodiments of this disclosure will be described in detail below with reference to the accompanying drawings and examples.

[0021] It should be noted that the terms "first," "second," etc., in the specification, claims, and drawings of this disclosure are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence.

[0022] The methods and embodiments provided in this disclosure can be executed in a mobile terminal, a computer terminal, or a similar computing device. Taking a computer terminal as an example, FIG1 is a hardware structure block diagram of a computer terminal according to an embodiment of the cloud desktop display method of this disclosure. As shown in FIG1, the computer terminal may include one or more (only one is shown in FIG1) processors 102 (processors 102 may include, but are not limited to, processing devices such as microprocessors MCUs or programmable logic devices FPGAs) and a memory 104 for storing data. The computer terminal may also include a transmission device 106 for communication functions and an input / output device 108. It will be understood by those skilled in the art that the structure shown in FIG1 is only illustrative and does not limit the structure of the computer terminal. For example, the computer terminal may also include more or fewer components than shown in FIG1, or have a different configuration than shown in FIG1.

[0023] The memory 104 can be used to store computer programs, such as application software programs and modules, like the computer program corresponding to the cloud desktop display method in this embodiment. The processor 102 executes various functional applications and data processing by running the computer program stored in the memory 104, thus implementing the above-described method. The memory 104 may include high-speed random access memory and non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some instances, the memory 104 may further include memory remotely located relative to the processor 102, and these remote memories can be connected to a computer terminal via a network. Examples of such networks include, but are not limited to, the Internet, corporate intranets, local area networks, mobile communication networks, and combinations thereof.

[0024] The transmission device 106 is used to receive or send data via a network. Specific examples of the network described above may include a wireless network provided by a communication provider for the computer terminal. In one example, the transmission device 106 includes a Network Interface Controller (NIC), which can connect to other network devices via a base station to communicate with the Internet. In another example, the transmission device 106 may be a Radio Frequency (RF) module, used for wireless communication with the Internet.

[0025] Currently, cloud desktop technology can address the needs for remote desktop access in office work, education, remote maintenance, and remote server access, providing convenience for users. However, during the use of cloud desktops, scenarios involving login from different terminals are common. Different terminal types have differences in screen size, screen resolution, and screen identity (ID). Therefore, to achieve a better scaling display effect after login, the cloud desktop client typically obtains the terminal type parameter information and records it in a configuration file within the virtual machine. For different terminal types, DPI values ​​need to be set in advance. When logging into the cloud desktop on different terminals, the cloud desktop application reads the DPI value saved for the current terminal type in the configuration file and sets the current cloud desktop's DPI value by calling the function interface of the Microsoft SDK, thus achieving the desired cloud desktop display effect.

[0026] The cloud desktop display method mentioned above is not universal because it fixes the screen size and relies on the pre-setting of the DPI of the terminal type. When the cloud desktop connects to a new terminal (different size type) and there is no record in the configuration file, the cloud desktop cannot set the DPI value according to the preset value, which leads to the DPI value in the cloud desktop not being able to adjust automatically, resulting in the interface image being too large or too small, which seriously affects the user's operating experience.

[0027] Furthermore, while the system registry key (HKEY_CURRENT_USER\Control Panel\Desktop\PerMonitorSettings) of the cloud desktop operating system can store the DPI value set for the current terminal, the technology uses fixed screen size and other information, meaning that even when logging into the cloud desktop from different terminal types, the cloud desktop operating system still considers it the same screen and lacks automatic memory functionality. If the user manually sets the DPI value, it also needs to be recorded in the configuration file and set again during cloud desktop login, increasing program complexity and lacking universality.

[0028] Based on the above problems, this disclosure provides a cloud desktop display method. When logging into the cloud desktop, the terminal's parameter information is passed to the virtual machine graphics card driver. The virtual machine graphics card driver modifies the Extended Display Identification Data (EDID) value corresponding to the cloud desktop and reloads the modified EDID value, so that the cloud desktop's operating system automatically adjusts the DPI value according to the modified EDID value and supports dual-screen and multi-screen display.

[0029] Therefore, this embodiment requires obtaining the terminal's parameter information and cooperating with the virtual machine's graphics card driver. The virtual machine's graphics card driver modifies the EDID value corresponding to the cloud desktop based on the parameter information, so that when logging into the cloud desktop on different terminals, the operating system on the cloud desktop can automatically adjust the DPI value without relying on the upper-layer application to read the pre-stored DPI value. Simultaneously, this embodiment also supports users manually setting the DPI value. After switching to different terminals for login, the manually set DPI value for that terminal remains unchanged, actively remembering the user-set DPI value to ensure a consistent user experience.

[0030] Figure 2 is a flowchart of a cloud desktop display method applied to a virtual machine graphics card driver according to an embodiment of the present disclosure. As shown in Figure 2, the cloud desktop display method is applied to a virtual machine graphics card driver and may specifically include the following steps:

[0031] Step S202: Receive terminal parameter information sent by the cloud desktop client, wherein the cloud desktop client is located on the terminal and the terminal is connected to at least one screen.

[0032] For example, after the cloud desktop client connects to the virtual machine, the virtual machine's graphics card driver receives the terminal's parameter information sent by the cloud desktop client. This parameter information includes at least one of the following: screen resolution, first screen size, screen identifier ID, and screen display depth. As shown in Figure 3, `uint8_t display_id` represents the screen ID corresponding to the terminal, `uint32_t xres` represents the screen length corresponding to the screen ID, `uint32_t yres` represents the screen width corresponding to the screen ID, `uint32_t bpp` represents the screen display depth corresponding to the screen ID, and the first screen size is the obtained `xres` and `yres` of the screen ID corresponding to the terminal.

[0033] For example, the cloud desktop client resides on a terminal, which is connected to at least one screen (e.g., dual or multiple screens). It can automatically adjust the corresponding DPI value based on the screen ID to adapt to the screen scaling ratio. The at least one screen connected to the terminal can be either a screen built into the terminal itself or an externally connected screen. Users can log in and use the cloud desktop service through different terminals (such as personal computers, laptops, tablets, and smartphones). Different terminals can have one or more built-in screens, and users can also connect one or more external screens through other display interfaces as needed.

[0034] For example, the terminal device in this disclosure embodiment can be a personal computer, laptop, tablet, smartphone, etc., which supports dual-screen or multi-screen cloud desktop display on different terminals and can automatically adjust the DPI value according to different terminal types and screen sizes to improve the user's operating experience.

[0035] Step S204: Modify the EDID value of the external display device identifier data corresponding to the cloud desktop according to the parameter information, so that the operating system on the cloud desktop adjusts the pixel DPI value of the operating system according to the modified EDID value.

[0036] For example, during the client's login to the cloud desktop, the virtual machine graphics card driver completes initialization. The cloud desktop client sends the terminal's parameter information to the virtual machine graphics card driver. The virtual machine graphics card driver modifies the external display device identification data EDID value according to the screen ID in the parameter information. Then, the operating system (e.g., Windows system) on the cloud desktop automatically adjusts the DPI value of the Windows system according to the modified EDID value through the virtual machine graphics card driver's management display settings.

[0037] In one embodiment, modifying the EDID value of the external display device identifier data corresponding to the cloud desktop according to the parameter information, so that the operating system on the cloud desktop adjusts the DPI value of the operating system according to the modified EDID value, includes: determining the EDID value of the corresponding screen according to the screen ID in the parameter information, and modifying the second screen size in the EDID value of the corresponding screen, so that the operating system on the cloud desktop adjusts the DPI value of the operating system according to the modified second screen size.

[0038] For example, the EDID value is stored as an array, which includes the second screen size.

[0039] For example, the EDID value is stored in the virtual machine graphics card driver using an array called edid

[0256] . The two values ​​edid

[0021] and edid

[0022] in the edid

[0256] array are (i.e., the second screen size, length and width). The virtual machine graphics card driver determines the EDID value of the corresponding screen based on the screen ID in the terminal's parameter information and modifies the EDID value corresponding to the cloud desktop. The performance parameters in the EDID value mainly include supplier information, image size, color settings, screen size, frequency range limitations, and display device name. After receiving the terminal parameter information sent by the cloud desktop client, the virtual machine graphics card driver modifies the two values ​​edid

[0021] and edid

[0022] in the edid

[0256] array of the corresponding screen, i.e., the length and width of the screen.

[0040] In one embodiment, after determining the EDID value of the corresponding screen based on the screen ID in the parameter information and modifying the second screen size in the EDID value of the corresponding screen, the method further includes: comparing the first screen size in the parameter information with the modified second screen size; and adjusting the DPI value of the operating system if the first screen size and the modified second screen size are the same.

[0041] For example, the virtual machine graphics card driver will check whether the currently modified edid

[0021] and edid

[0022] values ​​(second screen size) are the same as the first screen size in the parameter information. If they are different, the interface for simulating the plugging and unplugging of the monitor will be called to perform a simulated plugging and unplugging operation (that is, the virtual machine graphics card driver simulates the connection and disconnection process of the monitor, and the operating system reloads the modified EDID value, so that the operating system can automatically adjust the DPI value according to the modified EDID value) until the best display effect is achieved. If they are the same, the interface for simulating the plugging and unplugging of the monitor will not be called again, reducing screen refresh. The operating system can directly adjust the DPI value automatically according to the modified EDID value to avoid screen flicker affecting the user's operating experience.

[0042] In one embodiment, after modifying the second screen size in the EDID value according to the screen ID in the parameter information, the method further includes: reloading the modified EDID value so that the operating system on the cloud desktop stores the modified EDID value in a preset registry key, wherein the preset registry key is a registry key for the corresponding screen created according to the modified EDID value.

[0043] For example, the virtual machine graphics card driver calls the interface that simulates plugging and unplugging a monitor to reload the modified EDID value, causing the Windows system on the cloud desktop to store the modified EDID value in a preset registry key. Specifically, the Windows system creates a registry key for the corresponding screen based on the currently modified EDID value.

[0044] In one embodiment, as shown in Figure 4, when a user logs into the cloud desktop on a terminal, automatically adjusting the DPI value and storing it in the registry key includes the following steps:

[0045] Step S401: The user logs into the cloud desktop on the terminal.

[0046] For example, a user can log in to the cloud desktop on different terminals, with each terminal connected to at least one screen. The cloud desktop client obtains parameter information of the at least one screen currently connected to the terminal.

[0047] Step S402: The virtual machine graphics card driver receives the terminal parameter information sent by the cloud desktop client.

[0048] For example, the cloud desktop client sends terminal parameter information to the virtual machine graphics card driver. The parameter information includes at least one of the following: screen resolution, screen size, screen ID, and screen display depth.

[0049] Step S403: The virtual machine graphics card driver modifies the EDID value corresponding to the cloud desktop according to the terminal's parameter information.

[0050] For example, the virtual machine graphics card driver modifies the EDID value according to the screen ID in the parameter information. The EDID value is stored in the virtual machine graphics card driver using an array edid

[0256] . The main modification is to the two values ​​edid

[0021] and edid

[0022] in the edid

[0256] array (the length and width of the screen).

[0051] Step S404: The cloud desktop operating system automatically adjusts the DPI value based on the modified EDID value.

[0052] For example, a cloud desktop operating system (e.g., a Windows system) manages display settings through the virtual machine's graphics card driver and automatically adjusts the Windows system's DPI value based on the modified EDID value.

[0053] Step S405: Store the modified EDID value and the corresponding screen DPI value into the registry key.

[0054] For example, the Windows system on the cloud desktop creates a registry key for the corresponding screen based on the currently modified EDID value, and stores the modified EDID value and the corresponding screen's DPI value in the registry key.

[0055] In one embodiment, if the EDID value corresponding to the cloud desktop modified according to the parameter information changes, the operating system on the cloud desktop is determined to be connected to a new screen, and the DPI value of the operating system is adjusted according to the changed EDID value.

[0056] For example, if the EDID value changes, the Windows system on the cloud desktop will recognize that a new screen has been connected and adjust the DPI value of the Windows system according to the changed EDID value in order to achieve a better scaling ratio to adapt to the new screen.

[0057] This disclosure provides a cloud desktop display method in a dual-screen scenario. Figure 5 is a flowchart of cloud desktop display in a dual-screen scenario according to this disclosure. As shown in Figure 5, in a dual-screen scenario, the virtual machine graphics card driver obtains parameter information of screen A and screen B. Each screen corresponds to a screen ID. When the virtual machine graphics card driver receives the screen resolution and screen size, it also receives the corresponding screen ID. The virtual machine graphics card driver modifies the EDID value of the corresponding screen according to the screen ID, so that the operating system on the cloud desktop adjusts the DPI value of the operating system (DPI value of screen A and DPI value of screen B) according to the modified EDID value, thereby realizing adaptive adjustment of DPI values ​​of different screens in a dual-screen scenario.

[0058] For example, a user uses a laptop as terminal A (i.e., screen A) and connects an external monitor as screen B to access a cloud desktop service. In this dual-screen scenario, the method for displaying the cloud desktop includes the following steps:

[0059] (1) Client login to cloud desktop:

[0060] The user launches the cloud desktop client on terminal A and begins logging into the cloud desktop.

[0061] The cloud desktop client reads the parameter information (screen resolution, screen size, screen ID, screen display depth) of screen A and screen B, and sends the parameter information to the virtual machine graphics card driver through the protocol library.

[0062] (2) Virtual machine graphics card driver receives parameter information:

[0063] When terminal A logs into the cloud desktop for the first time, the virtual machine graphics card driver receives parameter information from screen A and screen B.

[0064] The virtual machine graphics card driver modifies the corresponding EDID values ​​of screen A and screen B based on the parameter information of screen A and screen B. Specifically, it modifies the two values ​​edid

[0021] and edid

[0022] , which represent the length and width of the screen, respectively.

[0065] (3) Simulated insertion and removal of EDID value:

[0066] The virtual machine graphics card driver checks whether the currently modified edid

[0021] and edid

[0022] values ​​are the same as the screen size in the parameter information. If they are different, the interface for simulating plugging and unplugging the monitor is called to perform a simulated plugging and unplugging operation; if they are the same, the interface for simulating plugging and unplugging the monitor is not called again.

[0067] The EDID value was simulated during the plugging and unplugging process, and was applied to both screen A and screen B to ensure that the operating system could read the modified EDID value.

[0068] (4) The operating system automatically adjusts the DPI value:

[0069] After receiving the modified EDID value, the operating system (e.g., Windows) creates registry entries for screen A and screen B, automatically adjusts the DPI values ​​of screen A and screen B according to the modified EDID values ​​to adapt to their respective screen sizes, thereby optimizing the display effect, and stores the EDID values ​​and DPI values ​​of screen A and screen B in the registry entries.

[0070] (5) Switch the continuity of DPI values ​​when logging into the terminal:

[0071] If the user subsequently logs into the cloud desktop using another terminal C (screen C) and connects to a different external monitor as screen D.

[0072] The virtual machine graphics card driver modifies the EDID values ​​corresponding to screens C and D based on the parameter information of screens C and D, creates registry entries for screens C and D, automatically adjusts the DPI values ​​of screens C and D according to the modified EDID values, and stores the EDID values ​​and DPI values ​​of screens C and D in the registry entries.

[0073] If a user logs into the cloud desktop again using terminal A and screen B, the operating system will display the cloud desktop based on the DPI value stored in the registry key of screen B, ensuring the continuity of the DPI value when the user logs in on different terminals.

[0074] Through the above steps, this embodiment of the present disclosure realizes automatic adjustment of the DPI value of the cloud desktop display in a dual-screen scenario, while maintaining the continuity of the DPI value when switching between different terminals, which significantly improves the display effect and user experience of the cloud desktop in multi-terminal, multi-screen scenarios.

[0075] According to another embodiment of this disclosure, a method for displaying a cloud desktop in a multi-screen scenario is also provided. The steps of the method for displaying a cloud desktop in a multi-screen scenario in this embodiment are basically the same as those of the method for displaying a cloud desktop in a dual-screen scenario in the previous embodiment. Therefore, the similarities will not be repeated here.

[0076] Figure 6 is a flowchart of a cloud desktop display method applied to a cloud desktop according to an embodiment of the present disclosure. As shown in Figure 6, the cloud desktop display method is applied to a cloud desktop and may specifically include the following steps:

[0077] Step S602: Adjust the pixel DPI value of the operating system on the cloud desktop according to the modified external display device identifier data EDID value, wherein the EDID value is modified by the virtual machine graphics card driver according to parameter information, the parameter information is the parameter information sent by the cloud desktop client to the terminal of the virtual machine graphics card driver, the cloud desktop client is located on the terminal, and the terminal is connected to at least one screen.

[0078] Step S604: Display the cloud desktop according to the adjusted DPI value and the screen size corresponding to the adjusted DPI value.

[0079] For example, the cloud desktop client sends the terminal's parameter information to the virtual machine's graphics card driver. The virtual machine's graphics card driver modifies the external display device identification data EDID value based on the parameter information. Then, the operating system (e.g., Windows system) on the cloud desktop manages the display settings through the virtual machine's graphics card driver and automatically adjusts the Windows system's DPI value according to the modified EDID value to display the cloud desktop at a screen size corresponding to the adjusted DPI value.

[0080] For example, the cloud desktop client is located on the terminal, which is connected to at least one screen (e.g., the terminal is connected to two or more screens). It can automatically adjust the corresponding DPI value according to the corresponding screen ID to adapt to the optimal scaling ratio.

[0081] In one embodiment, after adjusting the pixel DPI value of the operating system on the cloud desktop according to the modified external display device identifier data EDID value, the method further includes: if the adjusted DPI value is adjusted a second time, storing the second-adjusted DPI value in a preset registry key, wherein the preset registry key is a registry key for the corresponding screen created according to the modified EDID value.

[0082] For example, Figure 7 is a flowchart of storing a manually adjusted DPI value to a registry key according to an embodiment of the present disclosure. As shown in Figure 7, when a user logs into the cloud desktop on a terminal, manually adjusting the DPI value and storing it in the registry key includes the following steps:

[0083] Step S701: The user logs into the cloud desktop on the terminal.

[0084] For example, a user can log in to the cloud desktop on different terminals, with each terminal connected to at least one screen. The cloud desktop client obtains parameter information of the at least one screen currently connected to the terminal.

[0085] Step S702: The virtual machine graphics card driver receives the terminal parameter information sent by the cloud desktop client.

[0086] For example, the cloud desktop client sends terminal parameter information to the virtual machine graphics card driver. The parameter information includes at least one of the following: screen resolution, screen size, screen ID, and screen display depth.

[0087] Step S703: The virtual machine graphics card driver modifies the EDID value corresponding to the cloud desktop according to the terminal's parameter information.

[0088] For example, the virtual machine graphics card driver modifies the EDID value according to the screen ID in the parameter information. The EDID value is stored in the virtual machine graphics card driver using an array edid

[0256] . The main modification is to the two values ​​(length and width) edid

[0021] and edid

[0022] in the edid

[0256] array.

[0089] Step S704: The cloud desktop operating system automatically adjusts the DPI value based on the modified EDID value.

[0090] For example, a cloud desktop operating system (e.g., a Windows system) manages display settings through the virtual machine's graphics card driver and automatically adjusts the Windows system's DPI value based on the modified EDID value.

[0091] Step S705: The user manually adjusts the DPI value of the corresponding screen.

[0092] For example, after the cloud desktop operating system automatically adjusts the DPI value of the Windows system based on the modified EDID value, if the user manually adjusts the DPI value of the corresponding screen according to their needs, the manually adjusted DPI value can also be stored in the registry key.

[0093] Step S706: Store the modified EDID value and the manually adjusted DPI value of the corresponding screen into the registry key.

[0094] For example, the Windows system on the cloud desktop creates a registry key for the corresponding screen based on the currently modified EDID value, and stores the modified EDID value and the manually adjusted DPI value of the corresponding screen in the registry key.

[0095] In one embodiment, as shown in Figures 5 and 7 above, the Windows system registry key can store automatically adjusted DPI values ​​and manually adjusted DPI values, so that when switching to different terminals to log in to the cloud desktop, the DPI value of the screen connected to the corresponding terminal remains unchanged, actively remembering the DPI value manually set by the user, and ensuring the consistency of the user experience.

[0096] Figure 8 is an overall flowchart of the cloud desktop display method according to an embodiment of the present disclosure. As shown in Figure 8, when different terminals access the cloud desktop, the DPI value can be automatically adjusted to optimize the cloud desktop display effect. The steps of the cloud desktop display process are described in detail below:

[0097] Step S801: Load the client protocol library component.

[0098] Step S802: The client initiates a cloud desktop login request.

[0099] For example, the client and the virtual machine component negotiate capabilities, the client starts, and the user selects to log in to the cloud desktop. During the cloud desktop login process, the client obtains the screen size (unit: cm, rounded down) and resolution information of the connected terminal.

[0100] Step S803: The screen size and resolution information are transmitted to the graphics card driver.

[0101] For example, the client transmits the obtained screen size and resolution information to the protocol library, which then sends the screen size and resolution information to the graphics card driver. The graphics card driver modifies the two values ​​edid

[0021] and edid

[0022] in the EDID value according to the screen size, and transmits the modified EDID value to the virtual machine component.

[0102] Step S804: Automatic adjustment and saving of DPI value.

[0103] For example, if a client logs into the cloud desktop for the first time, the Windows system automatically adjusts the Windows system's DPI value based on the modified EDID value provided by the graphics card driver, and creates a registry entry for the corresponding screen based on the modified EDID value. The registry entry will store the DPI value corresponding to the current screen size and resolution information;

[0104] If the client is not logging into the cloud desktop for the first time, the Windows system reads the DPI value stored in the registry (user priority, that is, when the Windows system automatically adjusts the DPI value according to the modified EDID value, it checks whether the DPI value manually set by the user has been saved in the registry. If a record of manually set DPI value exists, the Windows system will give priority to the manually set DPI value, rather than relying solely on the automatically adjusted DPI value).

[0105] Step S805: Manual adjustment and saving of DPI value.

[0106] For example, after logging into the cloud desktop, users can manually adjust the DPI value according to their actual needs. The Windows system will save the manually adjusted DPI value in the registry key so that when logging into the cloud desktop using the same terminal in the future, the user's preferred display settings can be quickly restored, avoiding the inconvenience of having to readjust the DPI value every time they log in.

[0107] Through the above process, the embodiments of this disclosure can realize automatic and manual adjustment of DPI value in scenarios where different terminals access the cloud desktop, and maintain the continuity of DPI value setting when logging in from different terminals, thereby significantly optimizing the display effect and user experience of the cloud desktop in different terminal environments.

[0108] The above embodiments of this disclosure provide a cloud desktop display method. This method receives terminal parameter information sent by the cloud desktop client through a virtual machine graphics card driver. The virtual machine graphics card driver then modifies the External Display Device Identifier (EDID) value corresponding to the cloud desktop based on the parameter information. This allows the operating system on the cloud desktop to automatically adjust its pixel DPI value according to the modified EDID value. This eliminates reliance on upper-layer applications reading preset DPI values ​​from configuration files, saving redundant operations of reading and writing configuration files. Furthermore, since the cloud desktop client resides on the terminal, at least one screen connected to the terminal can support adaptive DPI adjustment in dual-screen or multi-screen scenarios. Therefore, this method solves the problem in related technologies where cloud desktop display mainly relies on preset DPI values ​​recorded in configuration files. This results in the cloud desktop being unable to automatically adjust its DPI value when a terminal without a recorded preset DPI value logs in, leading to poor display quality. This ultimately improves the efficiency of cloud desktop display.

[0109] Through the above description of the embodiments, those skilled in the art can clearly understand that the methods according to the above embodiments can be implemented by means of software plus necessary general-purpose hardware platforms. Of course, they can also be implemented by hardware, but in many cases the former is a better implementation method. Based on this understanding, the technical solution of this disclosure, in essence, or the part that contributes to the prior art, can be embodied in the form of a software product. This computer software product is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk), and includes several instructions to cause a terminal device (which may be a mobile phone, computer, server, or network device, etc.) to execute the methods described in the various embodiments of this disclosure.

[0110] It should be noted that the above modules can be implemented by software or hardware. For the latter, they can be implemented in the following ways, but are not limited to: all the above modules are located in the same processor; or, the above modules are located in different processors in any combination.

[0111] Embodiments of this disclosure also provide a computer-readable storage medium storing a computer program configured to perform the steps in any of the above method embodiments when executed.

[0112] In one exemplary embodiment, the aforementioned computer-readable storage medium may include, but is not limited to, various media capable of storing computer programs, such as a USB flash drive, read-only memory (ROM), random access memory (RAM), portable hard disk, magnetic disk, or optical disk.

[0113] Embodiments of this disclosure also provide an electronic device including a memory and a processor, the memory storing a computer program and the processor being configured to run the computer program to perform the steps in any of the above method embodiments.

[0114] In one exemplary embodiment, the electronic device may further include a transmission device and an input / output device, wherein the transmission device is connected to the processor and the input / output device is connected to the processor.

[0115] According to yet another embodiment of this disclosure, a computer program product is also provided, including a computer program that, when executed by a processor, implements the steps of the methods described in various embodiments of this disclosure.

[0116] Specific examples in this embodiment can be found in the examples described in the above embodiments and exemplary implementations, and will not be repeated here.

[0117] It is obvious to those skilled in the art that the modules or steps of this disclosure described above can be implemented using general-purpose computing devices. They can be centralized on a single computing device or distributed across a network of multiple computing devices. They can be implemented using computer-executable program code, and thus can be stored in a storage device for execution by a computing device. In some cases, the steps shown or described can be performed in a different order than those presented herein, or they can be fabricated as separate integrated circuit modules, or multiple modules or steps can be fabricated as a single integrated circuit module. Thus, this disclosure is not limited to any particular combination of hardware and software.

[0118] The above description is merely a preferred embodiment of this disclosure and is not intended to limit this disclosure. Various modifications and variations can be made to this disclosure by those skilled in the art. Any modifications, equivalent substitutions, improvements, etc., made within the principles of this disclosure should be included within the scope of protection of this disclosure.

Claims

1. A cloud desktop display method, applied to a virtual machine graphics card driver, comprising: Receive terminal parameter information sent by a cloud desktop client, wherein the cloud desktop client is located on the terminal and the terminal is connected to at least one screen; Modify the EDID value of the external display device identifier corresponding to the cloud desktop according to the parameter information, so that the operating system on the cloud desktop can adjust the pixel DPI value of the operating system according to the modified EDID value.

2. The method according to claim 1, wherein, The parameter information includes at least one of the following: screen resolution, first screen size, screen identifier ID, and screen display depth.

3. The method according to claim 1, wherein, The EDID value is stored as an array, which includes the second screen size.

4. The method according to claim 1, wherein, Modify the EDID value of the external display device identifier data corresponding to the cloud desktop according to the parameter information, so that the operating system on the cloud desktop adjusts the pixel DPI value of the operating system according to the modified EDID value, including: The EDID value of the corresponding screen is determined based on the screen ID in the parameter information, and the second screen size in the EDID value of the corresponding screen is modified so that the operating system on the cloud desktop adjusts the DPI value of the operating system according to the modified second screen size.

5. The method according to claim 4, wherein, After determining the EDID value of the corresponding screen based on the screen ID in the parameter information, and modifying the second screen size in the EDID value of the corresponding screen, the method further includes: Compare the first screen size in the parameter information with the modified second screen size; When the first screen size is the same as the modified second screen size, adjust the DPI value of the operating system.

6. The method according to claim 4, wherein, After modifying the second screen size in the EDID value according to the screen ID in the parameter information, the method further includes: The modified EDID value is reloaded so that the operating system on the cloud desktop stores the modified EDID value in a preset registry key, wherein the preset registry key is a registry key for the corresponding screen created based on the modified EDID value.

7. The method according to claim 1, wherein, Also includes: If the EDID value corresponding to the cloud desktop is changed according to the parameter information, the operating system on the cloud desktop will determine that it is connected to a new screen, and the DPI value of the operating system will be adjusted according to the changed EDID value.

8. A cloud desktop display method, applied to a cloud desktop, comprising: The pixel DPI value of the operating system on the cloud desktop is adjusted according to the modified external display device identifier data EDID value, wherein the EDID value is modified by the virtual machine graphics card driver according to parameter information, the parameter information is the parameter information sent by the cloud desktop client to the terminal of the virtual machine graphics card driver, the cloud desktop client is located on the terminal, and the terminal is connected to at least one screen; Based on the adjusted DPI value, the cloud desktop is displayed at a screen size corresponding to the adjusted DPI value.

9. The method according to claim 8, wherein, After adjusting the pixel DPI value of the operating system on the cloud desktop based on the modified external display device identifier data EDID value, the method further includes: If the adjusted DPI value is adjusted a second time, the adjusted DPI value is stored in a preset registry key, wherein the preset registry key is a registry key for the corresponding screen created based on the modified EDID value.

10. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor, when executing the computer program, performs the steps of the method of any one of claims 1-7 or 8-9.

11. A computer program product comprising a computer program that, when executed by a processor, implements the steps of the method described in any one of claims 1-7 or 8-9.