CN108279936B - Shutdown method and device for all-in-one machine in operating system connection state - Google Patents

Shutdown method and device for all-in-one machine in operating system connection state Download PDF

Info

Publication number
CN108279936B
CN108279936B CN201710011153.XA CN201710011153A CN108279936B CN 108279936 B CN108279936 B CN 108279936B CN 201710011153 A CN201710011153 A CN 201710011153A CN 108279936 B CN108279936 B CN 108279936B
Authority
CN
China
Prior art keywords
operating system
shutdown
power
receiving
manual
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
CN201710011153.XA
Other languages
Chinese (zh)
Other versions
CN108279936A (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.)
Shenzhen Honghe Innovation Information Technology Co Ltd
Original Assignee
Shenzhen Honghe Innovation Information Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shenzhen Honghe Innovation Information Technology Co Ltd filed Critical Shenzhen Honghe Innovation Information Technology Co Ltd
Priority to CN201710011153.XA priority Critical patent/CN108279936B/en
Publication of CN108279936A publication Critical patent/CN108279936A/en
Application granted granted Critical
Publication of CN108279936B publication Critical patent/CN108279936B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/4401Bootstrapping
    • G06F9/442Shutdown

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Security & Cryptography (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Debugging And Monitoring (AREA)
  • Power Sources (AREA)

Abstract

The invention discloses a shutdown method and a shutdown device of an all-in-one machine in an operating system connection state, wherein the shutdown method comprises the following steps: receiving a power key shutdown signal; detecting whether an operating system can be automatically shut down; if the operating system can not be automatically shut down, sending out a prompt message of incapability of shutting down; receiving and confirming a manual shutdown instruction and switching to an operating system signal source; receiving a manual shutdown instruction and closing an operating system; and receiving the power key power-off signal again to complete power-off and power-off. The method and the device for shutdown of the all-in-one machine in the operating system connection state can avoid shutdown abnormity of the all-in-one machine.

Description

Shutdown method and device for all-in-one machine in operating system connection state
Technical Field
The invention relates to the technical field of data processing, in particular to a shutdown method and a shutdown device for an all-in-one machine in an operating system connection state.
Background
For devices with built-in dual systems (such as mainframe computers, all-in-one machines, etc.), the shutdown process is different from that of devices with single systems.
The current shutdown logic for dual system devices is: when a user shuts down the android system by pressing a power key, the STM32 sends a shutdown instruction to an operating system (OPS) first, and after the shutdown of the operating system (OPS) is detected, the android system is shut down and the power is cut off; however, when software prevents the system from being shut down, the operating system (OPS) cannot be automatically and smoothly shut down, and at this time, the STM32 judges that the system is overtime and forcibly shuts down the power supply, so that the operating system (OPS) is abnormal; the operating system (OPS) will be prompted by a security mode, illegal operation, etc. when rebooting.
Disclosure of Invention
In view of this, the present invention provides a method and an apparatus for powering off an all-in-one machine in an operating system connection state, which can avoid abnormal power off of the all-in-one machine.
Based on the above object, the method for shutting down an all-in-one machine in an operating system connection state provided by the present invention comprises:
receiving a power key shutdown signal;
detecting whether an operating system can be automatically shut down;
if the operating system can not be automatically shut down, sending out a prompt message of incapability of shutting down;
receiving and confirming a manual shutdown instruction and switching to an operating system signal source;
receiving a manual shutdown instruction and closing an operating system;
and receiving the power key power-off signal again to complete power-off and power-off.
In some optional embodiments, the notification information of the incapability of shutting down includes status information of the incapability of shutting down at present and notification information of whether to perform manual shutdown.
In some optional embodiments, the method further comprises:
if the operating system can not be automatically shut down, a first warning prompt tone is sent out.
In some optional embodiments, the step of sending the shutdown incapability prompt message further includes:
starting timing;
and if the timing reaches the preset time threshold value and the manual shutdown confirmation instruction is not received, returning to the state before the power key shutdown signal is received, and sending a second warning prompt tone.
In some optional embodiments, the starting of the timing further includes:
and displaying countdown prompt information.
In another aspect of the present invention, there is provided an integrated machine shutdown device in an operating system connection state, comprising:
the receiving module is used for receiving a power key shutdown signal, and confirming a manual shutdown instruction and a manual shutdown instruction;
the sending module is used for sending out prompt information of incapability of shutting down if the operating system cannot automatically shut down;
and the processing module is used for detecting whether the operating system can be automatically powered off, switching to an operating system signal source after receiving a command for confirming manual power off, turning off the operating system after receiving the manual power off command, and completing power off after receiving a power key power off signal again.
In some optional embodiments, the notification information of the incapability of shutting down includes status information of the incapability of shutting down at present and notification information of whether to perform manual shutdown.
In some optional embodiments, the sending module is further configured to:
if the operating system can not be automatically shut down, a first warning prompt tone is sent out.
In some optional embodiments, the processing module is further configured to:
starting timing;
if the timing reaches a preset time threshold value and the manual power-off confirmation instruction is not received, returning to the state before the power key power-off signal is received;
the sending module is also used for sending out a second warning prompt tone.
In some optional embodiments, the processing module is further configured to display a countdown prompt.
As can be seen from the above, the method and the device for shutting down the all-in-one machine in the operating system connection state provided by the embodiment of the present invention can avoid situations such as a security mode and an illegal operation occurring in the forced shutdown of the operating system (OPS), and avoid the operating system (OPS) from being damaged; meanwhile, the data loss caused by forced shutdown of the data on the operating system (OPS) can be avoided. After the method and the device for shutdown of the all-in-one machine in the operating system connection state provided by the embodiment of the invention are used, when the user forgets to return to the operating system (OPS) to store the current work and directly shuts down the all-in-one machine in the Android system (Android), the operating system (OPS) cannot be shut down, after the preset time threshold is exceeded, the system pops up an operating system (OPS) shutdown timeout dialog box, and the dialog box prompts the user to manually shut down the operating system (OPS), so that files in the system are protected, and the abnormal shutdown condition is avoided.
Drawings
Fig. 1 is a schematic flowchart of an embodiment of a shutdown method of an all-in-one machine in an operating system connection state according to the present invention;
FIG. 2 is a block diagram of an integrated smart machine device in an operating system connection state according to an embodiment of the present invention;
fig. 3 is a schematic interface diagram illustrating an all-in-one machine shutdown method and apparatus in an operating system connection state according to an embodiment of the present invention, where prompt information indicating that shutdown cannot be performed is displayed.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, the present invention is described in further detail below with reference to specific embodiments and the accompanying drawings.
It should be noted that all expressions using "first" and "second" in the embodiments of the present invention are used for distinguishing two entities with the same name but different names or different parameters, and it should be noted that "first" and "second" are merely for convenience of description and should not be construed as limitations of the embodiments of the present invention, and they are not described in any more detail in the following embodiments.
In view of the foregoing, a first aspect of the embodiments of the present invention provides an all-in-one machine shutdown method under an operating system connection state, which can avoid shutdown abnormality of the all-in-one machine. Fig. 1 is a schematic flow chart of an embodiment of a shutdown method of an all-in-one machine in an operating system connection state according to the present invention.
The all-in-one machine shutdown method in the operating system connection state is optionally applied to an intelligent all-in-one machine, and comprises the following steps:
step 101: receiving a power key shutdown signal; optionally, the power key shutdown signal may be a physical shutdown signal triggered by a user pressing a physical power key, where the shutdown signal is usually different from a shutdown operation in a conventional case that the user operates an external device of the device (such as a mouse, a keyboard, or directly clicking on a touch screen);
step 102: detecting whether an operating system can be automatically shut down; here, there are many factors for whether the operating system can be automatically shut down, as described above, the file may not be saved, or other software may be in an open state, and the like, and there is no need to define a specific situation that hinders automatic shutdown, and a person skilled in the art can know the type of such a situation according to knowledge in the art, and details are not described here;
step 103: if the operating system can be automatically shut down, the android system is continuously shut down and the power is cut off after the operating system is shut down;
step 104: if the operating system can not be automatically shut down, sending out a prompt message of incapability of shutting down; optionally, the shutdown incapability prompt information includes current shutdown incapability state information and prompt information of whether to perform manual shutdown, as shown in fig. 3, which is an interface schematic diagram for displaying the shutdown incapability prompt information in the embodiment of the shutdown method of the all-in-one machine in the operating system connection state provided by the present invention, where the current shutdown incapability state information may be: english: "OPS cannot brush down automation. plenum brush down OPS manual." chinese: "the OPS cannot be automatically shut down, please manually shut down the OPS," the prompt information of whether to perform manual shutdown may be: english: "confirmed", Chinese: "confirm", and, english: "no", Chinese: "not"; in addition, the shutdown incapability prompt message can also display the detected shutdown incapability of automatic shutdown, such as that the file is not closed yet, the software is not closed yet, and the like;
step 105: receiving a confirmation manual power-off instruction (for example, a user clicks a 'confirmation' button in the previous step) and switching to an operating system signal source;
step 106: receiving a manual shutdown instruction and closing an operating system; here, the user may also perform operations such as saving the file that is not saved, manually closing the software that is still in the open state, and the like;
step 107: receiving the power key power-off signal again, and if detecting that an operating system (OPS) is closed, performing power-off operation and completing power-off; alternatively, the power key-off signal received again here may be the same signal as the power key-off signal in step 101.
It can be seen from the foregoing embodiments that the shutdown method of the all-in-one machine in the operating system connection state provided in the embodiments of the present invention can avoid situations such as a security mode and an illegal operation occurring in the forced shutdown operating system (OPS), and avoid the operating system (OPS) from being damaged; meanwhile, the situation that data on an operating system (OPS) is lost due to forced shutdown can be avoided, for example, a user does not save the Word editing document before shutdown, and if the Word document is not saved after the operating system (OPS) is forced shutdown, the Word document is damaged and cannot be opened. After the all-in-one machine shutdown method in the operating system connection state provided by the embodiment of the invention is used, when the user forgets to return to the operating system (OPS) to store the current work and directly shuts down the all-in-one machine under the Android system (Android), the operating system (OPS) cannot be closed, after the preset time threshold is exceeded, the system pops up an operating system (OPS) shutdown overtime dialog box, and the dialog box prompts the user to manually close the operating system (OPS), so that files in the system are protected, and the abnormal shutdown condition is avoided.
In some optional embodiments, the all-in-one machine shutdown method in the operating system connection state may further include the following steps:
if the operating system can not be automatically shut down, a first warning prompt tone is sent out, so that a user is reminded that the operating system is in a state of being incapable of being normally shut down.
In some optional embodiments, after the step 104 of sending the shutdown incapability prompt message, the following steps may be further included:
starting timing;
if the timing reaches the preset time threshold value and the confirmed manual shutdown instruction is not received, returning to the state before receiving the power key shutdown signal, so as to avoid system or file abnormity caused by forced shutdown, and sending a second warning prompt tone to prompt the user that the corresponding processing signal is not received within the specified time, and simultaneously, reminding the user that the current operating system is in the state of incapable of being normally shut down again. Here, the second warning sound may be the same sound signal as the first warning sound or may be a different sound signal, so that the two states can be distinguished by the difference in warning sound, which is advantageous for the user. The preset time threshold can be designed according to actual needs and can be set by a user in a self-defined mode.
In some optional embodiments, the starting of the timing step further includes:
and displaying countdown prompt information so as to remind a user of timely carrying out corresponding treatment within a limited time.
In view of the foregoing, a second aspect of the embodiments of the present invention provides an all-in-one machine device under an operating system connection state, which can avoid an abnormal shutdown of the all-in-one machine. Fig. 2 is a schematic block diagram of an integrated smart machine device in an operating system connection state according to an embodiment of the present invention.
The integrated machine in the operating system connection state is turned off, and optionally, the device mainly comprises an STM32 chip and/or a chip similar to the STM32 chip, or the device mainly comprises an STM32 chip and/or a chip similar to the STM32 chip; the apparatus further comprises:
the receiving module 201 is configured to receive a power key shutdown signal, and confirm a manual shutdown instruction and a manual shutdown instruction;
a sending module 202, configured to send a notification message that the operating system cannot be automatically powered off;
the processing module 203 is configured to detect whether the operating system can be automatically powered off, switch to the operating system signal source after receiving a manual power-off confirmation instruction, turn off the operating system after receiving the manual power-off confirmation instruction, and complete power-off after receiving a power key power-off signal again.
It can be seen from the foregoing embodiments that, the integrated shutdown device in the operating system connection state provided in the embodiments of the present invention can avoid situations such as a security mode and an illegal operation occurring in the forced shutdown operating system (OPS), and avoid the operating system (OPS) from being damaged; meanwhile, the situation that data on an operating system (OPS) is lost due to forced shutdown can be avoided, for example, a user does not save the Word editing document before shutdown, and if the Word document is not saved after the operating system (OPS) is forced shutdown, the Word document is damaged and cannot be opened. After the integrated shutdown device in the operating system connection state provided by the embodiment of the invention is used, when a user forgets to return to the operating system (OPS) to store the current work and directly shuts down the device under the Android system (Android), the operating system (OPS) cannot be shut down, after a preset time threshold is exceeded, the system pops up an operating system (OPS) shutdown timeout dialog box, and the dialog box prompts the user to manually shut down the operating system (OPS), so that files in the system are protected and abnormal shutdown is avoided.
In some optional embodiments, the shutdown incapability prompt message includes current shutdown incapability state information and prompt information of whether to perform manual shutdown, so as to remind a user that the current operating system is in an incapability of normal shutdown state.
In some optional embodiments, the sending module 202 is further configured to:
if the operating system can not be automatically shut down, a first warning prompt tone is sent out, so that a user is reminded that the operating system is in a state of being incapable of being normally shut down.
In some optional embodiments, the processing module 203 is further configured to:
starting timing;
if the timing reaches the preset time threshold value and the confirmed manual shutdown instruction is not received, returning to the state before receiving the power key shutdown signal, thereby avoiding the system or file abnormity caused by forced shutdown;
the sending module 202 is further configured to send a second warning prompt tone to prompt the user that the corresponding processing signal is not received within a specified time, and meanwhile, the user can be reminded that the current operating system is in a state that the operating system cannot be normally shut down again.
Here, the second warning sound may be the same sound signal as the first warning sound or may be a different sound signal, so that the two states can be distinguished by the difference in warning sound, which is advantageous for the user. The preset time threshold can be designed according to actual needs and can be set by a user in a self-defined mode.
In some optional embodiments, the processing module 203 is further configured to display a countdown prompting message, so as to remind the user that the corresponding processing needs to be performed within a limited time in time.
Those of ordinary skill in the art will understand that: the discussion of any embodiment above is meant to be exemplary only, and is not intended to intimate that the scope of the disclosure, including the claims, is limited to these examples; within the idea of the invention, also features in the above embodiments or in different embodiments may be combined, steps may be implemented in any order, and there are many other variations of the different aspects of the invention as described above, which are not provided in detail for the sake of brevity.
In addition, well known power/ground connections to Integrated Circuit (IC) chips and other components may or may not be shown within the provided figures for simplicity of illustration and discussion, and so as not to obscure the invention. Furthermore, devices may be shown in block diagram form in order to avoid obscuring the invention, and also in view of the fact that specifics with respect to implementation of such block diagram devices are highly dependent upon the platform within which the present invention is to be implemented (i.e., specifics should be well within purview of one skilled in the art). Where specific details (e.g., circuits) are set forth in order to describe example embodiments of the invention, it should be apparent to one skilled in the art that the invention can be practiced without, or with variation of, these specific details. Accordingly, the description is to be regarded as illustrative instead of restrictive.
While the present invention has been described in conjunction with specific embodiments thereof, many alternatives, modifications, and variations of these embodiments will be apparent to those of ordinary skill in the art in light of the foregoing description. For example, other memory architectures (e.g., dynamic ram (dram)) may use the discussed embodiments.
The embodiments of the invention are intended to embrace all such alternatives, modifications and variances that fall within the broad scope of the appended claims. Therefore, any omissions, modifications, substitutions, improvements and the like that may be made without departing from the spirit and principles of the invention are intended to be included within the scope of the invention.

Claims (10)

1. A shutdown method of a dual-system all-in-one machine in an operating system connection state is characterized by comprising the following steps:
receiving a power key shutdown signal under an android system;
detecting whether an operating system can be automatically shut down;
if the operating system can not be automatically shut down, sending out a prompt message of incapability of shutting down;
receiving and confirming a manual shutdown instruction and switching to an operating system signal source;
receiving a manual shutdown instruction under an operating system and closing the operating system;
and receiving the power key power-off signal again to complete power-off and power-off.
2. The method according to claim 1, wherein the notification information of the power failure includes status information of the current power failure and notification information of whether to perform manual power-off.
3. The method of claim 1, further comprising:
if the operating system can not be automatically shut down, a first warning prompt tone is sent out.
4. The method according to claim 1, wherein the step of sending out the shutdown incapability prompt message further comprises:
starting timing;
and if the timing reaches the preset time threshold value and the manual shutdown confirmation instruction is not received, returning to the state before the power key shutdown signal is received, and sending a second warning prompt tone.
5. The method of claim 4, wherein the starting of the timing further comprises:
and displaying countdown prompt information.
6. A dual-system integrated shutdown device in an operating system connection state, comprising:
the receiving module is used for receiving a power key shutdown signal under the android system and receiving a manual shutdown confirmation instruction and a manual shutdown instruction;
the sending module is used for sending out prompt information of incapability of shutting down if the operating system cannot automatically shut down;
and the processing module is used for detecting whether the operating system can be automatically powered off, switching to an operating system signal source after receiving a command for confirming manual power off, closing the operating system after receiving the manual power off command under the operating system, and completing power off after receiving a power key power off signal again.
7. The apparatus according to claim 6, wherein the notification information of the power failure includes status information of the current power failure and notification information of whether to perform manual power-off.
8. The apparatus of claim 6, wherein the sending module is further configured to:
if the operating system can not be automatically shut down, a first warning prompt tone is sent out.
9. The apparatus of claim 6, wherein the processing module is further configured to:
starting timing;
if the timing reaches a preset time threshold value and the manual power-off confirmation instruction is not received, returning to the state before the power key power-off signal is received;
the sending module is also used for sending out a second warning prompt tone.
10. The apparatus of claim 9, wherein the processing module is further configured to display a countdown prompt.
CN201710011153.XA 2017-01-06 2017-01-06 Shutdown method and device for all-in-one machine in operating system connection state Active CN108279936B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710011153.XA CN108279936B (en) 2017-01-06 2017-01-06 Shutdown method and device for all-in-one machine in operating system connection state

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710011153.XA CN108279936B (en) 2017-01-06 2017-01-06 Shutdown method and device for all-in-one machine in operating system connection state

Publications (2)

Publication Number Publication Date
CN108279936A CN108279936A (en) 2018-07-13
CN108279936B true CN108279936B (en) 2021-03-23

Family

ID=62801076

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710011153.XA Active CN108279936B (en) 2017-01-06 2017-01-06 Shutdown method and device for all-in-one machine in operating system connection state

Country Status (1)

Country Link
CN (1) CN108279936B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109725679A (en) * 2018-08-21 2019-05-07 珠海中电数码科技有限公司 A kind of device and method of one key switch of liquid crystal module all-in-one machine
CN109831567B (en) * 2018-11-15 2021-01-19 芯海科技(深圳)股份有限公司 Method and system for improving reliability of pressure sensing power key of mobile terminal
CN110057031B (en) * 2019-04-22 2020-07-31 宁波奥克斯电气股份有限公司 Manual control method and air conditioner

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101924830A (en) * 2010-07-21 2010-12-22 宇龙计算机通信科技(深圳)有限公司 A kind of closedown method of portable terminal, system and portable terminal
CN102004539A (en) * 2009-09-02 2011-04-06 联想(北京)有限公司 Computer system shutdown method and computer

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102004539A (en) * 2009-09-02 2011-04-06 联想(北京)有限公司 Computer system shutdown method and computer
CN101924830A (en) * 2010-07-21 2010-12-22 宇龙计算机通信科技(深圳)有限公司 A kind of closedown method of portable terminal, system and portable terminal

Also Published As

Publication number Publication date
CN108279936A (en) 2018-07-13

Similar Documents

Publication Publication Date Title
CN108279936B (en) Shutdown method and device for all-in-one machine in operating system connection state
US8055889B2 (en) BIOS management device and method for managing BIOS setting value
US8397103B2 (en) Method for detecting the improper removal of electronic equipment
KR20130139829A (en) Systems and methods for intelligent and flexible management and monitoring of computer systems
US20140143477A1 (en) Computer system and data recovery method thereof
KR20170020324A (en) Method for completing a secure erase operation
CN109491825B (en) Method, device, storage medium and terminal for positioning abnormal starting problem
US20070220282A1 (en) System and method for avoiding power shortage due to accidentally pressing power switch during BIOS update
JP6128388B2 (en) Information processing device
CN112526898B (en) Serial port line plug detection circuit and embedded equipment
CN101211207B (en) Power detection circuit
TW201435577A (en) Backup method and computer system thereof
CN103870564A (en) Data updating method and electronic equipment
CN105607929A (en) System and method for programming EC in computer device
US8423801B2 (en) Electronic device, and method of controlling the electronic device
CN106484438A (en) Computer startup method and system
US20090259788A1 (en) Motherboard having time calculating device and time calculating method thereof
US7016173B2 (en) Device for detecting and protecting power connections and method thereof
CN105404467A (en) Portable electronic device and user data access method therefor
CN100401263C (en) Error checking system and method after turn-on machine
JP2007299247A (en) System control device, server device provided with system control circuit
US6252312B1 (en) Direct-voltage power pack
US9515907B2 (en) Monitoring method of monitoring module
CN100435062C (en) Computer system and its confidential method
CN103927492B (en) A kind of data processing equipment and data guard method

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