CN108228279B - BIOS operation method and electronic equipment - Google Patents

BIOS operation method and electronic equipment Download PDF

Info

Publication number
CN108228279B
CN108228279B CN201810001795.6A CN201810001795A CN108228279B CN 108228279 B CN108228279 B CN 108228279B CN 201810001795 A CN201810001795 A CN 201810001795A CN 108228279 B CN108228279 B CN 108228279B
Authority
CN
China
Prior art keywords
bios
interface
program
electric quantity
electronic device
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
CN201810001795.6A
Other languages
Chinese (zh)
Other versions
CN108228279A (en
Inventor
李冰
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Lenovo Beijing Ltd
Original Assignee
Lenovo Beijing Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Lenovo Beijing Ltd filed Critical Lenovo Beijing Ltd
Priority to CN201810001795.6A priority Critical patent/CN108228279B/en
Publication of CN108228279A publication Critical patent/CN108228279A/en
Application granted granted Critical
Publication of CN108228279B publication Critical patent/CN108228279B/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/445Program loading or initiating
    • G06F9/44505Configuring for program initiating, e.g. using registry, configuration files

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Stored Programmes (AREA)

Abstract

The application provides a BIOS operation method and an electronic device, wherein the method comprises the following steps: when the electronic equipment is in a shutdown state, a BIOS program of the electronic equipment receives an interface display command sent by an embedded controller of the electronic equipment, wherein the interface control command carries electric quantity information of a battery in the electronic equipment, and the interface display command is used for indicating an electric quantity display interface which outputs the electric quantity information of the battery; and the BIOS program responds to the interface display command and outputs the electric quantity display interface in the display interface of the electronic equipment. The scheme of the application can realize more nimble electric quantity condition for user's show electronic equipment, has reduced the complexity of acquireing electronic equipment electric quantity.

Description

BIOS operation method and electronic equipment
Technical Field
The present disclosure relates to the field of information processing technologies, and in particular, to a BIOS operating method and an electronic device.
Background
In the process of using the electronic device by a user, it is often necessary to know the remaining power condition or the charging condition of the electronic device in time. However, currently, when a user wants to know the power condition of the electronic device, the user must manually turn on the electronic device before seeing the power condition of the electronic device. Therefore, how to simplify the process of acquiring the electric quantity of the electronic device, so that a user can more flexibly acquire the electric quantity condition of the electronic device, is a technical problem that needs to be solved urgently by technical personnel in the field.
Disclosure of Invention
The application aims to provide a BIOS operation method and electronic equipment, so that the electric quantity condition of the electronic equipment can be displayed for a user more flexibly, and the complexity of obtaining the electric quantity of the electronic equipment is reduced.
In order to achieve the purpose, the application provides the following technical scheme:
a BIOS operation method is applied to an electronic device and comprises the following steps:
when the electronic equipment is in a shutdown state, a BIOS program of the electronic equipment receives an interface display command sent by an embedded controller of the electronic equipment, wherein the interface display command carries electric quantity information of a battery in the electronic equipment and is used for indicating and outputting an electric quantity display interface containing the electric quantity information of the battery;
and the BIOS program responds to the interface display command and outputs the electric quantity display interface in the display interface of the electronic equipment.
Preferably, before the BIOS program of the electronic device receives the interface display command sent by the embedded controller of the electronic device, the method further includes:
when the electronic equipment is in a shutdown state, the embedded controller monitors whether the current battery power detection condition is met;
and when the embedded controller detects that the current battery power detection condition is met, acquiring the power information of the battery in the electronic equipment, and sending an interface display command carrying the power information of the battery to the BIOS program.
Preferably, the method further comprises the following steps:
the BIOS program displays at least one configuration item for configuring BIOS parameters in the electric quantity display interface;
the BIOS program detects the configuration operation of the user on the at least one configuration item in the electric quantity display interface;
and the BIOS program acquires the BIOS parameters to be configured according to the configuration operation and stores the BIOS parameters to be configured in a memory associated with the BIOS program.
Preferably, after the storing the BIOS parameter to be configured in the memory associated with the BIOS program, the method further includes:
when the BIOS program detects that the electronic equipment is started, the BIOS parameters to be configured are obtained from a memory associated with the BIOS program, and the BIOS program is configured according to the BIOS parameters to be configured.
Preferably, the detecting, by the BIOS program, the configuration operation of the user on the at least one configuration item in the power display interface includes:
the BIOS program starts an interface detection program, and detects a configuration operation of a user on the at least one configuration item in the electric quantity display interface through the interface detection program, wherein the interface detection program includes: one or more of a mouse detection program and a touch screen detection program.
In another aspect, the present application further provides an electronic device, including:
the system comprises an embedded controller, a processor and a BIOS chip;
the embedded controller is used for acquiring the electric quantity information of a battery in the electronic equipment and sending an interface display command to a BIOS program of the electronic equipment, wherein the interface display command carries the electric quantity information of the battery in the electronic equipment and is used for indicating and outputting an electric quantity display interface containing the electric quantity information of the battery;
the BIOS chip is used for storing the BIOS program;
the processor is used for operating the BIOS program when the electronic equipment is in a shutdown state and when the embedded controller sends an interface display command to the BIOS program, responding to the interface display command through the BIOS program and outputting the electric quantity display interface in the display interface of the electronic equipment.
Preferably, the embedded controller is further configured to monitor whether a battery power detection condition is currently met by the embedded controller when the electronic device is in a shutdown state;
the embedded controller is specifically configured to, when the embedded controller executes the acquiring of the electric quantity information of the battery in the electronic device and sends an interface display command to a BIOS program of the electronic device, acquire the electric quantity information of the battery in the electronic device and send the interface display command carrying the electric quantity information of the battery to the BIOS program when it is detected that a current battery electric quantity detection condition is satisfied.
Preferably, the processor is further configured to display at least one configuration item for configuring a BIOS parameter in the power display interface by running the BIOS program; detecting the configuration operation of a user on the at least one configuration item in the electric quantity display interface; and acquiring the BIOS parameters to be configured according to the configuration operation, and storing the BIOS parameters to be configured into a memory associated with the BIOS program.
Preferably, the processor is further configured to, when the BIOS program detects that the electronic device is started, obtain the BIOS parameter to be configured from a memory associated with the BIOS program by running the BIOS program, and configure the BIOS program according to the BIOS parameter to be configured.
Preferably, when the processor detects a configuration operation of the at least one configuration item in the electric quantity display interface by the user by running the BIOS program, the processor is specifically configured to start an interface detection program by running the BIOS program, and detect the configuration operation of the at least one configuration item in the electric quantity display interface by the user by the interface detection program, where the interface detection program includes: one or more of a mouse detection program and a touch screen detection program.
According to the scheme, in the embodiment of the application, when the electronic equipment is in the shutdown state, the embedded controller can send the electric quantity information of the battery in the electronic equipment acquired by the embedded controller to the BIOS program by sending the interface display command to the BIOS program and trigger the BIOS program to output the electric quantity display interface containing the electric quantity information of the battery in the display interface, so that the electric quantity information of the battery can be flexibly acquired and displayed when the electronic equipment is in the shutdown state, complex operations of firstly starting the battery and then checking the electric quantity of the battery are avoided, and the flexibility and the convenience for acquiring the electric quantity information of the battery in the electronic equipment are improved.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present application, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
Fig. 1 is a schematic flowchart illustrating a BIOS operating method according to an embodiment of the present disclosure;
FIG. 2 is a schematic flow chart illustrating a method for operating a BIOS according to an embodiment of the present disclosure;
FIG. 3 is a schematic flow chart illustrating a method for operating a BIOS according to an embodiment of the present disclosure;
FIG. 4 is a schematic flow chart illustrating a method for operating a BIOS according to an embodiment of the present disclosure;
FIG. 5 is a schematic diagram of an electrical quantity display interface according to an embodiment of the present disclosure;
fig. 6 is a schematic structural diagram of an electronic device according to an embodiment of the present disclosure.
The terms "first," "second," "third," "fourth," and the like in the description and in the claims, as well as in the drawings described above, if any, are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It should be understood that the data so used may be interchanged under appropriate circumstances such that embodiments of the application described herein may be practiced otherwise than as specifically illustrated.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present application, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without inventive step, are within the scope of the present disclosure.
The scheme of the embodiment of the application is realized through the operation of a Basic Input Output System (BIOS) program. The BIOS program is a set of program on a ROM chip on the main board of the solidified computer, and it stores the most important basic input and output program, power-on self-test program and system self-starting program of the computer. The primary function of the BIOS is to provide the lowest level, most direct hardware setup and control for the computer.
In the embodiment of the application, the electric quantity of the electronic equipment is flexibly output through the BIOS, so that a user can more conveniently and flexibly acquire the electric quantity condition of the electronic equipment.
Referring to fig. 1, fig. 1 is a schematic flow chart illustrating a BIOS operating method according to an embodiment of the present disclosure, where the method of the present embodiment may be applied to an electronic device such as a notebook computer and a tablet computer. The method of the embodiment may include:
s101, when the electronic equipment is in a shutdown state, the BIOS program of the electronic equipment receives an interface display command sent by an embedded controller of the electronic equipment.
The interface display command carries the electric quantity information of the battery in the electronic equipment, and is used for indicating and outputting an electric quantity display interface containing the electric quantity information of the battery.
The power-off state is actually what the electronic device would normally be in when a power-off operation is performed on the electronic device. When the electronic device is in the power-off state, the operating system of the electronic device is not started (the operating system is not in the running state), and the operating system of the electronic device cannot respond to the operation of the user.
It can be understood that, when the electronic device is in the shutdown state, the embedded controller EC in the electronic device is still in the running state, and therefore, the embedded controller may still obtain the power condition of the battery in the electronic device, for example, whether the battery is charged, the charging condition, or the power remaining condition of the battery, and so on.
It can be understood that, since the embedded controller cannot control the interface display, in order to output the battery level information of the electronic device, the embedded controller needs to send a command like the BIOS program to transmit the battery level information to the BIOS program and output the battery level information through the BIOS program.
And S102, responding to the interface display command by the BIOS program, and outputting the electric quantity display interface in the display interface of the electronic equipment.
And the electric quantity information of the battery is displayed in the electric quantity display interface. For example, the remaining battery power can be displayed in a digital form, or the battery power can be displayed in a graphic form, and the present application does not limit how the battery power information is displayed.
It can be understood that, in the embodiment of the present application, in order to enable the BIOS program to respond to the interface display command of the embedded controller, a new program code is added to the BIOS program of the electronic device, where the added program code is a part of the modified BIOS program, and may also be considered as a subroutine in the BIOS program, so that the BIOS program may respond to the interface display command through the subroutine, thereby outputting an electric quantity display interface including the battery electric quantity in the display interface of the electronic device.
Therefore, in the embodiment of the application, when the electronic device is in a shutdown state, the embedded controller can send the electric quantity information of the battery in the electronic device, which is acquired by the embedded controller, to the BIOS program by sending the interface display command to the BIOS program, and trigger the BIOS program to output the electric quantity display interface containing the electric quantity information of the battery in the display interface.
It should be noted that, after the embedded controller sends the interface display command to the BIOS program, there are many possibilities for the specific process of outputting the power display interface by the BIOS program in the display interface.
For example, in a possible implementation manner, when the electronic device detects that the BIOS program receives the interface display command, the electronic device starts the BIOS program through the processor when entering a commonly-known booting state, and then performs self-checking through the BIOS program to start the operating system until the electronic device is booted. After the electronic equipment is started, the part of the subprogram newly added in the BIOS program runs, so that the BIOS program displays the electric quantity display interface in the display interface of the electronic equipment.
For another example, in another possible implementation manner, after the BIOS program of the electronic device receives the interface display command, the electronic device enters a power-on state, but when the BIOS program in the electronic device is different from the existing power-on state, the BIOS program in the electronic device runs the part of the new sub-program, so that the BIOS program displays the power display interface in the display interface first. Then, the BIOS program executes power-on self-test, starts the operating system and finally completes the power-on of the electronic equipment. Therefore, in the implementation mode, the process of displaying the electric quantity display interface by the BIOS program is advanced to the time before the electronic equipment is started, so that a user can see the electric quantity information of the battery in time, and then the start-up of the electronic equipment is completed.
For another example, in another possible implementation manner, after receiving the display interface command, the BIOS program of the electronic device maintains the power-off state of the electronic device, that is, the BIOS program does not trigger the power-on of the electronic device, and thus the power-on self-test of the BIOS program and the operation of starting the operating system are not performed. That is to say, when the electronic device is kept in the power-off state, the BIOS program calls an interface of a display interface to output the power display interface to the display interface. In this case, on the premise of not triggering the start of the electronic device, the user can directly see the electric quantity information of the battery in the electronic device in the display interface of the electronic device, so that the requirement of the user for checking the electric quantity of the battery can be met, the power consumption waste caused by the start of the electronic device can be avoided, and the user dislike caused by the start of the computer under the condition that the user does not want to start the electronic device can be avoided.
It can be understood that, in the above embodiments, the embedded controller may obtain the power information of the battery in the electronic device in various ways:
in one possible case, the embedded controller may query the battery of the electronic device for the charge level every preset time.
In yet another possible scenario, a battery level detection condition may be pre-set that triggers the embedded controller to query for battery level. Correspondingly, the embedded controller can monitor whether the battery power detection condition is met currently, and when the battery power detection condition is met currently, the power information of the battery in the electronic equipment is acquired.
For convenience of understanding, the scheme of the embodiment of the present application is described by taking, as an example, that the embedded controller acquires battery power information when the embedded controller satisfies the battery power detection condition. For example, referring to fig. 2, a schematic flow chart of a method for operating a BIOS according to an embodiment of the present application is shown, and the method of the present embodiment is also applied to an electronic device such as a notebook. The method of the embodiment may include:
s201, when the electronic device is in a power-off state, the embedded controller monitors whether the current battery power detection condition is met.
Wherein, the battery power detection condition can be set as required.
For example, the battery charge detection condition may be that the battery charging interface is connected to a power supply. Correspondingly, the embedded controller detects whether a battery charging interface of the electronic equipment is connected with the power supply, and if the battery charging interface of the electronic equipment is connected with the power supply, the battery electric quantity detection condition is confirmed to be met, so that the electric quantity information of the battery in the electronic equipment is triggered and acquired.
Since the battery charging interface of the electronic device is connected with the power supply, the battery of the electronic device may be charged, and in this case, the power of the battery may change, and therefore, in this case, the embedded controller may be triggered to acquire the power information of the battery. Specifically, the power change of a battery in the electronic device can be monitored, and the power information of the electronic device can be acquired when the power of the battery changes.
For another example, in practical applications, in a power-off state of the electronic device, a user may want to know the electronic device at any time, and therefore, a button of the electronic device may be set to trigger the embedded controller to detect the battery level. Correspondingly, the battery power detection condition may also be that the embedded controller detects whether the designated key is touched, and when the designated key is touched, the embedded controller determines that the battery power detection condition is currently satisfied.
The designated key may be set as required, for example, taking a notebook as an example, the designated key may be a space bar in a keyboard.
Of course, the battery charge detection condition may have other possibilities, and is not limited herein.
S202, when the embedded controller detects that the current battery power detection condition is met, acquiring the power information of the battery in the electronic equipment, and sending an interface display command carrying the power information of the battery to the BIOS program.
For example, after querying the power information of the battery, the embedded controller may trigger to generate an interface display command containing the power information and send the interface display command to the BIOS program.
S203, the BIOS program maintains the electronic device in a shutdown state, responds to the interface display command, and outputs the electric quantity display interface in the display interface of the electronic device.
After the BIOS program receives the interface display command, the BIOS program skips executing the power on self test and starting a BIOS program segment of the operating system, responds to the interface display command by a BIOS subroutine (i.e., the newly added program segment in the aforementioned BIOS program) added in the BIOS program for executing the interface display command, and outputs the power display interface to the display interface by the BIOS subroutine.
It is understood that, in the embodiment, the description is given by taking the example of maintaining the electronic device in the power-on state, but the aforementioned cases that the electronic device is powered on first and then outputs the power display interface are also applicable to the embodiment, and the description thereof is omitted here.
It can be understood that, in practical applications, when a user wants to configure BIOS parameters in a computer, the user also needs to enter the BIOS setting interface through a specific operation after starting the computer, and perform configuration of relevant BIOS parameters in the BIOS setting interface, and the process of setting BIOS parameters is complicated. Therefore, in order to reduce the complexity of setting the BIOS parameters, on the basis of the above embodiment, related configuration items for configuring the BIOS parameters may also be displayed in the power display interface.
For example, referring to fig. 3, which shows another flow chart of the BIOS operating method of the present application, the method of the present embodiment may include:
s301, when the electronic device is in a shutdown state, the BIOS program of the electronic device receives an interface display command sent by an embedded controller of the electronic device.
The interface display command carries the electric quantity information of the battery in the electronic equipment, and the interface display command is used for indicating and outputting an electric quantity display interface containing the electric quantity information of the battery.
And S302, responding to the interface display command by the BIOS program, and outputting the electric quantity display interface in the display interface of the electronic equipment.
The steps S302 and S302 can refer to the related description of the previous embodiment, and are not described herein again.
S303, the BIOS program displays at least one configuration item for configuring the BIOS parameter in the power display interface.
The configuration item is used for configuring the BIOS parameters. It is understood that configuring the BIOS parameter includes various situations, such as, for example, taking a value of the BIOS parameter or adjusting a start sequence of each boot program in the BIOS, and therefore, the configuration item may have various functions for configuring the BIOS parameter.
The specific form of the configuration item may be various, for example, one configuration item may be an adjustment input box for adjusting a value corresponding to a certain BIOS parameter, and when the BIOS parameter needs to be adjusted, a target value that needs to be adjusted for the BIOS parameter may be input in the adjustment input box corresponding to the BIOS parameter. As another example, the configuration item may include a plurality of drop-down lists, which may include the order in which the various start-up programs are started. Accordingly, the order of the start-up programs can be changed by adjusting the order of the respective start-up programs in the drop-down list.
For example, referring to fig. 5, a schematic diagram of a power display interface displaying at least one configuration item and a battery power in the embodiment of the present application is shown. As can be seen from fig. 5, a power indication icon 501 indicating the remaining power of the battery is displayed in the power display interface, and the power of the battery in the electronic device can be seen according to the power indication icon 501. Meanwhile, a plurality of configuration items 502 are displayed on the right side of the power indication icon 501. As shown in fig. 5, the first configuration item is used to set whether long term evolution LTE (which may characterize a 3G network) is on, which LTE is set to be on in fig. 5. Correspondingly, the back is also provided with a configuration item for setting whether WIFI, Bluetooth and camera are on, wherein Bluetooth is configured to be on in fig. 5. In addition, a configuration box for configuring the BSB start-up item is also provided in fig. 5, so that the user can input configuration parameters or set operations such as turning on or off.
Of course, fig. 5 is only a schematic diagram of a power display interface, and the configuration items in fig. 5 are only one possible case of configuring the configuration items of the BIOS parameters, and in practical applications, the types of the configuration items in the power display interface may be more. Specifically, the specific form of the configuration item may also be similar to the identity of each configuration item in the existing BIOS configuration interface, and is not described herein again.
It should be noted that the execution sequence of step S302 and step S303 is not limited to that shown in fig. 3, and in practical applications, the two steps may be executed simultaneously. For example, the electronic device may take the power information and the at least one configuration item as content included in the power display interface, and output the power display interface to a display interface, so that the at least one configuration item may be presented in the power display interface.
S304, the BIOS program detects the configuration operation of the user on the at least one configuration item in the electric quantity display interface.
It can be understood that the configuration items displayed in the power display interface are similar to the configuration items configured with the BIOS parameters in the existing BIOS configuration interface, and therefore, the process of the user operating the configuration items displayed in the power display interface can be similar to the conventional process of configuring the BIOS parameters by the user. Therefore, the user can configure the BIOS parameters related to the BIOS program by performing operations such as content input, option selection or adjustment of each parameter sequence in the list on each configuration item in the electric quantity display interface.
It can be understood that, in combination with the aforementioned specific processes of outputting the power display interface by the BIOS program, after the power display interface is displayed on the display interface by the BIOS program, the electronic device may have two states, one is that the electronic device is in a power-on state; the other is that the electronic device maintains a power-off state.
When the electronic device is in the power-on state, the electronic device may detect an input operation of a user through an input device, such as completing configuration of a configuration item through a touch screen, or completing configuration of the configuration item through a mouse.
When the electronic equipment is in a power-off state, the embedded controller can sense user input operations such as key actions of a user and the like, and the embedded controller sends detected information of the user input operations to the BIOS program, so that the BIOS program can analyze the configuration of the configuration item of the user. As an optional manner, in order to improve convenience of operation and convenience of the BIOS program sensing configuration operation of the user on the configuration items, while or after the BIOS program outputs the electric quantity display interface, the BIOS program may start an interface detection program, and detect, by the interface detection program, the configuration operation of the user on the at least one configuration item in the electric quantity display interface.
Wherein, this interface detection procedure includes: one or more of a mouse detection program, a touch screen detection program and a key detection program. The mouse detection program can position the movement of the mouse so as to acquire the input action of the user through the mouse, and correspondingly, the touch screen detection program can sense the touch action of the user in the display interface, so that the BIOS program can know the configuration operation of the user. The same is true for the key detection procedure.
S305, the BIOS program obtains the BIOS parameters to be configured according to the configuration operation, and stores the BIOS parameters to be configured in a memory associated with the BIOS program.
The BIOS parameters to be configured are the BIOS parameters to be configured in the BIOS program, which are acquired according to the configuration operation of the user. According to the BIOS parameters to be configured, the purpose of adjusting the parameter configuration in the BIOS program can be realized.
In this way, after the BIOS parameter to be configured is stored in the memory, the subsequent BIOS program can run the BIOS program according to the BIOS parameter stored in the memory.
The BIOS parameters to be configured can be stored in the memory associated with the BIOS program, and meanwhile, historical BIOS parameters corresponding to the BIOS parameters to be configured, which are stored in the memory, can be deleted.
It can be understood that, after the BIOS parameter to be configured is stored in the BIOS program associated with the BIOS program, when the BIOS program detects that the electronic device is powered on and started, the BIOS parameter to be configured may be obtained from the memory associated with the BIOS program, and the BIOS program may be configured according to the BIOS parameter to be configured.
However, if the BIOS program starts the electronic device before or after outputting the power display interface, that is, performs power on self test and starts an operating system, the electronic device may be in a power on state when storing the parameter to be configured in the memory associated with the BIOS program, and in this case, if the configuration of the BIOS program is to be finally completed, the electronic device needs to be restarted again, so that the BIOS program may be configured according to the BIOS parameter to be configured when the power on BIOS program detects that the electronic device is started.
In order to further improve the convenience of the configuration of the BIOS program, it may be preferable to control the terminal to be in the power-off state when the BIOS program outputs the power display interface. For convenience of understanding, the above case is taken as an example for detailed description, for example, referring to fig. 4, which shows another flow chart of the BIOS operation method according to the embodiment of the present application, where the embodiment includes:
s401, when the electronic device is in a power-off state, the embedded controller monitors whether a battery power detection condition is met currently.
S402, when the embedded controller detects that the current battery power detection condition is met, acquiring the power information of the battery in the electronic equipment, and sending an interface display command carrying the power information of the battery to the BIOS program.
The interface display command is used for indicating an electric quantity display interface which outputs electric quantity information containing the battery.
In this embodiment, the embedded controller obtains the power information of the battery in the electronic device when detecting that the current battery power detection condition is met, but the embedded controller also obtains the power information of the battery in the electronic device according to a preset period or according to other manners, and is also applicable to this embodiment.
And S403, the BIOS program responds to the interface display command, maintains the shutdown state of the electronic device, and outputs an electric quantity display interface in the display interface of the electronic device, wherein the electric quantity display interface comprises electric quantity information of the battery and at least one configuration item for configuring BIOS parameters.
In an embodiment, the BIOS outputs the power display interface including the power information and the at least one configuration item to the display interface while maintaining the power-off state of the electronic device.
S404, the BIOS program starts an interface detection program, and detects the configuration operation of the user on the at least one configuration item in the electric quantity display interface through the interface detection program.
Wherein, this interface detection procedure includes: one or more of a mouse detection program, a touch screen detection program and a key detection program.
The detection of the configuration operation by the interface detection program is only one implementation manner, and the detection of the configuration operation by other manners is also applicable to the embodiment.
S405, the BIOS program obtains the BIOS parameters to be configured according to the configuration operation, and stores the BIOS parameters to be configured in a memory associated with the BIOS program.
S406, when the BIOS program detects the start-up of the electronic device, the BIOS parameters to be configured are obtained from the memory associated with the BIOS program, and the BIOS program is configured according to the BIOS parameters to be configured.
It can be seen that, in this embodiment, in the shutdown state of the electronic device, when the EC meets the power detection condition, the power information of the battery in the electronic device is obtained, and an interface display command including the power information of the battery is sent to the BIOS program, and the BIOS program responds to the interface display command, and while outputting the power interface of the battery, at least one configuration item for configuring the BIOS parameter is displayed in the power interface of the battery, so that a user can see the power condition of the battery and configure the BIOS program without starting the electronic device. Moreover, when the BIOS program outputs the battery power interface, the electronic equipment is still in a shutdown state, so that the user can complete the configuration of the BIOS parameters in the electronic equipment only by starting the electronic equipment once after completing the configuration of the BIOS parameters in the battery power interface, thereby avoiding a series of operations such as configuring the BIOS parameters through complex operations after starting the electronic equipment, and then restarting the electronic equipment to complete the BIOS configuration.
Corresponding to the above BIOS operating method, an embodiment of the present application further provides an electronic device, which may be a tablet computer or a notebook computer.
For example, referring to fig. 6, which shows a schematic structural diagram of an embodiment of an electronic device according to the present application, the electronic device of the present embodiment includes:
an embedded controller 601, a processor 602 and a BIOS chip 603;
the embedded controller 601 is configured to obtain power information of a battery in the electronic device, and send an interface display command to a BIOS program of the electronic device, where the interface display command carries the power information of the battery in the electronic device, and the interface display command is used to instruct an output of a power display interface including the power information of the battery;
the BIOS chip 602 is configured to store the BIOS program;
the processor 603 is configured to run the BIOS program when the electronic device is in a shutdown state and an interface display command sent to the BIOS program by the embedded controller, and output the electric quantity display interface in the display interface of the electronic device by responding to the interface display command through the BIOS program.
Of course, fig. 6 is only a simplified structure of the electronic device, and in practical applications, the electronic device may further include a battery, an input device, a display screen, a sensor, and the like.
In one implementation manner, the embedded controller is further configured to monitor whether a battery power detection condition is currently met by the embedded controller when the electronic device is in a shutdown state;
the embedded controller is specifically configured to, when the embedded controller executes the acquiring of the electric quantity information of the battery in the electronic device and sends an interface display command to a BIOS program of the electronic device, acquire the electric quantity information of the battery in the electronic device and send the interface display command carrying the electric quantity information of the battery to the BIOS program when it is detected that a current battery electric quantity detection condition is satisfied.
In a possible implementation manner, the embedded controller is specifically configured to detect whether a battery charging interface of the electronic device is connected to a power supply when monitoring whether a current battery power detection condition is met; and when the battery charging interface of the electronic equipment is connected with the power supply, the embedded controller determines that the battery electric quantity detection condition is met currently.
In a possible implementation manner, the embedded controller is specifically configured to detect whether the specified key is touched when monitoring whether a current battery power detection condition is met; and when the specified key is touched and pressed, the embedded controller determines that the battery power detection condition is currently met.
In one implementation, the processor is further configured to display, by running the BIOS program, at least one configuration item for configuring a BIOS parameter in the power display interface; detecting the configuration operation of a user on the at least one configuration item in the electric quantity display interface; and acquiring the BIOS parameters to be configured according to the configuration operation, and storing the BIOS parameters to be configured into a memory associated with the BIOS program.
In one implementation manner, the processor is further configured to, when the BIOS program detects that the electronic device is started, obtain the BIOS parameter to be configured from the memory associated with the BIOS program by running the BIOS program, and configure the BIOS program according to the BIOS parameter to be configured.
In one implementation, when the processor detects, by running a BIOS program, a configuration operation of a user on the at least one configuration item in the electric quantity display interface, the processor is specifically configured to start an interface detection program by running the BIOS program, and detect, by the interface detection program, the configuration operation of the user on the at least one configuration item in the electric quantity display interface, where the interface detection program includes: one or more of a mouse detection program and a touch screen detection program.
The previous description of the disclosed embodiments is provided to enable any person skilled in the art to make or use the present application. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the generic principles defined herein may be applied to other embodiments without departing from the spirit or scope of the application. Thus, the present application is not intended to be limited to the embodiments shown herein but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.

Claims (10)

1. A BIOS operation method applied to an electronic device, wherein the electronic device is provided with a BIOS, and the method comprises the following steps:
when the electronic equipment is in a shutdown state, a BIOS program of the electronic equipment receives an interface display command sent by an embedded controller of the electronic equipment, wherein the interface display command carries electric quantity information of a battery in the electronic equipment and is used for indicating and outputting an electric quantity display interface containing the electric quantity information of the battery;
and the BIOS program responds to the interface display command and outputs the electric quantity display interface in the display interface of the electronic equipment under the condition of maintaining the electronic equipment in a shutdown state.
2. The BIOS operation method according to claim 1, before the BIOS program of the electronic device receives the interface display command sent by the embedded controller of the electronic device, further comprising:
when the electronic equipment is in a shutdown state, the embedded controller monitors whether the current battery power detection condition is met;
and when the embedded controller detects that the current battery power detection condition is met, acquiring the power information of the battery in the electronic equipment, and sending an interface display command carrying the power information of the battery to the BIOS program.
3. The BIOS operation method of claim 1 or 2, further comprising:
the BIOS program displays at least one configuration item for configuring BIOS parameters in the electric quantity display interface;
the BIOS program detects the configuration operation of the user on the at least one configuration item in the electric quantity display interface;
and the BIOS program acquires the BIOS parameters to be configured according to the configuration operation and stores the BIOS parameters to be configured in a memory associated with the BIOS program.
4. The method of BIOS operation of claim 3 further comprising, after the storing the BIOS parameter to be configured in the memory associated with the BIOS program:
when the BIOS program detects that the electronic equipment is started, the BIOS parameters to be configured are obtained from a memory associated with the BIOS program, and the BIOS program is configured according to the BIOS parameters to be configured.
5. The BIOS operation method of claim 3, wherein the BIOS program detecting a user configuration operation on the at least one configuration item in the power display interface comprises:
the BIOS program starts an interface detection program, and detects a configuration operation of a user on the at least one configuration item in the electric quantity display interface through the interface detection program, wherein the interface detection program includes: one or more of a mouse detection program and a touch screen detection program.
6. An electronic device, comprising:
the system comprises an embedded controller, a processor and a BIOS chip;
the embedded controller is used for acquiring the electric quantity information of a battery in the electronic equipment and sending an interface display command to a BIOS program of the electronic equipment, wherein the interface display command carries the electric quantity information of the battery in the electronic equipment and is used for indicating and outputting an electric quantity display interface containing the electric quantity information of the battery;
the BIOS chip is used for storing the BIOS program;
the processor is used for operating the BIOS program when the electronic equipment is in a shutdown state and when the embedded controller sends an interface display command to the BIOS program, responding to the interface display command by the BIOS program under the condition that the electronic equipment is maintained in the shutdown state, and outputting the electric quantity display interface in the display interface of the electronic equipment.
7. The electronic device of claim 6, wherein the embedded controller is further configured to monitor whether a battery power detection condition is currently satisfied when the electronic device is in a power-off state;
the embedded controller is specifically configured to, when the embedded controller executes the acquiring of the electric quantity information of the battery in the electronic device and sends an interface display command to a BIOS program of the electronic device, acquire the electric quantity information of the battery in the electronic device and send the interface display command carrying the electric quantity information of the battery to the BIOS program when it is detected that a current battery electric quantity detection condition is satisfied.
8. The electronic device of claim 6 or 7, wherein the processor is further configured to display at least one configuration item for configuring a BIOS parameter in the power display interface by executing the BIOS program; detecting the configuration operation of a user on the at least one configuration item in the electric quantity display interface; and acquiring the BIOS parameters to be configured according to the configuration operation, and storing the BIOS parameters to be configured into a memory associated with the BIOS program.
9. The electronic device of claim 8, wherein the processor is further configured to, when the BIOS program detects that the electronic device is powered on and started, obtain the BIOS parameter to be configured from the memory associated with the BIOS program by running the BIOS program, and configure the BIOS program according to the BIOS parameter to be configured.
10. The electronic device according to claim 8, wherein the processor, when detecting a configuration operation of the at least one configuration item in the power display interface by a user by running a BIOS program, is specifically configured to start an interface detection program by running the BIOS program, and detect the configuration operation of the at least one configuration item in the power display interface by the user by the interface detection program, where the interface detection program includes: one or more of a mouse detection program and a touch screen detection program.
CN201810001795.6A 2018-01-02 2018-01-02 BIOS operation method and electronic equipment Active CN108228279B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810001795.6A CN108228279B (en) 2018-01-02 2018-01-02 BIOS operation method and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810001795.6A CN108228279B (en) 2018-01-02 2018-01-02 BIOS operation method and electronic equipment

Publications (2)

Publication Number Publication Date
CN108228279A CN108228279A (en) 2018-06-29
CN108228279B true CN108228279B (en) 2021-02-19

Family

ID=62642529

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810001795.6A Active CN108228279B (en) 2018-01-02 2018-01-02 BIOS operation method and electronic equipment

Country Status (1)

Country Link
CN (1) CN108228279B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117389657B (en) * 2023-12-12 2024-05-10 荣耀终端有限公司 Electronic equipment starting method, electronic equipment and storage medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101630200A (en) * 2008-07-18 2010-01-20 华硕电脑股份有限公司 Method for executing programs in computer system and correlative computer system
CN102014204A (en) * 2010-10-28 2011-04-13 惠州Tcl移动通信有限公司 Method for displaying time in shutdown state of mobile terminal
CN104849674A (en) * 2015-06-10 2015-08-19 合肥联宝信息技术有限公司 Device and method for displaying battery level

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102567178B (en) * 2010-12-20 2015-08-26 联想(北京)有限公司 A kind of electronic equipment and dump energy Notification Method thereof and starting method
CN105677546A (en) * 2016-02-22 2016-06-15 合肥联宝信息技术有限公司 Method for displaying BIOS debugging information and computer equipment applying method

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101630200A (en) * 2008-07-18 2010-01-20 华硕电脑股份有限公司 Method for executing programs in computer system and correlative computer system
CN102014204A (en) * 2010-10-28 2011-04-13 惠州Tcl移动通信有限公司 Method for displaying time in shutdown state of mobile terminal
CN104849674A (en) * 2015-06-10 2015-08-19 合肥联宝信息技术有限公司 Device and method for displaying battery level

Also Published As

Publication number Publication date
CN108228279A (en) 2018-06-29

Similar Documents

Publication Publication Date Title
EP3652612B1 (en) Method and electronic device for providing mode switching and storage medium thereof
CN107832190B (en) Diagnosis method for power consumption abnormity, mobile terminal and storage medium
EP3001653A1 (en) Method and device for starting debugging port of terminal, and terminal
CN105895979B (en) Terminal charging method and terminal
CN112437914B (en) System recovery method and device
CN107329659B (en) Permission setting method and device, electronic equipment and storage medium
CN102647515B (en) Terminal state displaying control method and device
CN105117110A (en) Method and device for displaying user equipment state on preset interface of application program
CN103294583A (en) Terminal screen control method and mobile terminal
CN108228279B (en) BIOS operation method and electronic equipment
CN111158982A (en) Electronic device, first operating system, data processing method, and storage medium
CN107341007B (en) Display terminal, timing starting method thereof and computer readable storage medium
CN111176958B (en) Information monitoring method, system and storage medium
CN105353964A (en) Input control method, apparatus and terminal equipment
CN112579369B (en) Multithreading brushing system, method, device, equipment and storage medium
CN106598323B (en) Method and device for eliminating touch screen fault and mobile terminal
CN109151144B (en) Hardware management method, device, system, computer equipment and storage medium
CN107526496B (en) Interface display method and device and mobile terminal
CN107509237B (en) Wireless network connection method, mobile terminal and readable storage medium
CN106843440B (en) A kind of mobile terminal restarts control method, device and mobile terminal
CN107203377B (en) Mobile terminal and awakening method thereof
CN106775296B (en) Terminal control method and device
CN113672267A (en) Parameter updating method and device
CN108513013B (en) Mode control method, device, user terminal and readable storage medium
CN115328586A (en) Application program operation control method and device, electronic 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