CN105100125B - A kind of dormancy control method of virtual desktop, apparatus and system - Google Patents

A kind of dormancy control method of virtual desktop, apparatus and system Download PDF

Info

Publication number
CN105100125B
CN105100125B CN201410151526.XA CN201410151526A CN105100125B CN 105100125 B CN105100125 B CN 105100125B CN 201410151526 A CN201410151526 A CN 201410151526A CN 105100125 B CN105100125 B CN 105100125B
Authority
CN
China
Prior art keywords
client
sleep
server
dormancy
application program
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201410151526.XA
Other languages
Chinese (zh)
Other versions
CN105100125A (en
Inventor
江志敏
郑晓光
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Huawei Cloud Computing Technologies Co Ltd
Original Assignee
Huawei Technologies Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Huawei Technologies Co Ltd filed Critical Huawei Technologies Co Ltd
Priority to CN201410151526.XA priority Critical patent/CN105100125B/en
Priority to PCT/CN2015/070050 priority patent/WO2015158161A1/en
Publication of CN105100125A publication Critical patent/CN105100125A/en
Application granted granted Critical
Publication of CN105100125B publication Critical patent/CN105100125B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/08Protocols specially adapted for terminal emulation, e.g. Telnet
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/4401Bootstrapping
    • G06F9/4418Suspend and resume; Hibernate and awake
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/451Execution arrangements for user interfaces
    • G06F9/452Remote windowing, e.g. X-Window System, desktop virtualisation
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/455Emulation; Interpretation; Software simulation, e.g. virtualisation or emulation of application or operating system execution engines
    • G06F9/45533Hypervisors; Virtual machine monitors
    • G06F9/45558Hypervisor-specific management and integration aspects
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/455Emulation; Interpretation; Software simulation, e.g. virtualisation or emulation of application or operating system execution engines
    • G06F9/45533Hypervisors; Virtual machine monitors
    • G06F9/45558Hypervisor-specific management and integration aspects
    • G06F2009/45575Starting, stopping, suspending or resuming virtual machine instances

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Human Computer Interaction (AREA)
  • Computer Security & Cryptography (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Power Sources (AREA)

Abstract

The embodiment of the present invention provides a kind of dormancy control method of virtual desktop, apparatus and system.The dormancy control method of virtual desktop of the present invention, including:The server-side receives the sleep request message that the client is sent;The server-side is according to the sleep request message, determine the application program for exempting to operate class whether is run on the virtual machine being connected with the client, the application program for exempting to operate class refers to the application program that the input equipment of the client is not required to carry out input operation;If it is determined that exempting from the application program of operation class on the virtual machine of the client described in off-duty, then the server-side is sent to the client allows dormancy to indicate, to indicate that the client enters dormant state;If it is determined that operation has the application program for exempting to operate class on the virtual machine of the client, then the server-side forbids dormancy to indicate to client transmission, to indicate that the client is prohibited from entering dormant state.

Description

Dormancy control method, device and system for virtual desktop
Technical Field
The embodiment of the invention relates to information technology, in particular to a sleep control method, device and system for a virtual desktop.
Background
A typical Virtual Desktop Infrastructure (VDI) architecture generally includes at least one server device and a Virtual Desktop client, where the Virtual Desktop client is generally called a Thin Client (TC), the TC accesses the server device through a Desktop protocol client software installed on an operating system of the TC to obtain a remote Desktop service, the server device is used to provide a remote Desktop, and a Virtual Desktop system of a user exists on the remote Desktop server in the form of a Virtual Machine (VM).
In the prior art, when a user uses a virtual desktop transmitted by a remote server device through a thin terminal, the sleep setting of the thin terminal is usually closed, so that the influence caused by the fact that a display of the thin terminal enters a sleep state due to no keyboard or mouse operation for a long time when the user is watching a video or listening to a conference and the like can be avoided. However, this arrangement still keeps the display active when the user is away for a long time, which not only consumes power, but also causes a loss of display life.
Disclosure of Invention
The embodiment of the invention provides a sleep control method, device and system of a virtual desktop, aiming at solving the problem that the normal use of a user is influenced when a display enters sleep when the user uses an application program which does not need to be operated by the user in the prior art.
In a first aspect, an embodiment of the present invention provides a sleep control method for a virtual desktop, which is used in a virtual desktop system including a server and a client, where a virtual machine connected to the client runs on the server, and the method includes:
the server receives a dormancy request message sent by the client;
the server determines whether an operation-free application program is operated on a virtual machine connected with the client according to the sleep request message, wherein the operation-free application program is an application program which does not need input operation of input equipment of the client;
if the fact that the operation-free application program is not operated on the virtual machine of the client is determined, the server side sends a sleep permission indication to the client to indicate that the client enters a sleep state;
and if the fact that the operation-free application program runs on the virtual machine of the client is determined, the server side sends a sleep prohibition indication to the client to indicate that the client is prohibited from entering a sleep state.
With reference to the first aspect, in a first possible implementation manner of the first aspect, before the receiving, by the server device, a sleep request message sent by a client, the method further includes:
the server side sends a preset dormancy threshold to the client side, so that the client side monitors whether the time of input operation of input equipment of the client side exceeds the preset dormancy threshold or not according to the preset dormancy threshold.
With reference to the first aspect, any one of the first possible implementation manners of the first aspect, in a second possible implementation manner of the first aspect,
if it is determined that the virtual machine of the client does not run the application program of the operation-free class, the server sends a sleep permission indication to the client to indicate that the client enters a sleep state, and the method further includes:
and the server stops sending the image data to the client through a remote desktop protocol.
With reference to the second possible implementation manner of the first aspect, in a third possible implementation manner of the first aspect, if it is determined that the virtual machine of the client does not run an application program of an operation-free class, the sending, by the server, a sleep permission indication to the client to indicate that the client enters a sleep state further includes:
the server receives a wake-up message sent by the client;
and the server side continuously sends the image data to the client side through the remote desktop protocol according to the awakening message.
In a second aspect, an embodiment of the present invention provides a sleep control method for a virtual desktop, which is used for a virtual desktop system including a server and a client, where a virtual machine connected to the client runs on the server; the method comprises the following steps:
the client monitors the input equipment of the client;
the client side sends a sleep request message to the server side when monitoring that the time of no input operation of the input equipment exceeds a preset sleep threshold;
the client controls the client to enter a dormant state when receiving a dormancy allowing instruction sent by the server;
and when receiving a dormancy prohibition instruction sent by the server, the client controls the client to prohibit entering a dormant state.
With reference to the second aspect, in a first possible implementation manner of the second aspect, if the client receives a sleep prohibition indication sent by the server, after controlling the client to prohibit entering a sleep state, the method further includes:
and the client prohibits the dormancy processing of the power management module of the operating system of the client to the client.
With reference to the second aspect, any one of the first possible implementation manners of the second aspect, in a second possible implementation manner of the second aspect, after the instructing, if the client receives the sleep permission indication sent by the server, the client to enter the sleep state, the method further includes:
when the client monitors that the input device has input operation, the client sends a wake-up message to the server, so that the server sends image data to the client through a remote desktop protocol according to the wake-up message.
With reference to the second possible implementation manner of the second aspect, in a third possible implementation manner of the second aspect, before the monitoring, by the client, an input device of the client, the method further includes:
and the client acquires a preset dormancy threshold from the server.
In a third aspect, an embodiment of the present invention provides a sleep control apparatus for a virtual desktop, including:
the receiving and sending module is used for receiving a dormancy request message sent by a client;
a processing module, configured to determine, according to the sleep request message, whether an operation-free application program is running on a virtual machine connected to the client, where the operation-free application program is an application program that does not require an input device of the client to perform an input operation;
the transceiver module is further configured to send a sleep permission indication to the client to indicate that the client enters a sleep state if the processing module determines that the operation-free application program is not running on the virtual machine of the client;
the transceiver module is further configured to send a sleep prohibition indication to the client to instruct the client to prohibit entering a sleep state if the determination module determines that the virtual machine of the client runs the application program of the operation-exempt class.
With reference to the third aspect, in a first possible implementation manner of the third aspect,
the transceiver module is further configured to:
before a sleep request message sent by a client is received, sending a preset sleep threshold to the client, so that the client monitors whether the time of no input operation of an input device of the client exceeds the preset sleep threshold according to the preset sleep threshold.
With reference to the third aspect, in a second possible implementation manner of the third aspect, the transceiver module is further configured to:
if the processing module determines that the virtual machine of the client does not run the operation-free application program, the transceiver module sends a sleep permission indication to the client to indicate that the client stops sending image data to the client through a remote desktop protocol after entering a sleep state.
With reference to the first possible implementation manner of the third aspect, in a third possible implementation manner of the third aspect, the transceiver module is further configured to:
if the processing module determines that the virtual machine of the client does not run the application program of the operation-free class, the transceiver module sends a sleep permission indication to the client to indicate that the client enters a sleep state,
receiving a wake-up message sent by the client;
and according to the awakening message, continuously sending image data to the client through the remote desktop protocol.
In a fourth aspect, an embodiment of the present invention provides a sleep control apparatus for a virtual desktop, including:
the detection module is used for monitoring the input equipment of the client;
the receiving and sending module is used for sending a sleep request message to the server side when the time that the input equipment does not have input operation is monitored to exceed a preset sleep threshold;
the control module is used for controlling the client to enter a dormant state if the transceiver module receives a dormancy allowing instruction sent by the server;
the control module is further configured to control the client to prohibit entering a sleep state if the transceiver module receives a sleep prohibition indication sent by the server.
With reference to the fourth aspect, in a first possible implementation manner of the fourth aspect, the control module is further configured to:
and if the transceiving module receives a dormancy forbidding instruction sent by the server, after the control module controls the client to forbid entering a dormant state, forbidding a power management module of an operating system of the client to carry out dormant processing on the client.
With reference to the fourth aspect, the first any possible implementation manner of the fourth aspect, in a second possible implementation manner of the fourth aspect, the transceiver module is further configured to:
if the receiving and sending module receives a sleep permission indication sent by the server, the control module controls the client to enter a sleep state, and sends a wake-up message to the server when the detection module monitors that the input device operates, so that the server sends image data to the client through a remote desktop protocol according to the wake-up message.
With reference to the first possible implementation manner of the fourth aspect, in a third possible implementation manner of the fourth aspect,
the transceiver module is further configured to, before the detection module monitors the input device of the client,
and acquiring a preset dormancy threshold from the server.
In a fifth aspect, an embodiment of the present invention provides a sleep control system for a virtual desktop, including: the sleep control device of the virtual desktop described by the third aspect, the sleep control device of the virtual desktop described by the fourth aspect, and the display and the input device.
According to the sleep control method, device and system of the virtual desktop, the server-side equipment receives the display sleep request message sent by the thin terminal, triggers and judges whether the virtual machine corresponding to the thin terminal runs the operation-free software or not, obtains the judgment result, and sends the display sleep response message to the thin terminal according to the judgment result, so that the problem that the thin terminal sets the display to enter the sleep mode to influence the use of the virtual desktop service by a user after the software is running on the thin terminal for a period of time is avoided.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings needed to be used in the description of the embodiments or the prior art will be briefly introduced below, and it is obvious that the drawings in the following description are some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to these drawings without creative efforts.
FIG. 1 is a flowchart illustrating a first embodiment of a sleep control method for a virtual desktop according to the present invention;
FIG. 2 is a flowchart illustrating a second embodiment of a sleep control method for a virtual desktop according to the present invention;
FIG. 3 is a flowchart illustrating a third embodiment of a sleep control method for a virtual desktop according to the present invention;
FIG. 4 is a schematic structural diagram illustrating a first exemplary embodiment of a sleep control apparatus for a virtual desktop;
FIG. 5 is a schematic structural diagram illustrating a sleep control apparatus for a virtual desktop according to a second embodiment of the present invention;
FIG. 6 is a schematic structural diagram of a sleep control system of a virtual desktop according to an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, but not all, embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
Fig. 1 is a flowchart of a first embodiment of a sleep control method for a virtual desktop, where the method is used in a virtual desktop system including a server and a client, where a virtual machine communicatively connected to the client runs on the server, and as shown in fig. 1, the method in this embodiment may include:
step 101, a server receives a sleep request message sent by a client.
The server runs a Virtual Machine distributed for the client, provides a carrier of Virtual Desktop service, and a Desktop system (Virtual Desktop) of a user exists on the server in a software form of a Virtual Machine (VM). The Client of the virtual desktop is generally called a Thin Client (TC), which is also called a Thin terminal, and may be in the form of a common computer, a tablet computer, a smart phone, or other devices, and the Client may be connected with an output device such as a display or a display screen, and any one or more input devices such as a keyboard, a mouse, or a touch screen. The client can perform data communication with a server side of a virtual machine providing the client in the server group through the access gateway. The sleep request message may be sleep request information sent to a server when the time when the client monitors that the input device of the client does not perform input operation exceeds a preset sleep threshold. Optionally, the sleep request message may include an identification of the client.
Optionally, before the server device receives the sleep request message sent by the client, the method may further include:
the server side sends a preset dormancy threshold to the client side, so that the client side monitors whether the time of input operation of input equipment of the client side exceeds the preset dormancy threshold or not according to the preset dormancy threshold.
Optionally, the server may also send a dormancy threshold request message of the client to a management system, so as to obtain the dormancy threshold of the client. The management system may be a background management system of the server, and optionally, a maintenance person of the management system may set a sleep threshold of each client on the management system.
Optionally, the server may not send the set dormancy threshold of the client to the client, and the set dormancy threshold of the client may be set by the client.
And 102, the server side confirms whether an operation-free application program is operated on the virtual machine connected with the client side according to the sleep request message, wherein the operation-free application program is an application program which does not need input operation of input equipment of the client side.
The operation-free application program can be a video playing program or a conference program, and the application programs are easy to appear for a period of time in the using process and do not need to be input by a user through an input device. The server may obtain, according to the identification information of the client included in the sleep request message, program information running on the virtual machine connected to the client, and then determine whether the virtual machine connected to the client is running an operation-free application program, for example, a program name or a process name of the operation-free application program.
Step 103, if it is determined that the application program of the operation-free class is not run on the virtual machine of the client, the server sends a sleep permission indication to the client to indicate that the client enters a sleep state.
The sending, by the server, a sleep permission indication to the client to indicate that the client enters a sleep state may specifically include:
the server side sends a sleep permission indication to the client side to indicate the operating system of the client side to enter a sleep state, and/or,
and the server side sends a sleep permission indication to the client side so as to indicate a display of the client side to enter a sleep state.
And step 104, if the virtual machine of the client is determined to run the application program of the operation-free class, the server sends a sleep prohibition indication to the client to instruct the client to prohibit entering a sleep state.
The sending, by the server, a dormancy prohibition instruction to the client to instruct the client to prohibit entering the dormant state may specifically include:
the server side sends a sleep-allowed indication to the client side to indicate that an operating system of the client side is prohibited from entering a sleep state, and/or,
and the server side sends a sleep permission indication to the client side so as to indicate that a display of the client side is prohibited from entering a sleep state.
In this embodiment, the server receives a sleep request message sent by the client, determines whether the virtual machine connected to the client runs an operation-free application, sends a sleep permission indication to indicate that the client enters into sleep if the operation-free application is not running, and sends a sleep prohibition indication to indicate that the client prohibits entering into sleep if the operation-free application is running, so as to avoid that the client sets the display to enter into sleep to influence the use of the virtual desktop service when the client runs software without input operation for a period of time, and the client can enter into sleep if the user does not run the operation-free software on the client and leaves without input operation for a long time, thereby saving power and reducing the loss of the service life of the display.
Further, if it is determined that the virtual machine of the client does not run the application program of the operation-free class, the server sends a sleep permission indication to the client to indicate that the client enters a sleep state, and then the method further includes:
and the server stops sending the image data to the client through a remote desktop protocol.
The image data is real-time display information of a desktop system of the user, and the server converts the real-time display information of the desktop system of the user into an image data form and sends the image data form to the client through a remote desktop protocol. After the server device sends the display hibernation response message to the client, the server may stop sending data to the client to save software resources and hardware resources on the server.
Optionally, if it is determined that the virtual machine of the client does not run the operation-free application, the server sends a sleep permission indication to the client to indicate that the client enters a sleep state, and then the method further includes:
the server receives a wake-up message sent by the client;
and the server side continuously sends the image data to the client side through the remote desktop protocol according to the awakening message.
The awakening message sent by the client is sent when the client detects that input equipment such as a keyboard or a mouse has input operation or the awakening condition set by the client is met.
For example, after controlling the client to enter the sleep state according to the sleep permission indication, the client may continue to detect whether input devices such as a keyboard and a mouse acquire an input operation, and if the input operation is acquired, the client may send a wake-up message to the server.
Optionally, the client may further set a wake-up condition, for example, a timed wake-up condition, and when the wake-up condition of the timed wake-up condition is reached, the client may wake up software of the client itself to send the wake-up message to the server.
And after receiving the awakening message sent by the client, the server can resume sending data to the client, so that the client can resume displaying the desktop of the user in time according to the needs of the user.
Fig. 2 is a flowchart of a second embodiment of a sleep control method for a virtual desktop, where the method is used in a virtual desktop system including a server and a client, where a virtual machine connected to the client runs on the server, and as shown in fig. 2, the method in this embodiment may include:
step 201, the client monitors its own input device.
Step 202, when monitoring that the time of no input operation of the input device exceeds a preset sleep threshold, the client sends a sleep request message to the server.
When the input device of the client does not receive the input operation for a period of time, the client should determine whether to set the display to enter the sleep state to save power and reduce unnecessary loss of the device. The client can be connected with input devices such as a keyboard, a mouse and a touch screen to acquire input operation of a user. The sleep threshold may be a time period set on the client to detect that an input device is not operating. Optionally, if it is detected that the user performs an input operation through any input device within a time period corresponding to the dormancy threshold, the client may restart the timer of the dormancy threshold. And when the client monitors that the time of no input operation of the input equipment exceeds a preset dormancy threshold, the client can send a dormancy request message to the server.
And 203, controlling the client to enter a sleep state when the client receives a sleep permission indication sent by the server.
And the indication allowing dormancy is sent when the server judges that the operation-free application program is not run on the virtual machine of the client according to the dormancy request message after receiving the dormancy request message. The operation-free application program can be a video playing program or a conference program, and the like, and the application program is easy to have a situation that a user does not need to perform input operation for a period of time in the use process. The server may determine whether the operation-free software is running according to program information running on the virtual machine corresponding to the client, for example, the server may determine whether a program name or a process name of an operation-free application running on the virtual machine connected to the client is running.
Optionally, the controlling the client to enter the sleep state may include controlling an operating system of the client to enter the sleep state, and/or controlling a display of the client to enter the sleep state. And step 204, when receiving the dormancy prohibition instruction sent by the server, the client controls the client to prohibit entering the dormancy state.
And the indication for prohibiting dormancy is sent when the server judges that an application program of an operation-free class runs on the virtual machine of the client according to the dormancy request message after receiving the dormancy request message.
Optionally, the controlling the client to prohibit from entering the sleep state may include controlling an operating system of the client to prohibit from entering the sleep state, and/or controlling a display of the client to prohibit from entering the sleep state.
For example, if the client receives a sleep permission indication, that means, the server determines that the operation-free application is not running on the virtual machine of the client, and the client enters a sleep state without affecting normal use of the user; if the client receives the instruction of prohibiting dormancy, the server judges that the operation-free software is running on the virtual machine of the client, the client should not enter the dormant state, and the client should continue to work when receiving the instruction of prohibiting dormancy.
In this embodiment, a client monitors an input device of the client, and when it is monitored that the time during which the input device does not perform an input operation exceeds a preset sleep threshold, the client sends a sleep request message to a server and receives a sleep permission indication or a sleep prohibition indication sent by the server, and the client controls the client to enter a sleep state according to the sleep permission indication or controls the client to prohibit the client from entering the sleep state according to the sleep prohibition indication. The method and the device avoid the problem that the use of virtual desktop service by a user is influenced because the display is set to be dormant by the client after the application which does not need input operation is running on the client for a period of time, and the client can be set to be in a dormant state if the application which does not need operation is not running on the client and leaves for a long time without input operation, so that the electric energy is saved, and the unnecessary loss of the service life of the display can be reduced. Optionally, before the client monitors its own input device, the method further includes:
and the client acquires a preset dormancy threshold from the server.
Optionally, the client may also set the dormancy threshold information of the client locally.
Optionally, the client in the embodiment of the present invention may close the sleep processing setting of the power management module of the operating system of the client in advance; or,
after the client receives the dormancy prohibition indication sent by the server, the method further includes:
and the client prohibits the power management module of the operating system of the client from performing dormancy processing on the client.
The dormancy processing of the power management module to the client may be to set the client to enter dormancy or to set a display of the client to enter dormancy.
For example, if the client closes the sleep processing setting of the power management module of the operating system of the client in advance, the client determines whether to control the client to enter a sleep state according to a sleep threshold without paying attention to the related processing of power management on the operating system; if the client does not close the sleep processing setting of the power management module of the operating system of the client in advance, the client may monitor the sleep processing on the operating system, and if the power management module of the operating system is to set the client to enter a sleep state, the client may prohibit the sleep processing of the power management module of the operating system of the client.
Optionally, if the client receives a sleep permission indication sent by the server, after indicating that the client enters a sleep state, the method further includes:
when the client monitors that the input device has input operation, the client sends a wake-up message to the server, so that the server sends image data to the client through a remote desktop protocol according to the wake-up message.
And the client sends a wake-up message to the server, wherein the wake-up message is sent when the client detects the operation of a keyboard or a mouse. Optionally, the client may further set a wake-up condition, for example, a timed wake-up condition, and when the wake-up condition of the timed wake-up condition is reached, the client may wake up software of the client itself and send the wake-up message to the server.
According to the embodiment of the invention, the client sends the awakening message to the server so that the server recovers sending the image data to the client, so that a user can reply to the desktop display of the user in time when the user needs to use the client.
The technical solution of the method embodiment shown in fig. 1-2 is described in detail below using several specific embodiments.
Fig. 3 is a flowchart of a third embodiment of a sleep control method for a virtual desktop according to the present invention, as shown in fig. 3, the method of the present embodiment may include:
s301, the user operates the client.
S302, the client sends a login request message to the server.
S303, the server side sends a login response message and image data to the client side.
S304, the server side sends a dormancy threshold to the client side.
The login response message may also carry the dormancy threshold of the client, and if the server sends the dormancy threshold through the login response message, step 304 may not be executed. Optionally, the login response message may not carry the dormancy threshold of the client.
S305, the client monitors the input equipment of the client. .
If the login response message in S303 does not carry the dormancy threshold of the client or the server does not execute step S304 to send the dormancy threshold of the client, the client monitors whether an operation occurs to the input device according to the dormancy threshold of the client configured locally, and if the login response message in S303 carries the dormancy threshold of the client or the server sends the dormancy threshold of the client through S304, the client monitors whether an operation occurs to the input device according to the dormancy threshold of the client carried in S303 or S304.
S306, the client side monitors that the time of no input operation of the input equipment exceeds a preset dormancy threshold, and sends a dormancy request message to the server side.
If it is detected that the user performs an input operation through any input device within a time period corresponding to the dormancy threshold, the client may restart the timer of the dormancy threshold.
S307, the server determines whether an application program with an operation-free class is run on the virtual machine connected with the client according to the sleep request message.
S308-1, if the server determines that the application program of the operation-free class is not operated on the virtual machine of the client, the server sends a sleep permission indication to the client to indicate that the client enters a sleep state.
S309-1, when receiving the sleep permission indication sent by the server, the client controls the client to enter a sleep state.
Optionally, after S307, the method may further include:
s308-2, if the server determines that the application program of the operation-free class runs on the virtual machine of the client, the server sends a sleep prohibition indication to the client to instruct the client to prohibit entering a sleep state.
S309-2, when the client receives the dormancy forbidding indication sent by the server, controlling the client to forbid entering the dormancy state.
Optionally, after S309-2, the method may include:
s310-2, the client does not perform permission control on the display, and S305 is executed.
Optionally, after S309-1, the method may further include:
s311, the client detects that the input operation of the input device or the timing awakening time limit arrives.
S312, the client sends a wakeup message to the server.
S313, the server receives and sends the image data to the client.
Optionally, before S302, the method may further include:
s302-1, the server side sends a dormancy threshold request message to a management system.
S302-2, the management system sends a dormancy threshold response message to the server, wherein the dormancy threshold response message carries the dormancy threshold.
In this embodiment, when the client monitors that the time of no input operation of the input device exceeds the preset hibernation threshold, the client sends a hibernation request message to the server, the server determines whether the virtual machine of the client runs the application program of the operation-free class according to the dormancy request message, sending a permission to sleep indication to instruct the client to go to sleep if the application of the operation-free class is not running, if the application program with the operation-free class is run, sending a sleep prohibition indication to instruct the client to prohibit entering the sleep, so as to avoid the situation that the client sets to enter the sleep to influence the use of the virtual desktop service by the user after the software which does not need the input operation of the user is running on the client for a period of time, and if the user on the client does not run the operation-free software and leaves for a long time without input operation, the client can enter the dormancy state, so that the electric energy is saved, and the loss of the service life of the display can be reduced.
Fig. 4 is a schematic structural diagram of a sleep control apparatus for a virtual desktop according to a first embodiment of the present invention, as shown in fig. 4, the apparatus of this embodiment may be a server of the virtual desktop, and the apparatus of this embodiment may include: a transceiver module 11 and a processing module 12.
The transceiver module 11 is configured to receive a sleep request message sent by a client; the processing module is further configured to send a sleep permission indication to the client to indicate the client to enter a sleep state if the processing module determines that the application program of the operation-free class is not running on the virtual machine of the client; and if the determining module determines that the virtual machine of the client runs the application program of the operation-free class, sending a sleep prohibition indication to the client to instruct the client to prohibit entering a sleep state.
The processing module 12 is configured to determine, according to the sleep request message, whether an operation-free application program is running on a virtual machine connected to the client, where the operation-free application program is an application program that does not require an input device of the client to perform an input operation.
Optionally, the transceiver module 11 may be further configured to:
before a sleep request message sent by a client is received, sending a preset sleep threshold to the client, so that the client monitors whether the time of no input operation of an input device of the client exceeds the preset sleep threshold according to the preset sleep threshold.
Optionally, the transceiver module 11 may be further configured to:
if the processing module determines that the virtual machine of the client does not run the operation-free application program, the transceiver module sends a sleep permission indication to the client to indicate that the client stops sending image data to the client through a remote desktop protocol after entering a sleep state.
Further, the transceiver module 11 may be further configured to:
if the processing module determines that the virtual machine of the client does not run the application program of the operation-free class, the transceiver module sends a sleep permission indication to the client to indicate that the client enters a sleep state,
receiving a wake-up message sent by the client;
and according to the awakening message, continuously sending image data to the client through the remote desktop protocol.
The apparatus of this embodiment may be used to implement the technical solutions of the method embodiments shown in fig. 1 and fig. 3, and the implementation principles and technical effects are similar, which are not described herein again.
Fig. 5 is a schematic structural diagram of a second embodiment of the sleep control device for a virtual desktop according to the present invention, as shown in fig. 5, an execution subject of the embodiment may be a client of the virtual desktop, that is, a thin terminal, and the device of the embodiment may include: a detection module 11, a transceiver module 12 and a control module 13.
The detection module 11 is configured to monitor an input device of the client;
the transceiver module 12 is configured to send a sleep request message to a server when it is monitored that the time during which the input device does not perform the input operation exceeds a preset sleep threshold;
the control module 13 is configured to control the client to enter a sleep state if the transceiver module receives a sleep permission indication sent by the server; and the client is further used for controlling the client to forbid entering a dormant state if the transceiver module receives a dormancy forbidding instruction sent by the server.
Optionally, the control module 13 may be further configured to:
and if the transceiving module receives a dormancy forbidding instruction sent by the server, after the control module controls the client to forbid entering a dormant state, forbidding a power management module of an operating system of the client to carry out dormant processing on the client.
Optionally, the transceiver module 12 may be further configured to:
if the receiving and sending module receives a sleep permission indication sent by the server, the control module controls the client to enter a sleep state, and sends a wake-up message to the server when the detection module monitors that the input device operates, so that the server sends image data to the client through a remote desktop protocol according to the wake-up message.
Optionally, the transceiver module 12 may be further configured to, before the detection module monitors the input device of the client,
and acquiring a preset dormancy threshold from the server.
The apparatus of this embodiment may be used to implement the technical solutions of the method embodiments shown in fig. 2 and fig. 3, and the implementation principles and technical effects are similar, which are not described herein again.
Fig. 6 is a schematic structural diagram of a sleep control system of a virtual desktop according to an embodiment of the present invention, as shown in fig. 6, the system of the embodiment includes: the first apparatus 1 may adopt a structure of any one of the apparatus embodiments in fig. 4, and accordingly may execute the technical solution of any one of the method embodiments in fig. 1 to 3, and the second apparatus 2 may adopt a structure of any one of the apparatus embodiments in fig. 5, and accordingly may execute the technical solution of any one of the method embodiments in fig. 1 to 3, which have similar implementation principles and technical effects, and are not described herein again.
Those of ordinary skill in the art will understand that: all or a portion of the steps of implementing the above-described method embodiments may be performed by hardware associated with program instructions. The program may be stored in a computer-readable storage medium. When executed, the program performs steps comprising the method embodiments described above; and the aforementioned storage medium includes: various media that can store program codes, such as ROM, RAM, magnetic or optical disks.
Finally, it should be noted that: the above embodiments are only used to illustrate the technical solution of the present invention, and not to limit the same; while the invention has been described in detail and with reference to the foregoing embodiments, it will be understood by those skilled in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some or all of the technical features may be equivalently replaced; and the modifications or the substitutions do not make the essence of the corresponding technical solutions depart from the scope of the technical solutions of the embodiments of the present invention.

Claims (17)

1. A sleep control method is used for a virtual desktop system comprising a server and a client, wherein a virtual machine connected with the client runs on the server, and the method comprises the following steps:
the server receives a dormancy request message sent by the client;
the server determines whether an operation-free application program is operated on a virtual machine connected with the client according to the sleep request message, wherein the operation-free application program is an application program which does not need input operation of input equipment of the client;
if the virtual machine connected with the client is determined not to run the application program of the operation-free class, the server side sends a sleep permission indication to the client to indicate the client to enter a sleep state;
and if the virtual machine connected with the client is determined to run the application program of the operation-free class, the server sends a sleep prohibition indication to the client to instruct the client to prohibit entering a sleep state.
2. The method of claim 1, wherein before the server receives the dormancy request message sent by the client, the method further comprises:
the server side sends a preset dormancy threshold to the client side, so that the client side monitors whether the time of input operation of input equipment of the client side exceeds the preset dormancy threshold or not according to the preset dormancy threshold.
3. The method according to claim 1 or 2, wherein if it is determined that the virtual machine connected to the client does not run the application of the operation-free class, the server sends a sleep-allowed indication to the client to indicate that the client enters the sleep state, and further comprising:
and the server stops sending the image data to the client through a remote desktop protocol.
4. The method of claim 3, wherein if it is determined that the application of the operation-free class is not run by the virtual machine connected to the client, the server sends a sleep-allowed indication to the client to indicate that the client enters the sleep state, and further comprising:
the server receives a wake-up message sent by the client;
and the server side continuously sends the image data to the client side through the remote desktop protocol according to the awakening message.
5. The sleep control method is characterized by being used for a virtual desktop system comprising a server side and a client side, wherein a virtual machine connected with the client side runs on the server side; the method comprises the following steps:
the client monitors the input equipment of the client;
the client side sends a sleep request message to the server side when monitoring that the time of no input operation of the input equipment exceeds a preset sleep threshold;
the client controls the client to enter a dormant state when receiving a dormancy allowing instruction sent by the server; the indication allowing dormancy is sent when the server side judges that the virtual machine connected with the client side does not run the application program of the operation-free type according to the dormancy request message after receiving the dormancy request message; the operation-free application program is an application program which does not need input operation of the input equipment of the client;
when the client receives a dormancy forbidding instruction sent by the server, the client is controlled to forbid entering a dormant state; and the indication for prohibiting dormancy is sent when the server judges that an application program of an operation-free class runs on a virtual machine connected with the client according to the dormancy request message after receiving the dormancy request message.
6. The method of claim 5, wherein after controlling the ue to prohibit entering the sleep state if the ue receives the sleep prohibition indication sent by the server, the method further comprises:
and the client prohibits the dormancy processing of the power management module of the operating system of the client to the client.
7. The method according to claim 5 or 6, wherein after instructing the client to enter the sleep state if the client receives the sleep permission indication sent by the server, the method further comprises:
when the client monitors that the input device has input operation, the client sends a wake-up message to the server, so that the server sends image data to the client through a remote desktop protocol according to the wake-up message.
8. The method of claim 5, wherein before the client monitors its input device, the method further comprises:
and the client acquires a preset dormancy threshold from the server.
9. A sleep control apparatus for a virtual desktop, comprising:
the receiving and sending module is used for receiving a dormancy request message sent by a client;
a processing module, configured to determine, according to the sleep request message, whether an operation-free application program is running on a virtual machine connected to the client, where the operation-free application program is an application program that does not require an input device of the client to perform an input operation;
the transceiver module is further configured to send a sleep permission indication to the client to indicate the client to enter a sleep state if the processing module determines that an operation-free application program is not running on a virtual machine connected to the client;
the transceiver module is further configured to send a sleep prohibition indication to the client to instruct the client to prohibit entering a sleep state if the processing module determines that the virtual machine connected to the client runs an application program of an operation-free class.
10. The apparatus of claim 9, wherein the transceiver module is further configured to:
before a sleep request message sent by a client is received, sending a preset sleep threshold to the client, so that the client monitors whether the time of no input operation of an input device of the client exceeds the preset sleep threshold according to the preset sleep threshold.
11. The apparatus of claim 9 or 10, wherein the transceiver module is further configured to:
if the processing module determines that the virtual machine connected with the client does not run the operation-free application program, the transceiver module sends a sleep permission indication to the client to indicate that the client stops sending image data to the client through a remote desktop protocol after entering a sleep state.
12. The apparatus of claim 11, wherein the transceiver module is further configured to:
if the processing module determines that the virtual machine connected with the client does not run the application program of the operation-free class, the transceiver module sends a sleep permission indication to the client to indicate the client to enter a sleep state,
receiving a wake-up message sent by the client;
and according to the awakening message, continuously sending image data to the client through the remote desktop protocol.
13. A sleep control apparatus for a virtual desktop, comprising:
the detection module is used for monitoring the input equipment of the client;
the receiving and sending module is used for sending a sleep request message to the server side when the time that the input equipment does not have input operation is monitored to exceed a preset sleep threshold;
the control module is used for controlling the client to enter a dormant state if the transceiver module receives a dormancy allowing instruction sent by the server; the indication allowing dormancy is sent when the server side judges that the virtual machine connected with the client side does not run the application program of the operation-free type according to the dormancy request message after receiving the dormancy request message; the operation-free application program is an application program which does not need input operation of the input equipment of the client;
the control module is further configured to control the client to prohibit entering a sleep state if the transceiver module receives a sleep prohibition indication sent by the server; and the indication for prohibiting dormancy is sent when the server judges that an application program of an operation-free class runs on a virtual machine connected with the client according to the dormancy request message after receiving the dormancy request message.
14. The apparatus of claim 13, wherein the control module is further configured to:
and if the transceiving module receives a dormancy forbidding instruction sent by the server, after the control module controls the client to forbid entering a dormant state, forbidding a power management module of an operating system of the client to carry out dormant processing on the client.
15. The apparatus of claim 13 or 14, wherein the transceiver module is further configured to:
if the receiving and sending module receives a sleep permission indication sent by the server, the control module controls the client to enter a sleep state, and sends a wake-up message to the server when the detection module monitors that the input device operates, so that the server sends image data to the client through a remote desktop protocol according to the wake-up message.
16. The apparatus of claim 13, wherein the transceiver module is further configured to, prior to the detection module monitoring the input device of the client,
and acquiring a preset dormancy threshold from the server.
17. A sleep control system for a virtual desktop, comprising: a sleep control apparatus for a virtual desktop as claimed in any one of claims 9 to 12, a sleep control apparatus for a virtual desktop as claimed in any one of claims 13 to 16, and a display and input device.
CN201410151526.XA 2014-04-15 2014-04-15 A kind of dormancy control method of virtual desktop, apparatus and system Active CN105100125B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201410151526.XA CN105100125B (en) 2014-04-15 2014-04-15 A kind of dormancy control method of virtual desktop, apparatus and system
PCT/CN2015/070050 WO2015158161A1 (en) 2014-04-15 2015-01-04 Sleep control method, apparatus and system for virtual desktop

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410151526.XA CN105100125B (en) 2014-04-15 2014-04-15 A kind of dormancy control method of virtual desktop, apparatus and system

Publications (2)

Publication Number Publication Date
CN105100125A CN105100125A (en) 2015-11-25
CN105100125B true CN105100125B (en) 2018-05-29

Family

ID=54323464

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410151526.XA Active CN105100125B (en) 2014-04-15 2014-04-15 A kind of dormancy control method of virtual desktop, apparatus and system

Country Status (2)

Country Link
CN (1) CN105100125B (en)
WO (1) WO2015158161A1 (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107305439B (en) * 2016-04-21 2020-04-10 致伸科技股份有限公司 Input module
CN107220102A (en) * 2017-04-19 2017-09-29 深圳中兴网信科技有限公司 The dormancy of virtual machine and awakening method and system
CN112399211B (en) * 2019-08-14 2023-10-24 青岛海信宽带多媒体技术有限公司 Operation method and fusion gateway
CN112416518A (en) * 2020-11-21 2021-02-26 广州西麦科技股份有限公司 Method and system for intelligently preventing virtual resource waste

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102279770A (en) * 2011-09-01 2011-12-14 珠海市魅族科技有限公司 Control method of screen standby mode and terminal
CN103543813A (en) * 2012-07-13 2014-01-29 云联(北京)信息技术有限公司 Timer interruption and remote wakening implementation method based on cloud office business handling
CN103701870A (en) * 2013-12-12 2014-04-02 上海兆民云计算科技有限公司 Method for reducing power consumption generated in connection of desktop cloud terminal and server

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20100332212A1 (en) * 2008-09-19 2010-12-30 Ori Finkelman Method and apparatus for sleep and wake of computer devices
US9021294B2 (en) * 2012-03-16 2015-04-28 Sungard Availability Services Lp Discovering boot order sequence of servers belonging to an application
CN103685396B (en) * 2012-09-14 2017-04-19 北京神州泰岳软件股份有限公司 Method and system for realizing message pushing

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102279770A (en) * 2011-09-01 2011-12-14 珠海市魅族科技有限公司 Control method of screen standby mode and terminal
CN103543813A (en) * 2012-07-13 2014-01-29 云联(北京)信息技术有限公司 Timer interruption and remote wakening implementation method based on cloud office business handling
CN103701870A (en) * 2013-12-12 2014-04-02 上海兆民云计算科技有限公司 Method for reducing power consumption generated in connection of desktop cloud terminal and server

Also Published As

Publication number Publication date
CN105100125A (en) 2015-11-25
WO2015158161A1 (en) 2015-10-22

Similar Documents

Publication Publication Date Title
US11252665B2 (en) Data transmission method, base station and terminal
CN104657228B (en) A kind of system exception processing method and processing device of mobile terminal
US10542495B2 (en) Inhibiting short DRX based on device use conditions
CN106055073B (en) A kind for the treatment of method and apparatus based on bright screen lock
EP3190771B1 (en) Method and device for managing instant communication application program, and mobile terminal thereof
CN105100125B (en) A kind of dormancy control method of virtual desktop, apparatus and system
US10740142B2 (en) System and method for obtaining task trigger information by a baseband processor of an intelligent device and triggering a hosting task
CN106664652B (en) Method and terminal for awakening wireless fidelity network
US10355963B2 (en) Heartbeat period setting method, and terminal
KR101941761B1 (en) Method, device and mobile terminal for reducing power consumption
CN105100730A (en) Monitoring method and camera device
CN106550438B (en) Method and system for limiting regular awakening and mobile device
CN105573777B (en) Method and device for controlling service in application
US20230088033A1 (en) Wi-fi control method and apparatus and electronic device
CN106060280B (en) Data service management method, device and terminal
CN108540356A (en) Processing method and processing equipment
CN110536389A (en) Method and device for reducing power consumption of terminal equipment and terminal equipment
CN105357387B (en) A kind of method, apparatus and system for waking up terminal
CN104184730A (en) Access processing method, device and electronic equipment
US9639137B2 (en) Control method and electronic device
CN115038098A (en) Gap processing method, device, equipment and storage medium
CN107239354B (en) Method and terminal for notifying screen-off event
CN103529758B (en) A kind of method for controlling power supply, power supply control apparatus and electronic equipment
US20230156661A1 (en) Paging message monitoring method and apparatus, terminal, and readable storage medium
CN110536272B (en) Information processing method, readable storage medium and electronic device

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
TR01 Transfer of patent right

Effective date of registration: 20220207

Address after: 550025 Huawei cloud data center, jiaoxinggong Road, Qianzhong Avenue, Gui'an New District, Guiyang City, Guizhou Province

Patentee after: Huawei Cloud Computing Technologies Co.,Ltd.

Address before: 518129 Huawei headquarters office building, Bantian, Longgang District, Shenzhen City, Guangdong Province

Patentee before: HUAWEI TECHNOLOGIES Co.,Ltd.

TR01 Transfer of patent right