CN106886414B - Data processing method and electronic equipment - Google Patents

Data processing method and electronic equipment Download PDF

Info

Publication number
CN106886414B
CN106886414B CN201710096128.6A CN201710096128A CN106886414B CN 106886414 B CN106886414 B CN 106886414B CN 201710096128 A CN201710096128 A CN 201710096128A CN 106886414 B CN106886414 B CN 106886414B
Authority
CN
China
Prior art keywords
state
electronic equipment
mode
equipment
power
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
CN201710096128.6A
Other languages
Chinese (zh)
Other versions
CN106886414A (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.)
Lenovo Beijing Ltd
Original Assignee
Lenovo Beijing 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 Lenovo Beijing Ltd filed Critical Lenovo Beijing Ltd
Priority to CN201710096128.6A priority Critical patent/CN106886414B/en
Publication of CN106886414A publication Critical patent/CN106886414A/en
Application granted granted Critical
Publication of CN106886414B publication Critical patent/CN106886414B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

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/4401Bootstrapping
    • G06F9/4418Suspend and resume; Hibernate and awake

Abstract

The embodiment of the invention provides a data processing method and electronic equipment, wherein no matter the electronic equipment is in a power-off state or a standby state at present, the electronic equipment can automatically enter a wake-up state as long as a user turns on a physical switch, corresponding setting on the electronic equipment by the user is not needed, and because the physical key is set for the virtual reality equipment, when the physical key is in the turn-on state, the user is explained to intentionally connect the electronic equipment and the virtual reality equipment. Therefore, the electronic equipment can automatically enter the virtual reality mode, in the embodiment of the application, a user only needs to turn on the physical switch when the user needs to enter the virtual reality mode, which is equivalent to the prior art, no parameter needs to be input by the user, and the electronic equipment does not need to wait for the parameter input by the user during data processing, so that the data processing speed of the electronic equipment is increased, and further the electronic equipment can quickly enter the virtual reality mode.

Description

Data processing method and electronic equipment
Technical Field
The present application relates to communication technologies, and in particular, to a data processing method and an electronic device.
Background
VR (Virtual Reality) technology is a computer simulation system that can create and experience a Virtual world, and is a technology that provides an immersive sensation in an interactive three-dimensional environment generated on a computer by comprehensively using a computer graphics system and various interface devices such as Reality and control.
At present, VR devices are often used together with electronic devices, and the description will be given by taking the electronic devices as a game book (short for game notebook computers): the user need insert the recreation originally with the VR equipment, and after the user inserted the recreation originally, if the recreation originally was in shutdown or standby state, the user needed the manual work of awakening the recreation originally, for example the manual work carries out corresponding software setting to the recreation originally to make the recreation originally be in awakening state, awaken the recreation originally after, carry out corresponding virtual reality setting to the recreation originally again, so that make the recreation originally get into the virtual reality mode.
In the prior art, a user inserts a VR device into an electronic device, the electronic device needs to continuously input parameters during the whole process of entering a virtual reality mode, and the electronic device needs to wait for the input of the parameters to perform data processing, so that the data processing speed of the electronic device is reduced, and the electronic device cannot enter the virtual reality mode quickly.
Disclosure of Invention
In view of this, the present invention provides a data processing method and an electronic device, so as to overcome the problem that the electronic device cannot enter the virtual reality mode quickly due to the low data processing speed of the electronic device in the prior art.
In order to achieve the purpose, the invention provides the following technical scheme:
a data processing method is applied to electronic equipment, wherein a physical switch is arranged on a shell of the electronic equipment and used for indicating whether a current user needs to be connected with virtual reality equipment or not; the data processing method comprises the following steps:
detecting the key state of the physical switch, wherein the key state comprises an opening state and a closing state;
when the key state is the opening state, awakening the electronic equipment;
and controlling the electronic equipment to enter a virtual reality mode.
Wherein, when the button state is the open state, awakening the electronic device comprises:
when the electronic equipment is detected to be in a dormant state currently, a wake-up instruction is generated;
or when the electronic equipment is detected to be in a power-off state currently, a wake-up instruction is generated, wherein the wake-up instruction comprises a power-on instruction and a command for forbidding response to enter a sleep state.
Wherein the controlling the electronic device to enter a virtual reality mode comprises:
detecting an access state of an external device of the electronic device, wherein the access state of the external device is a state of not accessing the external device or a state of accessing the external device;
and when the access state of the external equipment is the state of accessing the external equipment, entering a virtual reality mode.
Preferably, the method further comprises the following steps:
determining mechanical states of a keyboard and a display screen of the electronic equipment, wherein the mechanical states are that the keyboard and the display screen are in a closed state or the keyboard and the display screen are in an open state;
determining a power connection state of the electronic equipment, wherein the power connection state is a power connection state or a power disconnection state;
and determining the current working mode of the electronic equipment according to state information, wherein the state information comprises the key state, the mechanical state and the power supply connection state.
Wherein the state information further includes: the external equipment access state comprises an unaccessed external equipment state and an accessed external equipment state; the determining the current working mode of the electronic equipment according to the state information comprises:
when the key state is an open state, the access state of the external equipment is an accessed external equipment state, the mechanical state is a closed state, the power supply connection state is a non-power supply connection state, and the current working mode of the electronic equipment is determined to be a backpack mode;
and/or when the key state is an on state, the access state of the external equipment is an accessed external equipment state, the mechanical state is an on state, the power supply connection state is a non-power supply connection state, and the current working mode of the electronic equipment is determined to be a non-power supply desktop mode;
and/or when the key state is the starting state, the access state of the external equipment is the state of accessing the external equipment, the mechanical state is the starting state, the power supply connection state is the state of connecting with a power supply, and the current working mode of the electronic equipment is determined to be the power supply desktop mode.
Preferably, the method further comprises the following steps:
when the working mode is the backpack mode, controlling the electronic equipment to be in a first power saving mode;
and/or when the working mode is the backpack mode, controlling the fan speed of the electronic equipment to be a preset speed;
and/or when the working mode is a non-power desktop mode, controlling the electronic equipment to be in a second power saving mode.
An electronic device, comprising:
the physical switch is arranged on the shell of the electronic equipment and used for indicating whether a current user needs to be connected with the virtual reality equipment or not;
the operation controller is connected with the physical switch and used for detecting the key state of the physical switch and awakening the electronic equipment when the key state is in an open state; and controlling the electronic equipment to enter a virtual reality mode, wherein the key states comprise an opening state and a closing state.
Preferably, the method further comprises the following steps:
the multimedia interface is used for detecting whether an external device is accessed or not and sending an access state of the external device to the operation controller, wherein the access state of the external device comprises a state of not accessing the external device or a state of accessing the external device;
when controlling the electronic device to enter the virtual reality mode, the operation controller is specifically configured to:
detecting the access state of the external equipment of the multimedia interface;
and when the access state of the external equipment is the state of accessing the external equipment, entering a virtual reality mode.
When the key state is the on state, the operation controller is specifically configured to, when waking up the electronic device:
when the electronic equipment is detected to be in a dormant state currently, a wake-up instruction is generated;
or when the electronic equipment is detected to be in a power-off state currently, a wake-up instruction is generated, wherein the wake-up instruction comprises a power-on instruction and a command for forbidding response to enter a sleep state.
Preferably, the method further comprises the following steps:
the sleep switch is used for detecting the mechanical states of a keyboard and a display screen of the electronic equipment and uploading the mechanical states to the operation controller, wherein the mechanical states comprise that the keyboard and the display screen are in a closed state or the keyboard and the display screen are in an open state;
the embedded controller is used for detecting the power connection state of the electronic equipment and uploading the power connection state to the operation controller, and the power connection state comprises: a state of connection with a power supply or a state of disconnection from the power supply;
the operation controller is further configured to: determining a mechanical state uploaded by the sleep switch; determining a power supply connection state uploaded by the embedded controller; determining a current working mode of the electronic equipment according to state information, wherein the state information comprises: a key state, the mechanical state, and the power connection state.
As can be seen from the foregoing technical solutions, compared with the prior art, in the method, no matter the electronic device is currently in the off state or in the standby state, as long as the user turns on the physical switch, the electronic device will automatically enter the wake-up state, and no corresponding setting needs to be performed on the electronic device by the user. Therefore, the electronic equipment can automatically enter the virtual reality mode, in the embodiment of the application, a user only needs to turn on the physical switch when the user needs to enter the virtual reality mode, which is equivalent to the prior art, no parameter needs to be input by the user, and the electronic equipment does not need to wait for the parameter input by the user during data processing, so that the data processing speed of the electronic equipment is increased, and further the electronic equipment can quickly enter the virtual reality mode.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the provided drawings without creative efforts.
Fig. 1 is a schematic internal structural diagram of an electronic device according to an embodiment of the present disclosure;
fig. 2 is a schematic flowchart of a data processing method according to an embodiment of the present application;
fig. 3 is a schematic diagram illustrating a position of a physical switch disposed on a notebook computer according to an embodiment of the present disclosure;
fig. 4 is a flowchart of a method of determining an implementation manner of an operating mode of an electronic device in a data processing method according to an embodiment of the present application;
fig. 5 is a schematic structural diagram of a data processing apparatus according to an embodiment of the present application;
fig. 6 is a schematic internal detailed structure diagram of an electronic device according to an embodiment of the present disclosure.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
An embodiment of the present application provides a data processing method, where the data processing method may be applied to an electronic device, such as a notebook computer, a game book, and the like, and as shown in fig. 1, an internal structure diagram of the electronic device provided in the embodiment of the present application is shown, where the electronic device includes:
an operation controller 11 and a physical switch 12 disposed on the housing, the physical switch 12 being connected to the operation controller 11.
The physical switch 12 is used to indicate whether the current user needs to connect to the virtual reality device. The operation controller 11 can detect the key state of the physical switch 12, i.e., whether it is the open state or the closed state.
Based on the foregoing structure, the following describes in detail a data processing method provided in an embodiment of the present application, and as shown in fig. 2, is a schematic flow chart of the data processing method provided in the embodiment of the present application, where the method includes:
step S201: and detecting the key state of the physical switch.
The key states include an on state and an off state.
The physical switch may be a VR Latch (Latch), and when the key state of the physical switch changes, the level of the pin of the VR Latch changes, for example, when the key state of the physical switch is an on state, the level of the pin of the VR Latch is a low level, and when the key state of the physical switch is an off state, the level of the pin of the VR Latch is a high level; or when the key state of the physical switch is an on state, the level of the VR Latch pin is at a high level, and when the key state of the physical switch is an off state, the level of the VR Latch pin is at a low level.
The pin of the physical switch 12 may be connected to the operation controller 11, and the operation controller 11 may determine the key status of the physical switch 12 according to the high-low level of the pin of the physical switch.
When the electronic device is a notebook computer, the physical switch may be disposed on a housing of the notebook computer, as shown in fig. 3, which is a schematic position diagram of the physical switch disposed on the notebook computer according to the embodiment of the present application.
The physical switch 12 may be in position 31 and position 32 as shown in fig. 3. Thus, when the display screen 1 and the keyboard 2 of the notebook computer are in the closed state and the user turns on the physical switch 12 again, the display screen 1 and the keyboard 2 do not need to be set and turned on (as shown in fig. 3, that is, the display screen 1 and the keyboard 2 are in the open state). Of course, the physical switch 12 may also be disposed at the position 33, and at this time, when the user turns on the physical switch 12, if the display screen 1 and the keyboard 2 of the notebook computer are in the closed state, the user needs to set the display screen 1 and the keyboard 2 in the open state before turning on the physical switch 12.
Fig. 3 shows only the arrangement positions of several physical keys, and does not limit the arrangement positions of the physical switches 12 in the embodiment of the present application.
In some electronic devices, such as a game PAD (playbook) and a PAD (tablet personal computer), which do not have a separate display screen 1, the physical switch may be provided at any position on the housing of the electronic device, and the problem of the electronic device shown in fig. 3 having a separate display screen 1 does not arise.
Step S202: and when the key state is the opening state, awakening the electronic equipment.
If the electronic equipment is in the dormant state, the electronic equipment can be awakened from the dormant state to a normal working state; at this time, step S202 includes: and when the electronic equipment is detected to be in the dormant state currently, a wake-up instruction is generated.
If the electronic equipment is in the shutdown state, the electronic equipment can be awakened from the shutdown state to the startup state, and enters the normal working state. At this time, step S202 includes: and when the electronic equipment is detected to be in a power-off state currently, generating a wake-up instruction, wherein the wake-up instruction comprises a power-on instruction and a command for forbidding response to enter a dormant state.
When the electronic device is in the power-on state, the user may not perform any operation on the electronic device for a certain period of time, and the electronic device may enter the sleep state, or, if the electronic device has the separate display screen 1 shown in fig. 3, after the user closes the display screen 1 and the keyboard, the electronic device may enter the sleep state.
If the electronic equipment does not enter the dormant state, the user turns on the physical switch, and at the moment, if the electronic equipment receives the instruction of entering the dormant state, the electronic equipment can be forbidden to respond to the instruction of entering the dormant state, so that the electronic equipment is prevented from entering the dormant state.
Alternatively, after the user turns on the physical switch, if the user presses the shutdown key by mistake, at this time, the operation controller 11 may prohibit the response to the shutdown instruction.
Step S203: and controlling the electronic equipment to enter a virtual reality mode.
The data processing method provided by the embodiment of the application can be applied to the operation controller 11 shown in fig. 1.
The embodiment of the invention provides a data processing method, wherein no matter the electronic equipment is in a power-off state or a dormant state at present, the electronic equipment can automatically enter a wake-up state as long as a user starts a physical switch, corresponding setting on the electronic equipment by the user is not needed, and because the physical key is set aiming at the virtual reality equipment, when the physical key is in the start state, the user is explained to intentionally connect the electronic equipment and the virtual reality equipment. Therefore, the electronic equipment can automatically enter the virtual reality mode, in the embodiment of the application, a user only needs to turn on the physical switch when the user needs to enter the virtual reality mode, which is equivalent to the prior art, no parameter needs to be input by the user, and the electronic equipment does not need to wait for the parameter input by the user during data processing, so that the data processing speed of the electronic equipment is increased, and further the electronic equipment can quickly enter the virtual reality mode.
It will be appreciated that upon detecting that the physical switch 12 is open, the electronic device may enter a virtual reality mode. However, sometimes the user may open the physical switch 12 by mistake, and to avoid the electronic device entering the virtual reality mode by mistake, it is also necessary to detect whether the electronic device is actually connected to the external device.
The data processing method may further include: detecting an access state of an external device of the electronic device, wherein the access state of the external device is a state of not accessing the external device or a state of accessing the external device; and when the access state of the external equipment is the state of accessing the external equipment, entering a virtual reality mode.
The above method may be applied to the operation controller 12, that is, when the operation controller 12 controls the electronic device to enter the virtual reality mode, the method is specifically configured to: detecting an access state of an external device of the electronic device, wherein the access state of the external device comprises a state of not accessing the external device or a state of accessing the external device; and when the access state of the external equipment is the state of accessing the external equipment, entering a virtual reality mode.
The electronic device can be provided with a multimedia interface 13, the external device can be connected with the electronic device through the multimedia interface 13, when the multimedia interface 13 is inserted into the external device (the state of being connected into the external device), the level of the pin of the multimedia interface 13 is high level, and when the multimedia interface 13 is not inserted into the external device (the state of not being connected into the external device), the level of the pin of the multimedia interface 13 is low level; or when the multimedia interface 13 is plugged into an external device, the level of the pin of the multimedia interface 13 is low level, and when the multimedia interface 13 is not plugged into an external device, the level of the pin of the multimedia interface 13 is high level.
Alternatively, when the multimedia interface 13 is plugged into an external device (connected to the external device), the resistance of the pin of the multimedia interface 13 may change.
The Multimedia Interface 13 may be an HDMI (High Definition Multimedia Interface), and the pin connecting the Multimedia Interface 13 and the operation controller 11 may be an HDMI _ HPD pin.
In summary, the multimedia interface 13 is configured to detect whether an external device is accessed, and send an access state of the external device to the operation controller, where the access state of the external device includes a state of not accessing the external device or a state of accessing the external device.
The operation controller 11 may determine whether an external device is currently inserted according to the high/low level of the pin to which the multimedia interface 13 is connected or the resistance change of the pin. That is, when the operation controller controls the electronic device to enter the virtual reality mode, the operation controller is specifically configured to: detecting the access state of the external equipment of the multimedia interface; and when the access state of the external equipment is the state of accessing the external equipment, entering a virtual reality mode.
The above "when the external device access state is the state of having accessed the external device, entering the virtual reality mode" has two situations:
first, it is only detected whether the current multimedia interface 13 is plugged into an external device, and as for the specific type of the external device, it is not a VR device, and it is not concerned that the user is plugged into the multimedia interface 13 in most cases because the user has turned on the physical switch.
In the first case, the accessed external device state refers to the state of accessing any external device, and the unaccessed external device state refers to the state of not accessing any external device.
Secondly, after detecting that the multimedia interface 13 is inserted into the external device, the operation controller 11 in the electronic device further needs to determine the type of the external device, and when the type of the external device is a VR device, the electronic device is controlled to enter the virtual reality mode.
In a second case, the accessed external device state refers to an accessed VR device state, and the unaccessed external device state refers to an unaccessed VR device state, and other non-VR devices, such as earphones, speakers, and the like, may be accessed.
It can be understood that after different external devices are inserted into the multimedia interface 13, voltages of pins connected to the multimedia interface 13 and the operation controller may be different, and the operation controller 11 may determine whether the currently connected external device is a VR device according to the pin voltage of the multimedia interface 13, and if the currently connected external device is a VR device, control the electronic device to enter a virtual reality mode.
Or, after different external devices are inserted into the multimedia interface 13, the resistances of the pins connected to the multimedia interface 13 and the operation controller may be different, and the operation controller 11 may determine whether the currently accessed external device is a VR device according to the pin resistance of the multimedia interface 13, and if the currently accessed external device is a VR device, control the electronic device to enter the virtual reality mode.
The data processing method provided in the embodiment of the application may also determine a current operating mode of the electronic device, for example, when a user uses the electronic device to experience VR, the user may be playing a game, at this time, the user may place the electronic device in a backpack and carry the electronic device to play the game, at this time, if the electronic device is the electronic device with an independent display screen as shown in fig. 3, the display screen and the keyboard are usually closed, that is, the display screen and the keyboard are in a closed state, and in this case, the electronic device is not connected to an external power source (for example, 220V), at this time, the operating mode of the electronic device may be referred to as a backpack mode.
If the display screen and the keyboard of the electronic device are in an on state (as shown in fig. 3), the operating mode of the electronic device may be referred to as a desktop mode, and the desktop mode includes two operating modes, one is an operating mode in which the electronic device is connected to an external power source through an adapter, and is referred to as a power desktop mode, and the other is an operating mode in which the electronic device is not connected to the external power source through the adapter, and is referred to as a non-power desktop mode. As shown in fig. 4, a specific detection method is a flowchart of a method for determining an implementation manner of a working mode of an electronic device in a data processing method provided in an embodiment of the present application, where the method includes:
step S401: the mechanical state of the keyboard and display of the electronic device is determined.
The mechanical state is that the keyboard and the display screen are in a closed state, or the keyboard and the display screen are in an open state.
The electronic device may further include a sleep switch 16, wherein when the keyboard and the display screen are in a closed state, a pin of the sleep switch 16 is at a low level, and when the keyboard and the display screen are in an open state, a pin of the sleep switch 16 is at a high level; or when the keyboard and the display screen are in a closed state, the pin of the sleep switch 16 is at a high level, and when the keyboard and the display screen are in an open state, the pin of the sleep switch 16 is at a low level. Namely, the sleep switch 16 is configured to detect mechanical states of a keyboard and a display of the electronic device, and upload the mechanical states to the operation controller, where the mechanical states include that the keyboard and the display are in a closed state or that the keyboard and the display are in an open state.
The mechanical states of the keyboard and the display screen of the electronic equipment can be determined according to the level of the pin of the sleep switch.
The sleep switch may be connected to the operation controller 11.
Step S402: determining a power connection state of the electronic device.
The power supply connection state is as follows: a connected state or a disconnected state with the power source.
The electronic device may include an embedded controller 14, where the embedded controller 14 may detect a connection state of a power supply of the electronic device, when the electronic device is connected to an external power supply, a voltage of a pin AC _ Present of the embedded controller connected to the operation controller 11 is a high level, and when the electronic device is not connected to the external power supply, a voltage of a pin AC _ Present of the embedded controller connected to the operation controller 11 is a low level; or when the electronic device is connected to the external power source, the voltage of the pin AC _ Present connected to the embedded controller and the operation controller 11 is at a low level, and when the electronic device is not connected to the external power source, the voltage of the pin AC _ Present connected to the embedded controller and the operation controller 11 is at a high level. The operation controller 11 may determine whether the electronic device is currently connected to an external power source according to the voltage level of the AC _ Present pin.
Namely, the embedded controller 14 is configured to detect a power connection status of the electronic device, and upload the power connection status to the operation controller, where the power connection status includes: a connected state or a disconnected state with the power source.
Or, if an adapter socket for inserting a power supply is provided on the electronic device, the adapter socket may be connected to the operation controller 11, and after the adapter socket of the electronic device is inserted into the adapter, if the adapter is connected to an external power supply, the voltage of the adapter socket may reach a stable voltage value (for example, a notebook computer is charged through the adapter, and the stable constant voltage of the adapter socket is 20V), and the operation controller 11 may determine whether the electronic device is connected to the power supply by determining whether the voltage of the adapter socket reaches a preset voltage value.
There is no sequence between step S401 and step S402, and step S401 may be executed at the same time, or step S402 may be executed first and step S401 may be executed second, or step S401 may be executed first and step S402 may be executed second.
Step S403: and determining the current working mode of the electronic equipment according to the state information.
The state information includes the key state, the mechanical state, and the power connection state.
The above-mentioned determination of the operation mode of the electronic device may be applied in the operation controller 11, i.e. the operation controller 11 is further configured to: determining a mechanical state uploaded by the sleep switch; determining a power supply connection state uploaded by the embedded controller; determining a current working mode of the electronic equipment according to state information, wherein the state information comprises: a key state, the mechanical state, and the power connection state.
As can be appreciated from the above description, the electronic device may include one or more modes of operation, such as a backpack mode and/or a non-powered desktop mode and/or a powered desktop mode.
Step S403 is implemented as follows (which may be applied to the operation controller 11, and at this time, the operation controller is specifically configured to, when determining the current operating mode of the electronic device according to the state information):
and when the key state is an open state, the access state of the external equipment is an accessed external equipment state, the mechanical state is a closed state, the power supply connection state is a non-power supply connection state, and the current working mode of the electronic equipment is determined to be a backpack mode.
And/or when the key state is the starting state, the access state of the external equipment is the state of accessing the external equipment, the mechanical state is the starting state, the power supply connection state is the state of not connecting with the power supply, and the current working mode of the electronic equipment is determined to be the non-power supply desktop mode.
And/or when the key state is the starting state, the access state of the external equipment is the state of accessing the external equipment, the mechanical state is the starting state, the power supply connection state is the state of connecting with a power supply, and the current working mode of the electronic equipment is determined to be the power supply desktop mode.
It is understood that the operating mode of the electronic device may be different, and the operating state of the electronic device may be different.
The data processing method may further include:
when the working mode of the electronic equipment is a backpack mode, controlling the electronic equipment to be in a first power saving mode; and/or when the working mode is the backpack mode, controlling the fan speed of the electronic equipment to be a preset speed; and/or when the working mode is a non-power desktop mode, controlling the electronic equipment to be in a second power saving mode.
The above method may be applied in the operation controller 11, i.e. the operation controller is further configured to:
when the working mode is the backpack mode, controlling the electronic equipment to be in a first power saving mode; and/or when the working mode is the backpack mode, controlling the fan speed of the electronic equipment to be a preset speed; and/or when the working mode is a non-power desktop mode, controlling the electronic equipment to be in a second power saving mode.
The first power saving mode includes: the CPU is in a low power consumption mode and locks frequency, and the power supply of related programs of the KBD (multimedia KeyBoard) is turned off (if the multimedia KeyBoard has light effect, the light effect is turned off), the I/O (input/output, touch screen and loudspeaker are turned off.
The GPU needs to be controlled to be in a normal operating mode, and because the VR device requires a high-level image processor, the GPU cannot be turned off, and cannot be in a low-power state.
It can be understood that, when the operating mode of the electronic device is the backpack mode, the electronic device is not plugged into a power supply, and the electronic device needs to be controlled to enter the first power saving mode in order to save power, so that the endurance time of the electronic device can be prolonged.
When the electronic equipment is in the backpack mode, a user is quite possible to put the electronic equipment into a bag, and the heat dissipation of the electronic equipment is not good at the moment, so that the rotating speed of the fan can be increased, the heat dissipation is accelerated, and the 'control of the speed of the fan of the electronic equipment to be the preset speed' is the increase of the rotating speed of the fan.
Similarly, when the operating mode of the electronic device is the non-power desktop mode, the electronic device is not connected to the power supply, and at this time, in order to extend the cruising ability of the electronic device, the electronic device also needs to be controlled to enter the second power saving mode.
The second power saving mode includes: the CPU is in a low power consumption mode and locks frequency, and the power supply of related programs of the KBD (multimedia KeyBoard) is turned off (if the multimedia KeyBoard has light effect, the light effect is turned off), the I/O (input/output, touch screen and loudspeaker are turned off.
When the working mode of the electronic device is the power desktop mode, since the electronic device is connected to the power source, the electronic device does not need to enter a power saving mode (e.g., the first power saving mode or the second power saving mode), and certainly, the electronic device may also enter the power saving mode, which is not limited in the embodiment of the present application.
The operation controller 11 may control the electronic device to enter the first power saving mode and/or the second power saving mode and/or the fan speed to be a preset speed through the hardware platform 15.
The embodiment of the application also provides a data processing device, and the data processing device can be applied to the electronic equipment shown in fig. 1. As shown in fig. 5, a schematic structural diagram of a data processing apparatus provided in an embodiment of the present application is shown, where the data processing apparatus may include: a detection module 51, a wake-up module 52, and a control module 53, wherein:
and the detecting module 51 is used for detecting the key state of the physical switch.
The key states include an on state and an off state.
For the description of the physical switch 12, refer to the description of the physical switch in step S201, and are not described herein again.
And a wake-up module 52, configured to wake up the electronic device when the key state is an on state.
The wake-up module 52 may include:
the first wake-up generating instruction unit is used for generating a wake-up instruction when the electronic equipment is detected to be in a dormant state currently; or, the second wake-up instruction generating unit is configured to generate a wake-up instruction when detecting that the electronic device is currently in a power-off state, where the wake-up instruction includes a power-on instruction and a command for prohibiting a response to enter a sleep state.
For a detailed description, please refer to the description in step S202, which is not repeated herein.
And the control module 53 is configured to control the electronic device to enter a virtual reality mode.
The embodiment of the invention provides a data processing device, no matter whether an electronic device is in a power-off state or a dormant state currently, as long as a user starts a physical switch, the electronic device can automatically enter a wake-up state without corresponding setting on the electronic device by the user. Therefore, the electronic equipment can automatically enter the virtual reality mode, in the embodiment of the application, a user only needs to turn on the physical switch when the user needs to enter the virtual reality mode, which is equivalent to the prior art, no parameter needs to be input by the user, and the electronic equipment does not need to wait for the parameter input by the user during data processing, so that the data processing speed of the electronic equipment is increased, and further the electronic equipment can quickly enter the virtual reality mode.
It will be appreciated that upon detecting that the physical switch 12 is open, the electronic device may enter a virtual reality mode. However, sometimes the user may open the physical switch 12 by mistake, and to avoid the electronic device entering the virtual reality mode by mistake, it is also necessary to detect whether the electronic device is actually connected to the external device. In this case, the control module 53 in the data processing apparatus may include:
and the external equipment state detection unit is used for detecting the external equipment access state of the electronic equipment, and the external equipment access state is the state of not accessing the external equipment or the state of accessing the external equipment.
And the virtual reality mode entering unit is used for entering a virtual reality mode when the access state of the external equipment is the state of accessing the external equipment.
The above "when the external device access state is the state of having accessed the external device, entering the virtual reality mode" has two situations:
first, it is only detected whether the current multimedia interface 13 is plugged into an external device, and as for the specific type of the external device, it is not a VR device, and it is not concerned that the user is plugged into the multimedia interface 13 in most cases because the user has turned on the physical switch.
In the first case, the accessed external device state refers to the state of accessing any external device, and the unaccessed external device state refers to the state of not accessing any external device.
Secondly, after detecting that the multimedia interface 13 is inserted into the external device, the operation controller 11 in the electronic device further needs to determine the type of the external device, and when the type of the external device is a VR device, the electronic device is controlled to enter the virtual reality mode.
In a second case, the accessed external device state refers to an accessed VR device state, and the unaccessed external device state refers to an unaccessed VR device state.
The data processing apparatus provided in the embodiment of the present application may further determine a current operating mode of the electronic device, and the data processing apparatus may further include:
and the mechanical state determining module is used for determining the mechanical states of a keyboard and a display screen of the electronic equipment, wherein the mechanical states are that the keyboard and the display screen are in a closed state or the keyboard and the display screen are in an open state.
And the power connection state determining module is used for determining the power connection state of the electronic equipment, wherein the power connection state is a power connection state or a power disconnection state.
And the working mode determining module is used for determining the current working mode of the electronic equipment according to state information, wherein the state information comprises the key state, the mechanical state and the power supply connection state.
The module for determining the working mode comprises:
and the backpack mode determining module is used for determining that the current working mode of the electronic equipment is a backpack mode when the key state is an open state, the access state of the external equipment is a state of being accessed to the external equipment, the mechanical state is a closed state, and the power supply connection state is a state of not being connected with a power supply.
And/or determining a non-power desktop mode module, configured to determine that a current working mode of the electronic device is a non-power desktop mode when the key state is an on state, the external device access state is an access external device state, the mechanical state is an on state, and the power connection state is a non-power connection state.
And/or determining a power desktop mode module, configured to determine that the current working mode of the electronic device is a power desktop mode, when the key state is an on state, the external device access state is an accessed external device state, the mechanical state is an on state, the power connection state is a power connection state, and the external device access state is an accessed external device access state.
It is understood that the operating mode of the electronic device may be different, and the operating state of the electronic device may be different.
The data processing apparatus further includes:
and the first power saving control mode module is used for controlling the electronic equipment to be in a first power saving mode when the working mode is the backpack mode.
And/or the fan speed control module is used for controlling the fan speed of the electronic equipment to be a preset speed when the working mode is the backpack mode.
And/or the second power saving control mode module is used for controlling the electronic equipment to be in a second power saving mode when the working mode is a non-power desktop mode.
In order to make a person skilled in the art understand the data processing method, apparatus, or electronic device provided in the embodiments of the present application more clearly, the internal structure of the electronic device is described in detail below, and as shown in fig. 6, a detailed internal structure diagram of the electronic device provided in the embodiments of the present application is provided.
The electronic device includes: the device comprises an operation controller 11, a physical switch 12, a multimedia interface 13, an embedded controller 14, a hardware platform 15 and a sleep switch 16, wherein a pin VR _ Lacth of the physical switch 12, a pin HDMI _ HPD of the multimedia interface 13, a pin AC _ Present of the embedded controller 14 and a pin LID _30_ N of the sleep switch 16 are respectively connected with the operation controller 11. The operation controller 11 is connected to the hardware platform 15 via a bus (I2C bus).
The operation controller 11 may detect the level of the pin VR _ Lacth of the physical switch 12, the pin HDMI _ HPD of the multimedia interface 13, the pin AC _ Present of the embedded controller 14, and the pin LID _30_ N of the sleep switch 16, and may determine the current operating mode of the electronic device according to the level of the pin VR _ Lacth of the physical switch 12, the pin HDMI _ HPD of the multimedia interface 13, the pin AC _ Present of the embedded controller 14, and the pin LID _30_ N of the sleep switch 16. The hardware platform 15 can further control the electronic device to enter a first power saving mode, a second power saving mode or a normal mode.
It should be noted that, in the present specification, the embodiments are all described in a progressive manner, each embodiment focuses on differences from other embodiments, and the same and similar parts among the embodiments may be referred to each other.
The previous description of the disclosed embodiments is provided to enable any person skilled in the art to make or use the present invention. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the generic principles defined herein may be applied to other embodiments without departing from the spirit or scope of the invention. Thus, the present invention is not intended to be limited to the embodiments shown herein but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.

Claims (8)

1. A data processing method is characterized in that the method is applied to electronic equipment, a physical switch is arranged on a shell of the electronic equipment, and the physical switch is used for indicating whether a current user needs to be connected with virtual reality equipment or not; the data processing method comprises the following steps:
detecting the key state of the physical switch, wherein the key state comprises an opening state and a closing state;
when the key state is the opening state, awakening the electronic equipment;
controlling the electronic equipment to enter a virtual reality mode;
further comprising:
determining mechanical states of a keyboard and a display screen of the electronic equipment, wherein the mechanical states are that the keyboard and the display screen are in a closed state or the keyboard and the display screen are in an open state;
determining a power connection state of the electronic equipment, wherein the power connection state is a power connection state or a power disconnection state;
and determining the current working mode of the electronic equipment according to state information, wherein the state information comprises the key state, the mechanical state and the power supply connection state.
2. The data processing method of claim 1, wherein waking the electronic device when the key state is an on state comprises:
when the electronic equipment is detected to be in a dormant state currently, a wake-up instruction is generated;
or when the electronic equipment is detected to be in a power-off state currently, a wake-up instruction is generated, wherein the wake-up instruction comprises a power-on instruction and a command for forbidding response to enter a sleep state.
3. The data processing method of claim 1, wherein the controlling the electronic device to enter a virtual reality mode comprises:
detecting an access state of an external device of the electronic device, wherein the access state of the external device is a state of not accessing the external device or a state of accessing the external device;
and when the access state of the external equipment is the state of accessing the external equipment, entering a virtual reality mode.
4. The data processing method of claim 1, wherein the state information further comprises: the external equipment access state comprises an unaccessed external equipment state and an accessed external equipment state; the determining the current working mode of the electronic equipment according to the state information comprises:
when the key state is an open state, the access state of the external equipment is an accessed external equipment state, the mechanical state is a closed state, the power supply connection state is a non-power supply connection state, and the current working mode of the electronic equipment is determined to be a backpack mode;
and/or when the key state is an on state, the access state of the external equipment is an accessed external equipment state, the mechanical state is an on state, the power supply connection state is a non-power supply connection state, and the current working mode of the electronic equipment is determined to be a non-power supply desktop mode;
and/or when the key state is the starting state, the access state of the external equipment is the state of accessing the external equipment, the mechanical state is the starting state, the power supply connection state is the state of connecting with a power supply, and the current working mode of the electronic equipment is determined to be the power supply desktop mode.
5. The data processing method of claim 4, further comprising:
when the working mode is the backpack mode, controlling the electronic equipment to be in a first power saving mode;
and/or when the working mode is the backpack mode, controlling the fan speed of the electronic equipment to be a preset speed;
and/or when the working mode is a non-power desktop mode, controlling the electronic equipment to be in a second power saving mode.
6. An electronic device, comprising:
the physical switch is arranged on the shell of the electronic equipment and used for indicating whether a current user needs to be connected with the virtual reality equipment or not;
the operation controller is connected with the physical switch and used for detecting the key state of the physical switch and awakening the electronic equipment when the key state is in an open state; controlling the electronic equipment to enter a virtual reality mode, wherein the key states comprise an opening state and a closing state;
further comprising:
the sleep switch is used for detecting the mechanical states of a keyboard and a display screen of the electronic equipment and uploading the mechanical states to the operation controller, wherein the mechanical states comprise that the keyboard and the display screen are in a closed state or the keyboard and the display screen are in an open state;
the embedded controller is used for detecting the power connection state of the electronic equipment and uploading the power connection state to the operation controller, and the power connection state comprises: a state of connection with a power supply or a state of disconnection from the power supply;
the operation controller is further configured to: determining a mechanical state uploaded by the sleep switch; determining a power supply connection state uploaded by the embedded controller; determining a current working mode of the electronic equipment according to state information, wherein the state information comprises: a key state, the mechanical state, and the power connection state.
7. The electronic device of claim 6, further comprising:
the multimedia interface is used for detecting whether an external device is accessed or not and sending an access state of the external device to the operation controller, wherein the access state of the external device comprises a state of not accessing the external device or a state of accessing the external device;
when controlling the electronic device to enter the virtual reality mode, the operation controller is specifically configured to:
detecting the access state of the external equipment of the multimedia interface;
and when the access state of the external equipment is the state of accessing the external equipment, entering a virtual reality mode.
8. The electronic device according to claim 6, wherein when the operation controller wakes up the electronic device when the key state is the on state, the operation controller is specifically configured to:
when the electronic equipment is detected to be in a dormant state currently, a wake-up instruction is generated;
or when the electronic equipment is detected to be in a power-off state currently, a wake-up instruction is generated, wherein the wake-up instruction comprises a power-on instruction and a command for forbidding response to enter a sleep state.
CN201710096128.6A 2017-02-22 2017-02-22 Data processing method and electronic equipment Active CN106886414B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710096128.6A CN106886414B (en) 2017-02-22 2017-02-22 Data processing method and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710096128.6A CN106886414B (en) 2017-02-22 2017-02-22 Data processing method and electronic equipment

Publications (2)

Publication Number Publication Date
CN106886414A CN106886414A (en) 2017-06-23
CN106886414B true CN106886414B (en) 2019-12-24

Family

ID=59179129

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710096128.6A Active CN106886414B (en) 2017-02-22 2017-02-22 Data processing method and electronic equipment

Country Status (1)

Country Link
CN (1) CN106886414B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111949074A (en) * 2020-08-07 2020-11-17 联想(北京)有限公司 Key device for electronic equipment and electronic equipment

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105282327A (en) * 2015-09-16 2016-01-27 联想(北京)有限公司 Control method, electronic device and external device
CN105652442A (en) * 2015-12-31 2016-06-08 北京小鸟看看科技有限公司 Head-mounted display equipment and interaction method for head-mounted display equipment and intelligent terminal
CN106095653A (en) * 2016-07-07 2016-11-09 乐视控股(北京)有限公司 The man-machine interaction method of virtual reality terminal and device and terminal thereof
CN106297474A (en) * 2016-11-04 2017-01-04 天津市半边天科技股份有限公司 A kind of virtual reality musical training system

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105282327A (en) * 2015-09-16 2016-01-27 联想(北京)有限公司 Control method, electronic device and external device
CN105652442A (en) * 2015-12-31 2016-06-08 北京小鸟看看科技有限公司 Head-mounted display equipment and interaction method for head-mounted display equipment and intelligent terminal
CN106095653A (en) * 2016-07-07 2016-11-09 乐视控股(北京)有限公司 The man-machine interaction method of virtual reality terminal and device and terminal thereof
CN106297474A (en) * 2016-11-04 2017-01-04 天津市半边天科技股份有限公司 A kind of virtual reality musical training system

Also Published As

Publication number Publication date
CN106886414A (en) 2017-06-23

Similar Documents

Publication Publication Date Title
KR101456723B1 (en) Device having multiple graphics subsystems and reduced power consumption mode, software and methods
TWI464571B (en) A power saving electronic device for a computer motherboard in a standby dormant state and a computer motherboard
US20170344096A1 (en) Methods and apparatuses to wake computer systems from sleep states
JP3974510B2 (en) Computer apparatus, power management method, and program
EP2267575A2 (en) Electronic device for reducing power consumption of computer motherboard and motherboard thereof
CN103491326B (en) All-in-one computer television and control method of all-in-one computer television
JP2007249660A (en) Information processor and method of controlling system state
JP2011234573A (en) Information processor and method for controlling the same
CN104424449A (en) Electronic apparatus and port control method
JP3512640B2 (en) Pen input information processing device, control circuit for pen input information processing device, and control method for pen input information processing device
US8769326B2 (en) Computer system and operation method for changing operation state by capacitive button group
TWI528154B (en) Clamshell electronic device, switching module and switching method
CN107066073B (en) Control method and electronic equipment
CN107104478B (en) Information processing method and electronic equipment
US20120278542A1 (en) Computer system and sleep control method thereof
JP2000122756A (en) Electronic equipment
CN106886414B (en) Data processing method and electronic equipment
US8650425B2 (en) Computer system for processing data in non-operational state and processing method thereof
JP2011118462A (en) Information processing apparatus
EP2757441B1 (en) electronic apparatus
US20210232529A1 (en) Information processing apparatus and control method
US20150123875A1 (en) Power management device and method
US11163354B2 (en) Information processing apparatus, and control method
CN201607688U (en) Computer power-saving equipment and computer power-saving system
CN103970253A (en) Power-saving operation method and electronic device

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