CN108235757A - A kind of method, apparatus and electronic equipment of operating system screen locking - Google Patents

A kind of method, apparatus and electronic equipment of operating system screen locking Download PDF

Info

Publication number
CN108235757A
CN108235757A CN201780003333.1A CN201780003333A CN108235757A CN 108235757 A CN108235757 A CN 108235757A CN 201780003333 A CN201780003333 A CN 201780003333A CN 108235757 A CN108235757 A CN 108235757A
Authority
CN
China
Prior art keywords
operating system
operation state
front stage
screen
client operating
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.)
Pending
Application number
CN201780003333.1A
Other languages
Chinese (zh)
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 Inc
Original Assignee
Cloudminds Inc
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 Inc filed Critical Cloudminds Inc
Publication of CN108235757A publication Critical patent/CN108235757A/en
Pending legal-status Critical Current

Links

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
    • 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/46Multiprogramming arrangements
    • G06F9/54Interprogram communication
    • G06F9/545Interprogram communication where tasks reside in different layers, e.g. user- and kernel-space
    • 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/4557Distribution of virtual machine instances; Migration and load balancing

Abstract

The present invention relates to technical field of virtualization, more particularly to the method, apparatus and electronic equipment of operating system screen locking.This method includes:The operating status of each client operating system is obtained, the operating status includes front stage operation state;If the client operating system is in front stage operation state, and the screen of the client operating system in front stage operation state is in bright screen state, the screen locking application of the enabled client operating system in front stage operation state, does not enable the screen locking application of the master operating system.So as to prevent the screen locking of the master operating system in background operation state application from acting and affecting the screen display of the client operating system in front stage operation state, the stability of operating system is improved.

Description

A kind of method, apparatus and electronic equipment of operating system screen locking
Technical field
The present invention relates to technical field of virtualization, more particularly to the method, apparatus and electronics of operating system screen locking Equipment.
Background technology
Based on virtualization technology, multiple operating systems can simultaneously be run on an electronic device, between multiple operating systems Processor, memory and the input-output equipment that shared hardware device provides.Multiple operating systems include a master operating system With at least one client operating system.Wherein, client operating system need to operate in the virtual processor, virtual by Virtual Machine Manager On the hardware platform that clock, virtual interrupt manager and virtual peripheral are formed.The virtual machine simulator run on master operating system (emulator) software controls the real processor of master operating system to perform virtual machine instructions, and held on true processor Row is switched to the instruction of client operating system by master operating system;And when by client operating system switch to master operating system it Afterwards, whether client operating system the instructions such as continues to execute.
When screen locking not enabled in client operating system is in application, the display subsystem of client operating system will always be in Working condition, maintain a higher level so as to cause the power consumption of whole system, the stand-by time of system also will be corresponding It reduces therewith, therefore, screen locking application is enabled generally in client operating system.
But inventor is in the implementation of the present invention, it is found that the relevant technologies have the following problems:When in guest operation Screen locking is enabled in system in application, since the screen time-out of both client operating system and master operating system is isolation, when two When the timeout of screen setting of a system is different, the client operating system just shown on foreground may be transported by backstage The influence of capable master operating system.For example, surpass when the backlight of the master operating system of running background adjusts to be applied by screen locking with screen When influencing, the adjusting action carried out will act in true equipment, as a result the guest operation system with just being shown on foreground System is overlapped, and finally shows a chaotic result.
Invention content
The embodiment of the present invention provides a kind of method, apparatus and electronic equipment of operating system screen locking, current to solve When platform operation has client operating system, the screen locking application of the master operating system of running background acts the guest operation to front stage operation The problem of system interferes.
In order to solve the above technical problems, a technical solution used in the embodiment of the present invention is:A kind of operating system is provided The method of screen locking, the operating system include master operating system and at least one client operating system, the method includes:
The operating status of each client operating system is obtained, the operating status includes front stage operation state;
If the client operating system is in front stage operation state, and the guest operation in front stage operation state The screen of system is the screen locking application that the client operating system in front stage operation state is enabled in bright screen state, no Enable the screen locking application of the master operating system.
In order to solve the above technical problems, another technical solution used in the embodiment of the present invention is:A kind of operation system is provided The device of system screen locking, the operating system include master operating system and at least one client operating system, described device packet It includes:
First acquisition module, for obtaining the operating status of each client operating system, before the operating status includes Platform operating status;
Control module, if being in front stage operation state for the client operating system, and in front stage operation state The screen of the client operating system be in bright screen state, enable the client operating system in front stage operation state Screen locking application, not enable the master operating system screen locking application.
In order to solve the above technical problems, another technical solution used in the embodiment of the present invention is:A kind of electronics is provided to set It is standby, including:At least one processor;And the memory being connect at least one processor communication;Wherein, it is described to deposit Reservoir is stored with the instruction repertorie that can be performed by least one processor, and described instruction program is by least one processing Device performs, so that at least one processor performs method as described above.
In order to solve the above technical problems, an also technical solution used in the embodiment of the present invention is:It provides a kind of non-volatile Property computer readable storage medium, the non-volatile computer readable storage medium storing program for executing are stored with computer executable instructions, institute Computer executable instructions are stated for computer to be made to perform method as described above.
In order to solve the above technical problems, another technical solution used in the embodiment of the present invention is:A kind of computer is provided Program product, the computer program product include the computer journey being stored on non-volatile computer readable storage medium storing program for executing Sequence, the computer program include program instruction, when described program instruction is computer-executed, the computer are made to perform such as The upper method.
An embodiment of the present invention provides a kind of method and apparatus of operating system screen locking, the operating system includes master Operating system and at least one client operating system obtain the operating status of each client operating system, the operation first State includes front stage operation state, if the client operating system is in front stage operation state, and in front stage operation state The screen of the client operating system be in bright screen state, just enable the guest operation system in front stage operation state The screen locking application of system does not enable the screen locking application of the master operating system.Prevent the master operating system in background operation state Screen locking application action and affect the screen display of the client operating system in front stage operation state, improve operating system The stability of operation.
Description of the drawings
One or more embodiments are illustrated by the picture in corresponding attached drawing, these exemplary theorys The bright restriction not formed to embodiment, the element for having same reference numbers label in attached drawing are expressed as similar element, remove Non- have a special statement, and composition does not limit the figure in attached drawing.
Fig. 1 is the method for the present invention and the application scenarios schematic diagram of device;
Fig. 2 is a kind of flow diagram of the method for operating system screen locking provided in an embodiment of the present invention;
Fig. 3 is the flow diagram of the method for another operating system screen locking provided in an embodiment of the present invention;
Fig. 4 is the flow diagram of the method for another operating system screen locking provided in an embodiment of the present invention;
Fig. 5 is the flow diagram of the method for another operating system screen locking provided in an embodiment of the present invention;
Fig. 6 is the first situation enumerated in a kind of method of operating system screen locking provided in an embodiment of the present invention Schematic diagram;
Fig. 7 is the second situation enumerated in a kind of method of operating system screen locking provided in an embodiment of the present invention Schematic diagram;
Fig. 8 is the third situation enumerated in a kind of method of operating system screen locking provided in an embodiment of the present invention Schematic diagram;
Fig. 9 is the flow diagram of the method for another operating system screen locking provided in an embodiment of the present invention;
Figure 10 is a kind of structure diagram of the device of operating system screen locking provided in an embodiment of the present invention;
Figure 11 is the hardware architecture diagram of a kind of electronic equipment provided in an embodiment of the present invention.
Specific embodiment
In order to make the purpose , technical scheme and advantage of the present invention be clearer, with reference to the accompanying drawings and embodiments, it is right The present invention is further elaborated.It should be appreciated that specific embodiment described herein is only to explain the present invention, not For limiting the present invention.
If it should be noted that not conflicting, each feature in the embodiment of the present invention can be combined with each other, in this hair Within bright protection domain.In addition, though having carried out function module division in schematic device, show patrol in flow charts Sequence is collected, but in some cases, it can be held with the sequence in the module division being different from schematic device or flow chart The shown or described step of row.
Fig. 1 is the application scenarios schematic diagram of the method and apparatus of operating system screen locking provided in an embodiment of the present invention. The application scenarios can be the computing system environments operated on a certain intelligent terminal.Specifically, as shown in Figure 1, the application Scene includes:Master operating system 10, client operating system 11, simulator 12 and physical hardware devices 13.
Wherein, master operating system 10 and client operating system 11 belong to manage and control physical hardware devices 13 and phase The computer program for the software resource answered, is the most basic system software run directly on " bare machine ", any other software It must could all be run under the support of master operating system 10 or client operating system 11.In embodiments of the present invention, main operation System 10 and client operating system 11 may each be the operating system of any suitable type, such as:Linux、Unix、IOS、 Android, Windows etc. show to receive user instructions and export accordingly corresponding handling result to user.
The physical hardware devices 13 are shared between master operating system 10 and client operating system 11.In actual motion When, master operating system 10 can be directly using the hardware device in the physical hardware devices 13, and client operating system 11 is then Use the virtual unit by the virtual machine of the client operating system 11 is driven to provide.Wherein, described " virtual machine " refers to by soft What part was simulated has the function of complete hardware system, operates in the computer system in a completely isolated environment.It is described virtual Machine can be formed based on physical hardware devices 13 or software program it is multiple simulate come hardware device (for example, the present invention is real Apply the virtual input device described in example) it is used for client operating system 11.One virtual machine corresponds to one guest operation system of driving System 11, each virtual machine can be run as one of application program in master operating system 10.
There are memory isolation, even master operating system 10 between different operating system can not access client behaviour Make the memory headroom of system 11.In this way, when in computer system there are during two or more client operating systems 11, if wherein For one client operating system 11 because abnormal restart, master operating system 10 and other client operating systems 11 can also be normal Operation, it is mutually isolated.However, since virtual machine is run as the application program in master operating system 10, if main behaviour Make system 10 because abnormal restart, then all client operating systems 11 are required for restarting that can just run.
Simulator 12 can also be used as one of application program operation in master operating system 10.In the present embodiment, Simulator 12 is corresponding with the client operating system 11, when comprising multiple client operating systems 11, each guest operation system System 11 corresponds to a simulator 12 respectively.In the present embodiment, simulator 12 is used to run the rear end program of virtual input device, The rear end program of the virtual input device is the rear end program of the client operating system 11.
Physical hardware devices 13 are the hardware devices of physical presence, can include any suitable, composition complete computers The apparatus assembly of system, including but not limited to:Processor, storage medium, input-output apparatus and communications module etc..Specifically Ground, processor can be any suitable types, have the processor of certain logical operation capability, such as:CPU, graphics process Device etc..Processor can also include the multiple cores for multithreading or parallel processing.Storage medium can include memory modules, Such as:ROM, RAM, flash memory module and mass storage, such as CD and hard disk.Computer is stored in storage medium Program when processor performs these computer programs, can realize various correlation method steps or flow.Input/output is set Standby can be any suitable type, provide the peripheral equipment of one or more kinds of user's interactive modes, such as receives user and move Operate the mouse, keyboard or touch input screen of instruction, for acquire image information body-sensing video camera, for acquiring sound The display screen or loud speaker for exporting audio that the microphone of information either shows image information to user.The input/ Output equipment can select to connect with other physical hardware devices using wired or wireless peripheral equipment.Communications module can be with Including certain network interface devices that connection is established by wired or cordless communication network.For example, cable interface, bus connect Mouth, USB interface, WiFi modules or Bluetooth communication module etc..In actual application, the physical hardware devices 13 may be used also To add or reduce one or more equipment, to meet different practical situations demands, such as increase database Or server apparatus etc..
In embodiments of the present invention, based on above-mentioned master operating system 10, client operating system 11, simulator 12 and physics The method that hardware device 13 realizes operating system screen locking.Specifically, there are one or more visitors in operating system During the operating system 11 of family, the display window of the client operating system 11 in background operation state is hiding.And in foreground The display window of the client operating system 11 of operating status appears.When master operating system 10 is in front stage operation state, All client operating systems 11 are all on backstage, and the display window of all client operating systems 11 is all hiding in operating system 's.When a client operating system 11 is in front stage operation state, and if the client operating system 11 in front stage operation state Screen be in bright screen state, then the screen locking application of not enabled master operating system, master operating system 10 and guest operation system at this time Overtime, backlight adjusting of screen of the whole operation system of 11 composition of system etc. is configured and is adjusted by client operating system 11 Section.It is entire to be when master operating system 10 is in front stage operation state when client operating system 11 is switched to background operation state The screen time-out of system, backlight adjusting etc. are configured and are adjusted by master operating system 10, at this point, the visitor of enabled running background The screen locking application of family operating system 11.
Further, in master operating system 10 and each client operating system 11 all there are a system switching using journey Sequence, the effect of the application include:(1) the system switching between progress master operating system 10 and each client operating system 11, (2) Know respectively belonging to master operating system 10 and the current front stage operation state of each client operating system 11 or running background State and (3) communicate with the screen locking application of respective affiliated master operating system 10 and each client operating system 11, control Corresponding screen locking application is made to be operated accordingly.For example, in client operating system nucleus, virtual system switching driving journey Sequence is used for triggering system switching:Master operating system 10, and the event of reporting system switching are switched to by client operating system 11, cut The event changed includes:Master operating system is switched to by client operating system or guest operation system is switched to by master operating system System.In master operating system 10, system switches application program and communicates with the virtual machine that client operating system 11 is supported to run, and knows The request of system switching and the front and back operating status of operating system.
Furthermore, it should be noted that the method for operating system screen locking provided in an embodiment of the present invention can also be into one Step is extended in other suitable application environments, and is not limited to the application environment shown in Fig. 1.In actual application, The application environment can also include more client operating systems and more or less physical hardware devices type.
Based on above application scene, a kind of method of operating system screen locking is provided, specifically,
Fig. 2 is a kind of flow diagram of the method for operating system screen locking provided in an embodiment of the present invention, is please referred to Fig. 2, this method include:
Step 201:The operating status of each client operating system is obtained, the operating status includes front stage operation shape State;
Wherein, the quantity of client operating system can be one, or it is multiple, pass through each guest operation system first The system switching application program of system obtains the operating status of corresponding client operating system, and operating status is current each client Operating status residing for operating system, operating status include front stage operation state and background operation state.
Step 202:If the client operating system is in front stage operation state, and described in front stage operation state The screen of client operating system is the screen locking that the client operating system in front stage operation state is enabled in bright screen state Using the screen locking application of the not enabled master operating system.
When determining that a client operating system is in front stage operation state by step 201, obtain in front stage operation state Client operating system screen whether in bright screen state, specifically, guest virtual machine knows client by framebuffer device The screen state of operating system, if the screen of the client operating system in front stage operation state is in bright screen state, i.e., Carving should by the system switching application program of client operating system and the screen locking of the client operating system in front stage operation state With the screen locking application for being communicated and being enabled the client operating system;Application program is switched by the system of master operating system simultaneously It is communicated with the screen locking application of master operating system and does not enable the screen locking application of master operating system, screen to be kept to be always on, this When operating system backlight etc. control on client operating system.
It should be noted that:When not enabled client operating system and master operating system screen locking are in application, client operating system It cannot enter screen lock state with master operating system;When enabled client operating system and master operating system screen locking are in application, client Operating system and master operating system can enter screen lock state, screen lock state can be triggered by screen time-out or By user's operation triggering, for example, when the duration of the bright screen of screen is more than preset screen locking duration, alternatively, default when receiving Screen locking operation when, screen will enter screen lock state.Optionally, preset screen locking duration can be 20 seconds, 40 seconds and 1 minute Can be to double-click screen or long-press screen and for 3 seconds etc. Deng, preset screen locking operation.
In some other embodiment, referring to Fig. 3, the method further includes:
Step 203:If the screen of the client operating system in front stage operation state is in screen state of going out, master is enabled The screen locking application of operating system.
When determining that a client operating system is in front stage operation state by step 201, obtain in front stage operation state Client operating system screen whether in bright screen state, specifically, guest virtual machine knows client by framebuffer device The screen state of operating system, if the screen of the client operating system in front stage operation state is not at bright screen state, i.e., When the screen of the client operating system in front stage operation state, which is in, goes out screen state, in order to avoid in this case, locating Operating status is still maintained in the master operating system of background operation state, the power consumption of whole operation system is caused to maintain always One higher level, the stand-by time of operating system will be reduced accordingly therewith, therefore, pass through the system of master operating system at once Switching application program is communicated with the screen locking application of master operating system and enables the screen locking application of master operating system, is terminated simultaneously The control that screen is always on transfers the control of system backlight etc. to master operating system.Further, the system of master operating system is cut It changes using operating system is sent a request to, it is asked to enter sleep state.When client operating system screen bright screen again, client Virtual machine knows that the screen state of client operating system is bright screen state by framebuffer device, sends a message to main operation again System switching application program in system, system switching application program and the screen locking application communication in master operating system, do not enable Screen locking application in master operating system, while screen is kept to be always on, transfer the control of system backlight etc. to client operating system.
In some other embodiment, referring to Fig. 4, the method further includes:
Step 204:If the client operating system is in background operation state, the institute in background operation state is enabled State the screen locking application of client operating system.
When determining that one or more client operating system is in background operation state by step 201, enable after being in The screen locking application of one or more client operating system of platform operating status, to reduce the power consumption of whole operation system as possible, Specifically, when screen time-out occurs, the screen locking application of the client operating system in background operation state will be triggered.Into one Step, it, will also be according to guest operation system after the screen locking application of the client operating system in background operation state will be triggered The screen locking of system acquiescence locks setting automatically, is locked automatically after suspend mode certain time is entered, is now in background operation state The display of client operating system be closed, the client operating system in background operation state, which is attempted to enter, hangs up mould Formula, wherein, hang-up process can be defined as temporarily being eliminated out in an operating system the process of memory, and the resource of machine is limited , in the case of inadequate resource, operating system reasonably arranges program in memory, wherein some processes are temporary When be transferred from memory, when conditions permit, can memory be recalled to by operating system again, the shape to be performed such as reenter State, that is, ready state, system are not having any action more than the regular hour.
In some other embodiment, referring to Fig. 5, the method further includes:
Step 205:Obtain switching command;
Wherein, switching command is used for the operating system for being in front stage operation state and one in background operation state Operating system carries out the exchange of operating status, for example, switching command is used to that a guest operation system of front stage operation state will to be in System switches to background operation state, and the client operating system in background operation state or master operating system are switched to Front stage operation state;Alternatively, switching command is used to the master operating system in front stage operation state switching to running background shape State, and the client operating system in background operation state is switched into front stage operation state.
Step 206:A client operating system in front stage operation state is switched to by backstage according to the switching command Operating status, and the client operating system in background operation state or master operating system are switched into front stage operation shape State;Alternatively, the master operating system in front stage operation state is switched to, and will by background operation state according to the switching command A client operating system in background operation state switches to front stage operation state.
It is performed according to the particular content of the switching command got, performs content and include:It will be located according to switching command Background operation state is switched in a client operating system of front stage operation state, and by the client in background operation state Operating system or master operating system switch to front stage operation state;Alternatively, front stage operation state will be according to switching command Master operating system switch to background operation state, and the client operating system in background operation state is switched into foreground Operating status.Further specifically, when front stage operation be a client operating system when, then before this is according to switching command The client operating system of platform operating status switches to background operation state, and by the guest operation system in background operation state System or master operating system switch to front stage operation state;When front stage operation be master operating system when, then according to switching command The master operating system for being in front stage operation state is switched into background operation state, and objective by one in background operation state Family operating system switches to front stage operation state.
Further, after performing step 205 a to step 206, operating system, which will again return to, performs step 201.
The present invention is described in further details below by way of three kinds of situations are enumerated:
The first situation:Referring to Fig. 6, after master operating system is in front stage operation state, client operating system is in Platform operating status and when not receiving switching command, client operating system will be maintained in backstage, at this time client operating system Screen locking application is enabled, and when the screen time-out of client operating system, the screen locking of client operating system is triggered, then according to visitor The screen locking of family operating system acquiescence locks setting automatically, is locked automatically after suspend mode certain time is entered, at this time guest operation The display of system will be closed, and client operating system is attempted to enter Suspend Mode.
The second situation:Referring to Fig. 7, after master operating system is in front stage operation state, client operating system is in Platform operating status and when receiving switching command, master operating system will switch to background operation state from foreground operating status, and one Client operating system will switch to front stage operation state from background operation state, the virtual machine that the client operating system is supported to run Send in the message to master operating system of the switching state system switching application, system switching application in master operating system Screen locking application communication does not enable the screen locking in master operating system, while screen is kept to be always on, and the control of system backlight etc. is transferred To client operating system.Surpass when user's pressing power key or when the display duration of the screen of client operating system reaches screen During Shi Shichang, the screen of client operating system will go out screen, and virtual machine knows guest operation by virtual frame buffer equipment at this time The screen state of system, send client operating system screen go out screen message to master operating system in system switching application, be System switching application and the screen locking application communication in master operating system, enable the screen locking in master operating system, while it is normal to terminate screen Bright control transfers the control of system backlight etc. to master operating system.Meanwhile system switching application sends a request to operation system System, request master operating system enter sleep state.When user press power key again so that the screen of client operating system again During bright screen, virtual machine knows the screen state of client operating system, send client operating system screen again bright screen message extremely System switching application in master operating system, system switching application and the screen locking application communication in master operating system, not enabled master Screen locking in operating system, while screen is kept to be always on, transfer the control of system backlight etc. to client operating system.
The third situation:Referring to Fig. 8, before master operating system is in background operation state, client operating system is in Platform operating status and when receiving a switching command, according to the switching command by the guest operation in front stage operation state System switches to background operation state, while master operating system is switched to front stage operation state from background operation state and is enabled The screen locking application of master operating system, the driver operated in virtual switching equipment in client operating system nucleus will report this The system of handover event to client operating system switches application program, system switching application program and the lock in client operating system Shield application communication, enable the screen locking application in client operating system.Meanwhile system switching application sends a request to operating system, Request client operating system enters sleep state.The virtual machine of client operating system operation is supported to send system and handover messages to master System switching application in operating system, system switching application and the screen locking application communication in master operating system, enable main operation Screen locking in system.
In some other embodiment, referring to Fig. 9, if it is determined that a client operating system is in front stage operation state, Then the method can also include:
Step 207:Shutdown command is obtained, the shutdown command is grasped for closing the client in front stage operation state Make system;
After the operating status that each client operating system is obtained by step 201, confirmation has at a client operating system When front stage operation state, then shutdown command can also be further obtained, optionally, shutdown command refers to for preset power-off operation It enables, for closing the client operating system in front stage operation state, when user's operation and the preset shutdown of acquisition are grasped When making to instruct consistent, then it is shutdown command to confirm received user's operation.Optionally, preset power-off operation instruction can be with To slide screen or long-press screen and for 5 seconds etc..
Step 208:After according to the shutdown command, the client operating system in front stage operation state is switched to Platform operating status, and the master operating system is switched into front stage operation state from background operation state, enable the main operation The screen locking application of system and the lock of the enabled client operating system that background operation state is switched to from foreground operating status Screen application.
After shutdown command is obtained, the client operating system in front stage operation state is just switched into running background State, and the master operating system is switched into front stage operation state from background operation state, enable the master operating system Screen locking application, while the screen locking of the enabled client operating system that background operation state is switched to from foreground operating status should With.Further, the client operating system when the screen display duration of the client operating system reaches screen time-out duration Screen locking application will be triggered, will also be by after the screen locking application of the client operating system in background operation state will be triggered Screen locking according to client operating system acquiescence locks setting automatically, locks, is now in automatically after suspend mode certain time is entered The display of the client operating system of background operation state is closed, and the client operating system in background operation state is attempted Into Suspend Mode, final realize shuts down the client operating system.
An embodiment of the present invention provides a kind of method of operating system screen locking, operating system include master operating system and At least one client operating system, this method obtain the operating status of each client operating system, the operating status first Including front stage operation state, if the client operating system is in front stage operation state, and the institute in front stage operation state The screen for stating client operating system is in bright screen state, just enables the client operating system in front stage operation state Screen locking application does not enable the screen locking application of the master operating system.To prevent the master operating system in background operation state Screen locking application acts and affects the screen display of the client operating system in front stage operation state, improves operating system fortune Capable stability.Further, it when the screen of the client operating system in front stage operation state, which is in, goes out screen state, enables The screen locking application of master operating system, to reduce the power consumption of operating system entirety.Certainly, if after the client operating system is in Platform operating status enables the screen locking application of the client operating system in background operation state, can also reduce operation system The power consumption for entirety of uniting.It obtains switching command in addition, method further includes or obtains shutdown command, to realize the fortune to operating system Row state switches over or the client operating system of front stage operation shuts down.
Referring to Fig. 10, the structure that Figure 10 is a kind of device of operating system screen locking provided in an embodiment of the present invention is shown It is intended to, the operating system includes master operating system and at least one client operating system, and as shown in Figure 10, which wraps It includes:First acquisition module 31, control module 32, the second acquisition module 33, handover module 34, third acquisition module 35 and shutdown mould Block 36.
Wherein, the first acquisition module 31 is used to obtain the operating status of each client operating system, the operating status Including front stage operation state;
If control module 32 is in front stage operation state for the client operating system, and in front stage operation state The screen of the client operating system be in bright screen state, enable the client operating system in front stage operation state Screen locking application, not enable the master operating system screen locking application.
The control module is additionally operable to, if the screen of the client operating system in front stage operation state is to be in It goes out screen state, enables the screen locking application of the master operating system.
The operating status further includes background operation state;The control module is additionally operable to, if the guest operation system System enables the screen locking application of the client operating system in background operation state in background operation state.
Second acquisition module 33 is used to obtain switching command;
Handover module 34 is used to be switched the client operating system in front stage operation state according to the switching command Foreground fortune is switched to background operation state, and by the client operating system in background operation state or master operating system Row state;Alternatively, the master operating system in front stage operation state is switched to by background operation state according to the switching command, And the client operating system in background operation state is switched into front stage operation state.
For third acquisition module 35 for obtaining shutdown command, the shutdown command is in front stage operation state for closing The client operating system;
Shutdown module 36 is used to be cut the client operating system in front stage operation state according to the shutdown command Background operation state is shifted to, and the master operating system is switched into front stage operation state from background operation state, is enabled described The screen locking application of master operating system and the enabled guest operation system that background operation state is switched to from foreground operating status The screen locking application of system.
An embodiment of the present invention provides a kind of device of operating system screen locking, operating system include master operating system and At least one client operating system, the device is by obtaining the operating status of each client operating system, the operating status Including front stage operation state, if the client operating system is in front stage operation state, and the institute in front stage operation state The screen for stating client operating system is in bright screen state, just enables the client operating system in front stage operation state Screen locking application does not enable the screen locking application of the master operating system.To prevent the master operating system in background operation state Screen locking application acts and affects the screen display of the client operating system in front stage operation state, improves operating system fortune Capable stability.Further, it when the screen of the client operating system in front stage operation state, which is in, goes out screen state, enables The screen locking application of master operating system, to reduce the power consumption of operating system entirety.Certainly, if after the client operating system is in Platform operating status enables the screen locking application of the client operating system in background operation state, can also reduce operation system The power consumption for entirety of uniting.In addition, the device also by obtain switching command or obtain shutdown command, with realize to operating system Operating status switches over or closes the client operating system of front stage operation.
Please refer to Fig.1 the hardware architecture diagram that 1, Figure 11 is a kind of electronic equipment provided in an embodiment of the present invention.The electricity Sub- equipment 40 can be any type of intelligent terminal, such as:Mobile phone, tablet computer, laptop, desktop computer, service Device, robot etc., the method for being able to carry out operating system screen locking as described above.As shown in figure 11, the electronic equipment 40 Including:
One or more processors 41 and memory 42, in Figure 11 by taking a processor 41 as an example.
Processor 41 can be connected with memory 42 by bus or other modes, to be connected as by bus in Figure 11 Example.
Memory 42 is used as a kind of non-volatile computer readable storage medium storing program for executing, available for storing non-volatile software journey Sequence, non-volatile computer executable program and module, such as the method for the operating system screen locking in the embodiment of the present invention Corresponding program instruction/module (for example, modules shown in attached drawing 10).Processor 41 is stored in memory by operation Non-volatile software program, instruction and module in 42, various function application and data processing so as to execute server, The method for realizing above method embodiment operating system screen locking.
Memory 42 can include storing program area and storage data field, wherein, storing program area can storage program area, At least one required application program of function;Storage data field can store the use of the device according to operating system screen locking Data created etc..In addition, memory 42 can include high-speed random access memory, non-volatile memories can also be included Device, for example, at least a disk memory, flush memory device or other non-volatile solid state memory parts.In some embodiments In, memory 42 is optional including relative to the remotely located memory of processor 41, these remote memories can pass through network It is connected to the device of operating system screen locking.The example of above-mentioned network includes but not limited to internet, intranet, local Net, mobile radio communication and combinations thereof.
One or more of modules are stored in the memory 42, when by one or more of processors 41 During execution, the method for the operating system screen locking in above-mentioned any means embodiment is performed, for example, performing figure described above Method and step 201 in 2 is to step 202, method and step 201 in Fig. 3 to step 203, the method and step 201 in Fig. 4 to step Method and step 201 in rapid 204, Fig. 5 is to step 206, method and step 201 in Fig. 9 to step 203, step 207 to step 208, realize the function of the module 31-36 in Figure 10.
The said goods can perform the method that the embodiment of the present invention is provided, and has the corresponding function module of execution method and has Beneficial effect.The not technical detail of detailed description in the present embodiment, reference can be made to the method that the embodiment of the present invention is provided.
An embodiment of the present invention provides a kind of non-volatile computer readable storage medium storing program for executing, and the non-volatile computer can It reads storage medium and is stored with computer executable instructions, which performs above-mentioned any means by electronic equipment The method of operating system screen locking in embodiment, for example, performing method and step 201 in Fig. 2 described above to step Method and step 201 in 202, Fig. 3 is to step 203, method and step 201 in Fig. 4 to step 204, the method and step in Fig. 5 201 to step 206, and the method and step 201 in Fig. 9 to step 203, step 207 to step 208 realizes the module 31- in Figure 10 36 function.
An embodiment of the present invention provides a kind of computer program product, including being stored in non-volatile computer readable storage Calculation procedure on medium, the computer program include program instruction, are computer-executed constantly, make when described program instructs The method that the computer performs the operating system screen locking in above-mentioned any means embodiment, for example, performing above description Fig. 2 in method and step 201 to step 202, method and step 201 in Fig. 3 to step 203, the method and step 201 in Fig. 4 To step 204, method and step 201 in Fig. 5 to step 206, method and step 201 in Fig. 9 to step 203, step 207 to step Rapid 208, realize the function of the module 31-36 in Figure 10.
The apparatus embodiments described above are merely exemplary, wherein the unit illustrated as separating component can To be or may not be physically separate, the component shown as unit may or may not be physics list Member, you can be located at a place or can also be distributed in multiple network element.It can be selected according to the actual needs In some or all of module realize the purpose of this embodiment scheme.
Through the above description of the embodiments, those of ordinary skill in the art can be understood that each embodiment The mode of general hardware platform can be added to realize by software, naturally it is also possible to pass through hardware.Those of ordinary skill in the art can With understand all or part of flow realized in above-described embodiment method be can be instructed by computer program it is relevant hard Part is completed, and the program can be stored in a computer read/write memory medium, the program is when being executed, it may include as above State the flow of the embodiment of each method.Wherein, the storage medium can be magnetic disc, CD, read-only memory (Read- Only Memory, ROM) or random access memory (Random Access Memory, RAM) etc..
Finally it should be noted that:The above embodiments are merely illustrative of the technical solutions of the present invention, rather than its limitations;At this It under the thinking of invention, can also be combined between the technical characteristic in above example or different embodiment, step can be with It is realized with random order, and there are many other variations of different aspect present invention as described above, for simplicity, they do not have Have and provided in details;Although the present invention is described in detail referring to the foregoing embodiments, the ordinary skill people of this field Member should understand that:It can still modify to the technical solution recorded in foregoing embodiments or to which part skill Art feature carries out equivalent replacement;And these modifications or replacement, each reality of the present invention that it does not separate the essence of the corresponding technical solution Apply the range of a technical solution.

Claims (13)

1. a kind of method of operating system screen locking, the operating system includes master operating system and at least one guest operation System, which is characterized in that the method includes:
The operating status of each client operating system is obtained, the operating status includes front stage operation state;
If the client operating system is in front stage operation state, and the client operating system in front stage operation state Screen be the screen locking application that the client operating system in front stage operation state is enabled in bright screen state, do not enable The screen locking application of the master operating system.
2. according to the method described in claim 1, it is characterized in that, the method further includes:
If the screen of the client operating system in front stage operation state is in screen state of going out, the main operation is enabled The screen locking application of system.
3. according to the method described in claim 1, it is characterized in that, the operating status further includes background operation state;
The method further includes:
If the client operating system is in background operation state, the guest operation system in background operation state is enabled The screen locking application of system.
4. method according to any one of claims 1 to 3, which is characterized in that the method further includes:
Obtain switching command;
A client operating system in front stage operation state is switched to, and will by background operation state according to the switching command A client operating system or master operating system in background operation state switch to front stage operation state;Alternatively, according to institute It states switching command and the master operating system in front stage operation state is switched into background operation state, and running background shape will be in One client operating system of state switches to front stage operation state.
5. method according to claim 1 or 2, which is characterized in that the method further includes:
Shutdown command is obtained, the shutdown command is in the client operating system of front stage operation state for closing;
The client operating system in front stage operation state is switched to by background operation state according to the shutdown command, and The master operating system is switched into front stage operation state from background operation state, the screen locking for enabling the master operating system should With and the enabled client operating system that background operation state is switched to from foreground operating status screen locking application.
6. a kind of device of operating system screen locking, the operating system includes master operating system and at least one guest operation System, which is characterized in that described device includes:
First acquisition module, for obtaining the operating status of each client operating system, the operating status is transported including foreground Row state;
Control module, if being in front stage operation state, and the institute in front stage operation state for the client operating system The screen for stating client operating system is the lock that the client operating system in front stage operation state is enabled in bright screen state Screen application, does not enable the screen locking application of the master operating system.
7. device according to claim 6, which is characterized in that
The control module is additionally operable to, if the screen of the client operating system in front stage operation state is in the screen that goes out State enables the screen locking application of the master operating system.
8. device according to claim 6, which is characterized in that the operating status further includes background operation state;
The control module is additionally operable to, if the client operating system is in background operation state, is enabled in running background The screen locking application of the client operating system of state.
9. according to claim 6 to 8 any one of them device, which is characterized in that described device further includes:
Second acquisition module, for obtaining switching command;
Handover module, for the client operating system in front stage operation state to be switched to backstage according to the switching command Operating status, and the client operating system in background operation state or master operating system are switched into front stage operation shape State;Alternatively, the master operating system in front stage operation state is switched to, and will by background operation state according to the switching command A client operating system in background operation state switches to front stage operation state.
10. the device described according to claim 6 or 7, which is characterized in that described device further includes:
Third acquisition module, for obtaining shutdown command, the shutdown command is described in front stage operation state for closing Client operating system;
Shutdown module, after the client operating system in front stage operation state is switched to according to the shutdown command Platform operating status, and the master operating system is switched into front stage operation state from background operation state, enable the main operation The screen locking application of system and the lock of the enabled client operating system that background operation state is switched to from foreground operating status Screen application.
11. a kind of electronic equipment, which is characterized in that including:
At least one processor;And
The memory being connect at least one processor communication;Wherein,
The memory is stored with the instruction repertorie that can be performed by least one processor, described instruction program by it is described extremely A few processor performs, so that at least one processor perform claim requires 1 to 5 any one of them method.
A kind of 12. non-volatile computer readable storage medium storing program for executing, which is characterized in that the non-volatile computer readable storage medium Matter is stored with computer executable instructions, and the computer executable instructions are any for making the requirement 1 to 5 of computer perform claim Method described in.
13. a kind of computer program product, which is characterized in that the computer program product includes being stored in non-volatile calculating Computer program on machine readable storage medium storing program for executing, the computer program include program instruction, when described program instruction is calculated When machine performs, the computer perform claim is made to require 1 to 5 any one of them method.
CN201780003333.1A 2017-12-22 2017-12-22 A kind of method, apparatus and electronic equipment of operating system screen locking Pending CN108235757A (en)

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2017/118077 WO2019119438A1 (en) 2017-12-22 2017-12-22 Method and apparatus for screen locking of operating system, and electronic device

Publications (1)

Publication Number Publication Date
CN108235757A true CN108235757A (en) 2018-06-29

Family

ID=62645521

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201780003333.1A Pending CN108235757A (en) 2017-12-22 2017-12-22 A kind of method, apparatus and electronic equipment of operating system screen locking

Country Status (2)

Country Link
CN (1) CN108235757A (en)
WO (1) WO2019119438A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109388491A (en) * 2018-08-23 2019-02-26 深圳点猫科技有限公司 A kind of method and system for the picture fluency improving education operating system

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1245921A (en) * 1998-03-10 2000-03-01 朗迅科技公司 Event-driven and cyclic context controller and its application processor
US20120159139A1 (en) * 2010-12-21 2012-06-21 Dongwoo Kim Mobile terminal and method of controlling a mode switching therein
CN103500101A (en) * 2013-10-14 2014-01-08 北京奇虎科技有限公司 Method and device for locking screen and terminal
KR20150061362A (en) * 2013-11-27 2015-06-04 유강열 User terminal and methode for executing an application in user termianl
CN106598611A (en) * 2016-12-20 2017-04-26 北京猎豹移动科技有限公司 Lock screen interface display method and device
CN107003891A (en) * 2016-08-31 2017-08-01 深圳前海达闼云端智能科技有限公司 Virtual machine switching method, device, electronic equipment and computer program product

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TWI279724B (en) * 2005-09-07 2007-04-21 Mitac Technology Corp Method for fast activating execution of computer multimedia playing from standby mode
CN102104936B (en) * 2009-12-18 2014-11-05 联想(北京)有限公司 Method for switching system states and portable terminal
CN103902316B (en) * 2012-12-27 2017-07-25 联想(北京)有限公司 Switching method and electronic equipment

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1245921A (en) * 1998-03-10 2000-03-01 朗迅科技公司 Event-driven and cyclic context controller and its application processor
US20120159139A1 (en) * 2010-12-21 2012-06-21 Dongwoo Kim Mobile terminal and method of controlling a mode switching therein
CN103500101A (en) * 2013-10-14 2014-01-08 北京奇虎科技有限公司 Method and device for locking screen and terminal
KR20150061362A (en) * 2013-11-27 2015-06-04 유강열 User terminal and methode for executing an application in user termianl
CN107003891A (en) * 2016-08-31 2017-08-01 深圳前海达闼云端智能科技有限公司 Virtual machine switching method, device, electronic equipment and computer program product
CN106598611A (en) * 2016-12-20 2017-04-26 北京猎豹移动科技有限公司 Lock screen interface display method and device

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109388491A (en) * 2018-08-23 2019-02-26 深圳点猫科技有限公司 A kind of method and system for the picture fluency improving education operating system

Also Published As

Publication number Publication date
WO2019119438A1 (en) 2019-06-27

Similar Documents

Publication Publication Date Title
CN107748686B (en) Application program starting optimization method and device, storage medium and intelligent terminal
CN107291456B (en) Multi-screen display control method and system
CN108235759A (en) Input processing method, device and electronic equipment based on multiple operating system
CN109064538B (en) View rendering method and device, storage medium and intelligent terminal
US20120173986A1 (en) Background synchronization within a multi-environment operating system
CN104076903A (en) Postponing suspend
CN112114761A (en) Wireless screen projection control method and device, terminal equipment and readable storage medium
CN107450838B (en) Response method and device of black screen gesture, storage medium and mobile terminal
US20220058772A1 (en) Image Processing Method and Device
CN110058905B (en) Event processing and operating system management method, device, equipment and storage medium
CN105474126A (en) Improved power control techniques for integrated PCIE controllers
CN105940375A (en) Dynamic reassignment for multi-operating system devices
CN113900754A (en) Desktop sharing method and device, computer equipment and storage medium
CN111880879B (en) Playing method, device, equipment and storage medium of dynamic wallpaper
CN108401453A (en) A kind of method, apparatus and intelligent terminal of control display screen
CN112596950A (en) Virtual machine data backup method, device, equipment and storage medium
CN108255547B (en) Application program control method and device
EP3699731A1 (en) Method and device for calling input method, and server and terminal
CN114691287A (en) Virtual machine migration method, device and system
CN108235757A (en) A kind of method, apparatus and electronic equipment of operating system screen locking
CN113242309A (en) Cloud computing method, system, device and medium
CN105511947B (en) Method and device for processing event information in multiple systems
CN114090188A (en) Method for realizing independent multi-user system based on android system virtualization and application
CN112817718A (en) Dual-system device, application display method thereof and storage medium
CN112684965A (en) Dynamic wallpaper state changing method and device, electronic equipment and storage medium

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
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20180629