CN108124476B - Display method and apparatus for multi-operating system, computer device, and storage medium - Google Patents

Display method and apparatus for multi-operating system, computer device, and storage medium Download PDF

Info

Publication number
CN108124476B
CN108124476B CN201780002458.2A CN201780002458A CN108124476B CN 108124476 B CN108124476 B CN 108124476B CN 201780002458 A CN201780002458 A CN 201780002458A CN 108124476 B CN108124476 B CN 108124476B
Authority
CN
China
Prior art keywords
operating system
display
display window
foreground
main
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
CN201780002458.2A
Other languages
Chinese (zh)
Other versions
CN108124476A (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.)
Cloudminds Shenzhen Robotics Systems Co Ltd
Original Assignee
Cloudminds Shenzhen Robotics Systems 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 Cloudminds Shenzhen Robotics Systems Co Ltd filed Critical Cloudminds Shenzhen Robotics Systems Co Ltd
Publication of CN108124476A publication Critical patent/CN108124476A/en
Application granted granted Critical
Publication of CN108124476B publication Critical patent/CN108124476B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • 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

Abstract

A display method and apparatus, a computer device and a storage medium of a multi-operating system, the method comprising: determining the current operating system display state of the computer equipment; if the operating system display state indicates that the main operating system is displayed in the foreground, when an operating instruction for switching a first guest operating system to the foreground display is received, closing a display window rotating function of the main operating system, switching a display window of the first guest operating system in the main operating system from a hidden state to a display state, and switching the first guest operating system to the foreground display, wherein the first guest operating system is any one of a plurality of guest operating systems.

Description

Display method and apparatus for multi-operating system, computer device, and storage medium
Technical Field
The present disclosure relates to the field of virtualization technologies, and in particular, to a display method and apparatus for multiple operating systems, a computer device, and a storage medium.
Background
A virtual machine refers to a complete computer system with complete hardware system functionality, operating in a completely isolated environment, simulated by software. The virtual machine may run a guest operating system and associated applications, and the embedded system that provides the running environment for the virtual machine also runs the software and hardware associated with the host operating system. The virtual machine runs as an application program of the host operating system and emulates hardware devices for use by the guest operating system while it is running. Since multiple virtual machines may be deployed in an embedded system, there may be multiple guest operating systems.
The prior art generally adopts the following method to perform rotation control on windows displayed on a screen of a computer device by a main operating system and a client operating system: when the main operating system is displayed in the foreground, the client operating system running in the background is hidden, and the main operating system rotates the display window according to the obtained sensor data without influencing the client operating system; when the client operating system is displayed in the foreground, the client operating system rotates along with the main operating system after the display window of the main operating system rotates.
However, in the prior art, the manner for implementing the rotation of the guest operating system along with the main operating system is to destroy the original display window of the main operating system, and then create a display window at a new rotation angle. Likewise, the display window of the guest operating system also requires a process of destroying and then creating a new display window. In this process, the display subsystem of the guest operating system also needs to be unbound from the original display window and then bound to the new display window. The process is cumbersome, resulting in excessive system power consumption.
Disclosure of Invention
The present disclosure provides a display method and apparatus for multiple operating systems, a computer device and a storage medium, which are used to solve the technical problem of high power consumption in the prior art of performing rotation control on a window displayed on a screen of a computer device by multiple operating systems.
In order to achieve the above object, a first aspect of the embodiments of the present disclosure provides a method for displaying multiple operating systems, where the method is applied to a computer device, where the computer device runs a main operating system and multiple guest operating systems that display through a display window applied in the main operating system, where when the main operating system displays in a foreground, the display windows of the multiple guest operating systems in the main operating system are in a hidden state, the method includes: determining the current operating system display state of the computer equipment; if the operating system display state indicates that the main operating system is displayed in the foreground, when an operating instruction for switching a first guest operating system to the foreground display is received, closing a display window rotating function of the main operating system, switching a display window of the first guest operating system in the main operating system from a hidden state to a display state, and switching the first guest operating system to the foreground display, wherein the first guest operating system is any one of the guest operating systems.
A second aspect of the embodiments of the present disclosure provides a display apparatus with multiple operating systems, where the apparatus is applied to a computer device, where the computer device runs a main operating system and multiple guest operating systems that display through a display window applied in the main operating system, where when the main operating system displays in a foreground, the display windows of the multiple guest operating systems in the main operating system are in a hidden state, the apparatus including: the determining module is used for determining the current operating system display state of the computer equipment; a function switch module, configured to, when the operating system display state indicates that the main operating system is in foreground display, if an operating instruction for switching a first guest operating system to foreground display is received, close a display window rotation function of the main operating system, where the first guest operating system is any one of the guest operating systems; and the display control module is used for switching the display window of the first client operating system in the main operating system from a hidden state to a display state and switching the first client operating system to the foreground for display if an operating instruction for switching the first client operating system to the foreground for display is received when the display state of the operating system indicates that the main operating system is displayed in the foreground.
A third aspect of embodiments of the present disclosure provides a non-transitory computer readable storage medium having one or more programs embodied therein for performing the method of the first aspect.
A fourth aspect of an embodiment of the present disclosure provides a computer device, including: the non-transitory computer readable storage medium of the third aspect; and one or more processors to execute the programs in the non-transitory computer readable storage medium.
By adopting the technical scheme, under the condition that the client operating system is displayed in the foreground, the display window rotating function of the main operating system is closed, namely, when the main operating system is switched from foreground display to background display, the orientation of the display window of the main operating system is kept unchanged, and the change of the sensor data is set to be ignored. Therefore, the change of the sensor data can not trigger the main operating system to rotate, the phenomenon that the display window of the client operating system displayed by the foreground is driven to rotate by the rotation of the main operating system can not occur, and the technical problem that the power consumption of the client operating system is high along with the rotation of the main operating system in the prior art is solved.
Drawings
In order to more clearly illustrate the embodiments of the present disclosure or the technical solutions in the prior art, the drawings needed to be used in the description of the embodiments are briefly introduced below, and it is obvious that the drawings in the following description are some embodiments of the present disclosure, and other drawings can be obtained by those skilled in the art without creative efforts.
Fig. 1 is a schematic diagram of a computer device provided by an embodiment of the present disclosure;
fig. 2 is a flowchart illustrating a display method of a multi-operating system according to an embodiment of the present disclosure;
fig. 3 is a flowchart illustrating another display method for multiple operating systems according to an embodiment of the present disclosure;
FIG. 4 is a schematic diagram of a mapping operation provided by an embodiment of the present disclosure;
fig. 5 is a flowchart illustrating a display method of a multi-operating system according to an embodiment of the present disclosure;
fig. 6 is a schematic structural diagram of a display device of a multi-operating system according to an embodiment of the present disclosure;
fig. 7 is a schematic structural diagram of a display device of another multi-operating system according to an embodiment of the present disclosure;
fig. 8 is a schematic structural diagram of a display device of another multiple operating systems according to an embodiment of the present disclosure.
Detailed Description
To make the objects, technical solutions and advantages of the embodiments of the present disclosure more clear, the technical solutions of the embodiments of the present disclosure will be described clearly and completely with reference to the drawings in the embodiments of the present disclosure, and it is obvious that the described embodiments are some, but not all embodiments of the present disclosure. All other embodiments, which can be derived by a person skilled in the art from the embodiments disclosed herein without making any creative effort, shall fall within the protection scope of the present invention.
Fig. 1 is a schematic diagram of an application scenario according to an embodiment of the present disclosure, and as shown in fig. 1, the application scenario may include a computer device 100, and the computer device 100 may be, for example, an electronic device capable of installing a virtual machine to run a plurality of guest operating systems. Therein, fig. 1 is a computer device 100 illustrated as a user's personal computer that may, for example, have a "goldfish" virtual hardware platform installed to run multiple android operating systems. Fig. 1 further shows a display diagram of display windows of the multiple operating systems on the screen, specifically, a display window a is a display window of the main operating system, a display window b is a display window of the guest operating system 1, and a display window c is a display window of the guest operating system 2, where the display window a in a solid line indicates that the main operating system is displayed in the foreground, and the display windows b and c in a dashed line indicate that the guest operating system 1 and the guest operating system 2 are hidden and displayed in the background.
The embodiment of the disclosure provides a display method of multiple operating systems, which is applied to a computer device, such as the computing device 100 shown in fig. 1, where the computer device runs a main operating system and multiple guest operating systems that display through a display window applied in the main operating system, where when the main operating system displays in the foreground, the display windows of the multiple guest operating systems in the main operating system are in a hidden state. As shown in fig. 2, the method includes:
s201, determining the current operating system display state of the computer equipment.
Wherein the operating system display status refers to information indicating whether the computer device is currently with the primary operating system or the guest operating system in the foreground.
S202, if the display state of the operating system indicates that the main operating system is displayed in the foreground, when an operating instruction for switching the first guest operating system to the foreground display is received, closing the display window rotating function of the main operating system, switching the display window of the first guest operating system in the main operating system from a hidden state to a display state, and switching the first guest operating system to the foreground display.
Wherein the first guest operating system is any one of a plurality of guest operating systems run by the computer device.
The main operating system may be provided with a switch for displaying the window rotation function, and when the main operating system is switched to the background, the switch for displaying the window rotation function of the main operating system is turned off, so that the main operating system does not ignore the change of the sensor data, that is, the change of the sensor data does not trigger the main operating system to rotate.
It is worth pointing out that, the client operating system displays through the rectangular display window applied in the main operating system, the display window has the states of displaying and hiding, and the like, by adopting the method, because the main operating system displays in the foreground, the display windows of the client operating system in the main operating system are all in the hidden state, when the main operating system rotates the orientation of the display window according to the change of the sensor data, the display window of the client operating system is not affected, and when the client operating system displays in the foreground, the display window rotating function of the main operating system is closed, so the phenomenon that the display window of the client operating system displayed in the foreground is rotated by the rotation of the main operating system can not occur, and the technical problem that the power consumption of the client operating system in the prior art is higher due to the rotation of the main operating system.
In addition, the orientation of the display window of the guest operating system in the main operating system is not changed in the life cycle, that is, the orientation of the display window of the guest operating system relative to the display window of the main operating system is not changed, so that when the main operating system is displayed in the foreground and the orientation of the display window of the main operating system is changed by rotation, the hidden display of the display window of the guest operating system does not follow the change of the orientation of the main operating system, which will cause the orientation of the display window of the guest operating system in the main operating system to be inconsistent with the current orientation of the display window of the main operating system, and at this time, if the guest operating system is directly switched to the foreground display, abnormal display will be caused.
In order to solve this problem, an embodiment of the present disclosure provides another display method for multiple operating systems, as shown in fig. 3, the method includes:
s301, determining the current operating system display state of the computer equipment.
S302, if the display state of the operating system indicates that the main operating system is displayed in the foreground, closing the display window rotation function of the main operating system when receiving an operating instruction for switching the first client operating system to the foreground for displaying.
S303, judging whether the orientation of the display window of the first guest operating system is consistent with the current orientation of the display window of the main operating system.
And the orientation of the display window of the first guest operating system is the orientation of the display window which is applied for display by the main operating system for the first time when the first guest operating system is started.
Further, if the orientation of the first guest operating system display window is not consistent with the current orientation of the main operating system display window, executing step S304 and step S305; if the orientation of the first guest operating system display window is consistent with the current orientation of the main operating system display window, step S305 is executed.
S304, recording the current orientation information of the display window of the main operating system, and mapping the display window of the main operating system to enable the orientation of the display window of the main operating system to be consistent with the orientation of the display window of the first guest operating system.
S305, the display window of the first guest operating system in the main operating system is switched from a hidden state to a display state, and the first guest operating system is switched to a foreground for display.
That is to say, before the display window of the first guest operating system in the main operating system is displayed, the mapping operation is performed on the display window of the main operating system, for example, if the current orientation of the display window of the main operating system is horizontal display, the display window of the main operating system is mapped to vertical display so as to be consistent with the vertical display window initially applied by the first guest operating system, so that normal display when the guest operating system is switched to the foreground is ensured.
For example, fig. 4 is a schematic diagram of a mapping operation, where a dotted line represents a screen of the electronic device, a solid line represents an operating system displayed in a foreground, and a dot-dash line represents an operating system displayed in a background, as shown in fig. 4, before the mapping operation, a main operating system is displayed in the foreground, the display orientation is vertical, a display window of a guest operating system hides the background, the orientation of a display window of the guest operating system is horizontal, and after the mapping operation, the display orientation of the display window of the main operating system is horizontal and is consistent with that of the display window of the guest operating system, so that the display window of the guest operating system can be horizontally displayed on the screen of the electronic device.
It should be noted that the current orientation information of the main os display window recorded in step S304 may be used to remap to the original orientation according to the orientation display when the main os switches back to the foreground display.
The above describes the method in the case where the operating system display state of the electronic device is the main operating system in the foreground display, and the following describes the method in the case where the guest operating system is in the foreground display.
Alternatively, if the first guest operating system is displayed in the foreground (for example, after the first guest operating system is switched to the foreground display in step S202 or S305 described above), when an instruction for triggering the display window of the first guest operating system to rotate is received, the display window of the main operating system is mapped, so that the display window of the first guest operating system in the main operating system rotates to the orientation display designated by the instruction.
That is, considering that the display window rotation function of the main operating system is in the off state when the main operating system is in the background, in this case, when the guest operating system displayed in the foreground detects sensor data triggering the rotation display, the rotation display of the guest operating system can be realized by mapping the display window of the main operating system, that is, because the display window applied by the guest operating system in the main operating system is not changed in the life cycle thereof, when the display window mapping of the main operating system changes the orientation, the display window in the display state of the guest operating system in the main operating system also changes the orientation accordingly.
Optionally, if the display state of the operating system of the electronic device indicates that the first guest operating system is displayed in the foreground, when an operating instruction for switching the main operating system to the foreground display is received, the display window rotation function of the main operating system is enabled, the main operating system is switched to the foreground display, and the display window of the first guest operating system in the main operating system is switched from the display state to the hidden state.
Optionally, if the operating system display state indicates that the first guest operating system is displayed in the foreground, when an operating instruction for closing the first guest operating system is received, the display window rotation function of the main operating system is enabled, the main operating system is switched to the foreground display, and the display window of the first guest operating system in the main operating system is destroyed.
That is, when the main operating system needs to be switched back to the foreground display, the display window rotation function of the main operating system is enabled, so that the main operating system can restore the rotation function.
The switching the display window of the main operating system to the foreground display includes: and switching the main operating system to foreground display according to the orientation information of the main operating system display window stored by the computer equipment, wherein the orientation information is the stored orientation information of the main operating system display window when the computer equipment switches the main operating system to background display. For example, the direction information recorded in step S304 is used to remap to the original direction according to the direction display when the host operating system switches back to the foreground display.
In order to enable those skilled in the art to understand the technical solutions provided by the embodiments of the present disclosure, a detailed example of the display method of the multi-operating system provided by the embodiments of the present disclosure is described below. Wherein the method is applied to a computer device 100 as shown in fig. 1, wherein the computer device 100 is currently such that the main operating system is displayed in the foreground, the display windows of the guest operating system 1 and the guest operating system 2 are hidden in the background, and the display window a of the main operating system is not rotated (i.e. the orientations of the display window a, the display window b and the display window c are consistent). In this case, the display method of the multi-operating system, as shown in fig. 5, includes:
and S501, if sensor data for triggering the main operating system to rotate the orientation of the display window is detected, rotating the display window a according to the sensor data.
That is, in the case where the main os is displayed in the foreground, the main os can rotate the display window according to the detected sensor data without affecting the guest os hidden in the background.
And S502, when the operation of switching the client operating system 1 to the foreground display is detected, closing the display window rotation function of the main operating system.
S503, judging whether the current orientation of the main operating system display window a is consistent with the orientation of the display window b of the guest operating system 1.
After step S501, the orientation of the display window a may not match the orientation of the display window b.
If the orientations of the display window a and the display window b do not match with each other as determined in step S503, step S504 and step S505 are executed; if the orientations of the display window a and the display window b are the same, step S505 is executed.
S504, recording the current orientation information of the display window of the main operating system, and performing mapping operation on the display window a of the main operating system to enable the orientation of the display window a to be consistent with that of the display window b.
And S505, displaying the display window b of the guest operating system 1 in the main operating system, and displaying the display window b of the guest operating system 1 in the foreground.
When the display window b of the guest operating system 1 is displayed in the foreground, step S506, step S507, step S508, or step S509 may be further executed.
S506, when the operation of switching the client operating system 2 to the foreground display is detected, the display window function of the main operating system is kept closed, the display window b is hidden, the display window c of the client operating system 2 in the main operating system is displayed, and the display window c is switched to the foreground display.
S507, when detecting the instruction for triggering the guest operating system 1 to rotate the display window, performing a mapping operation on the display window a of the host operating system to rotate the display window b to the direction designated by the instruction and display the rotated display window.
S508, when the operation of switching the main os to the foreground display is detected, the display window rotation function of the main os is enabled, the display window b of the guest os 1 is hidden, and the display window a of the main os is displayed according to the orientation information of the history.
S509, when the operation of closing the guest operating system 1 is detected, the display window rotation function of the main operating system is enabled, the display window b of the guest operating system 1 is hidden, and the display window a of the main operating system is displayed according to the orientation information of the history.
It should be noted that, for simplicity of description, the above-mentioned method embodiments are all expressed as a series of action combinations, but those skilled in the art should understand that the present invention is not limited by the described action sequence. Further, those skilled in the art will appreciate that the embodiments described in the specification are presently preferred and that no particular act is required in order to implement the disclosure.
The apparatus 60 may implement a part of a computer device in a software, hardware, or a combination of the two, the computer device runs with a main operating system, and a plurality of guest operating systems that display through a display window applied in the main operating system, wherein when the main operating system displays in a foreground, the display windows of the guest operating systems in the main operating system are in a hidden state. As shown in fig. 6, the apparatus 60 includes:
a determining module 601, configured to determine a current operating system display state of the computer device;
a function switch module 602, configured to, when the display state of the operating system indicates that the main operating system is displaying in a foreground, if an operation instruction for switching a first guest operating system to the foreground display is received, close a display window rotation function of the main operating system, where the first guest operating system is any one of the guest operating systems;
the display control module 603 is configured to, when the display state of the operating system indicates that the main operating system is in a foreground display state, switch the display window of the first guest operating system in the main operating system from a hidden state to a display state and switch the first guest operating system to the foreground display state if an operation instruction for switching the first guest operating system to the foreground display is received.
By adopting the device, the client operating system displays through the rectangular display window applied by the client operating system in the main operating system, the display window has the states of displaying, hiding and the like, and by adopting the method, when the main operating system is displayed in the foreground, the display window of the client operating system in the main operating system is in the hidden state, so that the display window of the client operating system is not influenced when the main operating system rotates the orientation of the display window according to the change of sensor data, and when the client operating system is displayed in the foreground, the rotation function of the display window of the main operating system is closed, so that the phenomenon that the display window of the client operating system displayed in the foreground is driven to rotate by the rotation of the main operating system can not occur, and the technical problem that the power consumption of the client operating system in the prior art is higher due to the rotation of the main operating system is solved.
Optionally, as shown in fig. 7, the apparatus 60 further includes:
a determining module 604, configured to determine whether an orientation of a display window of the first guest operating system is consistent with a current orientation of the display window of the main operating system before the display control module displays the display window of the first guest operating system in the main operating system, where the orientation of the display window of the first guest operating system is an orientation of a display window that is initially applied for display by the main operating system when the first guest operating system is started;
a recording module 605, configured to record current orientation information of the main operating system display window when the orientation of the first guest operating system display window is inconsistent with the current orientation of the main operating system display window;
a first mapping module 606, configured to map the display window of the main operating system when the orientation of the display window of the first guest operating system is inconsistent with the current orientation of the display window of the main operating system, so that the orientation of the display window of the main operating system is consistent with the orientation of the display window of the first guest operating system.
Optionally, as shown in fig. 7, the apparatus 60 further includes:
a second mapping module 607, configured to, when the first guest operating system is displayed in the foreground, map the display window of the main operating system if the mapping module receives an instruction for triggering the display window of the first guest operating system to rotate, so that the display window of the first guest operating system in the main operating system rotates to the direction specified by the instruction for display.
Optionally, the function switch module 602 is further configured to, when the display state of the operating system indicates that the first guest operating system is displayed in the foreground, enable the display window rotation function of the main operating system if an operation instruction for switching the main operating system to the foreground display is received; the display control module 603 is further configured to, when the display state of the operating system indicates that the first guest operating system is displayed in the foreground, switch the display window of the main operating system to the foreground for display if an operation instruction for switching the main operating system to the foreground for display is received, and switch the display window of the first guest operating system in the main operating system from the display state to the hidden state.
Optionally, the function switch module 602 is further configured to, when the operating system display state indicates that the first guest operating system is displayed in the foreground, enable the display window rotation function of the main operating system if an operating instruction for closing the first guest operating system is received; the display control module 603 is further configured to, when the operating system display state indicates that the first guest operating system is in foreground display, switch the main operating system to foreground display and destroy a display window of the first guest operating system in the main operating system if an operating instruction for closing the first guest operating system is received.
Optionally, the display control module 603 is specifically configured to switch the main operating system to foreground display according to the orientation information of the main operating system display window stored in the computer device, where the orientation information is stored in the computer device when the main operating system is switched to background display by the computer device.
It is obvious to those skilled in the art that, for convenience and simplicity of description, the foregoing division of the functional modules is merely used as an example, and in practical applications, the above function distribution may be performed by different functional modules according to needs, that is, the internal structure of the device is divided into different functional modules to perform all or part of the above described functions. For the specific working process of the functional module, reference may be made to the corresponding process in the foregoing method embodiment, which is not described herein again.
Fig. 8 is a block diagram of a display device 80 of multiple operating systems according to an embodiment of the present disclosure, and as shown in fig. 8, the device 80 may include: a processor 801, a memory 802, a multimedia component 803, an input/output (I/O) interface 804, and a communications component 805.
The processor 801 is configured to control the overall operation of the apparatus 80, so as to complete all or part of the steps of the display method of the multi-operating system. The memory 802 is used to store various types of data to support operations at the device 80, which may include, for example, instructions for any application or method operating on the device 80.
The Memory 802 may be implemented by any type of volatile or non-volatile storage terminal device or combination thereof, such as a Static Random Access Memory (SRAM), an Electrically Erasable Programmable Read-Only Memory (EEPROM), an Erasable Programmable Read-Only Memory (EPROM), a Programmable Read-Only Memory (PROM), a Read-Only Memory (ROM), a magnetic Memory, a flash Memory, a magnetic disk or an optical disk.
The multimedia components 803 may include screen and audio components. Wherein the screen may be, for example, a touch screen and the audio component is used for outputting and/or inputting audio signals.
The communication component 805 is used for wired or wireless communication between the apparatus 80 and other devices. Wireless Communication, such as Wi-Fi, bluetooth, Near Field Communication (NFC), 2G, 3G, or 4G, or a combination of one or more of them, so that the corresponding Communication component 805 may include: Wi-Fi module, bluetooth module, NFC module.
In one possible implementation, the apparatus 80 may be implemented by one or more Application Specific Integrated Circuits (ASICs), Digital Signal Processors (DSPs), Digital Signal Processing terminal devices (DSPDs), Programmable Logic Devices (PLDs), Field Programmable Gate Arrays (FPGAs), controllers, microcontrollers, microprocessors or other electronic components, and is used for executing the display method of the multi-operating system.
The embodiment of the present disclosure also provides a non-transitory computer-readable storage medium 1, where the non-transitory computer-readable storage medium 1 includes one or more programs, and the one or more programs are used to execute the steps of the display method of the multi-operating system.
The embodiment of the present disclosure also provides another computer device 2, including: the above-described non-transitory computer-readable storage medium 1; and one or more processors to execute the programs in the non-transitory computer readable storage medium.
The preferred embodiments of the present disclosure are described in detail with reference to the accompanying drawings, however, the present disclosure is not limited to the specific details of the above embodiments, and various simple modifications may be made to the technical solution of the present disclosure within the technical idea of the present disclosure, and these simple modifications all belong to the protection scope of the present disclosure.
It should be noted that, in the foregoing embodiments, various features described in the above embodiments may be combined in any suitable manner, and in order to avoid unnecessary repetition, various combinations that are possible in the present disclosure are not described again.
In addition, any combination of various embodiments of the present disclosure may be made, and the same should be considered as the disclosure of the present disclosure, as long as it does not depart from the spirit of the present disclosure.

Claims (12)

1. A display method of multiple operating systems is applied to a computer device, the computer device runs with a main operating system and a plurality of guest operating systems which display through a display window applied in the main operating system, wherein when the main operating system displays in a foreground, the display windows of the guest operating systems in the main operating system are in a hidden state, and the orientations of the display windows of the guest operating systems relative to the display window of the main operating system are unchanged, the method comprises the following steps:
determining the current operating system display state of the computer equipment;
if the operating system display state indicates that the main operating system is displayed in the foreground, when an operating instruction for switching a first guest operating system to the foreground display is received, closing a display window rotating function of the main operating system, switching a display window of the first guest operating system in the main operating system from a hidden state to a display state, and switching the first guest operating system to the foreground display, wherein the first guest operating system is any one of the guest operating systems;
if the first guest operating system is displayed in the foreground, when an instruction for triggering the display window of the first guest operating system to rotate is received, mapping the display window of the main operating system, so that the display window of the first guest operating system in the main operating system rotates to the direction specified by the instruction to be displayed, wherein the instruction for triggering the display window of the first guest operating system to rotate is generated when sensor data triggering rotation display is detected.
2. The method of claim 1, prior to said switching the display window of the first guest operating system in the primary operating system from a hidden state to a displayed state, comprising:
judging whether the orientation of the display window of the first guest operating system is consistent with the current orientation of the display window of the main operating system, wherein the orientation of the display window of the first guest operating system is the orientation of the display window which is applied for display by the main operating system for the first time when the first guest operating system is started;
if the orientation of the display window of the first guest operating system is inconsistent with the current orientation of the display window of the main operating system, recording the current orientation information of the display window of the main operating system, and mapping the display window of the main operating system to enable the orientation of the display window of the main operating system to be consistent with the orientation of the display window of the first guest operating system.
3. The method of claim 1, further comprising:
if the operating system display state indicates that the first guest operating system is displayed in the foreground, when an operating instruction for switching the main operating system to the foreground display is received, enabling the display window rotation function of the main operating system, switching the main operating system to the foreground display, and switching the display window of the first guest operating system in the main operating system from the display state to the hidden state.
4. The method of claim 1, further comprising:
if the operating system display state indicates that a first guest operating system is displayed in the foreground, when an operating instruction for closing the first guest operating system is received, enabling a display window rotating function of the main operating system, switching the main operating system to the foreground for display, and destroying the display window of the first guest operating system in the main operating system.
5. The method of claim 3 or 4, wherein switching the host operating system to a foreground display comprises:
and switching the main operating system to foreground display according to orientation information of the main operating system display window stored by the computer equipment, wherein the orientation information is stored orientation information of the main operating system display window when the computer equipment switches the main operating system to background display.
6. A display device with multiple operating systems, the device being applied to a computer device running a main operating system and multiple guest operating systems displaying through a display window applied in the main operating system, wherein when the main operating system is displayed in a foreground, the display windows of the multiple guest operating systems in the main operating system are in a hidden state, the device comprising:
the determining module is used for determining the current operating system display state of the computer equipment;
a function switch module, configured to, when the operating system display state indicates that the main operating system is in foreground display, if an operating instruction for switching a first guest operating system to foreground display is received, close a display window rotation function of the main operating system, where the first guest operating system is any one of the guest operating systems;
the display control module is used for switching a display window of a first client operating system in the main operating system from a hidden state to a display state and switching the first client operating system to a foreground display state if an operating instruction for switching the first client operating system to the foreground display is received when the display state of the operating system indicates that the main operating system is displayed in the foreground;
and the second mapping module is used for mapping the display window of the main operating system when the first guest operating system displays in a foreground and if the mapping module receives an instruction for triggering the display window of the first guest operating system to rotate, so that the display window of the first guest operating system in the main operating system rotates to the direction specified by the instruction for displaying, wherein the instruction for triggering the display window of the first guest operating system to rotate is generated when sensor data triggering rotation display is detected.
7. The apparatus of claim 6, further comprising:
a determining module, configured to determine, before the display control module displays the display window of the first guest operating system in the main operating system, whether an orientation of the display window of the first guest operating system is consistent with a current orientation of the display window of the main operating system, where the orientation of the display window of the first guest operating system is an orientation of a display window that is initially applied for display by the main operating system when the first guest operating system is started;
the recording module is used for recording the current orientation information of the display window of the main operating system when the orientation of the display window of the first guest operating system is inconsistent with the current orientation of the display window of the main operating system;
and the first mapping module is used for mapping the display window of the main operating system when the orientation of the display window of the first guest operating system is inconsistent with the current orientation of the display window of the main operating system, so that the orientation of the display window of the main operating system is consistent with the orientation of the display window of the first guest operating system.
8. The apparatus of claim 6, wherein the function switch module is further configured to, when the operating system display status indicates that the first guest operating system is displayed in the foreground, enable the display window rotation function of the main operating system if an operation instruction for switching the main operating system to the foreground display is received;
and the display control module is further used for switching the main operating system to the foreground for display and switching the display window of the first client operating system in the main operating system from the display state to the hidden state if an operating instruction for switching the main operating system to the foreground for display is received when the display state of the operating system indicates that the first client operating system is displayed in the foreground.
9. The apparatus of claim 6, wherein the function switch module is further configured to enable the display window rotation function of the main operating system if an operation instruction for turning off the first guest operating system is received when the operating system display status indicates that the first guest operating system is displayed in the foreground;
and the display control module is further used for switching the main operating system to foreground display and destroying the display window of the first guest operating system in the main operating system if an operating instruction for closing the first guest operating system is received when the operating system display state indicates that the first guest operating system is displayed in the foreground.
10. The apparatus according to claim 8 or 9, wherein the display control module is specifically configured to switch the main operating system to a foreground display according to orientation information of the main operating system display window stored by the computer device, where the orientation information is stored by the computer device when the main operating system is switched to a background display.
11. A non-transitory computer readable storage medium including one or more programs for performing the method of any of claims 1 to 5.
12. A computer device, comprising: the non-transitory computer-readable storage medium of claim 11; and one or more processors to execute the programs in the non-transitory computer readable storage medium.
CN201780002458.2A 2017-09-18 2017-09-18 Display method and apparatus for multi-operating system, computer device, and storage medium Active CN108124476B (en)

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2017/102055 WO2019051827A1 (en) 2017-09-18 2017-09-18 Display method and apparatus for multiple operating systems, computer device and storage medium

Publications (2)

Publication Number Publication Date
CN108124476A CN108124476A (en) 2018-06-05
CN108124476B true CN108124476B (en) 2022-04-12

Family

ID=62233591

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201780002458.2A Active CN108124476B (en) 2017-09-18 2017-09-18 Display method and apparatus for multi-operating system, computer device, and storage medium

Country Status (2)

Country Link
CN (1) CN108124476B (en)
WO (1) WO2019051827A1 (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111736452B (en) * 2019-03-25 2023-04-07 成都鼎桥通信技术有限公司 Multi-system control method, device, equipment and storage medium
CN112905275A (en) * 2019-12-03 2021-06-04 斑马智行网络(香港)有限公司 Display method and display device for multiple operating systems
CN111085999B (en) * 2019-12-18 2022-11-15 达闼机器人股份有限公司 Robot control method, device and system and robot controller

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103677589A (en) * 2013-12-30 2014-03-26 腾讯科技(深圳)有限公司 Terminal screen picture rotation control method and device
CN103929541A (en) * 2014-04-28 2014-07-16 深圳市中兴移动通信有限公司 Method and device for controlling acceleration sensor and mobile terminal
WO2015038151A1 (en) * 2013-09-13 2015-03-19 Hewlett-Packard Development Company, L.P. Screen orientation
CN105955590A (en) * 2016-06-24 2016-09-21 广东欧珀移动通信有限公司 Method and apparatus for controlling rotation of screen and mobile terminal

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101477476B (en) * 2008-01-02 2012-02-29 联想(北京)有限公司 Control method and computer system for switching display between multi-operating system
US20120324400A1 (en) * 2011-06-15 2012-12-20 Caliendo Jr Neal Robert Rotation Of Multi-Workspace Environment Containing Tiles
CN105339898B (en) * 2013-07-23 2019-08-06 英特尔公司 Operating system switching method and device
CN104461726B (en) * 2014-12-31 2019-01-15 宇龙计算机通信科技(深圳)有限公司 The display methods of operating system, the display device of operating system and terminal
CN105677315B (en) * 2015-12-28 2020-02-07 北京元心科技有限公司 Interface display method of multiple operating systems and intelligent terminal
CN107003875A (en) * 2016-12-13 2017-08-01 深圳前海达闼云端智能科技有限公司 For the display methods of multiple operating system, device and electronic equipment
CN110290269A (en) * 2019-06-26 2019-09-27 努比亚技术有限公司 Display control method, mobile terminal and computer readable storage medium

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2015038151A1 (en) * 2013-09-13 2015-03-19 Hewlett-Packard Development Company, L.P. Screen orientation
CN103677589A (en) * 2013-12-30 2014-03-26 腾讯科技(深圳)有限公司 Terminal screen picture rotation control method and device
CN103929541A (en) * 2014-04-28 2014-07-16 深圳市中兴移动通信有限公司 Method and device for controlling acceleration sensor and mobile terminal
CN105955590A (en) * 2016-06-24 2016-09-21 广东欧珀移动通信有限公司 Method and apparatus for controlling rotation of screen and mobile terminal

Also Published As

Publication number Publication date
CN108124476A (en) 2018-06-05
WO2019051827A1 (en) 2019-03-21

Similar Documents

Publication Publication Date Title
US10684865B2 (en) Access isolation for multi-operating system devices
US8966477B2 (en) Combined virtual graphics device
CN104360900B (en) Method for operating multiple operating systems, corresponding system and mobile device
US20170185461A1 (en) Fast switching method, device and terminal of dual system
US10846114B2 (en) Virtual time control apparatus, method, and non-transitory computer readable storage medium thereof
CN104794014B (en) System operation method and intelligent terminal
CN108124476B (en) Display method and apparatus for multi-operating system, computer device, and storage medium
CN104516782B (en) Method and equipment for switching operating environments of intelligent system
US20110093861A1 (en) Assigning A Portion Of Physical Computing Resources To A Logical Partition
CN105940375B (en) Dynamic reassignment for multiple operating system devices
US10387651B2 (en) Detecting a change to system management mode bios code
US10885229B2 (en) Electronic device for code integrity checking and control method thereof
US9471357B2 (en) Monitoring virtual machine interface and local graphical user interface on a thin client and alternating therebetween
US9886408B2 (en) Data access protection for computer systems
EP3633533B1 (en) Electronic apparatus and controlling method thereof
TW201531844A (en) Operating system recovery method, apparatus and terminal device
WO2015003310A1 (en) Synchronized virtual trusted platform modules (vtpm) and virtual machine (vm) rollbacks
US20170123800A1 (en) Selective resource activation based on privilege level
CN112416106B (en) Control method, device, equipment and storage medium of electronic equipment
EP4020132A1 (en) Application control method and apparatus, electronic device, and storage medium
CN108279951B (en) Anti-interference method and device for computer system and computer system
KR102411920B1 (en) Electronic device and control method thereof
KR20150016037A (en) Digital protection relay and controlling method thereof
CN112988638A (en) Keyboard interface multiplexing method and electronic equipment
CN103914656A (en) Method and device for preventing monitoring of malware

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant