Power saving method and device, equipment and storage medium

By acquiring the power status and display recognition data of the 2-in-1 computer, the system can determine the connected display device and switch the power status accordingly, thus solving the power saving problem of the 2-in-1 computer in different scenarios and achieving power saving and battery life optimization.

CN121807141APending Publication Date: 2026-04-07LCFC HEFEI ELECTRONICS TECH
View PDF 0 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-11-28
Publication Date
2026-04-07

AI Technical Summary

Technical Problem

How to automatically enter hibernation or shutdown mode in different scenarios and operating states of a 2-in-1 computer to save power consumption and improve battery life.

Method used

By acquiring the power status and display identification data of electronic devices, it determines whether a display device is connected, and based on this information, it adopts corresponding control strategies to switch to a target power status with lower power consumption.

Benefits of technology

It enables automatic entry into power-saving mode under different operating conditions, saving power consumption, optimizing battery life, and extending battery lifespan.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN121807141A_ABST
    Figure CN121807141A_ABST
Patent Text Reader

Abstract

The invention provides a power saving method and device, equipment and a storage medium, and the method comprises the steps: obtaining the power state of the electronic equipment and display recognition data after the electronic equipment is connected with a power supply; based on the display identification data, judging whether the electronic equipment is connected with display equipment to obtain an identification result; the recognition result is used for representing the connection state of the electronic equipment and the display equipment; based on the power supply state of the electronic equipment and the identification result, adopting a corresponding control strategy to control the electronic equipment to be switched from the current power supply state to a target power supply state; wherein the power consumption of the target power state is lower than that of the current power state. The power consumption of the electronic equipment can be reduced, the service life of the battery is optimized, and the service cycle of the battery is prolonged.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] The present application relates to the technical field of electronic devices, and in particular to a power saving method, device, apparatus and storage medium. BACKGROUND

[0002] With the development of notebook computers, two-in-one products of tablets and notebooks have emerged. How to realize the automatic entering of the two-in-one computer into a sleep or shutdown state in different scenarios and different running states, so as to save power consumption and improve the standby and battery life of the computer, has become a problem to be solved. SUMMARY

[0003] The present application provides a power saving method, device, apparatus and storage medium to at least solve the above technical problems in the prior art.

[0004] In a first aspect, the present application provides a power saving method, comprising: After an electronic device is connected to a power source, obtaining a power state in which the electronic device is located and display identification data; Based on the display identification data, determining whether the electronic device is connected to a display device to obtain an identification result; the identification result is used to represent the connection state of the electronic device and the display device; Based on the power state in which the electronic device is located and the identification result, a corresponding control strategy is used to control the electronic device to switch from a current power state to a target power state; Wherein, the power consumption of the target power state is lower than that of the current power state.

[0005] In an implementable manner, the power state in which the electronic device is located comprises at least one of the following: Based on the time length after the electronic device is connected to the target power source, the power state in which the electronic device is located is determined; Based on the indication information output by the target indication component, the power state in which the electronic device is located is determined; Based on the interaction operation of the target control component acting on the electronic device, the power state in which the electronic device is located is determined; Based on the output state change information of the target indication component, the power state in which the electronic device is located is determined.

[0006] In an implementable manner, based on the display identification data, determining whether the electronic device is connected to a display device to obtain an identification result, comprises: Based on the display identification data, determining whether the electronic device is connected to a built-in display device or an external display device; In response to the electronic device being connected to a built-in display device or an external display device, it is determined that the electronic device is connected to a display device. In response to the electronic device not being connected to the built-in display device or the external display device, it is determined that the electronic device is not connected to the display device.

[0007] In an embodiment, the power state includes a first power state; and the control of the electronic device from the current power state to the target power state based on the power state of the electronic device and the identification result includes: When the electronic device is in the first power state, In response to the electronic device not being connected to the display device, the electronic device is controlled to enter the first power saving state when a first target signal is received by the basic input / output system; the first target signal is generated by the embedded controller when it is determined that the electronic device is not connected to the display device. In response to the electronic device being connected to more than one display device, the electronic device is controlled to enter the first power saving state when a second target signal is received by the basic input / output system; the second target signal is generated by the embedded controller when it is determined that the electronic device is in an idle state for a preset time period.

[0008] In an embodiment, the power state includes a second power state; and the control of the electronic device from the current power state to the target power state based on the power state of the electronic device and the identification result includes: When the electronic device is in the second power state, In response to the electronic device not being connected to the display device, the electronic device is controlled to shut down; In response to the electronic device being connected to more than one display device, the electronic device is controlled to start up to the second power saving state.

[0009] In an embodiment, the control of the electronic device to start up to the second power saving state in response to the electronic device being connected to more than one display device includes: In response to the electronic device being connected to the display device, it is determined that the device type of the display device; Based on the device type of the display device, the electronic device is controlled to run to the second power saving state.

[0010] In an embodiment, the first power state is a working state under an operating system; The second power state includes one of a hibernation state, a shutdown state, and a power-on self-test state.

[0011] In a second aspect, the application provides a power saving device, comprising: An acquisition module is configured to acquire a power supply state in which the electronic device is located and display identification data after the electronic device is connected to a power supply. A judgment module is configured to judge whether the electronic device is connected to a display device based on the display identification data, and obtain a recognition result, which represents a connection state between the electronic device and the display device. A control module is configured to control the electronic device to switch from a current power supply state to a target power supply state based on the power supply state in which the electronic device is located and the recognition result, by using a corresponding control strategy. The target power supply state has a lower power consumption than the current power supply state.

[0012] In a third aspect, the present application provides an electronic device, comprising: at least one processor; and a memory connected to the at least one processor in communication; wherein The memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to execute the method described in the present application.

[0013] In a fourth aspect, the present application provides a non-transitory computer readable storage medium storing computer instructions, the computer instructions being used to enable the computer to execute the method described in the present application.

[0014] The power saving method, device, equipment and storage medium of the present application can enable the two-in-one electronic device to automatically enter a power saving mode in different running states, thereby saving power consumption. It can also optimize the battery life and increase the battery use cycle.

[0015] It should be understood that the content described in this part is not intended to identify the key or important features of the embodiments of the present application, nor is it used to limit the scope of the present application. Other features of the present application will become apparent through the following description. BRIEF DESCRIPTION OF DRAWINGS

[0016] The above and other objects, features and advantages of the example embodiments of the present application will be more apparent from the following detailed description read in conjunction with the accompanying drawings, in which several embodiments of the present application are shown by way of example, and in which: In the drawings, the same or corresponding reference numerals refer to the same or corresponding parts.

[0017] Figure 1 An implementation flowchart of the power saving method of the embodiments of the present application is shown; Figure 2 A structure diagram of the power saving device of the embodiments of the present application is shown; Figure 3 A schematic diagram of a composition structure of an electronic device according to an embodiment of the present application is shown. DETAILED DESCRIPTION

[0018] To make the objectives, characteristics and advantages of the present application more apparent and easy to understand, the technical solutions in the embodiments of the present application will be described clearly and completely below with reference to the drawings in the embodiments of the present application. Obviously, the described embodiments are only some of the embodiments of the present application, but not all the embodiments. Based on the embodiments in the present application, all other embodiments obtained by those skilled in the art without creative work fall within the scope of protection of the present application.

[0019] A power saving method, device, apparatus and storage medium provided by the present application are described below with reference to the drawings.

[0020] The power saving method provided by the present application can be implemented by a server. That is, the execution subject of the data fusion method can be a server. The server can be an independent physical server, or a server cluster or distributed system composed of multiple physical servers, or a cloud server providing cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communication, middleware services, domain name services, security services, content distribution network (CDN) services, and basic cloud computing services such as big data and artificial intelligence platforms.

[0021] As shown in Figure 1 A power saving method provided by the present application includes: S101, after the electronic device is connected to the power supply, obtaining the power supply state in which the electronic device is located and display identification data; The electronic device provided by the embodiments of the present application can be a smart terminal or a server; the smart terminal can be a mobile phone, a personal digital assistant (PAD), a tablet computer, a notebook computer, a desktop computer, etc.

[0022] The power supply can be a socket, for example, a socket with a voltage of 220V or 380V used at home, or a power adapter or a power supply unit (PSU) suitable for a notebook or a small host. After the electronic device is powered by the mainboard, it enters the soft shutdown state S5, the hibernation state S4, the sleep state S3, the standby (deeper) S2, the standby (hibernation state) S1, and the normal working state S0 power supply state in sequence.

[0023] It should be noted that the electronic device will generate display identification data when it is connected to a built-in display device or an external display device. When the electronic device is connected to any display device, the display identification data is stored in the EEPROM chip of the display device (built-in screen or external display), and key parameters such as resolution, refresh rate, and manufacturer information of the display device are recorded.

[0024] Exemplarily, when the electronic device is connected to a built-in display device, after the electronic device is powered on, the basic input / output system (BIOS) sends an EDID reading instruction to the driving chip of the built-in display panel through the I2C bus of the embedded controller in the initialization stage (power-on self-test or wake-up), and the display identification data is retrieved. When the electronic device is connected to an external display device, the embedded controller receives the device access signal and sends it to the basic input / output system, and the basic input / output system obtains the display identification data.

[0025] In S102, whether the electronic device is connected to a display device is judged based on the display identification data, and an identification result is obtained; the identification result is used to represent the connection state of the electronic device and the display device. According to the existence or source of the display identification data, whether the electronic device is connected to a display device can be judged, so as to obtain the identification result of the connection state. If the embedded controller does not receive returned data continuously for multiple times of sending an EDID reading request, or detects that the display interface has no "device access signal". For example, the signals of the Type-C interface and the HDMI interface are all low, it is determined that no display device is connected.

[0026] In S103, a corresponding control strategy is adopted to control the electronic device to switch from a current power state to a target power state based on the power state of the electronic device and the identification result. The power consumption of the target power state is lower than that of the current power state.

[0027] According to the working state of the electronic device and the display device connection identification result, the control strategy corresponding to the current working state is adopted to control the electronic device to enter a target power state. The target power state can be a low-power supply mode in which only the core chip is reserved, Exemplarily, when the electronic device is in the S0 working state, and the recognition result is that no display device is connected, the target power state can be the low-power-off state. If the recognition result is that a display device is connected, the target power state can be the low-power working state after wake-up. Alternatively, when the electronic device is in the power-on self-checking state, and the recognition result is that no display device is connected, the target power state can be the state of interrupting the self-checking and entering the low-power-off state, so as to avoid invalid self-checking without a display device and reduce power consumption. If the recognition result is that a display device is connected, the target power state can be the low-power working state after completing the self-checking and entering the display-adapted state.

[0028] The power saving method provided in the application first determines the current power state of the electronic device, then judges whether the electronic device is connected to a display device, and controls the electronic device to enter a target power state according to the current power state and the recognition result of the connection state. The target power state saves power consumption relative to the current power state.

[0029] In some embodiments, the power state of the electronic device is obtained by at least one of the following: determining the power state of the electronic device based on the time length of the electronic device accessing the target power supply; determining the power state of the electronic device based on the indication information output by the target indication component; determining the power state of the electronic device based on the interactive operation of the target control component acting on the electronic device; determining the power state of the electronic device based on the output state change information of the target indication component.

[0030] In the application, when the power state of the electronic device is determined, the time length of the electronic device accessing the power supply can be used for determination. For example, the computer is switched from the G3 state to the S5 state by default after accessing the power supply, and is always in the S5 state without booting operation.

[0031] In the application, the target indication component can be an indication lamp or a display screen or a voice broadcast device associated with a complex programmable logic device, and can also be an indication lamp SOC associated with a baseboard management processor or a system-level chip, or an indication lamp associated with a south bridge chip or a processor. For example, the indication lamp can indicate the indication information by flashing, and the voice broadcast device can indicate the indication information by voice broadcast.

[0032] The power state of the electronic device can also be determined by the indication information output by the target indication component in the present application. For example, the target indication component is a plurality of LED lights. When the plurality of LED lights are all in the constant light state, and at this time the electronic device has accessed the target power supply without performing the power-on operation, it indicates that the computer is in the S5 state. If some of the plurality of LED lights are flashing, the indication information of the LED lights can also be obtained.

[0033] The present application can also determine the power state of the electronic device according to the interactive operation acting on the target space of the electronic device; wherein the interactive operation includes power-on operation, power-off operation, start operation, etc. For example, if the current computer is in the power-off state, after the power-on operation is performed, the computer enters the S4 state, the S3 state, the S2 state, the S1 state, and the S0 state in sequence from the S5 state, and then if the indicator light displays a marquee, the operating system OS state can be loaded and the operating system OS state is entered. If the computer enters the screen-on state from the screen-off state, it can enter the S0 state from the S3 state or the S4 state.

[0034] The present application can also determine the power state of the electronic device by the output state change information of the target indication component. For example, whether the display state of the LED light changes, for example, the LED light changes from the flashing state to the constant light state. If the power-on operation is performed at this time, and after the power-on operation is performed, the LED light changes from the flashing state to the constant light state, then the power state at this time is the S0 state. If the power-on operation is not performed, the power state at this time is the S5 state.

[0035] In some embodiments, the method further comprises: determining whether the electronic device is connected to a built-in display device or an external display device based on the display identification data; determining that the electronic device is connected to a display device in response to the electronic device being connected to a built-in display device or an external display device; determining that the electronic device is not connected to a display device in response to the electronic device not being connected to a built-in display device or an external display device.

[0036] According to the display identification data, it is determined whether the electronic device is connected to a built-in display device or an external display device. If the electronic device is connected to a built-in display device or an external display device, it is determined that the electronic device is connected to a display device. If the electronic device is not connected to a built-in display device or an external display device, it is determined that the electronic device is not connected to a display device.

[0037] The electronic device with the built-in display device can be a notebook computer, a mobile phone, a tablet computer, etc., and the electronic device with the external display device can be a desktop computer, etc. If the display identification data is read through the eDP interface, it is considered that the electronic device is connected with the built-in display device. If the display identification data is read through the Type-C / HDMI interface, it is considered that the electronic device is connected with the external display interface.

[0038] In the present application, the electronic device can be connected with only the built-in display device or only the external display device, can be connected with both the built-in display device and the external display device, or can be connected with no display device. The judgment of whether the electronic device is connected with the display device is to make the electronic device achieve a more energy-saving state in different scenarios.

[0039] In some embodiments, the power state includes a first power state; and the control of the electronic device from the current power state to the target power state based on the power state of the electronic device and the identification result includes: When the electronic device is in the first power state, In response to the electronic device being connected with no display device, when the basic input and output system receives a first target signal, the electronic device is controlled to enter a first power-saving state; the first target signal is generated by the embedded controller when it is determined that the electronic device is connected with no display device. In response to the electronic device being connected with more than one display device, when the basic input and output system receives a second target signal, the electronic device is controlled to enter the first power-saving state; the second target signal is generated by the embedded controller when it is determined that the electronic device is in an idle state for a preset time period.

[0040] In the present application, the first power state is the normal operating state S0 of the operating system. If the identification result is that no display device is connected, the embedded controller continuously monitors the state of the display interface, confirms that "no display device is connected" and the state is stably maintained for 3 seconds, and then sends a first target signal to the basic input and output system (BIOS). The first target signal can be a high-level pulse signal with a "no display device" identifier. The basic input and output system sends an "emergency hibernation notification" to the operating system, cuts off the active power supply of the CPU, memory and graphics card, only keeps the minimum maintenance power supply of the EC and BIOS, and makes the electronic device enter the first power-saving state. The first power-saving state can be the S4 state.

[0041] If the identification result is that the electronic device is connected with a built-in display device or an external display device, the embedded controller collects system activity data in real time. If there is no keyboard / mouse input for 5 minutes continuously, it is determined that the operating system is in a "continuous idle state", and a second target signal is generated. The second target signal is sent to the BIOS. After the BIOS analyzes the signal, an instruction is sent to the display device. The built-in screen backlight is adjusted to 0%, the external 4K display is switched to "standby mode", and the CPU can also be controlled to enter "deep energy-saving mode" to close unnecessary peripherals (such as USB interface, camera) power supply, and the electronic device enters the first power saving state (at this time, the first power saving state can be S3 light hibernation state).

[0042] The electronic device of the present application can intelligently select a power saving path according to the display connection state and the operating system activity, and maximize the reduction of power consumption under the premise of ensuring user experience.

[0043] In some embodiments, the power state includes a second power state; based on the power state in which the electronic device is located and the identification result, a corresponding control strategy is adopted to control the electronic device to switch from the current power state to the target power state, which includes: When the electronic device is in the second power state, In response to the electronic device not being connected to a display device, the electronic device is controlled to shut down; In response to the electronic device being connected to more than one display device, the electronic device is controlled to start to the second power saving state.

[0044] In the present application, the second power state can be any one of S4, S5, and the power-on self-test state WB.

[0045] For example, the electronic device is in the sleep state S4 in the second power state, and the memory data has been written to the hard disk. S4 can be a sleep state triggered by the user closing the notebook cover. If the identification result is that no display device is connected. For example, the user unplugged the built-in screen after opening the cover, and no display is connected. The display identification data is empty. The embedded controller EC detects the cover opening signal, triggers the display device connection state to be re-detected, and no built-in screen EDID display identification data is read through the eDP interface. No device access signal is detected through the Type-C / HDMI interface, and it is confirmed that no display device is connected. At this time, the EC sends a "no display device and sleep state" signal to the basic input / output system BIOS. The basic input / output system BIOS does not need to wake up the operating system, cuts off the mainboard core power supply and only retains the standby circuit of the power supply module, controls the power indicator light to change from sleep flashing to extinguishing, and completes the shutdown.

[0046] Exemplarily, the electronic device is in a complete shutdown state S5 in the second power state. The complete shutdown state S5 can be a normal shutdown for a user, and a power adapter remains connected. The identification result is that more than one display device is connected. The EC detects an external device access signal through a Type-C interface, triggers an EDID reading process, successfully obtains EDID data (manufacturer ID, resolution information, and the like) of a display connected to the docking station, and confirms that an external display device is connected. Then, the EC sends a start signal of a display device connection and a shutdown state to the BIOS, and the BIOS performs a low-power start process. Specifically, unnecessary hardware detection (such as a camera and a fingerprint module) is skipped, and only a CPU, memory, and a display interface are initialized. When an operating system (OS) is started, an energy-saving mode configuration is automatically loaded: CPU performance is limited to 70%, the refresh rate of an external display is fixed to 60 Hz, and background automatic updating is turned off. After the start is completed, the operating system enters a second power-saving state. That is, the electronic device is started from the S5 shutdown state to a low-load working state, which meets basic use requirements and achieves significant power saving through hardware performance limitation.

[0047] Exemplarily, if the electronic device is in a power-on self-test state in the second power state, the BIOS reads EDID data of a built-in screen through an eDP interface in the self-test process, and verifies that the built-in display device is connected (the manufacturer ID matches the device model). Then, the BIOS reads EDID data of the built-in screen through the eDP interface in the self-test process, and verifies that the built-in display device is connected (the manufacturer ID matches the device model). The BIOS adjusts the self-test strategy, and directly enters a low-power configuration after necessary detection is completed. Specifically, the brightness of the built-in screen is set to 50%, the memory overclocking function is limited, and after the operating system is started, a balanced energy-saving mode is automatically entered.

[0048] In the present application, for the sleep / shutdown state: whether to start is determined by "whether there is a display device", no device is maintained or deepened in the shutdown state, and a low-power start is performed when there is a device. For the self-test state: the start parameters are adjusted in combination with the existence of the display device to control power consumption.

[0049] In some embodiments, the response to the electronic device connecting more than one display device includes: In response to the electronic device connecting a display device, determining a device type of the display device; Based on the device type of the display device, controlling the electronic device to run to a second power-saving state.

[0050] It should be noted that the second power saving state in the present application is not a fixed state, but is dynamically adjusted according to the type of display device. For example, the refresh rate is limited when a high-resolution external screen is connected, and the brightness is reduced when a built-in screen is connected, to ensure that the power consumption is optimal under the premise of meeting the display requirements.

[0051] In the present application, the device type determination method of the display device can be that the basic input and output system (BIOS) analyzes the device characteristic field of the built-in screen EDID data, confirms that the screen supports 1Hz-60Hz dynamic refresh rate and local dimming function, and determines whether it is a low-power display device or a high-power display device. The device characteristic field includes vendor characteristic field, resolution / refresh rate range, power consumption identifier, interface power supply requirement, etc. The device type of the display device includes: low-power built-in device, high-power external device, low-power extended device, etc.

[0052] In the present application, when the electronic device processes the second power state, the change of the power state of the electronic device can be realized through a state machine model. The expression of the state machine model is

[0053] Among them, is an input table; is a non-empty finite set of states; is an initial state; is a state transition function; is a set of final states, which is a subset of .

[0054] The power saving method provided by the present application can save the power consumption cost of the electronic device, optimize the battery life, and increase the battery use cycle. Moreover, the technical solution provided by the present application does not need to increase additional hardware, and the implementation is simple.

[0055] As shown in Figure 2 , the present application provides a power saving device, comprising: The acquisition module 201 is configured to acquire the power state of the electronic device and display identification data after the electronic device is connected to the power supply. The judgment module 202 is configured to judge whether the electronic device is connected to the display device based on the display identification data, and obtain an identification result. The identification result is used to represent the connection state of the electronic device and the display device. The control module 203 is configured to control the electronic device to switch from the current power state to the target power state based on the power state of the electronic device and the identification result, and adopt a corresponding control strategy. Among them, the power consumption of the target power state is lower than that of the current power state.

[0056] The power saving device provided in the application obtains the power supply state and display identification data of the electronic device after the electronic device is connected to the power supply through the obtaining module 201; the judging module 202 judges whether the electronic device is connected to the display device based on the display identification data, and obtains a recognition result; the recognition result is used to represent the connection state of the electronic device and the display device; the control module 203 controls the electronic device to switch from the current power supply state to the target power supply state based on the power supply state of the electronic device and the recognition result; wherein the power consumption of the target power supply state is lower than that of the current power supply state.

[0057] It should be noted that the power saving device of the embodiments of the application has similar principles to the foregoing power saving method in solving problems, and therefore the implementation process and implementation principles, and the beneficial effects of the power saving device can be seen from the foregoing description of the implementation process and implementation principles, and the beneficial effects of the method, and the repeated parts will not be described again.

[0058] The embodiments of the application provide an electronic device, comprising: at least one processor; and a memory in communication connection with the at least one processor; wherein the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to execute the method of any of the foregoing embodiments.

[0059] The embodiments of the application provide a non-transient computer readable storage medium storing computer instructions, characterized in that the computer instructions are used to enable a computer to execute the method of any of the foregoing embodiments.

[0060] According to the embodiments of the application, the application further provides an electronic device and a readable storage medium.

[0061] Figure 3 A schematic block diagram of an example electronic device 800 that can be used to implement embodiments of the application is shown. The electronic device is intended to represent various forms of digital computers, such as laptops, desktops, tablets, personal digital assistants, servers, blade servers, mainframes, and other appropriate computers. The electronic device can also represent various forms of mobile devices, such as personal digital assistants, cellular telephones, smartphones, wearable devices, and other similar computing devices. The components shown here, their connections and relationships, and their functions, are meant to be examples only, and are not intended to limit the implementations of the application described and / or claimed in this document.

[0062] As Figure 3As shown, the device 800 includes a computing unit 801 that can perform various appropriate actions and processes in accordance with a computer program stored in a read-only memory (ROM) 802 or a computer program loaded from a storage unit 808 into a random access memory (RAM) 803. Various programs and data required for the operation of the device 800 can also be stored in the RAM 803. The computing unit 801, the ROM 802, and the RAM 803 are connected to each other through a bus 804. An input / output (I / O) interface 805 is also connected to the bus 804.

[0063] A plurality of components in the device 800 are connected to the I / O interface 805, including an input unit 806 such as a keyboard, a mouse, etc., an output unit 807 such as various types of displays, speakers, etc., a storage unit 808 such as a magnetic disk, an optical disk, etc., and a communication unit 809 such as a network card, a modem, a wireless communication transceiver, etc. The communication unit 809 allows the device 800 to exchange information / data with other devices through a computer network such as the Internet or various telecommunication networks.

[0064] The computing unit 801 can be various general-purpose or special-purpose processing components having processing and computing capabilities. Some examples of the computing unit 801 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various specialized artificial intelligence (AI) computing chips, various computing units running machine learning model algorithms, a digital signal processor (DSP), and any appropriate processor, controller, microcontroller, etc. The computing unit 801 performs various methods and processes described above, such as the power saving method. For example, in some embodiments, the power saving method can be implemented as a computer software program that is tangibly embodied in a machine-readable medium, such as the storage unit 808. In some embodiments, part or all of the computer program can be loaded and / or installed on the device 800 via the ROM 802 and / or the communication unit 809. When the computer program is loaded into the RAM 803 and executed by the computing unit 801, one or more steps of the power saving method described above can be performed. Alternatively, in other embodiments, the computing unit 801 can be configured to perform the power saving method by any other appropriate means, such as by means of firmware.

[0065] Various implementations of the systems and techniques described above can be realized in digital electronic circuitry, integrated circuitry, specially designed application specific integrated circuits (ASICs), field programmable gate arrays (FPGAs), computer hardware, firmware, software, and / or combinations thereof. These various implementations can include implementation in one or more computer programs that are executable and / or interpretable on a programmable system including at least one programmable processor, which can be special or general purpose, coupled to receive data and instructions from, and to transmit data and instructions to, a storage system, at least one input device, and at least one output device.

[0066] Program code for carrying out methods of the present application can be written in any combination of one or more programming languages. This program code can be provided to a processor or controller of a general purpose computer, special purpose computer, or other programmable data processing apparatus to produce a machine, such that the program code, when executed by the processor or controller, produces a means for implementing the functions / acts specified in the flowcharts and / or block diagrams. The program code can be executed entirely on a machine, partially on a machine, fully on a machine and partially on a remote machine or entirely on a remote machine or server.

[0067] In the context of the present application, a machine-readable medium can be a tangible medium that contains or stores a program for use by or in connection with an instruction execution system, apparatus, or device. The machine-readable medium can be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium can include but is not limited to an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any suitable combination of the foregoing. More specific examples of the machine-readable storage medium will include one or more lines of electrical connections, portable computer disks, hard disk drives, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or Flash memory), optical fibers, portable compact disc read-only memories (CD-ROMs), optical storage devices, magnetic storage devices, or any suitable combination of the foregoing.

[0068] To provide for interaction with a user, the systems and techniques described here can be implemented on a computer having a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user and a keyboard and a pointing device (e.g., a mouse or a trackball) by which the user can provide input to the computer. Other kinds of devices can be used to provide for interaction with a user as well; for example, feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user can be received in any form, including acoustic, speech, or tactile input.

[0069] The systems and techniques described here can be implemented in a computing system that includes a back end component (e.g., as a data server), or that includes a middleware component (e.g., an application server), or that includes a front end component (e.g., a user computer having a graphical user interface or a Web browser through which a user can interact with an implementation of the systems and techniques described here), or any combination of such back end, middleware, or front end components. The components of the system can be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include a local area network (LAN), a wide area network (WAN), and the Internet.

[0070] The computer system can include clients and servers. A client and server are generally remote from each other and typically interact through a communication network. The relationship of client and server is generally established by computer programs running on the respective computers and having a client-server relationship to each other. The servers can be cloud servers, servers of a distributed system, or servers combined with a blockchain.

[0071] It should be understood that the various forms of flow shown above can be re-ordered, added to, or deleted from without departing from the scope of the present disclosure. For example, the steps recited in the present disclosure can be executed in parallel, in series, or in a different order, as long as the desired results of the present application are achieved, and the present disclosure is not limited herein.

[0072] In addition, the terms "first", "second", etc., are used herein only to describe different instances, and do not imply or suggest relative importance or an implied number of the indicated technical features. Thus, the features defined with "first", "second" can explicitly or implicitly include at least one of the features. In the description of the present application, the meaning of "a plurality" is two or more, unless otherwise specifically limited.

[0073] The above merely provides the specific implementation of the present application, but the protection scope of the present application is not limited to this. Any person skilled in the art can easily think of the changes or replacements within the technical range disclosed by the present application, which should be covered in the protection scope of the present application. Therefore, the protection scope of the present application should be subject to the protection scope of the claims.

Claims

1. A power-saving method, characterized in that, include: After the electronic device is connected to a power source, its power status and display recognition data are obtained. Based on the display recognition data, it is determined whether the electronic device is connected to the display device, and a recognition result is obtained; the recognition result is used to characterize the connection status between the electronic device and the display device; Based on the power state of the electronic device and the identification result, a corresponding control strategy is adopted to control the electronic device to switch from the current power state to the target power state; The power consumption of the target power state is lower than that of the current power state.

2. The method according to claim 1, characterized in that, The acquisition of the power state of the electronic device includes at least one of the following: The power state of the electronic device is determined based on the duration after the electronic device has been connected to the target power source; The power state of the electronic device is determined based on the indication information output by the target indication component; The power state of the electronic device is determined based on the interactive operation of the target control of the electronic device. The power state of the electronic device is determined based on the output state change information of the target indication component.

3. The method according to claim 1, characterized in that, The step of determining whether the electronic device is connected to a display device based on the display recognition data, and obtaining the recognition result, includes: Based on the display recognition data, it is determined whether the electronic device is connected to a built-in display device or an external display device; In response to the electronic device being connected to a built-in display device or an external display device, it is determined that the electronic device is connected to a display device; If the electronic device is not connected to a built-in display device or an external display device, it is determined that the electronic device is not connected to a display device.

4. The method according to claim 1, characterized in that, The power state includes a first power state; the step of controlling the electronic device to switch from the current power state to the target power state using a corresponding control strategy based on the power state of the electronic device and the identification result includes: When the electronic device is in the first power state In response to the electronic device not being connected to a display device, when the basic input / output system receives a first target signal, the electronic device is controlled to enter a first power-saving state; the first target signal is generated by the embedded controller after determining that the electronic device is not connected to a display device. In response to the electronic device being connected to more than one display device, when the basic input / output system receives a second target signal, it controls the electronic device to enter a first power-saving state; the second target signal is generated by the embedded controller when it determines that the electronic device is in an idle state within a preset time period.

5. The method according to claim 4, characterized in that, The power state includes a second power state; the step of controlling the electronic device to switch from the current power state to the target power state using a corresponding control strategy based on the power state of the electronic device and the identification result includes: When the electronic device is in the second power state In response to the electronic device not being connected to a display device, the electronic device is controlled to shut down; In response to the electronic device being connected to more than one display device, the electronic device is controlled to start up to a second power-saving state.

6. The method according to claim 5, characterized in that, The step of controlling the electronic device to start up to a second power-saving state in response to the electronic device being connected to more than one display device includes: In response to the electronic device connecting to the display device, the device type of the display device is determined; Based on the device type of the display device, the electronic device is controlled to operate in a second power-saving state.

7. The method according to claim 5, characterized in that, The first power state is the operating state under the operating system; The second power state includes one of the following: hibernation state, power off state, and power-on self-test state.

8. A power-saving device, characterized in that, include: The acquisition module is used to acquire the power status and display identification data of the electronic device after it is connected to a power source. The judgment module is used to determine whether the electronic device is connected to the display device based on the display recognition data, and to obtain a recognition result; the recognition result is used to characterize the connection status between the electronic device and the display device; The control module is used to control the electronic device to switch from the current power state to the target power state based on the power state of the electronic device and the identification result, using a corresponding control strategy. The power consumption of the target power state is lower than that of the current power state.

9. An electronic device, characterized in that, include: At least one processor; and a memory communicatively connected to the at least one processor; wherein, The memory stores instructions that can be executed by the at least one processor to enable the at least one processor to perform the method of any one of claims 1-7.

10. A computer storage medium, characterized in that, The device contains a computer program that, when executed by a processor, causes the processor to perform the method as described in any one of claims 1 to 7.