CN111324190B - Electronic equipment control method and device, electronic equipment and storage medium - Google Patents

Electronic equipment control method and device, electronic equipment and storage medium Download PDF

Info

Publication number
CN111324190B
CN111324190B CN202010080800.4A CN202010080800A CN111324190B CN 111324190 B CN111324190 B CN 111324190B CN 202010080800 A CN202010080800 A CN 202010080800A CN 111324190 B CN111324190 B CN 111324190B
Authority
CN
China
Prior art keywords
state
electronic device
display interface
electronic equipment
position relation
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
CN202010080800.4A
Other languages
Chinese (zh)
Other versions
CN111324190A (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 CN202010080800.4A priority Critical patent/CN111324190B/en
Publication of CN111324190A publication Critical patent/CN111324190A/en
Application granted granted Critical
Publication of CN111324190B publication Critical patent/CN111324190B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F1/00Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
    • G06F1/26Power supply means, e.g. regulation thereof

Abstract

The embodiment of the application discloses a control method of electronic equipment, the electronic equipment comprises a first body and a second body with a first display device, and the method comprises the following steps: determining that the electronic equipment is in a shutdown state, and acquiring a position relation between the first body and the second body; acquiring a first state of an external display interface of the electronic equipment; a power management module of the control electronics is in a target state associated with the positional relationship and the first state. The embodiment of the application also discloses an electronic equipment control device, electronic equipment and a storage medium.

Description

Electronic equipment control method and device, electronic equipment and storage medium
Technical Field
The present application relates to, but not limited to, the field of computer technologies, and in particular, to an electronic device control method and apparatus, an electronic device, and a storage medium.
Background
At present, when an electronic device is in a shutdown state, a power management module of the electronic device cannot be intelligently controlled, so that the utilization rate of the electronic device is reduced, and the problem of poor experience of a user in using the electronic device is caused.
Disclosure of Invention
Embodiments of the present application are expected to provide an electronic device control method, an electronic device control apparatus, an electronic device, and a storage medium, so as to solve the problem in the related art that when an electronic device is in a shutdown state, a power management module of the electronic device cannot be intelligently controlled, so that a utilization rate of the electronic device is reduced, and a user experience in using the electronic device is poor.
The technical scheme of the application is realized as follows:
an electronic apparatus control method, the electronic apparatus including a first body and a second body having a first display device, the method comprising:
determining that the electronic equipment is in a shutdown state, and acquiring a position relation between the first body and the second body;
acquiring a first state of an external display interface of the electronic equipment;
controlling a power management module of the electronic device to be in a target state associated with the positional relationship and the first state.
Optionally, the method further includes:
acquiring a second state of an advanced configuration and power management interface of the electronic device;
correspondingly, the controlling the power management module of the electronic device to be in a target state associated with the position relationship and the first state includes:
and if the second state accords with a preset state, controlling the power management module to be in a target state associated with the position relation and the first state.
Optionally, the controlling the power management module to be in a target state associated with the position relationship and the first state includes:
if the position relation accords with a target position relation and the first state represents that the external display interface is connected with a second display device, controlling the power supply management module to be in a starting state;
after controlling the power management module to be in the enabled state, the method further comprises: and controlling the first display device of the electronic equipment not to display.
Optionally, the controlling the power management module to be in a target state associated with the position relationship and the first state includes:
and if the position relation accords with the target position relation and the first state represents that the external display interface is not connected with a second display device, controlling the power supply management module to be in a forbidden state.
Optionally, the first state includes a state of the first display interface detected by a power-on detection pin connected to an embedded controller of the electronic device; the external display interface comprises the first display interface.
Optionally, the first state includes a state of the second display interface detected by a power transmission chip connected to an embedded controller of the electronic device; the external display interface comprises the second display interface.
Optionally, the target position relationship represents that a surface of the second body, on which the first display device is disposed, and the first body meet a fitting condition.
An electronic device control apparatus, the electronic device including a first body and a second body having a first display device, comprising:
the obtaining unit is used for determining that the electronic equipment is in a shutdown state and obtaining the position relation between the first body and the second body; acquiring a first state of an external display interface of the electronic equipment;
and the control unit is used for controlling a power management module of the electronic equipment to be in a target state associated with the position relation and the first state.
Optionally, the obtaining unit is further configured to obtain a second state of the advanced configuration and power management interface of the electronic device; and the control unit is also used for controlling the power supply management module to be in a target state associated with the position relation and the first state if the second state accords with the preset state.
Optionally, the control unit is further configured to control the power management module to be in a starting state if the position relationship matches the target position relationship and the first state represents that the external display interface is connected with the second display device; the first display means of the control electronics do not display.
Optionally, the control unit is further configured to control the power management module to be in a disabled state if the position relationship matches the target position relationship and the first state indicates that the external display interface is not connected to the second display device.
Optionally, the first state includes a state of the first display interface detected by a power-on detection pin connected to an embedded controller of the electronic device; the external display interface comprises a first display interface.
Optionally, the first state includes a state of the second display interface detected by a power transmission chip connected to an embedded controller of the electronic device; the external display interface comprises a second display interface.
Optionally, the target position relationship represents that the surface of the second body, on which the first display device is arranged, and the first body meet the fitting condition.
An electronic device, comprising:
a memory for storing executable instructions;
and the processor is used for executing the executable instructions stored in the memory to realize the electronic equipment control method.
A storage medium, characterized in that the storage medium stores one or more programs executable by one or more processors to implement the steps of the electronic device control method as described above.
The electronic equipment control method and device, the electronic equipment and the storage medium provided by the embodiment of the application comprise a first body and a second body with a first display device, and the method comprises the following steps: determining that the electronic equipment is in a shutdown state, and acquiring a position relation between the first body and the second body; acquiring a first state of an external display interface of the electronic equipment; controlling a power management module of the electronic device to be in a target state associated with the positional relationship and the first state; that is to say, the electronic device control method provided in the embodiment of the present application can implement intelligent control over the power management module based on at least two factors, namely, the position relationship between the first body and the second body and the first state of the external display interface of the electronic device, for example, controlling the state of the power management module to switch between the enabled state and the disabled state, thereby improving the utilization rate of the electronic device and effectively improving the user experience.
Drawings
Fig. 1 is a schematic flowchart of a control method of an electronic device according to an embodiment of the present disclosure;
fig. 2 is a schematic flowchart of another electronic device control method according to an embodiment of the present disclosure;
fig. 3 is a schematic flowchart of another electronic device control method according to an embodiment of the present application;
fig. 4 is a schematic diagram illustrating a connection relationship between modules of an electronic device according to an embodiment of the present disclosure;
fig. 5 is a schematic structural diagram of an electronic device control apparatus 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 application.
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.
The embodiment of the application provides an electronic equipment control method, which is applied to electronic equipment, wherein the electronic equipment comprises a first body and a second body with a first display device; referring to fig. 1, the method includes the steps of:
step 101, determining that the electronic device is in a shutdown state, and acquiring a position relation between the first body and the second body.
In the embodiment of the present application, the electronic device may include a mobile terminal device such as a notebook computer, a mobile phone, and the like. The first body and the second body of the electronic device are connected through the connecting piece, so that the first body and the second body are convenient to understand, wherein one end, close to the connecting piece, of the first body and the second body is a fixed end, and the other end, far away from the connecting piece, of the first body and the second body is a movable end; based on the connecting piece, first body and second body form different position relation, and under different position relation, the distance between the expansion end of first body and the expansion end of second body is different.
In some embodiments of the present application, when the electronic device is in a power-off state, the position relationship between the first body and the second body may be detected by a hall sensor. Illustratively, a hall sensor is arranged in the first body, a magnet is arranged in the second body, the magnet is far away from the hall sensor in the process that the first body is far away from the second body, and the magnet is close to the hall sensor in the process that the first body is close to the second body, so that the magnetic field near the hall sensor is changed, and the electronic equipment determines the position relation between the first body and the second body according to the change condition of the magnetic field.
Step 102, obtaining a first state of an external display interface of the electronic device.
In this embodiment of the application, the first state includes a state representing that the external display interface is connected to the external display device or a state representing that the external display interface is not connected to the external display device.
And 103, controlling the power management module of the electronic equipment to be in a target state associated with the position relation and the first state.
In the embodiment of the application, under the condition that the electronic device determines that the electronic device is in the shutdown state, the position relationship between the first body and the second body is acquired, and after the first state of the external display interface of the electronic device is acquired, the power management module of the electronic device is controlled to be in a target state associated with the position relationship and the first state, that is, the electronic device realizes flexible control over the state of the power management module of the electronic device based on the position relationship between the first body and the second body and the first state of the external display interface, and ensures that the electronic device flexibly and intelligently controls the state of the power management module of the electronic device under the shutdown state, controls the power management module to be in the startup state under the condition that the electronic device needs to be started, and controls the power management module to be in the forbidden state under the condition that the electronic device is prevented from being touched by mistake.
The electronic equipment control method provided by the embodiment of the application determines that the electronic equipment is in a shutdown state, and obtains the position relation between the first body and the second body; acquiring a first state of an external display interface of the electronic equipment; controlling a power management module of the electronic device to be in a target state associated with the positional relationship and the first state; that is to say, the electronic device control method provided in the embodiment of the present application can implement intelligent control over the power management module based on at least two factors, namely, the position relationship between the first body and the second body and the first state of the external display interface of the electronic device, for example, controlling the state of the power management module to switch between the enabled state and the disabled state, thereby improving the utilization rate of the electronic device and effectively improving the user experience.
The embodiment of the application provides an electronic equipment control method, which is applied to electronic equipment, wherein the electronic equipment comprises a first body and a second body with a first display device; referring to fig. 2, the method includes the steps of:
step 201, determining that the electronic device is in a shutdown state, and acquiring a position relationship between the first body and the second body.
Step 202, acquiring a first state of an external display interface of the electronic device.
In some embodiments of the present application, the first state includes a state of the first display interface detected by a power-on detection pin connected to an embedded controller of the electronic device; the external display interface comprises a first display interface. Here, the Embedded Controller (EC) plays a global role in managing the whole system before and during the booting process of the electronic device. It should be noted that, in the embodiment of the present application, the power-on detection pin is connected to the EC, so as to detect the first state of the first display interface in the power-off state of the electronic device. Illustratively, the first display Interface includes a High Definition Multimedia Interface (HDMI) and a display Interface (DP).
In other embodiments of the present application, the first state includes a state of the second display interface detected by a power transmission chip connected to an embedded controller of the electronic device; the external display interface comprises a second display interface. Here, the second display interface is connected to the EC through a Power Delivery (PD) chip, and the EC acquires the first state of the second display interface detected by the PD through an I2C Bus (Inter-Integrated Circuit) or a System Management Bus (SMBUS). Here, the second display interface includes a Type C USB interface (USB Type-C). The PD chip may obtain a first state of the external display interface of the USB Type-C through a Configuration Channel (CC) communication logic.
Step 203, acquiring a second state of the advanced configuration and power management interface of the electronic device.
In the embodiment of the present application, the Advanced Configuration and Power Interface (ACPI) has six states, which are S0 to S5; wherein, S0 refers to an operating state, all devices are fully on, and power consumption generally exceeds 80W; s1 is also called pos (power on suspend) mode, in which except that the CPU is turned off by a Central Processing Unit (CPU) clock controller, other components still work normally, and the power consumption is generally below 30W; s2 indicates that the CPU is in a stop state, the bus clock is also closed, but the rest equipment still runs; s3 indicates Suspend To RAM (STR) mode, where power consumption does not exceed 10W; s4 refers to Suspend To Disk (STD), when the main power of the operating system is turned off, the hard Disk stores data information before S4, so S4 is more power-saving than S3; s5 indicates that all devices connected to the power source are all off, i.e., in a power-off state, and the power consumption is 0.
And 204, if the second state accords with the preset state, controlling the power management module to be in a target state associated with the position relation and the first state.
In the embodiment of the present application, the preset states include S3, S4, and S5. After the electronic device obtains the advanced configuration of the electronic device and the second state of the power management interface, if the second state is determined to be the S3, S4 or S5 state, the electronic device controls the power management module to be in the target state associated with the position relationship and the first state. That is, when the electronic device is in the low power consumption mode, the state of the power management module is controlled based on the position relationship and the first state; for example, when the electronic device is a notebook computer, the notebook computer is in the state of S3, S4, or S5, and further, when the notebook computer is in the state of closing the cover when the notebook computer is closed, the notebook computer controls the power management module of the notebook computer to be in the target state, such as the enabled state or the disabled state, based on the position relationship between the first body and the second body of the notebook computer and the first state of the external display interface; therefore, the power management module can be forbidden under the condition of preventing mistaken touch, and can be started under the condition that the external display interface is inserted into the external display device, so that the power management module is flexibly controlled, the intelligent degree of the electronic equipment is improved, and the waste of system power consumption is avoided.
The embodiment of the application provides an electronic equipment control method, which is applied to electronic equipment, wherein the electronic equipment comprises a first body and a second body with a first display device; referring to fig. 3, the method includes the steps of:
step 301, determining that the electronic device is in a shutdown state, and acquiring a position relationship between the first body and the second body.
Step 302, obtaining a first state of an external display interface of the electronic device.
And step 303, if the position relationship accords with the target position relationship and the first state represents that the external display interface is connected with a second display device, controlling the power management module to be in a starting state.
In the embodiment of the application, the target position relationship represents that the surface of the second body, which is provided with the first display device, and the first body meet the fitting condition. Here, when the surface of the second body on which the first display device is provided and the first body satisfy the attaching condition, a distance between the surface of the second body on which the first display device is provided and the first body in a thickness direction of the body of the electronic apparatus is within a target distance.
In some embodiments of the application, the electronic device determines that the position relationship between the first body and the second body conforms to the target position relationship, the first state represents that the external display interface is connected with the second display device, and the power management module is controlled to be in the enabled state, at this time, the electronic device is started up, so that the electronic device is ensured to be used as a host of the external display device, and the purpose of performing display control on the external display device is achieved.
In some embodiments of the present application, in step 303, if the position relationship conforms to the target position relationship and the first state represents that the external display interface is connected to the second display device, after controlling the power management module to be in the enabled state, the electronic device controls the first display device to not display; for example, the electronic device is a notebook computer, and at this time, the notebook computer is turned on and controls a first display device of the notebook computer, such as a display screen, not to be displayed or not to be lighted, and meanwhile, the notebook computer is used as a host of an external display device to realize display control of the external display device; therefore, the utilization rate of the electronic equipment is improved while the energy consumption is saved.
And step 304, if the position relation accords with the target position relation and the first state represents that the external display interface is not connected with the second display device, controlling the power supply management module to be in a forbidden state.
In some embodiments of the application, the electronic device determines that the position relationship between the first body and the second body conforms to the target position relationship, the first state represents that the external display interface is not connected with the second display device, the control power management module is in a disabled state, and at this time, the electronic device is still in a power-off state, so that the phenomenon that the electronic device is powered on by mistake due to misoperation of a power-on key is avoided. Therefore, according to the electronic device control method provided by the embodiment of the application, different requirements of a user on the electronic device under different scenes are accurately distinguished based on the position relationship between the first body and the second body and different states of the external display interface of the electronic device, and the state of the power management module is flexibly controlled, so that the behavior of the startup key of the electronic device is optimized, the control strategy is ensured to meet the real requirements of the user in the process of using the electronic device, and the user experience of the notebook computer under different modes is improved.
With reference to the connection relationship between the modules of the electronic device shown in fig. 4, a further description is made of an electronic device control method provided in the embodiment of the present application, in which the information processing method is applied to an electronic device, the electronic device includes a first body and a second body having a first display device, and the method includes the following steps:
step1, the electronic device obtains the operating state of the operating system shutdown S5 through the EC.
Step2, the electronic device acquires an LID signal through the EC, and determines whether the position relation between the first body and the second body is a target position relation, namely, closing the cover, based on the LID signal.
Step3, the electronic device obtains a Hot Plug Detection (HPD) signal of the HDMI/DP interface through the EC, and determines whether to externally connect the display device based on the HPD signal.
Step4, the electronic equipment acquires the state of the external display interface of the USB type C through the PD chip through the CC communication logic.
And Step5, the electronic equipment acquires the working state of the PD relative to the external display interface based on I2C/SMBUS through the EC.
Step6, when the second state of the advanced configuration and power management interface of the electronic device is the S5 power state, and the electronic device is in the power-off and cover-closing state, and the external display device is connected, the EC turns on the function of the power control switch to control the power management module to be in the start-up state, and at this time, the operating system of the electronic device can be started up under the cover-closing state.
Step7, when the operating system of the electronic device is in the S5 power state and the electronic device is in the power-off and cover-closing state at the same time, and the electronic device determines that there is no external display device, the EC disables the function of the power control switch and controls the power management module to be in the disabled state, so that the user cannot perform the power-on operation on the electronic device in this state, that is, the electronic device cannot be powered on at this time.
Step8, when the operating system of the electronic device is in the power state of S5 and the electronic device is turned off but not covered by the box, the EC turns on the power control switch function, and the operating system of the electronic device can be normally turned on.
An embodiment of the present application provides an electronic device control apparatus, which may be applied to an electronic device control method provided in an embodiment corresponding to fig. 1 to 3, where an electronic device includes a first body and a second body having a first display device; referring to fig. 5, the electronic device control apparatus 5 includes:
the obtaining unit 51 is configured to determine that the electronic device is in a shutdown state, and obtain a position relationship between the first body and the second body; acquiring a first state of an external display interface of the electronic equipment;
and a control unit 52 for controlling the power management module of the electronic device to be in a target state associated with the position relationship and the first state.
In other embodiments of the present application, the obtaining unit 51 is further configured to obtain a second state of the advanced configuration and power management interface of the electronic device; the control unit 52 is further configured to control the power management module to be in a target state associated with the position relationship and the first state if the second state meets the preset state.
In other embodiments of the present application, the control unit 52 is further configured to control the power management module to be in the enabled state if the position relationship matches the target position relationship and the first state indicates that the external display interface is connected to the second display device; the first display means of the control electronics do not display.
In other embodiments of the present application, the control unit 52 is further configured to control the power management module to be in a disabled state if the position relationship meets the target position relationship and the first state indicates that the external display interface is not connected to the second display device.
In other embodiments of the present application, the first state includes a state of the first display interface detected by a power-on detection pin connected to an embedded controller of the electronic device; the external display interface comprises a first display interface.
In other embodiments of the present application, the first state includes a state of the second display interface detected by a power transmission chip connected to an embedded controller of the electronic device; the external display interface comprises a second display interface.
In other embodiments of the present application, the target position relationship represents that the surface of the second body, on which the first display device is disposed, and the first body satisfy the fitting condition.
The electronic equipment control device provided by the embodiment of the application comprises a first body and a second body with a first display device, wherein the electronic equipment control device determines that the electronic equipment is in a power-off state and acquires the position relation between the first body and the second body; acquiring a first state of an external display interface of the electronic equipment; controlling a power management module of the electronic device to be in a target state associated with the positional relationship and the first state; that is to say, the electronic device control method provided in the embodiment of the present application can implement intelligent control over the power management module based on at least two factors, namely, the position relationship between the first body and the second body and the first state of the external display interface of the electronic device, for example, controlling the state of the power management module to switch between the enabled state and the disabled state, thereby improving the utilization rate of the electronic device and effectively improving the user experience.
It should be noted that, for the descriptions of the same steps and the same contents in this embodiment as those in other embodiments, reference may be made to the descriptions in other embodiments, which are not described herein again.
An embodiment of the present application provides an electronic device, where the electronic device includes a first body and a second body having a first display device, and the electronic device may be applied to a method for controlling an electronic device provided in the embodiment corresponding to fig. 1 to 3, and as shown in fig. 6, the electronic device 6 (the electronic device 6 in fig. 6 corresponds to the electronic device control apparatus 5 in fig. 5) includes: a processor 61, a memory 62, and a communication bus 63, wherein:
the communication bus 63 is used to implement a communication connection between the processor 61 and the memory 62.
The processor 61 is configured to execute an electronic device control program stored in the memory 62 to implement the steps of:
determining that the electronic equipment is in a shutdown state, and acquiring a position relation between the first body and the second body;
acquiring a first state of an external display interface of the electronic equipment;
a power management module of the control electronics is in a target state associated with the positional relationship and the first state.
In other embodiments of the present application, the processor 61 is configured to execute an electronic device control program stored in the memory 62 to implement the following steps:
acquiring a second state of the advanced configuration and power management interface of the electronic equipment;
correspondingly, the power management module for controlling the electronic device is in a target state associated with the position relationship and the first state, and the method comprises the following steps:
and if the second state accords with the preset state, controlling the power management module to be in a target state associated with the position relation and the first state.
In other embodiments of the present application, the processor 61 is configured to execute an electronic device control program stored in the memory 62 to implement the following steps:
if the position relation accords with the target position relation and the first state represents that the external display interface is connected with a second display device, controlling the power supply management module to be in a starting state;
after controlling the power management module to be in the enabled state, the method further comprises: the first display means of the control electronics do not display.
In other embodiments of the present application, the processor 61 is configured to execute an electronic device control program stored in the memory 62 to implement the following steps:
and if the position relation accords with the target position relation and the first state represents that the external display interface is not connected with the second display device, controlling the power supply management module to be in a forbidden state.
In other embodiments of the present application, the first state includes a state of the first display interface detected by a power-on detection pin connected to an embedded controller of the electronic device; the external display interface comprises a first display interface.
In other embodiments of the present application, the first state comprises a state of the second display interface detected by a power transfer chip connected to an embedded controller of the electronic device; the external display interface comprises a second display interface.
In other embodiments of the present application, the target position relationship represents that the surface of the second body, on which the first display device is disposed, and the first body satisfy the fitting condition.
The electronic equipment provided by the embodiment of the application comprises a first body and a second body with a first display device, and the method comprises the following steps: determining that the electronic equipment is in a shutdown state, and acquiring a position relation between the first body and the second body; acquiring a first state of an external display interface of the electronic equipment; controlling a power management module of the electronic device to be in a target state associated with the positional relationship and the first state; that is to say, the electronic device control method provided in the embodiment of the present application can implement intelligent control over the power management module based on at least two factors, namely, the position relationship between the first body and the second body and the first state of the external display interface of the electronic device, for example, controlling the state of the power management module to switch between the enabled state and the disabled state, thereby improving the utilization rate of the electronic device and effectively improving the user experience.
It should be noted that, in the embodiment, a specific implementation process of the step executed by the processor may refer to implementation processes in the electronic device control method provided in the embodiments corresponding to fig. 1 to 3, and details are not described here.
Embodiments of the application provide a computer readable storage medium storing one or more programs, the one or more programs being executable by one or more processors to perform the steps of:
determining that the electronic equipment is in a shutdown state, and acquiring a position relation between the first body and the second body;
acquiring a first state of an external display interface of the electronic equipment;
a power management module of the control electronics is in a target state associated with the positional relationship and the first state.
In other embodiments of the present application, the one or more programs are executable by the one or more processors and further implement the steps of:
acquiring a second state of the advanced configuration and power management interface of the electronic equipment;
correspondingly, the power management module for controlling the electronic device is in a target state associated with the position relationship and the first state, and the method comprises the following steps:
and if the second state accords with the preset state, controlling the power management module to be in a target state associated with the position relation and the first state.
In other embodiments of the present application, the one or more programs are executable by the one or more processors and further implement the steps of:
if the position relation accords with the target position relation and the first state represents that the external display interface is connected with a second display device, controlling the power supply management module to be in a starting state;
after controlling the power management module to be in the enabled state, the method further comprises: the first display means of the control electronics do not display.
In other embodiments of the present application, the one or more programs are executable by the one or more processors and further implement the steps of:
and if the position relation accords with the target position relation and the first state represents that the external display interface is not connected with the second display device, controlling the power supply management module to be in a forbidden state.
In other embodiments of the present application, the first state includes a state of the first display interface detected by a power-on detection pin connected to an embedded controller of the electronic device; the external display interface comprises a first display interface.
In other embodiments of the present application, the first state comprises a state of the second display interface detected by a power transfer chip connected to an embedded controller of the electronic device; the external display interface comprises a second display interface.
In other embodiments of the present application, the target position relationship represents that the surface of the second body, on which the first display device is disposed, and the first body satisfy the fitting condition.
The storage medium provided by the embodiment of the application determines that the electronic equipment is in a shutdown state, and acquires the position relation between the first body and the second body; acquiring a first state of an external display interface of the electronic equipment; controlling a power management module of the electronic device to be in a target state associated with the positional relationship and the first state; that is to say, the electronic device control method provided in the embodiment of the present application can implement intelligent control over the power management module based on at least two factors, namely, the position relationship between the first body and the second body and the first state of the external display interface of the electronic device, for example, controlling the state of the power management module to switch between the enabled state and the disabled state, thereby improving the utilization rate of the electronic device and effectively improving the user experience.
It should be noted that, in the embodiment, a specific implementation process of the step executed by the processor may refer to implementation processes in the electronic device control method provided in the embodiments corresponding to fig. 1 to 3, and details are not described here.
As will be appreciated by one skilled in the art, embodiments of the present application may be provided as a method, system, or computer program product. Accordingly, the present application may take the form of a hardware embodiment, a software embodiment, or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, optical storage, and the like) having computer-usable program code embodied therein.
The present application is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the application. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
The above description is only a preferred embodiment of the present application, and is not intended to limit the scope of the present application.

Claims (8)

1. An electronic apparatus control method, the electronic apparatus including a first body and a second body having a first display device, the method comprising:
determining that the electronic equipment is in a shutdown state, and acquiring a position relation between the first body and the second body;
acquiring a first state of an external display interface of the electronic equipment;
if the position relation accords with a target position relation and the first state represents that the external display interface is connected with a second display device, controlling the power supply management module to be in a starting state; the target position relation represents that the surface of the second body, provided with the first display device, and the first body meet a fitting condition;
and controlling the first display device of the electronic equipment not to display.
2. The method of claim 1, further comprising:
acquiring a second state of an advanced configuration and power management interface of the electronic device;
and if the second state accords with a preset state, controlling the power management module to be in a target state associated with the position relation and the first state.
3. The method of claim 1 or 2, further comprising:
and if the position relation accords with the target position relation and the first state represents that the external display interface is not connected with a second display device, controlling the power supply management module to be in a forbidden state.
4. The method according to claim 1 or 2, wherein the first state comprises a state of the first display interface detected by a power-on detection pin connected to an embedded controller of the electronic device; the external display interface comprises the first display interface.
5. The method of claim 1 or 2, the first state comprising a state of a second display interface detected by a power transfer chip connected to an embedded controller of the electronic device; the external display interface comprises the second display interface.
6. An electronic device control apparatus, the electronic device including a first body and a second body having a first display device, comprising:
the obtaining unit is used for determining that the electronic equipment is in a shutdown state and obtaining the position relation between the first body and the second body; acquiring a first state of an external display interface of the electronic equipment;
the control unit is used for controlling the power supply management module to be in a starting state if the position relation accords with a target position relation and the first state represents that the external display interface is connected with a second display device; the target position relation represents that the surface of the second body, provided with the first display device, and the first body meet a fitting condition; and controlling the first display device of the electronic equipment not to display.
7. An electronic device, comprising:
a memory for storing executable instructions;
a processor for executing the executable instructions stored in the memory to implement the electronic device control method of any one of claims 1 to 5.
8. A storage medium characterized in that the storage medium stores one or more programs executable by one or more processors to implement the steps of the electronic device control method according to any one of claims 1 to 5.
CN202010080800.4A 2020-02-05 2020-02-05 Electronic equipment control method and device, electronic equipment and storage medium Active CN111324190B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010080800.4A CN111324190B (en) 2020-02-05 2020-02-05 Electronic equipment control method and device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010080800.4A CN111324190B (en) 2020-02-05 2020-02-05 Electronic equipment control method and device, electronic equipment and storage medium

Publications (2)

Publication Number Publication Date
CN111324190A CN111324190A (en) 2020-06-23
CN111324190B true CN111324190B (en) 2022-02-18

Family

ID=71170909

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010080800.4A Active CN111324190B (en) 2020-02-05 2020-02-05 Electronic equipment control method and device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN111324190B (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101051242A (en) * 2006-04-05 2007-10-10 华硕电脑股份有限公司 Power supply control method and device for computer system
CN101788842A (en) * 2009-01-22 2010-07-28 纬创资通股份有限公司 Power management device for computer system and related method thereof and computer system
CN102541172A (en) * 2010-12-30 2012-07-04 名硕电脑(苏州)有限公司 Flip type electronic device and control method thereof
CN103246318A (en) * 2012-02-09 2013-08-14 鸿富锦精密工业(深圳)有限公司 Notebook computer

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7117380B2 (en) * 2003-09-30 2006-10-03 International Business Machines Corporation Apparatus, system, and method for autonomic power adjustment in an electronic device
KR102317803B1 (en) * 2015-01-23 2021-10-27 삼성전자주식회사 Electronic device and method for controlling a plurality of displays
CN107463317B (en) * 2016-06-03 2021-08-13 联想(北京)有限公司 Control method and electronic equipment

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101051242A (en) * 2006-04-05 2007-10-10 华硕电脑股份有限公司 Power supply control method and device for computer system
CN101788842A (en) * 2009-01-22 2010-07-28 纬创资通股份有限公司 Power management device for computer system and related method thereof and computer system
CN102541172A (en) * 2010-12-30 2012-07-04 名硕电脑(苏州)有限公司 Flip type electronic device and control method thereof
CN103246318A (en) * 2012-02-09 2013-08-14 鸿富锦精密工业(深圳)有限公司 Notebook computer

Also Published As

Publication number Publication date
CN111324190A (en) 2020-06-23

Similar Documents

Publication Publication Date Title
TWI477970B (en) Mode switch method of electronic device and assocaited electronic device
EP1920308B1 (en) Method and apparatus for supplying power, and display device
US9367446B2 (en) Computer system and data recovery method for a computer system having an embedded controller
JP2010108423A (en) Information processor
JP2012123673A (en) Power supply switching device, power supply switching device control method, and power supply control program
EP4235442A2 (en) Electronic device and method of utilizing storage space thereof
CN107885683B (en) Terminal and current testing method thereof
TW201321949A (en) Power control method during booting and system thereof
CN112596742A (en) BMC software upgrading method, device, equipment and machine readable storage medium
KR101741225B1 (en) A power saving apparatus and method of a computer system using SIO
US9356459B2 (en) Method for charging battery and electronic device thereof
US20140143528A1 (en) Information Processing Apparatus and Control Method
JP2014021807A (en) Electronic device and start-up control method
CN111324190B (en) Electronic equipment control method and device, electronic equipment and storage medium
CN104461604A (en) Information processing method and electronic equipment
CN101281416A (en) Method for ensuring system closedown completion
US20160099584A1 (en) Electronic apparatus and controlling method thereof
US8954717B2 (en) System capable of booting through a universal serial bus device and method thereof
US20150123875A1 (en) Power management device and method
US20130326404A1 (en) Disable Feature of Computing Device
CN107436854B (en) Method for supplying power to main board of terminal based on CPCI power supply and terminal
CN112998328A (en) Control method and device of atomization equipment and computer equipment
WO2015151169A1 (en) Control device and electronic apparatus
CN105446903A (en) Information processing method and electronic device
US9423850B2 (en) System and method of power control for embedded systems without advanced configuration and power interface (ACPI)

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