CN107479803B - Control method and electronic equipment - Google Patents
Control method and electronic equipment Download PDFInfo
- Publication number
- CN107479803B CN107479803B CN201710674852.2A CN201710674852A CN107479803B CN 107479803 B CN107479803 B CN 107479803B CN 201710674852 A CN201710674852 A CN 201710674852A CN 107479803 B CN107479803 B CN 107479803B
- Authority
- CN
- China
- Prior art keywords
- key
- pressed
- scheme
- detecting whether
- time
- 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
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/01—Input arrangements or combined input and output arrangements for interaction between user and computer
- G06F3/048—Interaction techniques based on graphical user interfaces [GUI]
- G06F3/0484—Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
- G06F3/04847—Interaction techniques to control parameter settings, e.g. interaction with sliders or dials
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/01—Input arrangements or combined input and output arrangements for interaction between user and computer
- G06F3/048—Interaction techniques based on graphical user interfaces [GUI]
- G06F3/0487—Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser
- G06F3/0489—Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using dedicated keyboard keys or combinations thereof
Landscapes
- Engineering & Computer Science (AREA)
- General Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Human Computer Interaction (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Power Sources (AREA)
- Input From Keyboards Or The Like (AREA)
Abstract
The invention provides a control method and electronic equipment, wherein the control method is applied to the electronic equipment, the electronic equipment comprises a first key and a second key, the first key is a power key, and the control method comprises the following steps: detecting whether the first key is pressed; and detecting whether the second key is pressed while the first key is pressed, if so, starting a first scheme, wherein the first scheme is that the computer is started when the first key and the second key are pressed simultaneously. The control method can control the startup of the electronic equipment so as to prevent abnormal startup caused by misoperation of a user.
Description
Technical Field
The invention relates to a control method and electronic equipment.
Background
At present, portable electronic devices are diversified, and become an important part of users in leisure, entertainment or office. Such as a tablet computer, a mobile phone or a small all-in-one machine, the product is usually provided with a plurality of shortcut keys at the edge of the machine body, such as a volume key, a power key, a lock key, a Home key, etc., so as to increase the convenience of the user. However, since the keys are all disposed outside the device body, the user may touch the keys carelessly, and if the user presses the power key carelessly, the device is suddenly turned on, which may affect the user's use. In the prior art, in order to avoid the above phenomenon, a delayed startup is set, that is, a user needs to press a power key for a long time to start the computer. However, this kind of solution has certain limitations, for example, when a user puts the electronic device into a bag, the above-mentioned keys often abut against other impurities in the bag, so the electronic device still starts up suddenly, the electric energy of the electronic device is consumed, and inconvenience is brought to the subsequent use of the user.
Disclosure of Invention
The present invention provides a control method for controlling power-on of an electronic device to prevent abnormal power-on caused by user misoperation, and an electronic device using the control method.
In order to solve the above problem, an embodiment of the present invention provides a control method, which is applied to an electronic device, where the electronic device includes a first key and a second key, the first key is a power key, and the control method includes the following steps:
detecting whether the first key is pressed;
and detecting whether the second key is pressed while the first key is pressed, if so, starting a first scheme, wherein the first scheme is that the computer is started when the first key and the second key are pressed simultaneously.
Preferably, if it is detected that the second key is not pressed while the first key is pressed, a second scheme is started, wherein the second scheme is that the starting is controlled through the first key.
Preferably, the detecting whether the second key is pressed while the first key is pressed is specifically:
detecting whether the first key is pressed within a first time;
detecting whether the second key is pressed within a second time;
acquiring a difference value between the first time and the second time, judging whether the difference value exceeds a preset time threshold value, and if the difference value exceeds the time threshold value, judging that the first key and the second key are not pressed simultaneously; and if the time threshold is not exceeded, judging that the first key and the second key are pressed simultaneously.
Preferably, before detecting whether the first key is pressed, the method further comprises:
and detecting whether the electronic equipment is connected with external equipment, and if so, directly starting the second scheme.
Preferably, the second key is a volume key.
An embodiment of the present invention also provides an electronic device, which includes a first key, a second key, and a controller configured to:
detecting whether the first key is pressed;
and detecting whether the second key is pressed while the first key is pressed, if so, starting a first power-on scheme or a first power-off scheme, wherein the first scheme is that the power is turned on when the first key and the second key are pressed simultaneously.
Preferably, the controller is further configured to:
and if the second key is not pressed while the first key is detected, starting a second scheme, wherein the second scheme is to control the starting through the first key.
Preferably, the detecting, by the controller, whether the first key is pressed specifically includes:
detecting whether the second key is pressed while the first key is pressed specifically is:
detecting whether the first key is pressed within a first time;
detecting whether the second key is pressed within a second time;
acquiring a difference value between the first time and the second time, judging whether the difference value exceeds a preset time threshold value, and if the difference value exceeds the time threshold value, judging that the first key and the second key are not pressed simultaneously; and if the time threshold is not exceeded, judging that the first key and the second key are pressed simultaneously.
Preferably, before detecting whether the first key is pressed, the controller further includes:
and detecting whether an external device is connected, and if so, directly starting the second scheme.
Preferably, the second key is a volume key.
The control method and the electronic equipment in the embodiment of the invention have the advantages that the starting method can be adjusted according to the needs of the user, so that the electronic equipment can be prevented from being abnormally started due to misoperation of the user when the user does not use the electronic equipment.
Drawings
Fig. 1 is a flowchart illustrating a control method according to an embodiment of the present invention.
Fig. 2 is a flowchart illustrating a control method according to another embodiment of the invention.
Fig. 3 is a schematic structural diagram of an electronic device in an embodiment of the invention.
Detailed Description
Embodiments of the present invention are described in detail below with reference to the accompanying drawings.
As shown in fig. 1, an embodiment of the present invention provides a control method, which is applied to an electronic device, where the electronic device includes a first key and a second key, where the first key is a power key. Specifically, the control method comprises the following steps:
the method comprises the following steps: detecting whether the first key is pressed;
step two: and detecting whether the second key is pressed while the first key is pressed, if so, starting a first scheme, wherein the first scheme is that the starting is carried out when the first key and the second key are pressed simultaneously. By adopting the method for starting the starting scheme by the combined key, a user can select another starting scheme different from the conventional starting scheme according to actual needs, such as temporary time when the user does not use the electronic equipment and wants to save the electric quantity of the electronic equipment, so that the phenomenon that the user abnormally starts the electronic equipment due to misoperation is effectively avoided, and the user experience is improved. In a similar way, the user can also apply the method of the present application to a method for closing an electronic device to prevent an abnormal shutdown phenomenon caused by a user misoperation.
Further, as shown in fig. 2, if the system detects that the second key is not pressed while the first key is pressed, a second scheme is started, where the second scheme is to control the electronic device to start up through the first key. That is, the conventional scheme of power-on through a power key.
Further, detecting whether the first key is pressed and detecting whether the second key is pressed while the first key is pressed specifically includes:
detecting whether a first key is pressed within a first time;
detecting whether the second key is pressed within a second time;
acquiring a difference value between the first time and the second time, judging whether the difference value exceeds a preset time threshold value, and if the difference value exceeds the time threshold value, judging that the first key and the second key are not pressed simultaneously, so that a second scheme is started; if the time threshold is not exceeded, the first key and the second key are judged to be pressed simultaneously, and therefore the first scheme is started.
Taking the electronic device as a tablet personal computer (or all-in-one machine), taking the second key as a volume + key (or other keys, such as a volume-key, a home key, and the like, or a specific key set independently) as an example to specifically describe, when the electronic device is used, when a user presses the power key and the volume + key to shut down, the system detects time points at which the power key and the volume + key are pressed, namely a first time and a second time, then performs subtraction on the first time and the second time to obtain a difference value, judges whether the difference value is within a preset time threshold range, if so, the system knows that the user wants to start the first scheme, starts the first scheme at this moment, and then shuts down the electronic device. Therefore, when a user wants to turn on the electronic device, the user needs to press the power key and the volume + key simultaneously to complete the power-on operation. On the contrary, if the difference is not within the preset time threshold range, the system judges that the user belongs to the misoperation behavior, so the original on-off scheme of the electronic equipment is still maintained, namely the second scheme, and the user can directly operate the power key to control the on-off of the electronic equipment.
Further, before detecting whether the first key is pressed, the method further comprises:
whether the electronic equipment is connected with external equipment during operation is detected, and if yes, the second scheme is directly started.
The external device in this embodiment is a keyboard, but may also be other electronic devices, such as a sound box, a bluetooth headset, and the like. Specifically, when the user accesses the keyboard to the electronic device when the electronic device is running, the system detects that there is an external device, and at this time, the system immediately starts the second scheme, that is, the user can control the electronic device to be turned on or turned off only by the power key. When the system detects that the electronic device has no external device, if the user detaches the keyboard, the system can keep continuously starting the second scheme, and also can release the starting of the second scheme, but the system can start the first scheme according to the subsequent shutdown operation executed by the user, if the user adopts a mode of pressing a combination key to perform shutdown. If the user is powered off by pressing the power key, the system will start the second scheme.
As shown in fig. 3, an embodiment of the present invention also provides an electronic device, which includes a first key and a second key, wherein the first key is a power key, and the second key is not limited to a volume + key, a volume-key, a home key, or an independently configured specific key. The electronic device also includes a controller, the controller being an embedded controller configured to:
detecting whether the first key is pressed;
and detecting whether the second key is pressed while the first key is pressed, if so, starting a first scheme, wherein the first scheme is that the starting is carried out when the first key and the second key are pressed simultaneously.
Further, the embedded controller is further configured to:
and if the second key is not pressed while the first key is pressed, starting a second scheme, wherein the second scheme is to control the starting through the first key. I.e. the scheme of conventionally selecting the power-on controlled by the power key in the electronic equipment.
Further, the specific detection steps of the embedded controller when detecting whether the first key is pressed down are as follows:
detecting whether the second key is pressed while the first key is pressed specifically is:
detecting whether a first key is pressed within a first time;
detecting whether the second key is pressed within a second time;
acquiring a difference value between the first time and the second time, judging whether the difference value exceeds a preset time threshold value, if so, judging that the first key and the second key are pressed non-simultaneously, and starting a second scheme; and if the time threshold is not exceeded, judging that the first key and the second key are pressed simultaneously, and starting the first scheme.
Further, before detecting whether the first key is pressed, the embedded controller further comprises:
whether the electronic equipment is connected with external equipment during operation is detected, if so, a keyboard, a Bluetooth headset, a sound box and the like are externally connected, and if so, the second scheme is directly started. That is, the user can directly control the on and off of the electronic device through the power key. When the system detects that the electronic device has no external device, if the user detaches the keyboard, the system can keep continuously starting the second scheme, and also can release the starting of the second scheme, but the system is determined according to the subsequent shutdown operation executed by the user, if the user adopts the mode of pressing the combination key to perform shutdown, the system can start the first scheme. If the user is powered off by pressing the power key, the system will start the second scheme.
The above embodiments are only exemplary embodiments of the present invention, and are not intended to limit the present invention, and the scope of the present invention is defined by the claims. Various modifications and equivalents may be made by those skilled in the art within the spirit and scope of the present invention, and such modifications and equivalents should also be considered as falling within the scope of the present invention.
Claims (8)
1. A control method is applied to electronic equipment, the electronic equipment comprises a first key and a second key, the first key is a power key, and the control method is characterized by comprising the following steps:
detecting whether the first key is pressed;
detecting whether the second key is pressed while the first key is pressed, if so, starting a first scheme, wherein the first scheme is that the computer is started when the first key and the second key are pressed simultaneously;
before detecting whether the first key is pressed, the method further comprises the following steps:
and detecting whether the electronic equipment is connected with external equipment, if so, directly starting the second scheme, wherein the second scheme is to control the starting-up through the first key.
2. The control method of claim 1, wherein if it is detected that the second key is not pressed while the first key is being pressed, a second scheme is initiated.
3. The control method according to claim 1, wherein detecting whether the second key is pressed while the first key is pressed is specifically:
detecting whether the first key is pressed within a first time;
detecting whether the second key is pressed within a second time;
acquiring a difference value between the first time and the second time, judging whether the difference value exceeds a preset time threshold value, and if the difference value exceeds the time threshold value, judging that the first key and the second key are not pressed simultaneously; and if the time threshold is not exceeded, judging that the first key and the second key are pressed simultaneously.
4. The control method according to any one of claims 1 to 3, wherein the second key is a volume key.
5. An electronic device comprising a first key and a second key, further comprising a controller configured to:
detecting whether the first key is pressed;
detecting whether the second key is pressed while the first key is pressed, if so, starting a first power-on scheme or a first power-off scheme, wherein the first scheme is that the power is started when the first key and the second key are pressed simultaneously;
the controller further comprises, before detecting whether the first key is pressed:
whether an external device is connected is detected, if so, the second scheme is directly started, and the second scheme is to control the starting-up through the first key.
6. The electronic device of claim 5, wherein the controller is further configured to:
and if the second key is not pressed at the same time of the first key, starting a second scheme.
7. The electronic device of claim 5, wherein the controller, upon detecting that the first key is pressed, is specifically to:
detecting whether the second key is pressed while the first key is pressed specifically is:
detecting whether the first key is pressed within a first time;
detecting whether the second key is pressed within a second time;
acquiring a difference value between the first time and the second time, judging whether the difference value exceeds a preset time threshold value, and if the difference value exceeds the time threshold value, judging that the first key and the second key are not pressed simultaneously; and if the time threshold is not exceeded, judging that the first key and the second key are pressed simultaneously.
8. The electronic device of any of claims 5-7, wherein the second key is a volume key.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710674852.2A CN107479803B (en) | 2017-08-09 | 2017-08-09 | Control method and electronic equipment |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710674852.2A CN107479803B (en) | 2017-08-09 | 2017-08-09 | Control method and electronic equipment |
Publications (2)
Publication Number | Publication Date |
---|---|
CN107479803A CN107479803A (en) | 2017-12-15 |
CN107479803B true CN107479803B (en) | 2020-11-10 |
Family
ID=60599846
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201710674852.2A Active CN107479803B (en) | 2017-08-09 | 2017-08-09 | Control method and electronic equipment |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN107479803B (en) |
Families Citing this family (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108182086B (en) * | 2017-12-27 | 2021-12-14 | 上海传英信息技术有限公司 | Electronic equipment starting method and electronic equipment |
CN108989545A (en) * | 2018-06-12 | 2018-12-11 | Oppo(重庆)智能科技有限公司 | Control method, device, mobile terminal and the computer-readable medium of mobile terminal |
CN109085919B (en) * | 2018-07-16 | 2020-03-03 | 百度在线网络技术(北京)有限公司 | Method and device for controlling intelligent hardware |
CN110928451B (en) * | 2019-12-10 | 2023-08-25 | 江苏铁锚玻璃股份有限公司 | Transparent OLED screen on-off control and error touch prevention method based on capacitive touch keys |
Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102902478A (en) * | 2012-09-10 | 2013-01-30 | 北京小米科技有限责任公司 | Method, device and equipment for preventing false triggering |
CN103049074A (en) * | 2012-12-17 | 2013-04-17 | 广东欧珀移动通信有限公司 | Method and system for controlling mobile terminal to run single application program |
CN105141777A (en) * | 2015-09-16 | 2015-12-09 | 广东欧珀移动通信有限公司 | Method and apparatus for carrying out sound recording based on volume keys under standby mode |
CN105468181A (en) * | 2014-09-01 | 2016-04-06 | 深圳富泰宏精密工业有限公司 | System and method for blind operation of electronic apparatus |
CN105807627A (en) * | 2016-05-30 | 2016-07-27 | 广东美的制冷设备有限公司 | Control method and device of household appliance and mobile terminal |
CN105893875A (en) * | 2016-06-15 | 2016-08-24 | 重庆蓝岸通讯技术有限公司 | Method and device for preventing external misoperation on intelligent electronic equipment |
CN106534512A (en) * | 2016-11-02 | 2017-03-22 | 惠州Tcl移动通信有限公司 | Mobile terminal forced restart mode switching method and system |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103399704A (en) * | 2013-07-12 | 2013-11-20 | 华为终端有限公司 | Terminal equipment and locking and unlocking method thereof |
-
2017
- 2017-08-09 CN CN201710674852.2A patent/CN107479803B/en active Active
Patent Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102902478A (en) * | 2012-09-10 | 2013-01-30 | 北京小米科技有限责任公司 | Method, device and equipment for preventing false triggering |
CN103049074A (en) * | 2012-12-17 | 2013-04-17 | 广东欧珀移动通信有限公司 | Method and system for controlling mobile terminal to run single application program |
CN105468181A (en) * | 2014-09-01 | 2016-04-06 | 深圳富泰宏精密工业有限公司 | System and method for blind operation of electronic apparatus |
CN105141777A (en) * | 2015-09-16 | 2015-12-09 | 广东欧珀移动通信有限公司 | Method and apparatus for carrying out sound recording based on volume keys under standby mode |
CN105807627A (en) * | 2016-05-30 | 2016-07-27 | 广东美的制冷设备有限公司 | Control method and device of household appliance and mobile terminal |
CN105893875A (en) * | 2016-06-15 | 2016-08-24 | 重庆蓝岸通讯技术有限公司 | Method and device for preventing external misoperation on intelligent electronic equipment |
CN106534512A (en) * | 2016-11-02 | 2017-03-22 | 惠州Tcl移动通信有限公司 | Mobile terminal forced restart mode switching method and system |
Also Published As
Publication number | Publication date |
---|---|
CN107479803A (en) | 2017-12-15 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN107479803B (en) | Control method and electronic equipment | |
KR102262352B1 (en) | Terminal control method, device and terminal | |
US9063731B2 (en) | Ultra low power apparatus and method to wake up a main processor | |
US9189099B2 (en) | Information input unit, information input method, and computer program | |
US20140189397A1 (en) | State control device, state control method and program | |
CN106095022B (en) | Control method and electronic equipment | |
EP2953003A1 (en) | Touch screen terminal and working method thereof | |
JP5245751B2 (en) | Electronic device, temperature rise control method, program, and recording medium | |
US10075161B2 (en) | Method and device for preventing inadvertently touch of electronic device | |
CN100561434C (en) | A kind of Windows process system of hand-hold equipment | |
US20120020265A1 (en) | Computer system with blue-tooth remote power management and control method thereof | |
JP2016115028A (en) | Information processor and information processor control method | |
CN104571509A (en) | Mobile terminal and awakening method thereof | |
US9122470B2 (en) | Electronic device with power control function | |
JP2018502486A (en) | Terminal control apparatus and terminal control method using the same | |
CN106791065B (en) | Mobile device and method for controlling flashlight switch through fingerprint touch | |
CN110825307A (en) | Terminal and working method thereof | |
CN111538391A (en) | Temperature control method and device, storage medium and terminal | |
CN103841256A (en) | Function control method and electronic equipment | |
US20080100144A1 (en) | Automatic Power-Off Method for an Electronic Device | |
CN110989817A (en) | Electronic equipment and electronic equipment starting management method | |
US20060132060A1 (en) | Power saving method and apparatus for electronic device | |
CN113423035A (en) | Storage box-based Bluetooth headset control method and storage box | |
CN107154994A (en) | The emergent conversion method and its system of a kind of device keys and screen | |
JP2007221228A (en) | Mobile terminal |
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 |