CN111796877A - Starting method of operating system, electronic device and computer readable storage medium - Google Patents
Starting method of operating system, electronic device and computer readable storage medium Download PDFInfo
- Publication number
- CN111796877A CN111796877A CN202010676787.9A CN202010676787A CN111796877A CN 111796877 A CN111796877 A CN 111796877A CN 202010676787 A CN202010676787 A CN 202010676787A CN 111796877 A CN111796877 A CN 111796877A
- Authority
- CN
- China
- Prior art keywords
- operating system
- electric quantity
- electronic equipment
- starting
- target operating
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements 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/44—Arrangements for executing specific programs
- G06F9/4401—Bootstrapping
- G06F9/4406—Loading of operating system
- G06F9/441—Multiboot arrangements, i.e. selecting an operating system to be loaded
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F1/00—Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
- G06F1/26—Power supply means, e.g. regulation thereof
- G06F1/28—Supervision thereof, e.g. detecting power-supply failure by out of limits supervision
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Software Systems (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Computer Security & Cryptography (AREA)
- Power Sources (AREA)
- Telephone Function (AREA)
Abstract
The embodiment of the application provides a starting method of an operating system, electronic equipment and a computer readable storage medium, and relates to the technical field of computer application. The method comprises the following steps: detecting a starting-up request triggered by a user; determining a target operating system according to the corresponding relation between the starting request and at least one operating system; and starting the target operating system according to the corresponding relation between the residual electric quantity of the electronic equipment and a preset electric quantity threshold value. The embodiment of the application avoids the problem that the operating system cannot be started due to low electric quantity.
Description
Technical Field
The present application relates to the field of computer application technologies, and in particular, to a method for starting an operating system, an electronic device, and a computer-readable storage medium.
Background
Along with popularization and application of the intelligent operating system on electronic equipment, the intelligent equipment brings more and more convenience to life and work of people.
However, the power consumption of the smart operating system increases while the smart operating system has a powerful function, and the power supply capability of the battery device at present is far from the development speed of the smart operating system, so that most smart devices, such as mobile phones, have a short power supply time. Under the condition of untimely charging, the equipment cannot work normally, and at the moment, the equipment cannot be started in case of emergency. Particularly, emergency self-rescue needs to be carried out by the mobile phone in emergency, for example, emergency rescue calls such as alarm calls and fire alarm calls can be dialed, and the rescue opportunity can be missed because the operating system cannot be started due to low electric quantity.
Disclosure of Invention
The application provides a starting method of an operating system, an electronic device and a computer readable storage medium, which can solve the problem that the operating system cannot be started under the condition of low electric quantity of the device. The technical scheme is as follows:
in a first aspect, a method for starting an operating system is provided, where the method is applied to an electronic device including at least one operating system, and the method includes:
detecting a starting-up request triggered by a user;
determining a target operating system according to the corresponding relation between the starting request and at least one operating system;
and starting the target operating system according to the corresponding relation between the residual electric quantity of the electronic equipment and a preset electric quantity threshold value.
Specifically, the correspondence between the boot request and the at least one operating system includes:
the first preset mode of the starting request corresponds to a first operating system in at least one operating system;
the second preset mode of the starting request corresponds to a second operating system in the at least one operating system.
Specifically, starting the target operating system according to the corresponding relationship between the remaining power of the electronic device and the preset power threshold includes:
if the residual electric quantity of the electronic equipment exceeds a preset electric quantity threshold value, the electronic equipment determines a target operating system according to the corresponding relation between the starting request and at least one operating system, and the electronic equipment starts the target operating system;
if the residual electric quantity of the electronic equipment does not exceed a preset electric quantity threshold value, the electronic equipment determines a target operating system according to the corresponding relation between the starting request and at least one operating system, and then judges whether the target operating system is a second target operating system or not;
if yes, the electronic equipment starts a target operating system;
if not, the electronic equipment prohibits starting the target operating system.
Specifically, after the target operating system is started, the remaining power of the electronic equipment can be monitored, and the specific method comprises the following steps;
if the residual electric quantity of the electronic equipment exceeds a preset electric quantity threshold value, the electronic equipment continues to operate the target operating system;
if the residual electric quantity of the electronic equipment does not exceed the preset electric quantity threshold value and the target operating system is not the second target operating system, the electronic equipment forcibly closes the target operating system;
if the remaining power of the electronic device does not exceed the preset power threshold and the target operating system is the second target operating system, the electronic device continues to run the target operating system.
Specifically, the available functions under the second operating system are less than the available functions under the first operating system.
In a second aspect, an electronic device is provided, the electronic device comprising:
the detection unit is used for detecting a starting request triggered by a user;
the determining unit is used for determining a target operating system according to the corresponding relation between the starting request and at least one operating system;
and the starting unit is used for starting the target operating system according to the corresponding relation between the residual electric quantity of the electronic equipment and a preset electric quantity threshold value.
In a third aspect, an electronic device is provided, which includes: one or more processors; a memory; one or more application programs, wherein the one or more application programs are stored in the memory and configured to be executed by the one or more processors, the one or more programs configured to: the method for booting an operating system shown in the first aspect is performed.
In a fourth aspect, a computer-readable storage medium is provided, on which a computer program is stored, and the computer program, when executed by a processor, implements the method for starting an operating system according to the first aspect of the present application.
The beneficial effect that technical scheme that this application provided brought is:
according to the technical scheme, the target operating system is determined from the at least one operating system according to the detected starting request triggered by the user and the corresponding relation between the starting request and the at least one operating system, and then the determined target operating system is started according to the corresponding relation between the residual electric quantity of the electronic equipment and the preset electric quantity value. Therefore, the method can ensure that one operating system in the operating systems can be started even under the condition of only having lower electric quantity, namely, the started operating system is the operating system corresponding to the current lower electric quantity and the starting request, and therefore, the problem that the operating system cannot be started due to the lower electric quantity is solved.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings used in the description of the embodiments of the present application will be briefly described below.
Fig. 1 is a schematic flowchart of a method for starting an operating system according to an embodiment of the present disclosure;
fig. 2 is a schematic structural diagram of an electronic device according to an embodiment of the present disclosure;
fig. 3 is a schematic structural diagram of an electronic device according to an embodiment of the present application.
Detailed Description
Reference will now be made in detail to embodiments of the present application, examples of which are illustrated in the accompanying drawings, wherein like or similar reference numerals refer to the same or similar elements or elements having the same or similar function throughout. The embodiments described below with reference to the drawings are exemplary only for the purpose of explaining the present application and are not to be construed as limiting the present invention.
As used herein, the singular forms "a", "an", "the" and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise. It will be further understood that the terms "comprises" and/or "comprising," when used in this specification, specify the presence of stated features, integers, steps, operations, elements, and/or components, but do not preclude the presence or addition of one or more other features, integers, steps, operations, elements, components, and/or groups thereof. It will be understood that when an element is referred to as being "connected" or "coupled" to another element, it can be directly connected or coupled to the other element or intervening elements may also be present. Further, "connected" or "coupled" as used herein may include wirelessly connected or wirelessly coupled. As used herein, the term "and/or" includes all or any element and all combinations of one or more of the associated listed items.
To make the objects, technical solutions and advantages of the present application more clear, embodiments of the present application will be described in further detail below with reference to the accompanying drawings.
The following describes the technical solutions of the present application and how to solve the above technical problems with specific embodiments. The following several specific embodiments may be combined with each other, and details of the same or similar concepts or processes may not be repeated in some embodiments. Embodiments of the present application will be described below with reference to the accompanying drawings.
The embodiment of the application provides a starting method of an operating system, which is applied to electronic equipment, wherein the electronic equipment comprises at least one operating system, and the method comprises the following steps:
step S11, a power-on request triggered by a user is detected.
The user may trigger the power-on request through a power switch, a button, or an on-off key on the touch screen.
Step S12, determining a target operating system according to the corresponding relation between the starting request and at least one operating system;
that is, a type of the boot request corresponds to an operating system, so that a user can determine the type of the boot request according to an actual situation, for example, under a normal situation, the user requests to start the electronic device in a commonly used boot manner; in case of emergency, the electronic equipment is requested to be started by setting a special starting mode for the emergency.
Step S13, starting the target operating system according to the corresponding relation between the residual electric quantity of the electronic equipment and a preset electric quantity threshold value;
determining which type the user' S boot request belongs to based on step S12, and determining whether to boot the target operating system and a specific boot manner, for example, whether to use the reserved power to supply power to the target operating system, according to the actual remaining condition of the current power;
the residual capacity referred to in the application is the actual residual capacity of the electronic device, and the residual capacity can be used for supplying power to a first operating system of the electronic device when exceeding a preset capacity threshold; the first operating system is an operating system for use when the electronic device is operating under normal conditions. The reserved power is a part of power hidden in advance, for example, the remaining power of the electronic device below a preset power threshold, the part of power is not perceived by a user as being hidden from the user when the user uses the electronic device, and the part of power is used for starting a second operating system of the electronic device; the second operating system is an operating system that the electronic device is booted up in an emergency.
In the step S12, the "correspondence between the boot request and the at least one operating system" includes:
the first preset mode of the starting request corresponds to a first operating system in at least one operating system;
the first preset mode is a mode for normally starting the electronic equipment, for example, a long-time press of a power-on key and the like;
the second preset mode of the starting request corresponds to a second operating system in the at least one operating system.
The second preset mode is a mode of starting the electronic equipment in an emergency, for example, the starting power supply is clicked in a mode of 3 short, 3 long and 3 short, and the second preset mode can be set according to an actual situation.
In the step S13, the "starting the target operating system according to the correspondence between the remaining power of the electronic device and the preset power threshold" includes:
if the residual electric quantity of the electronic equipment exceeds a preset electric quantity threshold value, the electronic equipment determines a target operating system according to the corresponding relation between the starting request and at least one operating system, and the electronic equipment starts the target operating system;
for example, if the remaining power of the electronic device exceeds a preset power threshold and the power-on request is in a first preset mode, the first preset mode corresponds to the first operating system, the first operating system is used as a target operating system at this time, the remaining power is used for supplying power to the first operating system, and the remaining power of the electronic device exceeds the preset power threshold at this time;
if the residual electric quantity of the electronic equipment does not exceed a preset electric quantity threshold value, the electronic equipment determines a target operating system according to the corresponding relation between the starting request and at least one operating system, and then judges whether the target operating system is a first target operating system or not;
for example, when the boot request is in a first preset mode, the first preset mode corresponds to the first operating system, and the first operating system is determined to be a target operating system; when the starting request is in a second preset mode, the second preset mode corresponds to a second operating system, and the second operating system is determined to be a target operating system; if the remaining power of the electronic device does not exceed the preset power threshold, determining whether the target operating system is the second operating system,
if so, the electronic equipment starts the target operating system, namely starts the second operating system, and at the moment, the reserved electric quantity, such as the residual electric quantity which does not exceed the preset electric quantity threshold value, is used for supplying power to the second operating system;
if not, the electronic device prohibits starting the target operating system, that is, prohibits starting other operating systems other than the second operating system, for example, the first operating system.
Specifically, after step S13 is executed, that is, after the target operating system is started, the method further includes;
monitoring the residual electric quantity of the electronic equipment in the following specific mode;
if the residual electric quantity of the electronic equipment exceeds a preset electric quantity threshold value, the electronic equipment continues to operate the target operating system;
for example, whether the first operating system is used as a target operating system or the second operating system is used as a target operating system, when the remaining power exceeds a preset power threshold, the remaining power is used for supplying power to the target operating system;
if the residual electric quantity of the electronic equipment does not exceed the preset electric quantity threshold value and the target operating system is not the second target operating system, the electronic equipment forcibly closes the target operating system;
for example, when the first operating system is taken as a target operating system, when the remaining power does not exceed a preset power threshold, the electronic equipment which is started up is forcibly turned off;
if the remaining power of the electronic device does not exceed the preset power threshold and the target operating system is the second target operating system, the electronic device continues to run the target operating system.
For example, when the second operating system is the target operating system, the remaining power of the electronic device does not exceed the preset power threshold, and the electronic device continues to supply power to the second operating system by using the reserved power.
And the available functions under the second operating system are less than those under the first operating system. The second operating system may comprise only the necessary functions, such as bluetooth functions and/or positioning functions and/or communication functions, which need to be activated in case of an emergency.
According to the technical scheme, the target operating system is determined from the at least one operating system according to the detected starting request triggered by the user and the corresponding relation between the starting request and the at least one operating system, and then the determined target operating system is started according to the corresponding relation between the residual electric quantity of the electronic equipment and the preset electric quantity value. Therefore, the method can ensure that one operating system in the operating systems can be started even under the condition of only having lower electric quantity, namely, the started operating system is the operating system corresponding to the current lower electric quantity and the starting request, and therefore, the problem that the operating system cannot be started due to the lower electric quantity is solved.
In the following, a specific embodiment is taken as an explanation, the electronic device includes a first operating system and a second operating system, the first operating system is an operating system started by the electronic device in a non-emergency situation, and the second operating system is an operating system started by the electronic device in an emergency situation. The starting request of the user comprises a first preset mode and a second preset mode, the first preset mode is a mode of requesting to start the electronic equipment under a non-emergency condition, and the second preset mode is a mode of requesting to start the electronic equipment under an emergency condition. The first preset mode can be that the start key is pressed for a long time, and the second preset mode can be that the start key is pressed for a short time of 3, 3 and 3. The first preset mode corresponds to a first operating system, and the second preset mode corresponds to a second operating system; the electronic equipment comprises residual electric quantity and reserved electric quantity, the residual electric quantity is a common power supply mode of the electronic equipment, and the residual electric quantity can be used for supplying power to a first operating system of the electronic equipment when exceeding a preset electric quantity threshold value; the reserved electric quantity is a power supply mode of the electronic equipment under emergency, and is a part of electric quantity hidden in advance, and the method comprises the following specific steps:
step A, detecting a starting request triggered by a user;
when the starting-up request of the user is in a first preset mode, taking a first operating system in at least one operating system as a target operating system, and executing the step B;
when the starting-up request of the user is in a second preset mode, taking a second operating system in at least one operating system as a target operating system, and executing the step C;
step B, judging whether the residual electric quantity of the current electronic equipment exceeds a preset electric quantity threshold value;
if so, using the residual electric quantity to supply power to the electronic equipment so as to ensure the normal operation of the first operating system, wherein the residual electric quantity of the electronic equipment exceeds a preset electric quantity threshold value;
if not, the electronic equipment forcibly closes the target operating system; step C, judging whether the residual electric quantity of the current electronic equipment exceeds a preset electric quantity threshold value or not;
if so, using the residual electric quantity to supply power to the electronic equipment so as to ensure the normal operation of the second operating system, wherein the residual electric quantity of the electronic equipment exceeds a preset electric quantity threshold value;
if not, releasing the reserved electric quantity, for example, the residual electric quantity not exceeding the preset electric quantity threshold value, and supplying power to the electronic equipment so as to ensure the normal operation of the second operating system.
And the available functions under the second operating system are less than those under the first operating system. The second operating system may comprise only bluetooth functionality and/or positioning functionality and/or communication functionality etc., necessary functions that may be enabled in case of an emergency.
In the embodiment provided by the application, the CPU of the electronic device generally determines which operating system to start according to a signal of a key pressed by a user; which amount of power is used is determined by the power supply IC according to the instruction of the CPU. After a power supply IC of the electronic equipment detects a signal of pressing a key by a user, outputting stable power supply voltage to supply power to a CPU (central processing unit), an oscillation circuit, a memory circuit and other logic circuits of the electronic equipment, simultaneously transmitting the signal of pressing the key by the user and a reset signal to the CPU, executing a program to perform logic judgment after the CPU is electrified and reset, if a target operating system corresponding to the signal of pressing the key by the user is allowed to be started, sending a starting maintaining signal to the power supply IC by the CPU, and simultaneously reading and executing a corresponding program of the target operating system from the memory; otherwise, the CPU terminates the starting-up flow of the electronic equipment and directly shuts down the electronic equipment. Therefore, the technical scheme of the application can be realized on the hardware level of the electronic equipment, the realization process is transparent to a user of the electronic equipment, and the user cannot perceive the reserved electric quantity of the electronic equipment, such as the residual electric quantity which does not exceed the preset electric quantity threshold. Whether the reserved electric quantity is allowed to be used is determined by the CPU according to a logic judgment result, and if the reserved electric quantity is allowed to be used, the CPU sends a corresponding signal to the power supply IC without user intervention. In order to further enhance the hiding effect of the reserved power, a power display icon or a similar display bar on the operating system may be modified so that the reserved power is not displayed to the user.
According to the technical scheme, the reserved electric quantity is set in the total electric quantity of the power supply of the electronic equipment, wherein the reserved electric quantity is hidden in advance for a user, namely the electronic equipment does not use the reserved electric quantity in a normal working state. When the starting request triggered by the user is detected to be in a second preset mode and the residual electric quantity is smaller than a preset electric quantity threshold value, the reserved electric quantity is released, and meanwhile, a second operating system in the electronic equipment is started. Therefore, the method ensures the starting and the operation of the electronic equipment by releasing the reserved electric quantity to start the second operating system under the condition that the residual electric quantity is not enough to support the normal operation or the starting of the equipment by hiding a part of electric quantity, namely the residual electric quantity is less than the preset electric quantity threshold value. Therefore, the method avoids the problem that the operating system cannot be started due to low electric quantity.
In summary, it can be seen that, in the solution provided in the embodiment of the present application, by hiding the reserved power, in an emergency, an emergency operating system, that is, the second operating system, is started by releasing the reserved power, so as to ensure that the basic communication function can still be maintained in the emergency.
An embodiment of the present application provides an electronic device, as shown in fig. 2, the electronic device includes:
the detection unit 21 is configured to detect a power-on request triggered by a user;
a determining unit 22, configured to determine a target operating system according to a correspondence between the boot request and at least one operating system;
the starting unit 23 starts the target operating system according to the corresponding relationship between the remaining power of the electronic device and the preset power threshold.
The determining unit 22 is specifically configured to:
the first preset mode of the starting request corresponds to a first operating system in at least one operating system;
the second preset mode of the starting request corresponds to a second operating system in the at least one operating system.
The starting unit 23 is specifically configured to:
if the residual electric quantity of the electronic equipment exceeds a preset electric quantity threshold value, the electronic equipment determines a target operating system according to the corresponding relation between the starting request and at least one operating system, and the electronic equipment starts the target operating system;
if the residual electric quantity of the electronic equipment does not exceed a preset electric quantity threshold value, the electronic equipment determines a target operating system according to the corresponding relation between the starting request and at least one operating system, and then judges whether the target operating system is a second operating system or not;
if yes, the electronic equipment starts a target operating system;
if not, the electronic equipment prohibits starting the target operating system.
The electronic device further comprises a monitoring unit 24, configured to monitor a remaining power of the electronic device after the target operating system is started;
if the residual electric quantity of the electronic equipment exceeds a preset electric quantity threshold value, the electronic equipment continues to operate the target operating system;
if the residual electric quantity of the electronic equipment does not exceed the preset electric quantity threshold value and the target operating system is not the second target operating system, the electronic equipment forcibly closes the target operating system;
if the remaining power of the electronic device does not exceed the preset power threshold and the target operating system is the second target operating system, the electronic device continues to run the target operating system.
In the electronic device, the available functions under the second operating system are less than the available functions under the first operating system.
In an alternative embodiment, an electronic device is provided, as shown in fig. 3, the electronic device 4000 shown in fig. 3 comprising: a processor 4001 and a memory 4003. Processor 4001 is coupled to memory 4003, such as via bus 4002. Optionally, the electronic device 4000 may further comprise a transceiver 4004. In addition, the transceiver 4004 is not limited to one in practical applications, and the structure of the electronic device 4000 is not limited to the embodiment of the present application.
The Processor 4001 may be a CPU (Central Processing Unit), a general-purpose Processor, a DSP (Digital Signal Processor), an ASIC (Application specific integrated Circuit), an FPGA (Field Programmable Gate Array) or other Programmable logic device, a transistor logic device, a hardware component, or any combination thereof. Which may implement or perform the various illustrative logical blocks, modules, and circuits described in connection with the disclosure. The processor 4001 may also be a combination that performs a computational function, including, for example, a combination of one or more microprocessors, a combination of a DSP and a microprocessor, or the like.
The Memory 4003 may be a ROM (Read Only Memory) or other types of static storage devices that can store static information and instructions, a RAM (Random Access Memory) or other types of dynamic storage devices that can store information and instructions, an EEPROM (Electrically erasable programmable Read Only Memory), a CD-ROM (Compact Read Only Memory) or other optical disk storage, optical disk storage (including Compact disk, laser disk, optical disk, digital versatile disk, blu-ray disk, etc.), a magnetic disk storage medium or other magnetic storage devices, or any other medium that can be used to carry or store desired program code in the form of instructions or data structures and that can be accessed by a computer, but is not limited to.
The memory 4003 is used for storing application codes for executing the scheme of the present application, and the execution is controlled by the processor 4001. Processor 4001 is configured to execute application code stored in memory 4003 to implement what is shown in the foregoing method embodiments.
Among them, electronic devices include but are not limited to: and mobile phones, notebooks and other devices with communication functions.
An embodiment of the present application provides an electronic device, which includes: one or more processors;
a memory; one or more applications, wherein the one or more applications are stored in the memory and configured to be executed by the one or more processors, the one or more programs configured to: the above-described booting method of the operating system is performed.
The present application provides a computer-readable storage medium, on which a computer program is stored, which, when running on a computer, enables the computer to execute the corresponding content in the foregoing method embodiments. Compared with the prior art, the method comprises the steps of determining a target operating system from at least one operating system according to a detected starting request triggered by a user and the corresponding relation between the starting request and the at least one operating system, and then starting the determined target operating system according to the corresponding relation between the residual electric quantity of the electronic equipment and a preset electric quantity value. Therefore, the method can ensure that one operating system in the operating systems can be started even under the condition of only having lower electric quantity, namely, the started operating system is the operating system corresponding to the current lower electric quantity and the starting request, and therefore, the problem that the operating system cannot be started due to the lower electric quantity is solved.
It should be understood that, although the steps in the flowcharts of the figures are shown in order as indicated by the arrows, the steps are not necessarily performed in order as indicated by the arrows. The steps are not performed in the exact order shown and may be performed in other orders unless explicitly stated herein. Moreover, at least a portion of the steps in the flow chart of the figure may include multiple sub-steps or multiple stages, which are not necessarily performed at the same time, but may be performed at different times, which are not necessarily performed in sequence, but may be performed alternately or alternately with other steps or at least a portion of the sub-steps or stages of other steps.
The foregoing is only a partial embodiment of the present invention, and it should be noted that, for those skilled in the art, various modifications and decorations can be made without departing from the principle of the present invention, and these modifications and decorations should also be regarded as the protection scope of the present invention.
Claims (8)
1. A starting method of an operating system is applied to an electronic device, the electronic device comprises at least one operating system, and the method comprises the following steps:
detecting a starting-up request triggered by a user;
determining a target operating system according to the corresponding relation between the starting request and the at least one operating system;
and starting the target operating system according to the corresponding relation between the residual electric quantity of the electronic equipment and a preset electric quantity threshold value.
2. The method of claim 1, wherein the mapping of the boot request to the at least one operating system comprises:
the first preset mode of the starting request corresponds to a first operating system in the at least one operating system;
the second preset mode of the starting request corresponds to a second operating system in the at least one operating system.
3. The method according to claim 1 or 2, wherein starting the target operating system according to the corresponding relationship between the remaining power of the electronic device and a preset power threshold comprises:
if the residual electric quantity of the electronic equipment exceeds a preset electric quantity threshold value, the electronic equipment determines a target operating system according to the corresponding relation between the starting request and the at least one operating system, and then the electronic equipment starts the target operating system;
if the residual electric quantity of the electronic equipment does not exceed a preset electric quantity threshold value, the electronic equipment determines a target operating system according to the corresponding relation between the starting request and the at least one operating system, and then judges whether the target operating system is a second operating system or not;
if yes, the electronic equipment starts the target operating system;
if not, the electronic equipment prohibits starting the target operating system.
4. The method of claim 3, wherein after the target operating system is started, further comprising
If the residual electric quantity of the electronic equipment exceeds a preset electric quantity threshold value, the electronic equipment continues to operate the target operating system;
if the residual electric quantity of the electronic equipment does not exceed a preset electric quantity threshold value and the target operating system is not a second target operating system, the electronic equipment forcibly closes the target operating system;
if the remaining power of the electronic device does not exceed a preset power threshold and the target operating system is a second target operating system, the electronic device continues to run the target operating system.
5. The method of any of claims 1-4, wherein less functionality is available under the second operating system than is available under the first operating system.
6. An electronic device, characterized in that the electronic device comprises:
the detection unit is used for detecting a starting request triggered by a user;
the determining unit is used for determining a target operating system according to the corresponding relation between the starting request and the at least one operating system;
and the starting unit is used for starting the target operating system according to the corresponding relation between the residual electric quantity of the electronic equipment and a preset electric quantity threshold value.
7. An electronic device, comprising:
one or more processors;
a memory;
one or more applications, wherein the one or more applications are stored in the memory and configured to be executed by the one or more processors, the one or more programs configured to: executing the method of booting an operating system according to any one of claims 1-4.
8. A computer-readable storage medium on which a computer program is stored, the program, when executed by a processor, implementing the method for booting an operating system according to any one of claims 1 to 4.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202010676787.9A CN111796877B (en) | 2020-07-14 | 2020-07-14 | Starting method of operating system, electronic device and computer readable storage medium |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202010676787.9A CN111796877B (en) | 2020-07-14 | 2020-07-14 | Starting method of operating system, electronic device and computer readable storage medium |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| CN111796877A true CN111796877A (en) | 2020-10-20 |
| CN111796877B CN111796877B (en) | 2021-10-15 |
Family
ID=72806931
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN202010676787.9A Active CN111796877B (en) | 2020-07-14 | 2020-07-14 | Starting method of operating system, electronic device and computer readable storage medium |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN111796877B (en) |
Citations (15)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN1996242A (en) * | 2006-01-05 | 2007-07-11 | 英业达股份有限公司 | System and method for low battery power on |
| US20110016301A1 (en) * | 2009-07-20 | 2011-01-20 | Galicia Joshua D | System and method for initiating a multi-environment operating system |
| CN103838597A (en) * | 2012-11-27 | 2014-06-04 | 联想(北京)有限公司 | Operation system starting method, device and electronic equipment |
| CN103902324A (en) * | 2012-12-28 | 2014-07-02 | 联想(北京)有限公司 | System starting method and electronic equipment |
| US20140325449A1 (en) * | 2013-04-28 | 2014-10-30 | Tencent Technology (Shenzhen) Company Limited | Method, device and storage medium for starting application in electronic apparatus |
| CN104657188A (en) * | 2015-03-24 | 2015-05-27 | 联想(北京)有限公司 | Startup control method and device and electronic equipment |
| US20150277986A1 (en) * | 2014-03-25 | 2015-10-01 | Microsoft Technology Licensing, Llc | Dynamic partition dual boot mobile phone device |
| CN105468120A (en) * | 2014-09-12 | 2016-04-06 | 宇龙计算机通信科技(深圳)有限公司 | Terminal running method and apparatus |
| CN105871052A (en) * | 2016-04-27 | 2016-08-17 | 乐视控股(北京)有限公司 | Power supply switching method and apparatus |
| US20170060380A1 (en) * | 2015-08-28 | 2017-03-02 | Hon Hai Precision Industry Co., Ltd. | Electronic device with system optimization function and system optimization method thereof |
| CN106708245A (en) * | 2017-01-06 | 2017-05-24 | 广东小天才科技有限公司 | Mobile terminal starting method and mobile terminal |
| CN107515749A (en) * | 2017-08-15 | 2017-12-26 | 北京小米移动软件有限公司 | Method and device for starting up electronic equipment, and electronic equipment |
| CN108430037A (en) * | 2018-01-29 | 2018-08-21 | 福建天泉教育科技有限公司 | A kind of safe positioning method and terminal |
| CN109151961A (en) * | 2018-07-20 | 2019-01-04 | 重庆宝力优特科技有限公司 | A kind of operation method of mobile terminal, terminal and computer readable storage medium |
| CN110716631A (en) * | 2019-09-04 | 2020-01-21 | 湖南新云网科技有限公司 | Power supply management method, device, equipment and readable storage medium |
-
2020
- 2020-07-14 CN CN202010676787.9A patent/CN111796877B/en active Active
Patent Citations (15)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN1996242A (en) * | 2006-01-05 | 2007-07-11 | 英业达股份有限公司 | System and method for low battery power on |
| US20110016301A1 (en) * | 2009-07-20 | 2011-01-20 | Galicia Joshua D | System and method for initiating a multi-environment operating system |
| CN103838597A (en) * | 2012-11-27 | 2014-06-04 | 联想(北京)有限公司 | Operation system starting method, device and electronic equipment |
| CN103902324A (en) * | 2012-12-28 | 2014-07-02 | 联想(北京)有限公司 | System starting method and electronic equipment |
| US20140325449A1 (en) * | 2013-04-28 | 2014-10-30 | Tencent Technology (Shenzhen) Company Limited | Method, device and storage medium for starting application in electronic apparatus |
| US20150277986A1 (en) * | 2014-03-25 | 2015-10-01 | Microsoft Technology Licensing, Llc | Dynamic partition dual boot mobile phone device |
| CN105468120A (en) * | 2014-09-12 | 2016-04-06 | 宇龙计算机通信科技(深圳)有限公司 | Terminal running method and apparatus |
| CN104657188A (en) * | 2015-03-24 | 2015-05-27 | 联想(北京)有限公司 | Startup control method and device and electronic equipment |
| US20170060380A1 (en) * | 2015-08-28 | 2017-03-02 | Hon Hai Precision Industry Co., Ltd. | Electronic device with system optimization function and system optimization method thereof |
| CN105871052A (en) * | 2016-04-27 | 2016-08-17 | 乐视控股(北京)有限公司 | Power supply switching method and apparatus |
| CN106708245A (en) * | 2017-01-06 | 2017-05-24 | 广东小天才科技有限公司 | Mobile terminal starting method and mobile terminal |
| CN107515749A (en) * | 2017-08-15 | 2017-12-26 | 北京小米移动软件有限公司 | Method and device for starting up electronic equipment, and electronic equipment |
| CN108430037A (en) * | 2018-01-29 | 2018-08-21 | 福建天泉教育科技有限公司 | A kind of safe positioning method and terminal |
| CN109151961A (en) * | 2018-07-20 | 2019-01-04 | 重庆宝力优特科技有限公司 | A kind of operation method of mobile terminal, terminal and computer readable storage medium |
| CN110716631A (en) * | 2019-09-04 | 2020-01-21 | 湖南新云网科技有限公司 | Power supply management method, device, equipment and readable storage medium |
Also Published As
| Publication number | Publication date |
|---|---|
| CN111796877B (en) | 2021-10-15 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US9703663B2 (en) | Reminding apparatus in data processing device, reminding method and storage medium | |
| KR101613638B1 (en) | Method, apparatus, device, program and recording medium for preventing misoperation | |
| US8001406B2 (en) | Method and apparatus for managing power of portable information device | |
| CN109407871B (en) | A method and device for identifying water immersion status, electronic equipment | |
| EP2866215A1 (en) | Touch screen terminal and alarm method thereof | |
| CN108132735A (en) | Terminal and Application Control Method | |
| CN114020652B (en) | Application program management method and electronic equipment | |
| CN101788936A (en) | Snapshot backup and restoration method and device when in running of mobile terminal | |
| WO2017219482A1 (en) | Starting method and device | |
| CN111796877B (en) | Starting method of operating system, electronic device and computer readable storage medium | |
| CN105893221A (en) | Terminal operation time length alarming method and device | |
| CN110083491A (en) | A kind of BIOS initialization method, apparatus, equipment and storage medium | |
| CN112835826B (en) | A communication method, device, equipment and readable storage medium | |
| CN110704247B (en) | Processing method and device for application memory exception, electronic equipment and device | |
| US9632795B2 (en) | Electronic device and method for monitoring battery module of the same | |
| KR102516940B1 (en) | Electronic device for performing a booting and method of operating the same | |
| CN115835135B (en) | CELL fence matching method and electronic equipment | |
| CN108228279B (en) | BIOS operation method and electronic equipment | |
| CN113641524B (en) | Reset method, device and equipment for single board starting overtime and readable storage medium | |
| CN116501399A (en) | A wake-up method and electronic device | |
| CN116185247A (en) | Split-screen recommendation method and electronic device | |
| CN110928592A (en) | Embedded system, starting method and device thereof, and electronic equipment | |
| CN117093278B (en) | Kernel shutdown method, electronic equipment and storage media | |
| EP3579531A1 (en) | Mobile terminal sensor control method, device, storage medium and mobile terminal | |
| CN115343980B (en) | Control method of equipment, energy storage equipment and storage medium |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| PB01 | Publication | ||
| PB01 | Publication | ||
| SE01 | Entry into force of request for substantive examination | ||
| SE01 | Entry into force of request for substantive examination | ||
| GR01 | Patent grant | ||
| GR01 | Patent grant | ||
| TR01 | Transfer of patent right |
Effective date of registration: 20230517 Address after: Room 401, Floor 4, No. 2, Haidian East Third Street, Haidian District, Beijing 100080 Patentee after: Yuanxin Information Technology Group Co.,Ltd. Address before: 401-06, floor 4, No.2, East Third Street, Haidian District, Beijing Patentee before: YUANXIN TECHNOLOGY |
|
| TR01 | Transfer of patent right |