# US 2021/0279139 A1 · System recovery method and apparatus

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 2021/0279139 A1
- Document ID: US20210279139A1
- Status: Published application
- Kind: A1
- Application number: 17/261,804
- Filed: 2018-09-30
- Published: 2021-09-09
- Earliest claimed: 2018-07-20
- Assignees: Huawei Technologies Co., Ltd.
- Applicants: Huawei Technologies Co., Ltd.
- Inventors: Wei FU
- Web page: https://patentgrep.com/patent/US20210279139A1

## CPC

- G06F 11/1417: {Boot up procedures}
- G06F 11/1438: {Restarting or rejuvenating}
- G06F 11/0754: {by exceeding limits}
- G06F 11/076: {by exceeding a count or rate limit, e.g. word- or bit count limit}
- G06F 11/0793: {Remedial or corrective actions (recovery from an exception in an instruction pipeline G06F9/3861; by retry G06F11/1402; for recovering from a failure of a protocol instance or entity H04L69/40)}
- G06F 11/1435: {using file system or storage system metadata}
- G06F 11/3055: {Monitoring arrangements for monitoring the status of the computing system or of the computing system component, e.g. monitoring if the computing system is on, off, available, not available (error or fault processing without redundancy G06F11/0703; error detection or correction by redundancy in data representation G06F11/08; error detection or correction of the data by redundancy in operations G06F11/14; error detection or correction by redundancy in hardware G06F11/16)}
- G06F 11/3075: {the data filtering being achieved in order to maintain consistency among the monitored data, e.g. ensuring that the monitored data belong to the same timeframe, to the same system or component}
- G06F 11/327: {Alarm or error message display}
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

Embodiments of this application provide a system recovery method and an apparatus and relate to the field of communications technologies, so as to more smoothly guide a user in implementing system recovery of an electronic device. The method is applied to an electronic device, comprising: obtaining a quantity of abnormal shutdowns of the electronic device at a BIOS boot stage of the electronic device; if the quantity of abnormal shutdowns of the electronic device is greater than or equal to a preset threshold, displaying a first interface, where the first interface includes a first system recovery mechanism option; and receiving a selection operation on the first system recovery mechanism option, and running a first system recovery mechanism in response to the selection operation on the first system recovery mechanism option.

## Claims

### Claim 1

A system recovery method, wherein the method is applied to an electronic device, and the method comprises:
obtaining a quantity of abnormal shutdowns of the electronic device at a basic input output system (BIOS) boot stage of the electronic device;
when the quantity of abnormal shutdowns of the electronic device is greater than or equal to a preset threshold, displaying a first interface, wherein the first interface comprises a first system recovery mechanism option;
receiving a selection operation on the first system recovery mechanism option; and
running a first system recovery mechanism in response to the selection operation on the first system recovery mechanism option.

### Claim 2 (depends on 1)

The system recovery method according to claim 1, wherein before the obtaining a quantity of abnormal shutdowns of the electronic device, the method further comprises:
obtaining advanced startup indication information of the electronic device, wherein the advanced startup indication information is used to instruct the electronic device to run a second system recovery mechanism.

### Claim 3 (depends on 1)

The system recovery method according to claim 1, wherein the first interface further comprises at least one of the following: a second system recovery mechanism option, a startup-continued option, and a shutdown and restart option; and
when the quantity of abnormal shutdowns of the electronic device is greater than or equal to the preset threshold, the method further comprises:
receiving a selection operation on the second system recovery mechanism option; and
running the second system recovery mechanism in response to the selection operation on the second system recovery mechanism option.

### Claim 4 (depends on 1)

The system recovery method according to claim 1, wherein the method further comprises:
at the BIOS boot stage of the electronic device, in response to receiving an indication of a user selection of a first system recovery hot key, displaying, by the electronic device, a second interface, wherein the second interface comprises the first system recovery mechanism option and a shutdown and restart option;
receiving the selection operation on the first system recovery mechanism option; and
running the first system recovery mechanism in response to the selection operation on the first system recovery mechanism option.

### Claim 5 (depends on 1)

The system recovery method according to claim 1, wherein the method further comprises:
increasing the quantity of abnormal shutdowns by 1 during a startup of the electronic device; and
during a subsequent running of the electronic device, when the electronic device shuts down normally, clearing the quantity of abnormal shutdowns; or when the electronic device shuts down abnormally, skipping clearing the quantity of abnormal shutdowns.

### Claim 6 (depends on 1)

The system recovery method according to claim 1, wherein the method further comprises:
obtaining a status of an embedded controller (EC) at the BIOS boot stage of the electronic device, wherein the status of the EC indicates whether there is a shutdown event triggered by a watchdog mechanism in the electronic device; and
when there is a shutdown event triggered by the watchdog mechanism in the electronic device, reducing the quantity of abnormal shutdowns obtained by the electronic device at the BIOS boot stage by 1.

### Claim 7 (depends on 1)

The system recovery method according to claim 1, wherein the first system recovery mechanism is a system recovery mechanism customized by an original equipment manufacturer (OEM), and the second system recovery mechanism is a default system recovery mechanism of Windows.

### Claim 8 (depends on 1)

The system recovery method according to claim 1, wherein the abnormal shutdown of the electronic device comprises at least one of the following: a forcible shutdown, and a shutdown of the electronic device after a blue screen appears.

### Claim 9

An electronic device, wherein the electronic device comprises a processor, a memory, a communication interface and a touchscreen; the memory and the communications interface are coupled to the processor; the touchscreen is configured to display an image generated by the processor; the memory is configured to store computer program code; the computer program code comprises a computer instruction; and when the processor executes the computer instruction,
the processor is configured to:
obtain a quantity of abnormal shutdowns of the electronic device at a basic input output system (BIOS) boot stage of the electronic device;
control the touchscreen to display a first interface when the quantity of abnormal shutdowns of the electronic device is greater than or equal to a preset threshold, wherein the first interface comprises a first system recovery mechanism option; and
receive a selection operation on the first system recovery mechanism option through the communications interface, and run a first system recovery mechanism in response to the selection operation on the first system recovery mechanism option.

### Claim 10 (depends on 9)

The electronic device according to claim 9, wherein when the processor executes the computer instruction,
the processor is further configured to obtain advanced startup indication information of the electronic device, wherein the advanced startup indication information is used to instruct the processor to run a second system recovery mechanism.

### Claim 11 (depends on 9)

The electronic device according to claim 9, wherein the first interface further comprises at least one of the following: a second system recovery mechanism option, a startup-continued option, and a shutdown and restart option; and
when the processor executes the computer instruction, the processor is further configured to: receive a selection operation on the second system recovery mechanism option through the communications interface, and run the second system recovery mechanism in response to the selection operation on the second system recovery mechanism option.

### Claim 12 (depends on 9)

The electronic device according to claim 9, wherein when the processor executes the computer instruction,
the processor is further configured to: at the BIOS boot stage of the electronic device in response to receiving an indication of a user selection of a first system recovery hot key, control the touchscreen to display a second interface, wherein the second interface comprises the first system recovery mechanism option and a shutdown and restart option; and
receive the selection operation on the first system recovery mechanism option, and run the first system recovery mechanism in response to the selection operation on the first system recovery mechanism option.

### Claim 13 (depends on 9)

The electronic device according to claim 9, wherein when the processor executes the computer instruction,
the processor is further configured to: increase the quantity of abnormal shutdowns by 1 during a startup of the electronic device; and during a subsequent running of the electronic device, when the electronic device shuts down normally, clear the quantity of abnormal shutdowns; or when the electronic device shuts down abnormally, skip clearing the quantity of abnormal shutdowns.

### Claim 14 (depends on 9)

The electronic device according to claim 9, wherein when the processor executes the computer instruction,
the processor is further configured to: obtain a status of an embedded controller (EC) at the BIOS boot stage of the electronic device, wherein the status of the EC indicates whether there is a shutdown event triggered by a watchdog mechanism in the electronic device; and when there is a shutdown event triggered by the watchdog mechanism in the electronic device, reduce the quantity of abnormal shutdowns obtained by the processor at the BIOS boot stage by 1.

### Claim 15 (depends on 9)

The electronic device according to claim 9, wherein the first system recovery mechanism is a system recovery mechanism customized by an original equipment manufacturer (OEM), and the second system recovery mechanism is a default system recovery mechanism of Windows.

### Claim 16 (depends on 9)

The electronic device according to claim 9, wherein the abnormal shutdown of the electronic device comprises at least one of the following: a forcible shutdown, and a shutdown of the electronic device after a blue screen appears.

### Claim at position 17

17-18. (canceled)

### Claim 19

A non-transitory computer readable medium configured to store instructions that, when executed by at least one processor of an electronic device, cause the electronic device to perform operations comprising:
obtaining a quantity of abnormal shutdowns of the electronic device at a basic input output system (BIOS) boot stage of the electronic device;
when the quantity of abnormal shutdowns of the electronic device is greater than or equal to a preset threshold, displaying a first interface, wherein the first interface comprises a first system recovery mechanism option;
receiving a selection operation on the first system recovery mechanism option; and
running a first system recovery mechanism in response to the selection operation on the first system recovery mechanism option.

### Claim 20 (depends on 19)

The non-transitory computer readable medium according to claim 19, wherein the operations further comprise:
obtaining advanced startup indication information of the electronic device, wherein the advanced startup indication information is used to instruct the electronic device to run a second system recovery mechanism.

### Claim 21 (depends on 19)

The non-transitory computer readable medium according to claim 19, wherein the first interface further comprises at least one of the following: a second system recovery mechanism option, a startup-continued option, and a shutdown and restart option; and
when the quantity of abnormal shutdowns of the electronic device is greater than or equal to the preset threshold, the method further comprises:
receiving a selection operation on the second system recovery mechanism option; and
running the second system recovery mechanism in response to the selection operation on the second system recovery mechanism option.

### Claim 22 (depends on 19)

The non-transitory computer readable medium according to claim 19, wherein the operations further comprise:
at the BIOS boot stage of the electronic device, in response to receiving an indication of a user selection of a first system recovery hot key, displaying, by the electronic device, a second interface, wherein the second interface comprises the first system recovery mechanism option and a shutdown and restart option;
receiving the selection operation on the first system recovery mechanism option; and
running the first system recovery mechanism in response to the selection operation on the first system recovery mechanism option.
