CROSS-REFERENCE TO RELATED DISCLOSURE

The present disclosure claims the priority to Chinese Patent Disclosure Nos. 201910580518.X, entitled “A Control Method and Device”, filed on Jun. 28, 2019, the entire content of which is incorporated herein by reference.

TECHNICAL FIELD

The present disclosure relates to control technology, and in particular relates to a control method and device.

BACKGROUND

Advanced Configuration and Power Management Interface (ACPI) defines a new operating interface among Windows 2000, Basic Input Output System (BIOS) and system hardware. These new interfaces include mechanisms that allow Windows 2000 to control power management and device configuration. When the power management state of the personal computer (PC) is in lower-power states such as sleep, dormant, and shutdown, if it is necessary to wake up a component that is in an inactivated state, the user needs to wake up the PC through a key on the keyboard of the PC, mouse or start button. The system of the PC can then be powered up and start again, and switched to the operating state.

SUMMARY

According to one aspect of the present disclosure, a control method is provided. The method includes: establishing a connection by a first electronic device with a second electronic device through a connection component in an activated state; and in response to the established connection, switching, by the first electronic device, a target functional component called by the second electronic device from an inactivated state to an activated state to implement a target function corresponding to the target functional component of the first electronic device. A state of the first electronic device includes: a first state and a second state. When the first electronic device is in the first state, the connection component is in the activated state, the target functional component being in the inactivated state. A power consumption of the first electronic device in the first state is lower than a power consumption of the first electronic device in the second state.

According to another aspect of the present disclosure, an electronic device is provided. The electronic device includes a connection unit and a switching unit. The electronic device is a first electronic device. The connection unit is configured to establish a connection with a second electronic device through a connection component in an activated state. The switching unit is configured to switch a target functional component called by the second electronic device from an inactivated state to the activated state, in response to the established connection, to implement a target function corresponding to the target functional component of the first electronic device. A state of the first electronic device includes: a first state and a second state. When the first electronic device is in the first state, the connection component is in the activated state, and the target functional component is in the inactivated state. A power consumption of the first electronic device in the first state is lower than a power consumption of the first electronic device in the second state.

According to further aspect of the present disclosure, a computer-readable storage medium is provided. The storage medium includes a computer program, when executed, the program causes a processor to: establish a connection between a first electronic device and a second electronic device through a connection component in an activated state; and in response to the established connection, switch a target functional component called by the second electronic device from an inactivated state to an activated state to implement a target function corresponding to the target functional component of the first electronic device. A state of the first electronic device includes: a first state and a second state. When the first electronic device is in the first state, the connection component is in the activated state, and the target functional component is in the inactivated state. A power consumption of the first electronic device in the first state is lower than a power consumption of the first electronic device in the second state.

