WO2013123863A1 - 一种休眠方法、唤醒方法和移动终端设备 - Google Patents

一种休眠方法、唤醒方法和移动终端设备 Download PDF

Info

Publication number
WO2013123863A1
WO2013123863A1 PCT/CN2013/071611 CN2013071611W WO2013123863A1 WO 2013123863 A1 WO2013123863 A1 WO 2013123863A1 CN 2013071611 W CN2013071611 W CN 2013071611W WO 2013123863 A1 WO2013123863 A1 WO 2013123863A1
Authority
WO
WIPO (PCT)
Prior art keywords
mobile terminal
terminal device
processor
sleep
service
Prior art date
Application number
PCT/CN2013/071611
Other languages
English (en)
French (fr)
Inventor
何淼
Original Assignee
华为终端有限公司
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 华为终端有限公司 filed Critical 华为终端有限公司
Publication of WO2013123863A1 publication Critical patent/WO2013123863A1/zh

Links

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
    • G06F1/32Means for saving power
    • G06F1/3203Power management, i.e. event-based initiation of a power-saving mode
    • G06F1/3234Power saving characterised by the action undertaken

Definitions

  • the present invention relates to the field of communications technologies, and in particular, to a sleep method, a wake-up method, and a mobile terminal device. Background technique
  • the touch screen of the above mobile terminal device consumes a large amount of energy, when the user does not need to use the above-mentioned mobile
  • the touch screen of the mobile terminal device is often turned off by using the standby function, so that the mobile terminal device is in the off-screen standby state, and when the user needs to use the mobile terminal device, the wake-up function is
  • the touch screen of the mobile terminal device in the standby state starts to work normally to save the power consumption of the mobile terminal device, so as to extend the use time of the mobile terminal device.
  • the user can turn off the mobile terminal device by temporarily shutting down, and when the mobile terminal device needs to be used, the above problem can be solved by restarting the mobile terminal device to start normal operation, however, the mobile terminal device After the system startup and system program are loaded during the boot process, the mobile terminal device will gradually enter the system, but the boot process will be very long. If the user urgently needs to use the mobile terminal device, the prior art boot process will allow The user waits for a long time, which affects the user experience of the mobile terminal device, thereby reducing Low user experience.
  • Embodiments of the present invention provide a sleep method, a wake-up method, and a mobile terminal device to save power consumption of the mobile terminal device.
  • a sleep method including:
  • the mobile terminal device When it is determined that the mobile terminal device is selected to be dormant, the mobile terminal device records service state information related to the data connection;
  • the control processor enters sleep mode.
  • a wake-up method including:
  • the processor that has entered sleep is woken up; the data connection-related service in the open state that is turned off in the sleep mode is restored to cause the mobile terminal device to enter the system.
  • a mobile terminal device applied to sleep comprising:
  • a recording unit configured to record service state information related to the data connection when determining that the mobile terminal device is selected to be dormant;
  • a closing unit configured to close the data connection related service in an open state according to the recorded service status information related to the data connection
  • a control unit is configured to control the processor to enter a sleep mode.
  • a mobile terminal device applied to wake up comprising:
  • a wake-up unit configured to wake up a processor that has entered sleep when it is determined that the mobile terminal device needs to be woken up;
  • the recovery unit is configured to restore the data connection-related service in the open state that is turned off in the sleep mode, so that the mobile terminal device enters the system.
  • the embodiment of the present invention provides a technical solution, by shutting down an open data connection-related service, and controlling the processor to enter a sleep mode, thereby turning off the use of the data connection-related service and the processor, thereby reducing the mobile terminal device in Compared with the prior art, the power consumption in the standby state is more energy-consuming than the prior art, and the power consumption of the mobile terminal device is saved more than the prior art, thereby further extending the mobile terminal device. The usage time, and also does not require the user to select the way to shut down to save power consumption of the mobile terminal device, thereby improving the user experience.
  • FIG. 1 is a flowchart of a sleep method according to Embodiment 1 of the present invention.
  • FIG. 2 is a flowchart of a sleep method according to Embodiment 2 of the present invention.
  • FIG. 3 is a flowchart of a sleep method according to Embodiment 3 of the present invention.
  • Embodiment 4 is a flowchart of a sleep method according to Embodiment 4 of the present invention.
  • FIG. 5 is a flowchart of a wake-up method according to Embodiment 5 of the present invention.
  • FIG. 6 is a flowchart of a wake-up method according to Embodiment 6 of the present invention.
  • FIG. 7 is a flowchart of a wake-up method according to Embodiment 7 of the present invention.
  • FIG. 8 is a flowchart of a wake-up method according to Embodiment 8 of the present invention.
  • FIG. 9 is a structural diagram of a mobile terminal device according to Embodiment 1 of the present invention.
  • FIG. 10 is a structural diagram of a mobile terminal device according to Embodiment 2 of the present invention
  • FIG. 11 is a structural diagram of a mobile terminal device according to Embodiment 3 of the present invention
  • FIG. 13 is a structural diagram of a mobile terminal device according to Embodiment 5 of the present invention
  • FIG. 14 is a schematic diagram of a mobile terminal device according to Embodiment 5 of the present invention
  • FIG. 15 is a structural diagram of a mobile terminal device according to Embodiment 7 of the present invention
  • FIG. 16 is a structural diagram of a mobile terminal device according to Embodiment 8 of the present invention.
  • the user when the user does not need to use the mobile terminal device, the user can make the current mobile terminal device enter the sleep mode by manual selection or system setting, or automatically select the standby function through the system of the mobile terminal device to make the current
  • the mobile terminal device enters the sleep mode; and when the user needs to use the mobile terminal device, the current mobile terminal device is awakened by a user operation, and the current mobile terminal device can also be woken up by the system of the mobile terminal device automatically selecting the wake-up function.
  • the mobile terminal device may refer to a smart phone or a tablet computer.
  • the above-mentioned sleep mode refers to the pseudo shutdown of the mobile terminal device, but it is not really shut down, and may also be referred to as a standby mode.
  • the description will be made below.
  • FIG. 1 is a flowchart of a sleep method according to Embodiment 1 of the present invention.
  • the mobile terminal device in step S10, when it is determined that the mobile terminal device is selected to be dormant, the mobile terminal device records the service status information related to the data connection.
  • the services related to the data connection include GPS, WIFI, Bluetooth, etc. .
  • the mobile terminal device has a current usage state when the mobile terminal device is in normal use. When entering the sleep state, the mobile terminal device records the current open state and the shutdown state information of the service, and the record is recorded. The status information is used for subsequent wake-up of the mobile terminal device.
  • whether the mobile terminal device is selected to enter hibernation can be determined by means of manual selection by the user or automatic selection by the system. Described separately below.
  • the first case When determining whether to select the mobile terminal device to enter hibernation by means of manual selection by the user, the method may include:
  • the mobile terminal device When the mobile terminal device detects that the user manually presses the power button on the mobile terminal device for a long time, The mobile terminal device prompts the user to select whether to enter the sleep mode through the selection box, or whether to enter the shutdown mode;
  • the mobile terminal device starts step S10;
  • the mobile terminal device When the user selects the shutdown mode, the mobile terminal device performs a normal shutdown process, that is, shuts down.
  • the mobile terminal device can provide an application for selecting a hibernation for the user to manually select, and the application for selecting the hibernation can be displayed on the touch screen of the mobile terminal device, when determining whether to select the mobile terminal device to enter hibernation by means of manual selection by the user.
  • the mobile terminal device detects whether the user triggers the application for selecting to sleep
  • the mobile terminal device When the mobile terminal device detects that the user triggers the application for selecting the hibernation, the mobile terminal device starts step S10.
  • the method further includes: the mobile terminal device providing a selection box for selecting to enter the sleep mode in the system setting interface, for the user to select.
  • the mobile terminal device When the mobile terminal device detects that the user manually presses the power button on the mobile terminal device for a long time, determines whether the selection box of the sleep mode in the system setting interface is selected;
  • the mobile terminal device starts step S10;
  • the mobile terminal device If it is determined that the selection mode of the sleep mode in the system setting interface is not selected, that is, it is determined that the user does not select the sleep mode, the mobile terminal device performs a normal shutdown process, that is, shuts down.
  • the mobile terminal device may further prompt the user to select whether to enter the sleep mode or enter the shutdown mode through the selection box.
  • the second case When determining whether to select the mobile terminal device to enter hibernation by means of automatic selection by the system, the method may include:
  • the mobile terminal device detects whether it is currently in a charging state, or a High Definition Multimedia Interface (High Definition Multimedia Interface, HDMI) has been inserted into the HDMI cable;
  • a High Definition Multimedia Interface High Definition Multimedia Interface, HDMI
  • the mobile terminal device When the mobile terminal device detects that it is currently in a charging state or HDMI has been inserted, the mobile terminal device goes to a normal shutdown process;
  • the mobile terminal device When the mobile terminal device detects that it is not currently in the charging state or the HDMI is not inserted, the mobile terminal device automatically selects the sleep mode instead of the shutdown, and proceeds to step S10.
  • the method may further include:
  • the mobile terminal device detects whether a power interface is inserted into the power line event
  • the mobile terminal device When the mobile terminal device detects that the power interface is inserted into the power line event, the mobile terminal device automatically selects the sleep mode to replace the shutdown, and proceeds to step S10.
  • the mobile terminal device when the power interface and the USB interface are the same on the mobile terminal device, when the mobile terminal device detects that the USB interface is inserted into the USB cable, the mobile terminal device goes through the normal shutdown process.
  • step S12 the data connection related service in the open state is closed according to the recorded service status information related to the data connection.
  • turning off the services associated with the data connection that are turned on includes turning on the airplane mode and turning off the G PS.
  • Step S14 the control processor enters a sleep mode.
  • the processor when the control processor enters sleep mode, the processor will no longer process the services of the communication and application.
  • the processor can be controlled to enter the sleep mode by setting the current operating state of the processor to the sleep state.
  • the processor may include a plurality of types of processors such as a single core, a dual core, and a quad core.
  • the processor when the processor is a single core, since the communication service and the application service are processed by one processor, the processor directly controlling the single core enters a sleep mode; when the processor is a dual core, it needs to be controlled.
  • the processor processing the communication service and the processor of the application service enter a sleep mode; when the processor is a quad core, the processor controlling the communication service and the processor of the application service need to enter a sleep mode. And so on.
  • a multi-core processor it is necessary to control the processor that handles the communication service and the processor of the application service to enter the sleep mode.
  • the mobile terminal device After the application service of the processor enters the sleep mode, the mobile terminal device When the screen is off, it indicates that the mobile terminal device has entered the sleep mode.
  • the sleep method provided in the embodiment of the present invention can turn off the service related to the data connection and the use of the processor by turning off the service related to the data connection and controlling the processor to enter the sleep mode, thereby reducing the mobile terminal.
  • the device consumes more energy-consuming services and devices than the prior art, and saves the power consumption of the mobile terminal device more than the prior art, thereby further extending the mobile terminal.
  • the usage time of the device and also does not require the user to select the way to shut down to save power consumption of the mobile terminal device.
  • an additional operation may be optionally added.
  • the sleep effect is displayed by an animation or a waiting box on the display screen of the mobile terminal device, or the sleep progress is prompted by the sound.
  • the above operations can be performed simultaneously with other steps.
  • the sleep effect is displayed on the display screen of the mobile terminal device through an animation or a waiting box, or the user is prompted by the sound prompting sleep progress to improve the user experience.
  • Kill or shut down non-core processes includes a core process, a phone process, a SYSTEM-U ID process, and an android. process. media process.
  • killing or shutting down a non-core process means killing or shutting down processes other than the above core processes.
  • the energy consumption of the mobile terminal device can be further reduced.
  • FIG. 2 is a flowchart of a sleep method according to Embodiment 2 of the present invention.
  • step S20 it is determined whether the mobile terminal device is selected to be dormant.
  • whether the mobile terminal device is selected to enter hibernation can be determined by means of manual selection by the user or automatic selection by the system. Described separately below.
  • the first case when determining whether to select the mobile terminal device to enter hibernation by means of manual selection by the user, the method may include: When the mobile terminal device detects that the user manually presses the power button on the mobile terminal device for a long time, the mobile terminal device prompts the user to select whether to enter the sleep mode or enter the shutdown mode through the selection box;
  • the mobile terminal device When the user selects the sleep mode, the mobile terminal device starts steps S22 and S24;
  • the mobile terminal device When the user selects the shutdown mode, the mobile terminal device performs a normal shutdown process, that is, shuts down.
  • the mobile terminal device can provide an application for selecting a hibernation for the user to manually select, and the application for selecting the hibernation can be displayed on the touch screen of the mobile terminal device, when determining whether to select the mobile terminal device to enter hibernation by means of manual selection by the user.
  • the mobile terminal device detects whether the user triggers the application for selecting to sleep
  • the mobile terminal device When the mobile terminal device detects that the user triggers the application for selecting the sleep, the mobile terminal device starts steps S22 and S24.
  • the method further includes: the mobile terminal device providing a selection box for selecting to enter the sleep mode in the system setting interface, for the user to select.
  • the mobile terminal device When the mobile terminal device detects that the user manually presses the power button on the mobile terminal device for a long time, determines whether the selection box of the sleep mode in the system setting interface is selected;
  • the mobile terminal device starts steps S22 and S24;
  • the mobile terminal device If it is determined that the selection mode of the sleep mode in the system setting interface is not selected, that is, it is determined that the user does not select the sleep mode, the mobile terminal device performs a normal shutdown process, that is, shuts down.
  • the mobile terminal device may further prompt the user to select whether to enter the sleep mode or enter the shutdown mode through the selection box.
  • the second case When determining whether to select the mobile terminal device to enter hibernation by means of automatic selection by the system, the method may include:
  • the mobile terminal device detects whether it is currently In the state of charge, or whether the High Definition Multimedia Interface (HDMI) has been inserted;
  • HDMI High Definition Multimedia Interface
  • the mobile terminal device When the mobile terminal device detects that it is currently in a charging state or HDMI has been inserted, the mobile terminal device normally shuts down the process;
  • the mobile terminal device When the mobile terminal device detects that it is not currently in the charging state or HDMI is not inserted, the mobile terminal device automatically selects the sleep mode to replace the shutdown, and the mobile terminal device starts steps S22 and S24.
  • the method may further include:
  • the mobile terminal device detects whether a power interface is inserted into the power line event
  • the mobile terminal device When the mobile terminal device detects that the power interface has been inserted into the power line event, the mobile terminal device automatically selects the sleep mode to replace the shutdown, and proceeds to steps S22 and S24.
  • the mobile terminal device when the power interface and the USB interface are the same on the mobile terminal device, when the mobile terminal device detects that the USB interface is inserted into the USB cable, the mobile terminal device goes through the normal shutdown process.
  • Step S22 When it is determined that the mobile terminal device is selected to be dormant, the sleep effect is displayed on the display screen of the mobile terminal device by an animation or a waiting box, or the sleep progress is prompted by the sound mode.
  • step S22 While performing step S22, the following steps can be performed simultaneously:
  • Step S24 When it is determined that the mobile terminal device is selected to be dormant, the mobile terminal device records the service status information related to the data connection.
  • the services related to the data connection include GPS, WIFI, Bluetooth, and the like.
  • the mobile terminal device since the foregoing service has a current use state when the mobile terminal device is in normal use, when entering the sleep state, the mobile terminal device records the current use state information of the service, and the recorded state information is The device is used to wake up the mobile terminal device.
  • Step S26 the service state related to the data connection is turned off.
  • turning off the services associated with the data connection that are turned on includes turning on the airplane mode and turning off the G PS.
  • Step S28 the control processor enters a sleep mode.
  • the processor when the control processor enters In sleep mode, the processor will no longer process communications and application services.
  • the processor can be controlled to enter the sleep mode by setting the current operating state of the processor to the sleep state.
  • the processor may include a plurality of types of processors such as a single core, a dual core, and a quad core.
  • the processor when the processor is a single core, since the communication service and the application service are processed by one processor, the processor directly controlling the single core enters a sleep mode; when the processor is a dual core, it needs to be controlled.
  • the processor processing the communication service and the processor of the application service enter a sleep mode; when the processor is a quad core, the processor controlling the communication service and the processor of the application service need to enter a sleep mode. And so on.
  • a multi-core processor it is necessary to control the processor that handles the communication service and the processor of the application service to enter the sleep mode.
  • step S22 may end the operation to indicate that the mobile terminal device has now entered the sleep mode.
  • the sleep method provided in the embodiment of the present invention can turn off the service related to the data connection and the use of the processor by turning off the service related to the data connection and controlling the processor to enter the sleep mode, thereby reducing the mobile terminal.
  • the device consumes more energy-consuming services and devices than the prior art, and saves the power consumption of the mobile terminal device more than the prior art, thereby further extending the mobile terminal. The time of use of the device.
  • FIG. 3 is a flowchart of a sleep method according to Embodiment 3 of the present invention.
  • step S30 it is determined whether the mobile terminal device is selected to be dormant.
  • whether the mobile terminal device is selected to enter hibernation can be determined by means of manual selection by the user or automatic selection by the system. Described separately below.
  • the first case When determining whether to select the mobile terminal device to enter hibernation by means of manual selection by the user, the method may include:
  • the mobile terminal device When the mobile terminal device detects that the user manually presses the power button on the mobile terminal device for a long time, the mobile terminal device prompts the user to select whether to enter the sleep mode through the selection box, or whether to enter the shutdown mode;
  • the mobile terminal device When the user selects the sleep mode, the mobile terminal device starts step S32; When the user selects the shutdown mode, the mobile terminal device performs a normal shutdown process, that is, shuts down.
  • the mobile terminal device can provide an application for selecting a hibernation for the user to manually select, and the application for selecting the hibernation can be displayed on the touch screen of the mobile terminal device, when determining whether to select the mobile terminal device to enter hibernation by means of manual selection by the user. , can also include:
  • the mobile terminal device detects whether the user triggers the application for selecting to sleep
  • the mobile terminal device When the mobile terminal device detects that the user triggers the application for selecting to sleep, the mobile terminal device starts step S32.
  • the method further includes: the mobile terminal device providing a selection box for selecting to enter the sleep mode in the system setting interface, for the user to select.
  • the mobile terminal device When the mobile terminal device detects that the user manually presses the power button on the mobile terminal device for a long time, determines whether the selection box of the sleep mode in the system setting interface is selected;
  • the mobile terminal device starts step S32;
  • the mobile terminal device If it is determined that the selection mode of the sleep mode in the system setting interface is not selected, that is, it is determined that the user does not select the sleep mode, the mobile terminal device performs a normal shutdown process, that is, shuts down.
  • the mobile terminal device may further prompt the user to select whether to enter the sleep mode or enter the shutdown mode through the selection box.
  • the second case When determining whether to select the mobile terminal device to enter hibernation by means of automatic selection by the system, the method may include:
  • the mobile terminal device detects whether it is currently in a charging state, or whether a High Definition Multimedia Interface (HDMI) has been inserted;
  • HDMI High Definition Multimedia Interface
  • the mobile terminal device When the mobile terminal device detects that it is currently in the charging state or the HDMI has been inserted, the mobile terminal device goes to the normal shutdown process; When the mobile terminal device detects that it is not currently in the charging state or the HDMI is not inserted, the mobile terminal device automatically selects the sleep mode instead of the shutdown, and the mobile terminal device starts step S32.
  • the method may further include:
  • the mobile terminal device detects whether a power interface is inserted into the power line event
  • the mobile terminal device When the mobile terminal device detects that the power interface is inserted into the power line event, the mobile terminal device automatically selects the sleep mode instead of shutting down, and proceeds to step S32.
  • the mobile terminal device when the power interface and the USB interface are the same on the mobile terminal device, when the mobile terminal device detects that the USB interface is inserted into the USB cable, the mobile terminal device goes through the normal shutdown process.
  • Step S32 When it is determined that the mobile terminal device is selected to be dormant, the mobile terminal device records the service status information related to the data connection.
  • the services related to the data connection include GPS, WIFI, Bluetooth, and the like.
  • the mobile terminal device since the foregoing service has a current use state when the mobile terminal device is in normal use, when entering the sleep state, the mobile terminal device records the current use state information of the service, and the recorded state information is The device is used to wake up the mobile terminal device.
  • Step S34 the service state related to the data connection is turned off.
  • turning off the services associated with the data connection that are turned on includes turning on the airplane mode and turning off the G PS.
  • Step S36 killing or shutting down the non-core process.
  • the core process includes a core process, a phone process, a SYSTEM_U ID process, and an android.process.media process.
  • killing or shutting down a non-core process means killing or shutting down processes other than the above-described core processes.
  • Step S38 the control processor enters a sleep mode.
  • the processor when the control processor enters sleep mode, the processor will no longer process the services of the communication and application.
  • the processor can be controlled to enter the sleep mode by setting the current operating state of the processor to the sleep state.
  • the processor may include multiple types of processors such as a single core, a dual core, and a quad core.
  • processors such as a single core, a dual core, and a quad core.
  • the processor when the processor is a single core, since the communication service and the application service are Processors are processed, so that the processor directly controlling the single core enters the sleep mode; when the processor is dual-core, the processor that controls the communication service and the processor of the application service need to enter the sleep mode; when the processor is a quad core
  • the processor that controls the communication service and the processor of the application service enter the sleep mode. And so on.
  • the mobile terminal device is turned off, indicating that the mobile terminal device has entered the sleep mode.
  • the sleep method provided in the embodiment of the present invention can turn off the service related to the data connection and the use of the processor by turning off the service related to the data connection and controlling the processor to enter the sleep mode, thereby reducing the mobile terminal.
  • the device consumes more energy-consuming services and devices than the prior art, and saves the power consumption of the mobile terminal device more than the prior art, thereby further extending the mobile terminal.
  • the time of use of the device Moreover, on the basis of the first embodiment, since the non-core process is killed or closed, the energy consumption of the mobile terminal device can be further reduced.
  • FIG. 4 is a flowchart of a sleep method according to Embodiment 4 of the present invention.
  • step S40 it is determined whether the mobile terminal device is selected to be dormant.
  • whether the mobile terminal device is selected to enter hibernation can be determined by means of manual selection by the user or automatic selection by the system. Described separately below.
  • the first case When determining whether to select the mobile terminal device to enter hibernation by means of manual selection by the user, the method may include:
  • the mobile terminal device When the mobile terminal device detects that the user manually presses the power button on the mobile terminal device for a long time, the mobile terminal device prompts the user to select whether to enter the sleep mode through the selection box, or whether to enter the shutdown mode;
  • the mobile terminal device starts steps S42 and S44;
  • the mobile terminal device When the user selects the shutdown mode, the mobile terminal device performs a normal shutdown process, that is, shuts down.
  • the mobile terminal device can provide an application for selecting a hibernation for the user to manually select, which The application for selecting the hibernation can be displayed on the touch screen of the mobile terminal device.
  • the method may further include:
  • the mobile terminal device detects whether the user triggers the application for selecting to sleep
  • the mobile terminal device When the mobile terminal device detects that the user triggers the application for selecting the sleep, the mobile terminal device starts steps S42 and S44.
  • the method further includes: the mobile terminal device providing a selection box for selecting to enter the sleep mode in the system setting interface, for the user to select.
  • the mobile terminal device When the mobile terminal device detects that the user manually presses the power button on the mobile terminal device for a long time, determines whether the selection box of the sleep mode in the system setting interface is selected;
  • the mobile terminal device starts steps S42 and S44;
  • the mobile terminal device If it is determined that the selection mode of the sleep mode in the system setting interface is not selected, that is, it is determined that the user does not select the sleep mode, the mobile terminal device performs a normal shutdown process, that is, shuts down.
  • the mobile terminal device may further prompt the user to select whether to enter the sleep mode or enter the shutdown mode through the selection box.
  • the second case When determining whether to select the mobile terminal device to enter hibernation by means of automatic selection by the system, the method may include:
  • the mobile terminal device detects whether it is currently in a charging state, or whether a High Definition Multimedia Interface (HDMI) has been inserted;
  • HDMI High Definition Multimedia Interface
  • the mobile terminal device When the mobile terminal device detects that it is currently in a charging state or HDMI has been inserted, the mobile terminal device goes to a normal shutdown process;
  • the mobile terminal device When the mobile terminal device detects that it is not currently in the charging state or the HDMI is not inserted, the mobile terminal device automatically selects the sleep mode to replace the shutdown, and the mobile terminal device starts step S42 and S44.
  • the method may further include:
  • the mobile terminal device detects whether a power interface is inserted into the power line event
  • the mobile terminal device When the mobile terminal device detects that the power interface has been inserted into the power line event, the mobile terminal device automatically selects the sleep mode to replace the shutdown, and proceeds to steps S42 and S44.
  • the mobile terminal device when the power interface and the USB interface are the same on the mobile terminal device, when the mobile terminal device detects that the USB interface is inserted into the USB cable, the mobile terminal device goes through the normal shutdown process.
  • Step S42 When it is determined that the mobile terminal device is selected to be dormant, the sleep effect is displayed on the display screen of the mobile terminal device by an animation or a waiting box, or the sleep progress is prompted by the sound mode.
  • step S42 While performing step S42, the following steps can be performed simultaneously:
  • Step S44 When it is determined that the mobile terminal device is selected to be dormant, the mobile terminal device records the service status information related to the data connection.
  • the services related to the data connection include GPS, WIFI, Bluetooth, and the like.
  • the mobile terminal device since the foregoing service has a current use state when the mobile terminal device is in normal use, when entering the sleep state, the mobile terminal device records the current use state information of the service, and the recorded state information is The device is used to wake up the mobile terminal device.
  • Step S46 the service state related to the data connection is turned off.
  • turning off the services associated with the data connection that are turned on includes turning on the airplane mode and turning off the G PS.
  • Step S48 killing or shutting down the non-core process.
  • the core process includes a core process, a phone process, a SYSTEM_U ID process, and an android.process.media process.
  • killing or shutting down a non-core process means killing or shutting down processes other than the above-described core processes.
  • Step S49 the control processor enters a sleep mode.
  • the processor when the control processor enters the sleep mode, the processor will no longer process the services of the communication and application.
  • the processor can be controlled to enter the sleep mode by setting the current operating state of the processor to the sleep state.
  • the processor may include multiple types of processors such as a single core, a dual core, and a quad core.
  • the processor when the processor is a single core, since the communication service and the application service are processed by one processor, the processor directly controlling the single core enters a sleep mode; when the processor is a dual core, it needs to be controlled.
  • the processor processing the communication service and the processor of the application service enter a sleep mode; when the processor is a quad core, the processor controlling the communication service and the processor of the application service need to enter a sleep mode. And so on. In the case of a multi-core processor, it is necessary to control the processor that handles the communication service and the processor of the application service to enter the sleep mode.
  • step S42 may end the operation to indicate that the mobile terminal device has entered the sleep mode.
  • the sleep method provided in the embodiment of the present invention can turn off the service related to the data connection and the use of the processor by turning off the service related to the data connection and controlling the processor to enter the sleep mode, thereby reducing the mobile terminal.
  • the device consumes more energy-consuming services and devices than the prior art, and saves the power consumption of the mobile terminal device more than the prior art, thereby further extending the mobile terminal.
  • the time of use of the device Moreover, on the basis of the first embodiment, since the non-core process is killed or closed, the energy consumption of the mobile terminal device can be further reduced.
  • the mobile terminal device after the mobile terminal device is dormant, if the user needs to re-enable the hibernated mobile terminal device, the mobile terminal device needs to be woken up.
  • the current mobile terminal device is awakened by a user operation, and the current mobile terminal device can also be woken up by the system of the mobile terminal device automatically selecting the wake-up function.
  • FIG. 5 is a flowchart of a wake-up method according to Embodiment 5 of the present invention.
  • step S50 when it is determined that the mobile terminal device needs to be woken up, the processor that has entered sleep is woken up.
  • the application service of the processor when the processor is a single core, the application service of the processor may be waking up first, and then the communication service of the processor may be awake; or the application service of the processor may be awake only, and the processor is not woken up.
  • the communication service is understood to wake up the processor's application service first, and then determine whether to wake up the processor's communication service; it can also wake up the processor's application service and communication service.
  • the application service of the processor may be waking up first, and then the communication service of the processor may be awake; or the application service of the processor may be awake only, and the process of not waking up the communication service of the processor may include:
  • the communication service of the processor is not woken up.
  • the processor When the processor is dual-core, it is required to wake up the processor that processes the communication service and the processor of the application service, wherein the processor that processes the application service can be awake first, and then the processor that processes the communication service is awake; or the processing application service can be only awake.
  • the processor does not wake up the processor that handles the communication service; it can also wake up the processor that processes the application service and the communication service at the same time.
  • the processor When the processor is a quad core, it is required to wake up the processor that processes the communication service and the processor of the application service, wherein the processor that processes the application service can be awake first, and then the processor that processes the communication service is awake; or the processing application can be only awake.
  • the processor of the service does not wake up the processor that processes the communication service; or it is understood to wake up the processor that processes the application service, and then determine whether to wake up the processor that processes the communication service; or wake up the application service and communication service at the same time. processor.
  • the process of processing the processor of the application service may be awakened, and determining whether to wake up the processor of the communication service may include:
  • the communication service of the processor is not woken up.
  • the process of determining that the mobile terminal device needs to be woken up may include: detecting whether the power button of the current mobile terminal device is pressed, or detecting whether the power interface of the current mobile terminal device is inserted into the power line, or detecting the current mobile Whether the HDMI of the terminal device is inserted into the HDMI cable, or detecting whether the SIM card of the current mobile terminal device is plugged or unplugged; it can also be understood as detecting whether the current mobile terminal device has an event that the power button is pressed, or whether it has occurred.
  • An event in which the power interface is plugged into the power cord, or an event in which HDMI is inserted into the HDMI cable, or an event in which the SIM card is inserted or removed occurs;
  • the power button of the current mobile terminal device If it is detected that the power button of the current mobile terminal device is pressed, or detects that the power interface of the current mobile terminal device is inserted into the power line, or detects that the HDMI of the current mobile terminal device is inserted into the HDMI line, or detects the SIM of the current mobile terminal device If the card is plugged and unplugged, it is determined that the mobile terminal device needs to be woken up; it can also be understood that it is detected that the current mobile terminal device has an event that the power button is pressed, or an event occurs in which the power interface is inserted into the power line, or occurs. An event in which the HDM I is inserted into the HDM I line, or an event in which the SIM card is inserted or removed occurs, determining that the mobile terminal device needs to be woken up;
  • the power button of the current mobile terminal device is not pressed, or detects that the power interface of the current mobile terminal device is not inserted into the power line, or detects that the current mobile terminal device's HDMI is not inserted into the HDMI line, or detects the current mobile terminal If the SIM card of the device is not plugged or unplugged, it is determined that the mobile terminal device does not need to be woken up; it can also be understood that it is detected that the current mobile terminal device does not have an event that the power button is pressed, or the power interface is not inserted.
  • Step S52 restoring the data connection-related service in the open state that is turned off in the sleep mode, so that the mobile terminal device enters the system.
  • the services related to the data connection include GPS, WIFI, Bluetooth, and the like.
  • the mobile terminal device Before entering the hibernation, the mobile terminal device records the current open state and the shutdown state information of the foregoing service, and when entering the hibernation, needs to turn off the data connection-related service in the open state, thereby waking up the mobile terminal device In this case, it is necessary to restore the open data connection-related service that is turned off in the sleep mode.
  • the mobile terminal device After performing the above steps, it can be considered that the mobile terminal device has been woken up, and the mobile terminal device enters the system and displays the screen after the booting.
  • the wake-up method provided in the embodiment of the present invention when determining that the mobile terminal device needs to wake up, wakes up the processor that has entered sleep, and restores the data connection-related service in the open state that is turned off in the sleep mode, thereby finally waking up
  • the mobile terminal device enters the system and displays the screen after the booting. Compared with the normal booting process in the prior art, the user waits for a long time, and does not need to perform the booting process in the prior art.
  • the system initializes and loads the operations of various system programs, and only needs to wake up the processor that has gone to sleep, and restore the open data connection-related service that is turned off in the sleep mode, and can quickly wake up the mobile terminal device.
  • the mobile terminal device enters the system and displays the screen after the booting, so that the user does not need to select the shutdown mode to save the power consumption of the mobile terminal device, and when the mobile phone is needed, the mobile terminal device is started by rebooting.
  • Working normally which greatly improves the user's body .
  • the awake method provided in the embodiment of the present invention can quickly wake up the mobile terminal device at a time of 2S.
  • an optional additional operation is added. For example, when it is determined that the mobile terminal device needs to be woken up, the wake-up effect is displayed on the display screen of the mobile terminal device through an animation or a waiting box, or the progress is awakened by an audible prompt.
  • the above operations can be performed simultaneously with other steps.
  • additional operations are optionally added on the basis of FIG. 5, the time for waking up the mobile terminal device will be prolonged, but it will still be faster than the boot time of the prior art.
  • optional additional operations can be implemented within 5 seconds. Quickly wake up the mobile terminal device. At the same time, the user can also prompt the user to wake up the current mobile terminal device, which can improve the user experience.
  • the startup completion message is sent after the restoring the data connection-related service that is turned off in the sleep mode is resumed during the wake-up process.
  • the application inside the mobile terminal device is started to run the service that needs to be powered on during the boot process.
  • additional operations are optionally added on the basis of Fig. 5, the time to wake up the mobile terminal device is prolonged, but it is still faster than the prior art startup time.
  • optional additional operations can be implemented to quickly wake up the mobile terminal device within 5 seconds.
  • FIG. 6 is a flowchart of a wake-up method according to Embodiment 6 of the present invention.
  • step S60 it is determined whether the mobile terminal device needs to be woken up.
  • the process of determining whether the mobile terminal device needs to be woken up may include: detecting whether a power key of the current mobile terminal device is pressed, or detecting whether a power interface of the current mobile terminal device is inserted into a power line, or detecting a current Whether the HDMI of the mobile terminal device is inserted into the HDMI cable, or detecting whether the SIM card of the current mobile terminal device is plugged or unplugged; it can also be understood as detecting whether the current mobile terminal device has an event that the power button is pressed, or whether it occurs. An event in which the power interface is plugged into the power cord, or an event in which HDMI is inserted into the HDMI cable, or an event in which the SIM card is inserted or removed occurs;
  • the mobile terminal device If it is detected that the power button of the current mobile terminal device is pressed, or detects that the power interface of the current mobile terminal device is inserted into the power line, or detects that the HDMI of the current mobile terminal device is inserted into the HDMI line, or detects the SIM of the current mobile terminal device If the card is plugged in, it is determined that the mobile terminal device needs to be woken up, and steps S61 and S62 can be performed; it can also be understood that it is detected that the current mobile terminal device has an event that the power button is pressed, or the power interface is inserted. The event of the power cord, or the event that the HDMI is inserted into the HDMI cable, or the event that the SIM card is inserted or removed occurs, then the mobile terminal is determined. The end device needs to be woken up, and steps S61 and S62 can be performed;
  • the power button of the current mobile terminal device If it is detected that the power button of the current mobile terminal device is not pressed, or detects that the power interface of the current mobile terminal device is not inserted into the power line, or detects that the current mobile terminal device's HDM is not inserted into the HDMI cable, or detects the current If the SIM card of the mobile terminal device is not plugged and unplugged, it is determined that the mobile terminal device does not need to be woken up; it can also be understood that it is detected that the current mobile terminal device does not have an event that the power button is pressed, or the power interface does not occur.
  • Step S61 When it is determined that the mobile terminal device needs to be woken up, the wake-up effect is displayed on the display screen of the mobile terminal device through an animation or a waiting box, or the progress is awakened by an audible prompt.
  • step S61 While performing step S61, the following steps can be performed in synchronization.
  • Step S62 when it is determined that the mobile terminal device needs to be woken up, wake up the processor that has entered sleep.
  • Step S64 restoring the data connection-related service in the open state that is turned off in the sleep mode, so that the mobile terminal device enters the system.
  • the services related to the data connection include GPS, WIFI, Bluetooth, and the like.
  • the mobile terminal device Before entering the hibernation, the mobile terminal device records the current open state and the shutdown state information of the foregoing service, and when entering the hibernation, needs to turn off the data connection-related service in the open state, thereby waking up the mobile terminal device In this case, it is necessary to restore the open data connection-related service that is turned off in the sleep mode.
  • step S61 can end the operation, and the mobile terminal device enters the system and displays the screen after the booting.
  • the wake-up effect is displayed on the display screen of the mobile terminal device through an animation or a waiting box, or the progress time of the animation or the waiting box is displayed by the sound prompt, or the prompt time of the sound may be greater than or equal to the execution.
  • the wake-up method when determining that the mobile terminal device needs to wake up, wakes up the processor that has entered the sleep, and restores the turned-on state in the sleep mode.
  • the data connection related service thereby finally waking up the mobile terminal device, and causing the mobile terminal device to enter the system and display the screen after the booting, which is not required for the user to wait for a long time compared to the normal booting process in the prior art.
  • the system initialization in the prior art and the operation of loading various system programs are performed, and only the processor that has gone to sleep needs to be woken up, and the data connection-related service that is turned off in the sleep mode is restored.
  • the mobile terminal device can be quickly awake, and the mobile terminal device enters the system and displays the screen after the booting, so that the user does not need to select a shutdown mode to save power consumption of the mobile terminal device, and when the mobile phone is needed, By rebooting, the mobile terminal device starts to work normally, thereby greatly improving the user experience.
  • FIG. 7 is a flowchart of a wake-up method according to Embodiment 7 of the present invention.
  • step S70 it is determined whether the mobile terminal device needs to be woken up.
  • the process of determining whether the mobile terminal device needs to be woken up may include: detecting whether a power key of the current mobile terminal device is pressed, or detecting whether a power interface of the current mobile terminal device is inserted into a power line, or detecting a current Whether the HDMI of the mobile terminal device is inserted into the HDMI cable, or detecting whether the SIM card of the current mobile terminal device is plugged or unplugged; it can also be understood as detecting whether the current mobile terminal device has an event that the power button is pressed, or whether it occurs. An event in which the power interface is plugged into the power cord, or an event in which HDMI is inserted into the HDMI cable, or an event in which the SIM card is inserted or removed occurs;
  • step S71 If it is detected that the power button of the current mobile terminal device is pressed, or detects that the power interface of the current mobile terminal device is inserted into the power line, or detects that the HDMI of the current mobile terminal device is inserted into the HDMI line, or detects the SIM of the current mobile terminal device If the card is plugged and unplugged, it is determined that the mobile terminal device needs to be woken up, and step S71 may be performed; it may also be understood that an event that the current mobile terminal device has been pressed by the power button is detected, or a power interface is inserted into the power line. Event, or an event occurs in which the HDMI is inserted into the HDMI cable, or an event occurs in which the SIM card is plugged and unplugged, and it is determined that the mobile terminal device needs to be woken up, and step S71 can be performed;
  • the power button of the current mobile terminal device is not pressed, or the current mobile terminal is detected
  • the power interface of the end device is not inserted into the power line, or the current mobile terminal device's HDM is not inserted into the HDMI cable, or the current mobile terminal device's SIM card is not plugged or unplugged, then it is determined that the mobile terminal device does not need to be woken up.
  • the current mobile terminal device does not have an event that the power button is pressed, or that the power interface is not inserted into the power line, or that the HDMI is not inserted into the HDMI line, or If the SIM card is not inserted or removed, it is determined that the mobile terminal device does not need to be woken up, and the mobile terminal device will not respond, that is, no operation is performed.
  • Step S71 when it is determined that the mobile terminal device needs to be woken up, wake up the processor that has entered sleep.
  • Step S72 restoring the data connection-related service in the open state that is turned off in the sleep mode, so that the mobile terminal device enters the system.
  • the services related to the data connection include GPS, WIFI, Bluetooth, and the like.
  • the mobile terminal device Before entering the hibernation, the mobile terminal device records the current open state and the shutdown state information of the foregoing service, and when entering the hibernation, needs to turn off the data connection-related service in the open state, thereby waking up the mobile terminal device In this case, it is necessary to restore the open data connection-related service that is turned off in the sleep mode.
  • Step S73 Send a startup completion message to the application inside the mobile terminal device, so as to start a service that needs to be powered on during the startup process.
  • the mobile terminal device After performing the above steps, it can be considered that the mobile terminal device has been woken up, and the mobile terminal device enters the system and displays the screen after the booting.
  • the wake-up method provided in the embodiment of the present invention when determining that the mobile terminal device needs to wake up, wakes up the processor that has entered sleep, and restores the data connection-related service in the open state that is turned off in the sleep mode, thereby finally waking up
  • the mobile terminal device enters the system and displays the screen after the booting. Compared with the normal booting process in the prior art, the user waits for a long time, and does not need to perform the booting process in the prior art.
  • the system initializes and loads the operations of various system programs, and only needs to wake up the processor that has gone to sleep, and restore the open data connection-related service that is turned off in the sleep mode, and can quickly wake up the mobile terminal device.
  • the method of shutting down is selected to save the power consumption of the mobile terminal device, and when the mobile phone is needed, the mobile terminal device starts to work normally by rebooting, thereby greatly improving the user experience.
  • FIG. 8 is a flowchart of a wake-up method according to Embodiment 8 of the present invention.
  • step S80 it is determined whether the mobile terminal device needs to be woken up.
  • the process of determining whether the mobile terminal device needs to be woken up may include: detecting whether a power key of the current mobile terminal device is pressed, or detecting whether a power interface of the current mobile terminal device is inserted into a power line, or detecting a current Whether the HDMI of the mobile terminal device is inserted into the HDMI cable, or detecting whether the SIM card of the current mobile terminal device is plugged or unplugged; it can also be understood as detecting whether the current mobile terminal device has an event that the power button is pressed, or whether it occurs. An event in which the power interface is plugged into the power cord, or an event in which HDMI is inserted into the HDMI cable, or an event in which the SIM card is inserted or removed occurs;
  • steps S81 and S82 may be performed; it may also be understood that an event that the current mobile terminal device has been pressed by the power button is detected, or a power interface is inserted. The event of the power line, or the event that the HDMI is inserted into the HDMI line, or the event that the SIM card is plugged and unplugged, determines that the mobile terminal device needs to be woken up, and steps S81 and S82 may be performed;
  • the power button of the current mobile terminal device is not pressed, or detects that the power interface of the current mobile terminal device is not inserted into the power line, or detects that the current mobile terminal device's HDMI is not inserted into the HDMI line, or detects the current mobile terminal If the SIM card of the device is not plugged or unplugged, it is determined that the mobile terminal device does not need to be woken up; it can also be understood that it is detected that the current mobile terminal device does not have an event that the power button is pressed, or the power interface is not inserted.
  • Step S81 When it is determined that the mobile terminal device needs to be woken up, the wake-up effect is displayed on the display screen of the mobile terminal device through an animation or a waiting box, or the progress is awakened by an audible prompt.
  • the step S81 can be performed simultaneously with the following steps.
  • Step S82 when it is determined that the mobile terminal device needs to be woken up, wake up the processor that has entered sleep.
  • Step S83 restoring the data connection-related service in the open state that is turned off in the sleep mode, so that the mobile terminal device enters the system.
  • the services related to the data connection include GPS, WIFI, Bluetooth, and the like.
  • the mobile terminal device Before entering the hibernation, the mobile terminal device records the current open state and the shutdown state information of the foregoing service, and when entering the hibernation, needs to turn off the data connection-related service in the open state, thereby waking up the mobile terminal device In this case, it is necessary to restore the open data connection-related service that is turned off in the sleep mode.
  • Step S84 Send a startup completion message to the application inside the mobile terminal device, so as to start a service that needs to be powered on during the startup process.
  • step S81 can end the operation, and the mobile terminal device enters the system and displays the screen after the booting.
  • the wake-up method provided in the embodiment of the present invention when determining that the mobile terminal device needs to wake up, wakes up the processor that has entered sleep, and restores the data connection-related service in the open state that is turned off in the sleep mode, thereby finally waking up
  • the mobile terminal device enters the system and displays the screen after the booting. Compared with the normal booting process in the prior art, the user waits for a long time, and does not need to perform the booting process in the prior art.
  • the system initializes and loads the operations of various system programs, and only needs to wake up the processor that has gone to sleep, and restore the open data connection-related service that is turned off in the sleep mode, and can quickly wake up the mobile terminal device.
  • the mobile terminal device enters the system and displays the screen after the booting, so that the user does not need to select the shutdown mode to save the power consumption of the mobile terminal device, and when the mobile phone is needed, the mobile terminal device is started by rebooting.
  • Working normally which greatly improves the user's body .
  • FIG. 9 is a structural diagram of a mobile terminal device according to Embodiment 1 of the present invention.
  • the recording unit 90, the closing unit 92, and the control unit 94 are provided.
  • the recording unit 90 is configured to record service status information related to the data connection when it is determined that the mobile terminal device is selected to be dormant.
  • the services related to the data connection include GPS, WIFI, Bluetooth, and the like.
  • the mobile terminal device has a current usage state when the mobile terminal device is in normal use. When entering the sleep state, the mobile terminal device records the current open state and the shutdown state information of the service, and the record is recorded. The status information is used for subsequent wake-up of the mobile terminal device.
  • the close unit 92 is configured to close the data connection related service in the open state according to the service status information related to the data connection recorded by the recording unit 90.
  • turning off the open data connection related services includes turning on the airplane mode and turning off the G PS.
  • the control processor enters sleep mode.
  • the processor when the control processor enters the sleep mode, the processor will no longer process the communication and application services.
  • the processor can be controlled to enter a sleep mode by setting the current operating state of the processor to a sleep state.
  • the processor may include a plurality of types of processors such as a single core, a dual core, and a quad core.
  • the processor when the processor is a single core, since the communication service and the application service are processed by one processor, the processor directly controlling the single core enters a sleep mode; when the processor is a dual core, it needs to be controlled.
  • the processor processing the communication service and the processor of the application service enter a sleep mode; when the processor is a quad core, the processor controlling the communication service and the processor of the application service need to enter a sleep mode. And so on.
  • a multi-core processor it is necessary to control the processor that handles the communication service and the processor of the application service to enter the sleep mode.
  • the mobile terminal device is turned off, indicating that the mobile terminal device has entered the sleep mode.
  • the mobile terminal device may further include a dormancy determining unit 91, where the dormancy determining unit 91 is configured to determine whether the mobile terminal device is selected to enter hibernation.
  • the sleep determination unit 91 determines whether to select the move by means of manual selection by the user or automatic selection by the system. The terminal device goes to sleep. Described separately below.
  • the first case When determining whether to select the mobile terminal device to enter hibernation by means of manual selection by the user, the method may include:
  • the sleep determination unit 91 When the sleep determination unit 91 detects that the user manually presses the power button on the mobile terminal device for a long time, the sleep determination unit 91 prompts the user through the selection box to select whether to enter the sleep mode, or whether to enter the shutdown mode;
  • the recording unit 90 When the user selects the sleep mode, the recording unit 90 starts recording the service status information related to the data connection; that is, the recording unit 90 is configured to record the service status information related to the data connection when the sleep determining unit 91 determines to select the mobile terminal device to sleep. ;
  • the mobile terminal device When the user selects the shutdown mode, the mobile terminal device performs a normal shutdown, that is, shutdown. At this time, a shutdown module (not shown) may also be included for performing a normal shutdown.
  • the mobile terminal device can provide an application for selecting a hibernation for the user to manually select, and the application for selecting the hibernation can be displayed on the touch screen of the mobile terminal device, when determining whether to select the mobile terminal device to enter hibernation by means of manual selection by the user.
  • the sleep determining unit 91 detects whether the user triggers the application for selecting the sleep. When detecting that the user triggers the application for selecting the sleep, the sleep determining unit 91 determines that the user selects the sleep mode, and the recording unit 90 starts recording related to the data connection.
  • the service status information that is, the recording unit 90 is configured to record the service status information related to the data connection when the sleep determination unit 91 determines to select the mobile terminal device to sleep.
  • the method further includes: the mobile terminal device providing a selection box for selecting to enter the sleep mode in the system setting interface, for the user to select.
  • the sleep determination unit 91 detects that the user manually presses the power button on the mobile terminal device for a long time, it is determined whether the selection box of the sleep mode in the system setting interface is selected;
  • the recording unit 90 starts recording the service status information related to the data connection; that is, the recording unit 90 is used to The sleep determination unit 91 determines to select the mobile terminal device to sleep Recording service status information related to the data connection;
  • the mobile terminal device If it is determined that the selection mode of the sleep mode in the system setting interface is not selected, that is, it is determined that the user does not select the sleep mode, the mobile terminal device performs a normal shutdown, that is, shuts down.
  • the sleep determining unit 91 may further prompt the user to select whether to enter the sleep mode or enter the shutdown mode through the selection box.
  • the second case When determining whether to select the mobile terminal device to enter hibernation by means of automatic selection by the system, the method may include:
  • the sleep determination unit 91 detects whether it is currently in a charging state, or whether a High Definition Multimedia Interface (HDMI) has been inserted into the HDMI line;
  • HDMI High Definition Multimedia Interface
  • the sleep determination unit 91 determines to go to the normal shutdown procedure
  • the sleep determination unit 91 When the sleep determination unit 91 detects that it is not currently in the charging state or the HDMI is not inserted, the sleep determination unit 91 automatically selects the sleep mode instead of the shutdown, the recording unit 90 starts recording the service state information related to the data connection; that is, the recording unit 90 is used to record service status information related to the data connection when the sleep determination unit 91 determines to select the mobile terminal device to sleep.
  • the hibernation determining unit 91 is further configured to detect whether the power interface is inserted into the power line event, When it is detected that the power interface is inserted into the power line event, the sleep determination unit 91 automatically selects the sleep mode instead of the shutdown.
  • the sleep determination unit 91 determines to go through the normal shutdown process.
  • the mobile terminal device provided in the embodiment of the present invention can close the service related to the data connection by closing the opened data connection-related service and controlling the processor to enter the sleep mode.
  • the use of the processor and the processor so that the power consumption of the mobile terminal device in the standby state can be reduced.
  • the power consumption of the terminal device further prolongs the use time of the mobile terminal device, and does not require the user to select a shutdown mode to save power consumption of the mobile terminal device.
  • FIG. 10 is a structural diagram of a mobile terminal device according to Embodiment 2 of the present invention.
  • the mobile terminal device may further include a sleep prompting unit 93, configured to perform an animation on the display screen of the mobile terminal device when it is determined that the mobile terminal device is selected to be dormant. Or wait for the box to show the sleep effect, or by sound to indicate the sleep progress.
  • a sleep prompting unit 93 configured to perform an animation on the display screen of the mobile terminal device when it is determined that the mobile terminal device is selected to be dormant. Or wait for the box to show the sleep effect, or by sound to indicate the sleep progress.
  • the sleep prompting unit 93 is further configured to display a sleep effect on the display screen of the mobile terminal device through an animation or a waiting box when the sleep determination unit 91 determines to select the sleep of the mobile terminal device, or prompt the sleep progress by sound.
  • the sleep effect is displayed on the display screen of the mobile terminal device through an animation or a waiting box, or the user is prompted by the sound prompting sleep progress to improve the user's experience.
  • FIG. 11 is a structural diagram of a mobile terminal device according to Embodiment 3 of the present invention.
  • the shutting down unit 92 can also be used to kill or shut down the non-core process after the service state is turned off and the data connection related service is turned on.
  • the core process includes a core process, a phone process, a SYSTEM-UID process, and an android.process.media process.
  • killing or shutting down a non-core process means killing or shutting down processes other than the core process described above.
  • the energy consumption of the mobile terminal device can be further reduced.
  • FIG. 12 is a structural diagram of a mobile terminal device according to Embodiment 4 of the present invention.
  • the mobile terminal device can include both a sleep prompting unit 93 and a shutdown unit 92, wherein the shutdown unit 92 is used to close the service. Kill or shut down non-core processes after the status is in the open data connection-related service;
  • the sleep prompting unit 93 is configured to display a sleep effect by an animation or a waiting box on the display screen of the mobile terminal device when the sleep determination unit 91 determines to select the sleep of the mobile terminal device, or prompt the sleep progress by sound.
  • the mobile terminal device after the mobile terminal device is dormant, if the user needs to re-enable the hibernated mobile terminal device, the mobile terminal device needs to be woken up.
  • the current mobile terminal device is awakened by a user operation, and the current mobile terminal device can also be woken up by the system of the mobile terminal device automatically selecting the wake-up function.
  • FIG. 13 is a structural diagram of a mobile terminal device according to Embodiment 5 of the present invention.
  • the mobile terminal device includes a waking unit 96 and a recovery unit 97.
  • the wakeup unit 96 is configured to wake up the processor that has entered sleep when it is determined that the mobile terminal device needs to be woken up.
  • the application service of the processor may be awakened first, and then the communication service of the processor may be awakened; or the application service of the processor may be awake only, the communication service of the processor may not be woken up, or It can be understood as that the application service of the processor is first awake, and then whether the communication service of the processor is awakened is awake; the application service and communication service of the processor can also be woken up at the same time.
  • the waking unit 96 when the application service of the processor can be waking up first, and then determining whether to wake up the communication service of the processor, the waking unit 96 includes: a first waking subunit 961 and a second waking subunit 962.
  • the first wakeup subunit 961 is configured to wake up the application service of the processor.
  • the second wakeup subunit 962 is configured to determine whether the current mobile terminal device has inserted the SIM card and whether the flight mode is not enabled after the application service of the processor is woken up.
  • the second wakeup subunit 962 is further configured to wake up the communication service of the processor when it is determined that the current mobile terminal device has inserted the SIM card and does not turn on the flight mode, or when it is determined that the current mobile terminal device has inserted the SIM card
  • the communication service does not wake up the processor when the flight mode is turned on, or the SIM card is not inserted and the airplane mode is turned on, or the SIM card is not inserted and the airplane mode is not turned on.
  • the processor When the processor is dual-core, it is required to wake up the processor that processes the communication service and the processor of the application service, wherein the processor that processes the application service can be awake first, and then the processor that processes the communication service is awake; or the processing application service can be only awake.
  • the processor does not wake up the processor that processes the communication service, or can be understood as waking up the processor that processes the application service, and then determining whether to wake up the processor that processes the communication service; or waking up the processing application service and the communication service at the same time processor.
  • the processor When the processor is a quad core, it is required to wake up the processor that processes the communication service and the processor of the application service, wherein the processor that processes the application service can be awake first, and then the processor that processes the communication service is awake; or the processing application can be only awake.
  • the processor of the service does not wake up the processor that processes the communication service, or can be understood as waking up the processor that processes the application service, and then determining whether to wake up the processor that processes the communication service; or waking up the processing application service and communication service at the same time Processor.
  • the waking unit 96 when the application service of the processor can be waking up first, and then determining whether to wake up the communication service of the processor, the waking unit 96 includes: a first waking subunit 961 and a second waking subunit 962.
  • the first wakeup subunit 961 is configured to wake up a processor that processes the application service.
  • the second wakeup unit 962 is configured to determine whether the current mobile terminal device has inserted the SIM card and whether the flight mode is not enabled after waking up the processor that processes the application service.
  • the second waking subunit 962 is further configured to wake up a processor that processes the communication service when determining that the current mobile terminal device has inserted the SIM card and does not turn on the flight mode, or when determining that the current mobile terminal device has inserted the SIM
  • the processor that handles the communication service is not woken up when the card and the airplane mode are turned on, or when the SIM card is not inserted and the airplane mode is turned on, or when the SIM card is not inserted and the airplane mode is not turned on.
  • the recovery unit 97 is configured to restore the data connection related service in the on state that is turned off in the sleep mode.
  • the services related to the data connection include GPS, WIFI, Bluetooth, and the like.
  • the mobile terminal device Before entering the hibernation, the mobile terminal device records the current open state and the shutdown state information of the foregoing service, and when entering the sleep state, needs to close the data connection related to the open state. The service, therefore, when waking up the mobile terminal device, it is necessary to restore the open data connection-related service that is turned off in the sleep mode.
  • the mobile terminal device by performing the operations of the awake unit 96 and the recovery unit 97, it can be considered that the mobile terminal device has been woken up, and the mobile terminal device enters the system and displays the screen after the booting.
  • the mobile terminal device may further include a wakeup determination module 95 for determining whether the mobile terminal device needs to be woken up.
  • the determining module 95 is further configured to detect whether the power button of the current mobile terminal device is pressed, or to detect whether the power interface of the current mobile terminal device is inserted into the power line, or to detect whether the current mobile terminal device's HDMI is Insert the HDMI cable, or check whether the SIM card of the current mobile terminal device is plugged in or unplugged to determine whether the mobile terminal device needs to be woken up. It can also be understood that it is detected whether the current mobile terminal device has an event that the power button is pressed, or whether an event occurs in which the power interface is plugged into the power line, or whether an event in which the HDMI is inserted into the HDMI line occurs, or whether an occurrence occurs. The event that the SIM card is plugged and unplugged to determine whether the mobile terminal device needs to be woken up.
  • the wakeup determination module 95 is further configured to: if detecting that the power button of the current mobile terminal device is pressed, or detecting that the power interface of the current mobile terminal device is inserted into the power line, or detecting that the current mobile terminal device is inserted into the HDMI line, or Detecting that the SIM card of the current mobile terminal device is plugged and unplugged, and determining that the mobile terminal device needs to be woken up; it can also be understood that it is detected that the current mobile terminal device has an event that the power button is pressed, or the power interface is inserted into the power source. The event of the line, or the event that the HDMI is inserted into the HDMI line, or the event that the SIM card is plugged and unplugged, determines that the mobile terminal device needs to be woken up;
  • the wake-up determination module 95 is further configured to: if it is detected that the power button of the current mobile terminal device is not pressed, or detect that the power interface of the current mobile terminal device is not inserted into the power line, or detect that the current mobile terminal device's HDMI is not inserted into the HDMI Line, or detecting that the SIM card of the current mobile terminal device is not plugged and unplugged, determining that the mobile terminal device does not need to be woken up; it can also be understood that it is detected that the current mobile terminal device has not occurred when the power button is pressed, or An event occurred when the power connector was plugged into the power cord, or an event where HDMI was inserted into the HDMI cable did not occur, or did not occur An event occurs in which the SIM card is inserted and removed, and it is determined that the mobile terminal device does not need to be woken up.
  • the mobile terminal device when determining that the mobile terminal device needs to wake up, wakes up the processor that has entered the sleep, and restores the data connection-related service in the open state that is turned off in the sleep mode, thereby finally Wake up the mobile terminal device, and make the mobile terminal device enter the system and display the screen after booting.
  • the user waits for a long time, and does not need to perform the boot process in the prior art.
  • the system in the system initializes and loads the operations of various system programs, and only needs to wake up the processor that has gone to sleep, and restore the open data connection-related service in the sleep mode, and can quickly wake up the mobile terminal device.
  • the mobile terminal device enters the system and displays the screen after the booting, so that the user does not need to select the shutdown mode to save the power consumption of the mobile terminal device, and when the mobile phone is needed, the mobile terminal device is restarted by restarting the mobile terminal device. Start working normally, which greatly improves the user Experience.
  • the mobile terminal device provided in the embodiment of the present invention can quickly wake up the mobile terminal device at a time of 2S.
  • FIG. 14 is a structural diagram of a mobile terminal device according to Embodiment 6 of the present invention.
  • the mobile terminal device may further include a wakeup prompting unit 98, when the wakeup determination module 95 determines that the mobile terminal device needs to be woken up. , the wake-up effect is displayed by an animation or a waiting box on the display screen of the mobile terminal device, or the progress is awakened by an audible prompt.
  • the wake-up effect is displayed on the display screen of the mobile terminal device through an animation or a waiting box, or the user is prompted by the voice prompt to wake up the progress, so as to improve the user's experience.
  • FIG. 15 is a structural diagram of a mobile terminal device according to Embodiment 7 of the present invention.
  • the mobile terminal device may further include a sending unit 99, configured to send a startup completion message to the mobile terminal after restoring the data connection-related service in the open state that is closed in the sleep mode. An application inside the device to start running the service that needs to be powered on during the boot process.
  • FIG. 16 is a structural diagram of a mobile terminal device according to Embodiment 8 of the present invention.
  • the mobile terminal device may further include a wakeup prompting unit 98 and a sending unit 99.
  • the sending unit 99 is configured to: after restoring the data connection-related service in the open state that is turned off in the sleep mode, send a startup completion message to the application inside the mobile terminal device, so as to implement booting operation during the booting process.
  • the service starts running.
  • the wakeup prompting unit 98 is configured to display a wakeup effect by an animation or a waiting box on the display screen of the mobile terminal device when the wakeup determination module 95 determines that the mobile terminal device needs to be woken up, or wake up the progress by an audible prompt.
  • the storage medium may be a magnetic disk, an optical disk, a read-only memory (ROM), or a random access memory (RAM).

Abstract

本发明公开一种休眠方法,包括:当确定选择移动终端设备休眠时,移动终端设备记录与数据连接相关的服务状态信息;根据记录的与数据连接相关的服务状态信息,关闭处于开启状态的与数据连接相关的服务;控制处理器进入休眠模式,从而比现有技术更加节省移动终端设备的功耗。

Description

一种休眠方法、 唤醒方法和移动终端设备 技术领域 本发明涉及通信技术领域, 尤其涉及一种休眠方法、 唤醒方法和移动终 端设备。 背景技术
随着诸如智能手机和平板电脑的移动终端设备越来越受广大用户的喜 在现有技术中, 由于上述移动终端设备的触摸屏会消耗很大部分能量, 因而, 当用户不需要使用上述的移动终端设备时, 往往会通过使用待机的功 能, 熄掉移动终端设备的触摸屏, 以使移动终端设备处于熄屏待机状态, 并 在用户需要使用上述的移动终端设备时, 再通过唤醒功能, 使处于待机状态 下的移动终端设备的触摸屏开始正常工作, 以节省移动终端设备的功耗, 以 达到延长移动终端设备的使用时间的目的。
然而, 在现有技术的待机方案中, 当移动终端设备处于待机状态时, 虽 然熄掉了移动终端设备的触摸屏, 但是移动终端设备依然会处于工作状态中, 依然会很大程度的消耗该移动终端设备的能量, 不能达到高效的延长移动终 端设备的使用时间。
为克服上述的缺陷, 用户可以通过暂时关机来关闭移动终端设备, 当需 要使用移动终端设备时, 再通过重新开机来使移动终端设备开始正常工作的 方法来解决上述的问题, 然而, 移动终端设备的开机过程中需要进行系统初 始化和加载各种系统程序后, 移动终端设备才会逐渐进入系统, 但是这个开 机过程会很长, 若用户急需使用移动终端设备, 而现有技术的开机过程会让 用户等待很长的时间, 这会影响用户对该移动终端设备的用户体验, 从而降 低用户的体验感。 发明内容
本发明的实施例提供一种休眠方法、 唤醒方法和移动终端设备, 以节省 移动终端设备的功耗。
为达到上述目的, 本发明的实施例釆用如下技术方案:
一种休眠方法, 包括:
当确定选择移动终端设备休眠时, 移动终端设备记录与数据连接相关的 服务状态信息;
根据记录的与数据连接相关的服务状态信息, 关闭处于开启状态的与数 据连接相关的服务;
控制处理器进入休眠模式。
一种唤醒方法, 包括:
当确定移动终端设备需要被唤醒时, 唤醒已进入睡眠的处理器; 恢复在休眠模式中关闭的处于开启状态的与数据连接相关的服务, 以使 移动终端设备进入系统。
一种应用于休眠的移动终端设备, 包括:
记录单元, 用于当确定选择移动终端设备休眠时, 记录与数据连接相关 的服务状态信息;
关闭单元, 用于根据记录的与数据连接相关的服务状态信息, 关闭处于 开启状态的与数据连接相关的服务;
控制单元, 用于控制处理器进入休眠模式。
一种应用于唤醒的移动终端设备, 包括:
唤醒单元, 用于当确定移动终端设备需要被唤醒时, 唤醒已进入睡眠的 处理器;
恢复单元, 用于恢复在休眠模式中关闭的处于开启状态的与数据连接相 关的服务, 以使移动终端设备进入系统。 本发明实施例提供技术方案, 通过关闭已开启的与数据连接相关的服务, 和控制处理器进入休眠模式, 从而可以关闭与数据连接相关的服务和处理器 的使用, 从而可以降低移动终端设备在待机状态下功耗, 与现有技术相比, 比现有技术关闭了更多的消耗能量的服务和器件, 比现有技术更加节省移动 终端设备的功耗, 从而更加延长了移动终端设备的使用时间, 并且也不需要 用户去选择关机的方式来节省移动终端设备的功耗, 进而提升用户的体验感。 附图说明
为了更清楚地说明本发明实施例中的技术方案, 下面将对实施例描述中 所需要使用的附图作一简单地介绍, 显而易见地, 下面描述中的附图仅仅是 本发明的一些实施例, 对于本领域普通技术人员来讲, 在不付出创造性劳动 性的前提下, 还可以根据这些附图获得其他的附图。
图 1所示为本发明实施例一提供的一种休眠方法的流程图;
图 2所示为本发明实施例二提供的一种休眠方法的流程图;
图 3所示为本发明实施例三提供的一种休眠方法的流程图;
图 4所示为本发明实施例四提供的一种休眠方法的流程图;
图 5所示为本发明实施例五提供的一种唤醒方法的流程图;
图 6所示为本发明实施例六提供的一种唤醒方法的流程图;
图 7所示为本发明实施例七提供的一种唤醒方法的流程图;
图 8所示为本发明实施例八提供的一种唤醒方法的流程图;
图 9所示为本发明实施例一提供的一种移动终端设备的结构图;
图 10所示为本发明实施例二提供的一种移动终端设备的结构图; 图 1 1所示为本发明实施例三提供的一种移动终端设备的结构图; 图 12所示为本发明实施例四提供的一种移动终端设备的结构图; 图 13所示为本发明实施例五提供的一种移动终端设备的结构图; 图 14所示为本发明实施例六提供的一种移动终端设备的结构图; 图 15所示为本发明实施例七提供的一种移动终端设备的结构图; 图 16所示为本发明实施例八提供的一种移动终端设备的结构图。 具体实施方式
下面将结合本发明实施例中的附图, 对本发明实施例中的技术方案进行 清楚、 完整地描述, 显然, 所描述的实施例仅仅是本发明一部分实施例, 而 不是全部的实施例。 基于本发明中的实施例, 本领域普通技术人员在没有做 出创造性劳动前提下所获得的所有其它实施例, 都属于本发明保护的范围。
在本实施例中, 当用户不需要使用移动终端设备时, 用户可以通过手动 选择或系统设置来使当前的移动终端设备进入休眠模式, 也可以通过移动终 端设备的系统自动选择待机功能使当前的移动终端设备进入休眠模式; 并当 用户需要使用移动终端设备时, 通过用户操作来唤醒当前的移动终端设备, 也可以通过移动终端设备的系统自动选择唤醒功能来唤醒当前的移动终端设 备。 在本实施例中, 该移动终端设备可以是指智能手机或平板电脑。
在本实施例中, 上述的休眠模式是指将该移动终端设备进行仿制关机, 但并不是真的关机, 也可以称之为待机模式。 以下将进行说明。
如图 1所示, 图 1所示为本发明实施例一提供的一种休眠方法的流程图。 在本实施例中, 步骤 S10, 当确定选择移动终端设备休眠时, 移动终端设 备记录与数据连接相关的服务状态信息; 在本实施例中, 与数据连接相关的 服务包括 GPS, WIFI , 蓝牙等。 在本实施例中, 由于移动终端设备在正常使 用时, 上述的服务会有一个当前的使用状态, 当进入休眠的时候, 移动终端 设备记录上述服务的当前的开启状态和关闭状态信息, 该记录的状态信息以 备后续唤醒移动终端设备所使用。
在本实施例中, 可以通过用户手动选择或系统自动选择的方式来确定是 否选择移动终端设备进入休眠。 以下分别描述。
第一种情况: 当通过用户手动选择的方式来确定是否选择移动终端设备 进入休眠时, 可以包括:
当移动终端设备检测到用户手动长时间按移动终端设备上的电源键时, 移动终端设备通过选择框提示用户选择是否进入休眠模式, 或是否进入关机 模式;
当用户选择休眠模式时, 移动终端设备开始步骤 S10;
当用户选择关机模式时, 移动终端设备执行正常关机流程, 即关机。 移动终端设备可以提供一个选择休眠的应用程序以供用户手动选择, 这 个选择休眠的应用程序可以显示在移动终端设备的触摸屏上, 当通过用户手 动选择的方式来确定是否选择移动终端设备进入休眠时, 还可以包括:
移动终端设备检测用户是否触发该选择休眠的应用程序;
当移动终端设备检测到用户触发该选择休眠的应用程序时, 移动终端设 备开始步骤 S10。
当通过用户手动选择的方式来确定是否选择移动终端设备进入休眠时, 还可以包括: 移动终端设备在系统设置界面提供选择进入休眠模式的选择框, 以供用户选择。
当移动终端设备检测到用户手动长时间按移动终端设备上的电源键时, 确定系统设置界面中的休眠模式的选择框是否被选中;
若确定系统设置界面中的休眠模式的选择框被选中, 即确定用户选择了 休眠模式, 则移动终端设备开始步骤 S10;
若确定系统设置界面中的休眠模式的选择框没有被选中, 即确定用户没 有选择休眠模式, 移动终端设备执行正常关机流程, 即关机。
可选的, 当确定系统设置界面中的休眠模式的选择框没有被选中时, 移 动终端设备可以进一步的通过选择框提示用户选择是否进入休眠模式, 或是 否进入关机模式。
第二种情况: 当通过系统自动选择的方式来确定是否选择移动终端设备 进入休眠时, 可以包括:
当移动终端设备检测到用户选择关机时, 移动终端设备检测当前是否处 于充电状态, 或高清晰度多媒体接口 ( High Definition Multimedia Interface, HDMI )是否已被插入 HDMI线;
当移动终端设备检测到当前处于充电状态或 HDMI已被插入时, 移动终端 设备走正常关机流程;
当移动终端设备检测到当前没有处于充电状态或 HDMI没有被插入时, 移 动终端设备自动选择休眠模式以代替关机, 开始执行步骤 S10。
当移动终端设备上电源接口和 USB接口不相同时, 当通过系统自动选择 的方式来确定是否选择移动终端设备进入休眠时, 还可以包括:
移动终端设备检测电源接口是否发生被插入电源线事件;
当移动终端设备检测到该电源接口发生被插入电源线事件时, 移动终端 设备自动选择休眠模式以代替关机, 开始执行步骤 S10。
当然, 移动终端设备上电源接口和 USB接口相同时, 当移动终端设备检 测到 USB接口发生被插入 USB线事件时, 移动终端设备走正常关机流程。
关步骤 S12,根据记录的与数据连接相关的服务状态信息, 关闭处于开启 状态的与数据连接相关的服务。 在本实施例中, 关闭已开启的与数据连接相 关的服务包括开启飞行模式和关闭 G PS。
步骤 S14, 控制处理器进入休眠模式。 在本实施例中, 当控制处理器进入 休眠模式时, 处理器将不会再处理通讯和应用的服务。 在本实施例中, 可以 通过将处理器当前的运行状态设置为休眠状态, 来控制处理器进入休眠模式。
在本实施例中, 由于处理器可以包括单核, 双核, 四核等多种型号的处 理器。 在本实施例中, 当处理器是单核时, 由于通讯服务和应用服务是由一 个处理器来处理, 因而, 直接控制单核的处理器进入休眠模式; 当处理器是 双核时, 需要控制处理通讯服务的处理器和应用服务的处理器进入休眠模式; 当处理器是四核时, 需要控制处理通讯服务的处理器和应用服务的处理器进 入休眠模式。 以此类推。 若是多核处理器时, 需要控制处理通讯服务的处理 器和应用服务的处理器进入休眠模式。
在本实施例中, 当处理器的应用服务进入休眠模式后, 移动终端设备就 熄屏了, 即表明该移动终端设备已进入休眠模式。
本发明实施例中提供的休眠方法, 通过关闭已开启的与数据连接相关的 服务, 和控制处理器进入休眠模式, 从而可以关闭与数据连接相关的服务和 处理器的使用, 从而可以降低移动终端设备在待机状态下功耗, 与现有技术 相比, 比现有技术关闭了更多的消耗能量的服务和器件, 比现有技术更加节 省移动终端设备的功耗, 从而更加延长了移动终端设备的使用时间, 并且也 不需要用户去选择关机的方式来节省移动终端设备的功耗。
在本实施例中, 可选的, 在实施例一的基础上, 可选择的增加额外的操 作。 比如, 在当确定选择移动终端设备休眠时, 在移动终端设备的显示屏上 通过动画或等待框显示休眠效果, 或通过声音提示休眠进度。 当然, 上述的 操作可以跟其它步骤同时进行。 在本实施例中, 在移动终端设备的显示屏上 通过动画或等待框显示休眠效果, 或通过声音提示休眠进度这种方式提示用 户, 以达到提高用户的体验感。 杀掉或关闭非核心进程。在本实施例中,核心进程包括 core进程, phone进程, SYSTEM— U ID的进程, android. process. media进程。 在本实施例中, 杀掉或 关闭非核心进程是指杀掉或关闭除上述核心进程以外的进程。 在本实施例中, 由于杀掉了或关闭了非核心进程, 可以进一步的减少移动终端设备的能量消 耗。
以下将结合上述可选的操作和实施例一的休眠方法进行分别描述。
图 2所示为本发明实施例二提供的一种休眠方法的流程图。
在本实施例中, 步骤 S20, 确定是否选择移动终端设备休眠。
在本实施例中, 可以通过用户手动选择或系统自动选择的方式来确定是 否选择移动终端设备进入休眠。 以下分别描述。
第一种情况: 当通过用户手动选择的方式来确定是否选择移动终端设备 进入休眠时, 可以包括: 当移动终端设备检测到用户手动长时间按移动终端设备上的电源键时, 移动终端设备通过选择框提示用户选择是否进入休眠模式, 或是否进入关机 模式;
当用户选择休眠模式时, 移动终端设备开始步骤 S22和 S24;
当用户选择关机模式时, 移动终端设备执行正常关机流程, 即关机。 移动终端设备可以提供一个选择休眠的应用程序以供用户手动选择, 这 个选择休眠的应用程序可以显示在移动终端设备的触摸屏上, 当通过用户手 动选择的方式来确定是否选择移动终端设备进入休眠时, 还可以包括:
移动终端设备检测用户是否触发该选择休眠的应用程序;
当移动终端设备检测到用户触发该选择休眠的应用程序时, 移动终端设 备开始步骤 S22和 S24。
当通过用户手动选择的方式来确定是否选择移动终端设备进入休眠时, 还可以包括: 移动终端设备在系统设置界面提供选择进入休眠模式的选择框, 以供用户选择。
当移动终端设备检测到用户手动长时间按移动终端设备上的电源键时, 确定系统设置界面中的休眠模式的选择框是否被选中;
若确定系统设置界面中的休眠模式的选择框被选中, 即确定用户选择了 休眠模式, 则移动终端设备开始步骤 S22和 S24;
若确定系统设置界面中的休眠模式的选择框没有被选中, 即确定用户没 有选择休眠模式, 移动终端设备执行正常关机流程, 即关机。
可选的, 当确定系统设置界面中的休眠模式的选择框没有被选中时, 移 动终端设备可以进一步的通过选择框提示用户选择是否进入休眠模式, 或是 否进入关机模式。
第二种情况: 当通过系统自动选择的方式来确定是否选择移动终端设备 进入休眠时, 可以包括:
当移动终端设备检测到用户选择关机时, 移动终端设备检测当前是否处 于充电状态, 或高清晰度多媒体接口 ( High Definition Multimedia Interface, HDMI )是否已被插入;
当移动终端设备检测到当前处于充电状态或 HDMI已被插入时, 移动终端 设备正常关机流程;
当移动终端设备检测到当前没有处于充电状态或 HDMI没有被插入时, 移 动终端设备走自动选择休眠模式以代替关机, 移动终端设备开始步骤 S22和 S24。
当移动终端设备上电源接口和 USB接口不相同时, 当通过系统自动选择 的方式来确定是否选择移动终端设备进入休眠时, 还可以包括:
移动终端设备检测电源接口是否发生被插入电源线事件;
当移动终端设备检测到该电源接口发生被插入电源线事件时, 移动终端 设备自动选择休眠模式以代替关机, 开始执行步骤 S22和 S24。
当然, 移动终端设备上电源接口和 USB接口相同时, 当移动终端设备检 测到 USB接口发生被插入 USB线事件时, 移动终端设备走正常关机流程。
步骤 S22, 当确定选择移动终端设备休眠时, 在移动终端设备的显示屏上 通过动画或等待框方式显示休眠效果, 或通过声音方式提示休眠进度。
在执行步骤 S22的同时, 可以同步执行以下步骤:
步骤 S24, 当确定选择移动终端设备休眠时, 移动终端设备记录与数据连 接相关的服务状态信息; 在本实施例中, 与数据连接相关的服务包括 GPS, WIFI , 蓝牙等。 在本实施例中, 由于移动终端设备在正常使用时, 上述的服 务会有一个当前的使用状态, 当进入休眠的时候, 移动终端设备记录上述服 务的当前使用状态信息, 该记录的状态信息以备后续唤醒移动终端设备所使 用。
步骤 S26, 关闭服务状态处于已开启的与数据连接相关的服务。在本实施 例中, 关闭已开启的与数据连接相关的服务包括开启飞行模式和关闭 G PS。
步骤 S28, 控制处理器进入休眠模式。 在本实施例中, 当控制处理器进入 休眠模式时, 处理器将不会再处理通讯和应用的服务。 在本实施例中, 可以 通过将处理器当前的运行状态设置为休眠状态, 来控制处理器进入休眠模式。
在本实施例中, 由于处理器可以包括单核, 双核, 四核等多种型号的处 理器。 在本实施例中, 当处理器是单核时, 由于通讯服务和应用服务是由一 个处理器来处理, 因而, 直接控制单核的处理器进入休眠模式; 当处理器是 双核时, 需要控制处理通讯服务的处理器和应用服务的处理器进入休眠模式; 当处理器是四核时, 需要控制处理通讯服务的处理器和应用服务的处理器进 入休眠模式。 以此类推。 若是多核处理器时, 需要控制处理通讯服务的处理 器和应用服务的处理器进入休眠模式。
当处理器进入休眠模式后, 步骤 S22可以结束操作, 以表明移动终端设备 当前已进入休眠模式。
本发明实施例中提供的休眠方法, 通过关闭已开启的与数据连接相关的 服务, 和控制处理器进入休眠模式, 从而可以关闭与数据连接相关的服务和 处理器的使用, 从而可以降低移动终端设备在待机状态下功耗, 与现有技术 相比, 比现有技术关闭了更多的消耗能量的服务和器件, 比现有技术更加节 省移动终端设备的功耗, 从而更加延长了移动终端设备的使用时间。
图 3所示为本发明实施例三提供的一种休眠方法的流程图。
在本实施例中, 步骤 S30, 确定是否选择移动终端设备休眠。
在本实施例中, 可以通过用户手动选择或系统自动选择的方式来确定是 否选择移动终端设备进入休眠。 以下分别描述。
第一种情况: 当通过用户手动选择的方式来确定是否选择移动终端设备 进入休眠时, 可以包括:
当移动终端设备检测到用户手动长时间按移动终端设备上的电源键时, 移动终端设备通过选择框提示用户选择是否进入休眠模式, 或是否进入关机 模式;
当用户选择休眠模式时, 移动终端设备开始步骤 S32; 当用户选择关机模式时, 移动终端设备执行正常关机流程, 即关机。 移动终端设备可以提供一个选择休眠的应用程序以供用户手动选择, 这 个选择休眠的应用程序可以显示在移动终端设备的触摸屏上, 当通过用户手 动选择的方式来确定是否选择移动终端设备进入休眠时, 还可以包括:
移动终端设备检测用户是否触发该选择休眠的应用程序;
当移动终端设备检测到用户触发该选择休眠的应用程序时, 移动终端设 备开始步骤 S32。
当通过用户手动选择的方式来确定是否选择移动终端设备进入休眠时, 还可以包括: 移动终端设备在系统设置界面提供选择进入休眠模式的选择框, 以供用户选择。
当移动终端设备检测到用户手动长时间按移动终端设备上的电源键时, 确定系统设置界面中的休眠模式的选择框是否被选中;
若确定系统设置界面中的休眠模式的选择框被选中, 即确定用户选择了 休眠模式, 则移动终端设备开始步骤 S32;
若确定系统设置界面中的休眠模式的选择框没有被选中, 即确定用户没 有选择休眠模式, 移动终端设备执行正常关机流程, 即关机。
可选的, 当确定系统设置界面中的休眠模式的选择框没有被选中时, 移 动终端设备可以进一步的通过选择框提示用户选择是否进入休眠模式, 或是 否进入关机模式。
第二种情况: 当通过系统自动选择的方式来确定是否选择移动终端设备 进入休眠时, 可以包括:
当移动终端设备检测到用户选择关机时, 移动终端设备检测当前是否处 于充电状态, 或高清晰度多媒体接口 ( High Definition Multimedia Interface, HDMI )是否已被插入;
当移动终端设备检测到当前处于充电状态或 HDMI已被插入时, 移动终端 设备走正常关机流程; 当移动终端设备检测到当前没有处于充电状态或 HDMI没有被插入时, 移 动终端设备自动选择休眠模式以代替关机, 移动终端设备开始步骤 S32。
当移动终端设备上电源接口和 USB接口不相同时, 当通过系统自动选择 的方式来确定是否选择移动终端设备进入休眠时, 还可以包括:
移动终端设备检测电源接口是否发生被插入电源线事件;
当移动终端设备检测到该电源接口发生被插入电源线事件时, 移动终端 设备自动选择休眠模式以代替关机, 开始执行步骤 S32。
当然, 移动终端设备上电源接口和 USB接口相同时, 当移动终端设备检 测到 USB接口发生被插入 USB线事件时, 移动终端设备走正常关机流程。
步骤 S32, 当确定选择移动终端设备休眠时, 移动终端设备记录与数据连 接相关的服务状态信息; 在本实施例中, 与数据连接相关的服务包括 GPS, WIFI , 蓝牙等。 在本实施例中, 由于移动终端设备在正常使用时, 上述的服 务会有一个当前的使用状态, 当进入休眠的时候, 移动终端设备记录上述服 务的当前使用状态信息, 该记录的状态信息以备后续唤醒移动终端设备所使 用。
步骤 S34, 关闭服务状态处于已开启的与数据连接相关的服务。在本实施 例中, 关闭已开启的与数据连接相关的服务包括开启飞行模式和关闭 G PS。
步骤 S36, 杀掉或关闭非核心进程。 在本实施例中, 核心进程包括 core 进程, phone进程, SYSTEM— U ID的进程, android.process.media进程。 在 本实施例中, 杀掉或关闭非核心进程是指杀掉或关闭除上述核心进程以外的 进程。
步骤 S38, 控制处理器进入休眠模式。 在本实施例中, 当控制处理器进入 休眠模式时, 处理器将不会再处理通讯和应用的服务。 在本实施例中, 可以 通过将处理器当前的运行状态设置为休眠状态, 来控制处理器进入休眠模式。
在本实施例中, 由于处理器可以包括单核, 双核, 四核等多种型号的处 理器。 在本实施例中, 当处理器是单核时, 由于通讯服务和应用服务是由一 个处理器来处理, 因而, 直接控制单核的处理器进入休眠模式; 当处理器是 双核时, 需要控制处理通讯服务的处理器和应用服务的处理器进入休眠模式; 当处理器是四核时, 需要控制处理通讯服务的处理器和应用服务的处理器进 入休眠模式。 以此类推。 若是多核处理器时, 需要控制处理通讯服务的处理 器和应用服务的处理器进入休眠模式。
在本实施例中, 当处理器的应用服务进入休眠模式后, 移动终端设备就 熄屏了, 即表明该移动终端设备已进入休眠模式。
本发明实施例中提供的休眠方法, 通过关闭已开启的与数据连接相关的 服务, 和控制处理器进入休眠模式, 从而可以关闭与数据连接相关的服务和 处理器的使用, 从而可以降低移动终端设备在待机状态下功耗, 与现有技术 相比, 比现有技术关闭了更多的消耗能量的服务和器件, 比现有技术更加节 省移动终端设备的功耗, 从而更加延长了移动终端设备的使用时间。 并且, 在实施例一的基础上, 由于杀掉了或关闭了非核心进程, 可以进一步的减少 移动终端设备的能量消耗。
图 4所示为本发明实施例四提供的一种休眠方法的流程图。
在本实施例中, 步骤 S40, 确定是否选择移动终端设备休眠。
在本实施例中, 可以通过用户手动选择或系统自动选择的方式来确定是 否选择移动终端设备进入休眠。 以下分别描述。
第一种情况: 当通过用户手动选择的方式来确定是否选择移动终端设备 进入休眠时, 可以包括:
当移动终端设备检测到用户手动长时间按移动终端设备上的电源键时, 移动终端设备通过选择框提示用户选择是否进入休眠模式, 或是否进入关机 模式;
当用户选择休眠模式时, 移动终端设备开始步骤 S42和 S44;
当用户选择关机模式时, 移动终端设备执行正常关机流程, 即关机。 移动终端设备可以提供一个选择休眠的应用程序以供用户手动选择, 这 个选择休眠的应用程序可以显示在移动终端设备的触摸屏上, 当通过用户手 动选择的方式来确定是否选择移动终端设备进入休眠时, 还可以包括:
移动终端设备检测用户是否触发该选择休眠的应用程序;
当移动终端设备检测到用户触发该选择休眠的应用程序时, 移动终端设 备开始步骤 S42和 S44。
当通过用户手动选择的方式来确定是否选择移动终端设备进入休眠时, 还可以包括: 移动终端设备在系统设置界面提供选择进入休眠模式的选择框, 以供用户选择。
当移动终端设备检测到用户手动长时间按移动终端设备上的电源键时, 确定系统设置界面中的休眠模式的选择框是否被选中;
若确定系统设置界面中的休眠模式的选择框被选中, 即确定用户选择了 休眠模式, 则移动终端设备开始步骤 S42和 S44;
若确定系统设置界面中的休眠模式的选择框没有被选中, 即确定用户没 有选择休眠模式, 移动终端设备执行正常关机流程, 即关机。
可选的, 当确定系统设置界面中的休眠模式的选择框没有被选中时, 移 动终端设备可以进一步的通过选择框提示用户选择是否进入休眠模式, 或是 否进入关机模式。
第二种情况: 当通过系统自动选择的方式来确定是否选择移动终端设备 进入休眠时, 可以包括:
当移动终端设备检测到用户选择关机时, 移动终端设备检测当前是否处 于充电状态, 或高清晰度多媒体接口 ( High Definition Multimedia Interface, HDMI )是否已被插入;
当移动终端设备检测到当前处于充电状态或 HDMI已被插入时, 移动终端 设备走正常关机流程;
当移动终端设备检测到当前没有处于充电状态或 HDMI没有被插入时, 移 动终端设备走自动选择休眠模式以代替关机, 移动终端设备开始步骤 S42和 S44。
当移动终端设备上电源接口和 USB接口不相同时, 当通过系统自动选择 的方式来确定是否选择移动终端设备进入休眠时, 还可以包括:
移动终端设备检测电源接口是否发生被插入电源线事件;
当移动终端设备检测到该电源接口发生被插入电源线事件时, 移动终端 设备自动选择休眠模式以代替关机, 开始执行步骤 S42和 S44。
当然, 移动终端设备上电源接口和 USB接口相同时, 当移动终端设备检 测到 USB接口发生被插入 USB线事件时, 移动终端设备走正常关机流程。
步骤 S42, 当确定选择移动终端设备休眠时, 在移动终端设备的显示屏上 通过动画或等待框方式显示休眠效果, 或通过声音方式提示休眠进度。
在执行步骤 S42的同时, 可以同步执行以下步骤:
步骤 S44, 当确定选择移动终端设备休眠时, 移动终端设备记录与数据连 接相关的服务状态信息; 在本实施例中, 与数据连接相关的服务包括 GPS, WIFI , 蓝牙等。 在本实施例中, 由于移动终端设备在正常使用时, 上述的服 务会有一个当前的使用状态, 当进入休眠的时候, 移动终端设备记录上述服 务的当前使用状态信息, 该记录的状态信息以备后续唤醒移动终端设备所使 用。
步骤 S46, 关闭服务状态处于已开启的与数据连接相关的服务。在本实施 例中, 关闭已开启的与数据连接相关的服务包括开启飞行模式和关闭 G PS。
步骤 S48, 杀掉或关闭非核心进程。 在本实施例中, 核心进程包括 core 进程, phone进程, SYSTEM— U ID的进程, android.process.media进程。 在 本实施例中, 杀掉或关闭非核心进程是指杀掉或关闭除上述核心进程以外的 进程。
步骤 S49, 控制处理器进入休眠模式。 在本实施例中, 当控制处理器进入 休眠模式时, 处理器将不会再处理通讯和应用的服务。 在本实施例中, 可以 通过将处理器当前的运行状态设置为休眠状态, 来控制处理器进入休眠模式。 在本实施例中, 由于处理器可以包括单核, 双核, 四核等多种型号的处 理器。 在本实施例中, 当处理器是单核时, 由于通讯服务和应用服务是由一 个处理器来处理, 因而, 直接控制单核的处理器进入休眠模式; 当处理器是 双核时, 需要控制处理通讯服务的处理器和应用服务的处理器进入休眠模式; 当处理器是四核时, 需要控制处理通讯服务的处理器和应用服务的处理器进 入休眠模式。 以此类推。 若是多核处理器时, 需要控制处理通讯服务的处理 器和应用服务的处理器进入休眠模式。
当处理器进入休眠模式后, 步骤 S42可以结束操作, 以表明移动终端设备 当前已进入休眠模式。
本发明实施例中提供的休眠方法, 通过关闭已开启的与数据连接相关的 服务, 和控制处理器进入休眠模式, 从而可以关闭与数据连接相关的服务和 处理器的使用, 从而可以降低移动终端设备在待机状态下功耗, 与现有技术 相比, 比现有技术关闭了更多的消耗能量的服务和器件, 比现有技术更加节 省移动终端设备的功耗, 从而更加延长了移动终端设备的使用时间。 并且, 在实施例一的基础上, 由于杀掉了或关闭了非核心进程, 可以进一步的减少 移动终端设备的能量消耗。
在本实施例中, 当移动终端设备休眠后, 若用户需要重新启用该已休眠 的移动终端设备时, 需要唤醒该移动终端设备。 当用户需要使用移动终端设 备时, 通过用户操作来唤醒当前的移动终端设备, 也可以通过移动终端设备 的系统自动选择唤醒功能来唤醒当前的移动终端设备。
与实施例一、 二、 三、 四相对应的, 以下将分别进行描述。
图 5所示为本发明实施例五提供的一种唤醒方法的流程图。
在本实施例中, 与实施例一相对应的, 步骤 S50, 当确定移动终端设备需 要被唤醒时, 唤醒已进入睡眠的处理器。
在本实施例中, 当处理器是单核的时候, 可以先唤醒处理器的应用服务, 再唤醒处理器的通讯服务; 也可以只唤醒处理器的应用服务, 不唤醒处理器 的通讯服务, 或是理解为, 先唤醒处理器的应用服务, 再确定是否唤醒处理 器的通讯服务; 也可以同时唤醒处理器的应用服务和通讯服务。
在本实施例中, 可以先唤醒处理器的应用服务, 再唤醒处理器的通讯服 务; 也可以只唤醒处理器的应用服务, 不唤醒处理器的通讯服务的过程可以 包括:
当唤醒处理器的应用服务后,判断当前移动终端设备是否已插入 SIM卡和 是否没有开启飞行模式;
当确定当前移动终端设备已插入 SIM卡和没有开启飞行模式时,唤醒处理 器的通讯服务;
当确定当前移动终端设备已插入 SIM卡和已开启飞行模式, 或没有插入 SIM卡和已开启飞行模式, 或没有插入 SIM卡和没有开启飞行模式时, 不唤醒 处理器的通讯服务。
当处理器是双核时, 需要唤醒处理通讯服务的处理器和应用服务的处理 器, 其中, 可以先唤醒处理应用服务的处理器, 再唤醒处理通讯服务的处理 器; 也可以只唤醒处理应用服务的处理器, 不唤醒处理通讯服务的处理器; 也可以同时唤醒处理应用服务和通讯服务的处理器。
当处理器是四核时, 需要唤醒处理通讯服务的处理器和应用服务的处理 器, 其中, 可以先唤醒处理应用服务的处理器, 再唤醒处理通讯服务的处理 器; 也可以只唤醒处理应用服务的处理器, 不唤醒处理通讯服务的处理器; 或是理解为, 先唤醒处理应用服务的处理器, 再确定是否唤醒处理通讯服务 的处理器; 也可以同时唤醒处理应用服务和通讯服务的处理器。
以此类推。 若是多核处理器时, 需要唤醒处理通讯服务的处理器和应用 服务的处理器。
在本实施例中, 可以先唤醒处理应用服务的处理器, 再确定是否唤醒处 理通讯服务的处理器的过程可以包括:
当唤醒处理器的应用服务后,判断当前移动终端设备是否已插入 SIM卡和 是否没有开启飞行模式;
当确定当前移动终端设备已插入 SIM卡和没有开启飞行模式时,唤醒处理 器的通讯服务;
当确定当前移动终端设备已插入 SIM卡和已开启飞行模式, 或没有插入 SIM卡和已开启飞行模式, 或没有插入 SIM卡和没有开启飞行模式时, 不唤醒 处理器的通讯服务。
在本实施例中, 确定移动终端设备需要被唤醒的过程可以包括: 检测当前移动终端设备的电源键是否被按下, 或检测当前移动终端设备 的电源接口是否被插入电源线, 或检测当前移动终端设备的 HDMI是否被插入 HDMI线, 或检测当前移动终端设备的 SIM卡是否被插拔; 也可以理解为, 检 测当前的移动终端设备是否发生了电源键被按下的事件, 或是否发生了电源 接口被插入电源线的事件, 或是否发生了 HDMI被插入 HDMI线的事件, 或是 否发生了 SIM卡被插拔的事件;
若检测到当前移动终端设备的电源键被按下, 或检测到当前移动终端设 备的电源接口被插入电源线, 或检测当前移动终端设备的 HDMI被插入 HDMI 线, 或检测当前移动终端设备的 SIM卡被插拔, 则确定移动终端设备需要被唤 醒; 也可以理解为, 检测到当前的移动终端设备发生了电源键被按下的事件, 或发生了电源接口被插入电源线的事件, 或发生了 H DM I被插入 H DM I线的事 件, 或发生了 SIM卡被插拔的事件, 则确定移动终端设备需要被唤醒;
若检测到当前移动终端设备的电源键没有被按下, 或检测到当前移动终 端设备的电源接口没有被插入电源线, 或检测当前移动终端设备的 HDMI没有 被插入 HDMI线, 或检测当前移动终端设备的 SIM卡没有被插拔, 则确定移动 终端设备不需要被唤醒; 也可以理解为, 检测到当前的移动终端设备没有发 生了电源键被按下的事件, 或没有发生了电源接口被插入电源线的事件, 或 没有发生了 HDMI被插入 HDMI线的事件, 或没有发生了 SIM卡被插拔的事件, 则确定移动终端设备不需要被唤醒。 步骤 S52 ,恢复在休眠模式中关闭的处于开启状态的与数据连接相关的服 务, 以使移动终端设备进入系统。 在本实施例中, 与数据连接相关的服务包 括 GPS, WIFI , 蓝牙等。 在进入休眠前时, 移动终端设备记录了上述服务的 当前的开启状态和关闭状态信息, 并在进入休眠的时候, 需要关闭处于开启 状态的与数据连接相关的服务, 因而, 在唤醒移动终端设备的时候, 需要恢 复在休眠模式中关闭的处于开启状态的与数据连接相关的服务。
当执行完上述的步骤后, 可以认为是已唤醒了移动终端设备, 移动终端 设备进入系统并显示开机后的画面。
本发明实施例中提供的唤醒方法, 当确定移动终端设备需要唤醒时, 通 过唤醒已进入睡眠的处理器, 并恢复在休眠模式中关闭的处于开启状态的与 数据连接相关的服务, 从而最终唤醒移动终端设备, 并使移动终端设备进入 系统并显示开机后的画面, 相比现有技术中的正常开机过程会让用户等待很 长的时间而言, 不需要再执行现有技术中开机过程中的系统初始化和加载各 种系统程序的操作, 而只需要唤醒已进入睡眠的处理器, 并恢复在休眠模式 中关闭的处于开启状态的与数据连接相关的服务, 就可以快速唤醒移动终端 设备, 并使移动终端设备进入系统并显示开机后的画面, 也就使用户不需要 去选择关机的方式来节省移动终端设备的功耗, 并当需要手机时, 再通过重 新开机来使移动终端设备开始正常工作, 从而大大的提高了用户的体验。
在本实施例中, 本发明实施例中提供的唤醒方法, 可以实现在 2S的时间 快速唤醒移动终端设备。
在本实施例中, 可选的, 在图 5的基础上, 可选择的增加额外的操作。 比 如, 在当确定移动终端设备需要被唤醒时, 在移动终端设备的显示屏上通过 动画或等待框显示唤醒效果, 或通过声音提示唤醒进度。 当然, 上述的操作 可以跟其它步骤同时进行。 在本实施例中, 若在图 5的基础上, 可选择的增加 额外的操作, 会延长唤醒移动终端设备的时间, 但依然会比现有技术的开机 时间要快。 在本实施例中, 可选择的增加额外的操作, 可以实现在 5S内的时 间快速唤醒移动终端设备。 同时, 也可以随时为用户提示当前移动终端设备 的唤醒效果, 可以提高用户的体验感。
可选的, 若在休眠过程中, 执行了杀掉或关闭非核心进程, 在唤醒的过 程中, 在恢复在休眠模式中关闭的处于开启状态的与数据连接相关的服务后, 发送启动完成消息给移动终端设备内部的应用程序, 以实现在开机过程中需 要开机运行的服务开始运行。 在本实施例中, 若在图 5的基础上, 可选择的增 加额外的操作, 会延长唤醒移动终端设备的时间, 但依然会比现有技术的开 机时间要快。 在本实施例中, 可选择的增加额外的操作, 可以实现在 5S内的 时间快速唤醒移动终端设备。
以下将结合上述可选的操作和实施例一的唤醒方法进行分别描述。
图 6所示为本发明实施例六提供的一种唤醒方法的流程图。
在本实施例中, 与实施例二相对应的, 步骤 S60, 确定移动终端设备是否 需要被唤醒。
在本实施例中, 确定移动终端设备是否需要被唤醒的过程可以包括: 检测当前移动终端设备的电源键是否被按下, 或检测当前移动终端设备 的电源接口是否被插入电源线, 或检测当前移动终端设备的 HDMI是否被插入 HDMI线, 或检测当前移动终端设备的 SIM卡是否被插拔; 也可以理解为, 检 测当前的移动终端设备是否发生了电源键被按下的事件, 或是否发生了电源 接口被插入电源线的事件, 或是否发生了 HDMI被插入 HDMI线的事件, 或是 否发生了 SIM卡被插拔的事件;
若检测到当前移动终端设备的电源键被按下, 或检测到当前移动终端设 备的电源接口被插入电源线, 或检测当前移动终端设备的 HDMI被插入 HDMI 线, 或检测当前移动终端设备的 SIM卡被插拔, 则确定移动终端设备需要被唤 醒, 可以执行步骤 S61和 S62; 也可以理解为, 检测到当前的移动终端设备发 生了电源键被按下的事件, 或发生了电源接口被插入电源线的事件, 或发生 了 HDMI被插入 HDMI线的事件,或发生了 SIM卡被插拔的事件,则确定移动终 端设备需要被唤醒, 可以执行步骤 S61和 S62;
若检测到当前移动终端设备的电源键没有被按下, 或检测到当前移动终 端设备的电源接口没有被插入电源线, 或检测当前移动终端设备的 H DM I没有 被插入 HDMI线, 或检测当前移动终端设备的 SIM卡没有被插拔, 则确定移动 终端设备不需要被唤醒; 也可以理解为, 检测到当前的移动终端设备没有发 生了电源键被按下的事件, 或没有发生了电源接口被插入电源线的事件, 或 没有发生了 HDMI被插入 HDMI线的事件, 或没有发生了 SIM卡被插拔的事件, 则确定移动终端设备不需要被唤醒, 移动终端设备将不于响应, 即不做任何 操作。
步骤 S61 , 当确定移动终端设备需要被唤醒时,在移动终端设备的显示屏 上通过动画或等待框显示唤醒效果, 或通过声音提示唤醒进度。
在执行步骤 S61的同时, 可以同步执行以下步骤。
步骤 S62,当确定移动终端设备需要被唤醒时,唤醒已进入睡眠的处理器。 步骤 S64 ,恢复在休眠模式中关闭的处于开启状态的与数据连接相关的服 务, 以使移动终端设备进入系统。 在本实施例中, 与数据连接相关的服务包 括 GPS, WIFI , 蓝牙等。 在进入休眠前时, 移动终端设备记录了上述服务的 当前的开启状态和关闭状态信息, 并在进入休眠的时候, 需要关闭处于开启 状态的与数据连接相关的服务, 因而, 在唤醒移动终端设备的时候, 需要恢 复在休眠模式中关闭的处于开启状态的与数据连接相关的服务。
当执行完上述的步骤后, 可以认为是已唤醒了移动终端设备, 步骤 S61 可以结束操作, 移动终端设备进入系统并显示开机后的画面。 在本实施例中, 在移动终端设备的显示屏上通过动画或等待框显示唤醒效果, 或通过声音提 示唤醒进度中, 该动画或等待框的显示时间, 或声音的提示时间可以大于或 等于执行步骤 S62和 S64的所使用的时间。
本发明实施例中提供的唤醒方法, 当确定移动终端设备需要唤醒时, 通 过唤醒已进入睡眠的处理器, 并恢复在休眠模式中关闭的处于开启状态的与 数据连接相关的服务, 从而最终唤醒移动终端设备, 并使移动终端设备进入 系统并显示开机后的画面, 相比现有技术中的正常开机过程会让用户等待很 长的时间而言, 不需要再执行现有技术中开机过程中的系统初始化和加载各 种系统程序的操作, 而只需要唤醒已进入睡眠的处理器, 并恢复在休眠模式 中关闭的处于开启状态的与数据连接相关的服务, 就可以快速唤醒移动终端 设备, 并使移动终端设备进入系统并显示开机后的画面, 也就使用户不需要 去选择关机的方式来节省移动终端设备的功耗, 并当需要手机时, 再通过重 新开机来使移动终端设备开始正常工作, 从而大大的提高了用户的体验。
图 7所示为本发明实施例七提供的一种唤醒方法的流程图。
在本实施例中, 与实施例三相对应的, 步骤 S70, 确定移动终端设备是否 需要被唤醒。
在本实施例中, 确定移动终端设备是否需要被唤醒的过程可以包括: 检测当前移动终端设备的电源键是否被按下, 或检测当前移动终端设备 的电源接口是否被插入电源线, 或检测当前移动终端设备的 HDMI是否被插入 HDMI线, 或检测当前移动终端设备的 SIM卡是否被插拔; 也可以理解为, 检 测当前的移动终端设备是否发生了电源键被按下的事件, 或是否发生了电源 接口被插入电源线的事件, 或是否发生了 HDMI被插入 HDMI线的事件, 或是 否发生了 SIM卡被插拔的事件;
若检测到当前移动终端设备的电源键被按下, 或检测到当前移动终端设 备的电源接口被插入电源线, 或检测当前移动终端设备的 HDMI被插入 HDMI 线, 或检测当前移动终端设备的 SIM卡被插拔, 则确定移动终端设备需要被唤 醒, 可以执行步骤 S71 ; 也可以理解为, 检测到当前的移动终端设备发生了电 源键被按下的事件, 或发生了电源接口被插入电源线的事件, 或发生了 HDMI 被插入 HDMI线的事件, 或发生了 SIM卡被插拔的事件, 则确定移动终端设备 需要被唤醒, 可以执行步骤 S71 ;
若检测到当前移动终端设备的电源键没有被按下, 或检测到当前移动终 端设备的电源接口没有被插入电源线, 或检测当前移动终端设备的 H DM I没有 被插入 HDMI线, 或检测当前移动终端设备的 SIM卡没有被插拔, 则确定移动 终端设备不需要被唤醒; 也可以理解为, 检测到当前的移动终端设备没有发 生了电源键被按下的事件, 或没有发生了电源接口被插入电源线的事件, 或 没有发生了 HDMI被插入 HDMI线的事件, 或没有发生了 SIM卡被插拔的事件, 则确定移动终端设备不需要被唤醒, 移动终端设备将不于响应, 即不做任何 操作。
步骤 S71 ,当确定移动终端设备需要被唤醒时,唤醒已进入睡眠的处理器。 步骤 S72 ,恢复在休眠模式中关闭的处于开启状态的与数据连接相关的服 务, 以使移动终端设备进入系统。 在本实施例中, 与数据连接相关的服务包 括 GPS, WIFI , 蓝牙等。 在进入休眠前时, 移动终端设备记录了上述服务的 当前的开启状态和关闭状态信息, 并在进入休眠的时候, 需要关闭处于开启 状态的与数据连接相关的服务, 因而, 在唤醒移动终端设备的时候, 需要恢 复在休眠模式中关闭的处于开启状态的与数据连接相关的服务。
步骤 S73,发送启动完成消息给移动终端设备内部的应用程序, 以实现在 开机过程中需要开机运行的服务开始运行。
当执行完上述的步骤后, 可以认为是已唤醒了移动终端设备, 移动终端 设备进入系统并显示开机后的画面。
本发明实施例中提供的唤醒方法, 当确定移动终端设备需要唤醒时, 通 过唤醒已进入睡眠的处理器, 并恢复在休眠模式中关闭的处于开启状态的与 数据连接相关的服务, 从而最终唤醒移动终端设备, 并使移动终端设备进入 系统并显示开机后的画面, 相比现有技术中的正常开机过程会让用户等待很 长的时间而言, 不需要再执行现有技术中开机过程中的系统初始化和加载各 种系统程序的操作, 而只需要唤醒已进入睡眠的处理器, 并恢复在休眠模式 中关闭的处于开启状态的与数据连接相关的服务, 就可以快速唤醒移动终端 设备, 并使移动终端设备进入系统并显示开机后的画面, 也就使用户不需要 去选择关机的方式来节省移动终端设备的功耗, 并当需要手机时, 再通过重 新开机来使移动终端设备开始正常工作, 从而大大的提高了用户的体验。
图 8所示为本发明实施例八提供的一种唤醒方法的流程图。
在本实施例中, 与实施例四相对应的, 步骤 S80, 确定移动终端设备是否 需要被唤醒。
在本实施例中, 确定移动终端设备是否需要被唤醒的过程可以包括: 检测当前移动终端设备的电源键是否被按下, 或检测当前移动终端设备 的电源接口是否被插入电源线, 或检测当前移动终端设备的 HDMI是否被插入 HDMI线, 或检测当前移动终端设备的 SIM卡是否被插拔; 也可以理解为, 检 测当前的移动终端设备是否发生了电源键被按下的事件, 或是否发生了电源 接口被插入电源线的事件, 或是否发生了 HDMI被插入 HDMI线的事件, 或是 否发生了 SIM卡被插拔的事件;
若检测到当前移动终端设备的电源键被按下, 或检测到当前移动终端设 备的电源接口被插入电源线, 或检测当前移动终端设备的 HDMI被插入 HDMI 线, 或检测当前移动终端设备的 SIM卡被插拔, 则确定移动终端设备需要被唤 醒, 可以执行步骤 S81和 S82; 也可以理解为, 检测到当前的移动终端设备发 生了电源键被按下的事件, 或发生了电源接口被插入电源线的事件, 或发生 了 HDMI被插入 HDMI线的事件,或发生了 SIM卡被插拔的事件,则确定移动终 端设备需要被唤醒, 可以执行步骤 S81和 S82;
若检测到当前移动终端设备的电源键没有被按下, 或检测到当前移动终 端设备的电源接口没有被插入电源线, 或检测当前移动终端设备的 HDMI没有 被插入 HDMI线, 或检测当前移动终端设备的 SIM卡没有被插拔, 则确定移动 终端设备不需要被唤醒; 也可以理解为, 检测到当前的移动终端设备没有发 生了电源键被按下的事件, 或没有发生了电源接口被插入电源线的事件, 或 没有发生了 HDMI被插入 HDMI线的事件, 或没有发生了 SIM卡被插拔的事件, 则确定移动终端设备不需要被唤醒, 移动终端设备将不于响应, 即不做任何 操作。
步骤 S81 , 当确定移动终端设备需要被唤醒时,在移动终端设备的显示屏 上通过动画或等待框显示唤醒效果, 或通过声音提示唤醒进度。 在本实施例 中, 该步骤 S81可以与以下步骤同时执行。
步骤 S82,当确定移动终端设备需要被唤醒时,唤醒已进入睡眠的处理器。 步骤 S83 ,恢复在休眠模式中关闭的处于开启状态的与数据连接相关的服 务, 以使移动终端设备进入系统。 在本实施例中, 与数据连接相关的服务包 括 GPS, WIFI , 蓝牙等。 在进入休眠前时, 移动终端设备记录了上述服务的 当前的开启状态和关闭状态信息, 并在进入休眠的时候, 需要关闭处于开启 状态的与数据连接相关的服务, 因而, 在唤醒移动终端设备的时候, 需要恢 复在休眠模式中关闭的处于开启状态的与数据连接相关的服务。
步骤 S84,发送启动完成消息给移动终端设备内部的应用程序, 以实现在 开机过程中需要开机运行的服务开始运行。
当执行完上述的步骤后, 可以认为是已唤醒了移动终端设备, 步骤 S81 可以结束操作, 移动终端设备进入系统并显示开机后的画面。
本发明实施例中提供的唤醒方法, 当确定移动终端设备需要唤醒时, 通 过唤醒已进入睡眠的处理器, 并恢复在休眠模式中关闭的处于开启状态的与 数据连接相关的服务, 从而最终唤醒移动终端设备, 并使移动终端设备进入 系统并显示开机后的画面, 相比现有技术中的正常开机过程会让用户等待很 长的时间而言, 不需要再执行现有技术中开机过程中的系统初始化和加载各 种系统程序的操作, 而只需要唤醒已进入睡眠的处理器, 并恢复在休眠模式 中关闭的处于开启状态的与数据连接相关的服务, 就可以快速唤醒移动终端 设备, 并使移动终端设备进入系统并显示开机后的画面, 也就使用户不需要 去选择关机的方式来节省移动终端设备的功耗, 并当需要手机时, 再通过重 新开机来使移动终端设备开始正常工作, 从而大大的提高了用户的体验。
相应的, 图 9所示为本发明实施例一提供的一种移动终端设备的结构图。 在本实施例中, 记录单元 90、 关闭单元 92, 控制单元 94。
其中, 记录单元 90用于当确定选择移动终端设备休眠时, 记录与数据连 接相关的服务状态信息。 在本实施例中, 与数据连接相关的服务包括 GPS, WIFI , 蓝牙等。 在本实施例中, 由于移动终端设备在正常使用时, 上述的服 务会有一个当前的使用状态, 当进入休眠的时候, 移动终端设备记录上述服 务的当前的开启状态和关闭状态信息, 该记录的状态信息以备后续唤醒移动 终端设备所使用。
关闭单元 92用于根据记录单元 90记录的与数据连接相关的服务状态信 息, 关闭处于开启状态的与数据连接相关的服务。 在本实施例中, 关闭已开 启的与数据连接相关的服务包括开启飞行模式和关闭 G PS。 务后, 控制处理器进入休眠模式。 在本实施例中, 当控制处理器进入休眠模 式时, 处理器将不会再处理通讯和应用的服务。 在本实施例中, 可以通过将 处理器当前的运行状态设置为休眠状态, 来控制处理器进入休眠模式。
在本实施例中, 由于处理器可以包括单核, 双核, 四核等多种型号的处 理器。 在本实施例中, 当处理器是单核时, 由于通讯服务和应用服务是由一 个处理器来处理, 因而, 直接控制单核的处理器进入休眠模式; 当处理器是 双核时, 需要控制处理通讯服务的处理器和应用服务的处理器进入休眠模式; 当处理器是四核时, 需要控制处理通讯服务的处理器和应用服务的处理器进 入休眠模式。 以此类推。 若是多核处理器时, 需要控制处理通讯服务的处理 器和应用服务的处理器进入休眠模式。
在本实施例中, 当处理器的应用服务进入休眠模式后, 移动终端设备就 熄屏了, 即表明该移动终端设备已进入休眠模式。
在本实施例中, 移动终端设备还可以包括休眠确定单元 91 , 其中, 该休 眠确定单元 91用于确定是否选择移动终端设备进入休眠。 在本实施例中, 休 眠确定单元 91通过用户手动选择或系统自动选择的方式来确定是否选择移动 终端设备进入休眠。 以下分别描述。
第一种情况: 当通过用户手动选择的方式来确定是否选择移动终端设备 进入休眠时, 可以包括:
当休眠确定单元 91检测到用户手动长时间按移动终端设备上的电源键 时, 休眠确定单元 91通过选择框提示用户选择是否进入休眠模式, 或是否进 入关机模式;
当用户选择休眠模式时, 记录单元 90开始记录与数据连接相关的服务状 态信息; 即, 记录单元 90用于当休眠确定单元 91确定选择移动终端设备休眠 时, 记录与数据连接相关的服务状态信息;
当用户选择关机模式时, 移动终端设备执行正常关机, 即关机, 此时, 还可以包括关机模块(未画出) , 用于执行正常关机。
移动终端设备可以提供一个选择休眠的应用程序以供用户手动选择, 这 个选择休眠的应用程序可以显示在移动终端设备的触摸屏上, 当通过用户手 动选择的方式来确定是否选择移动终端设备进入休眠时, 休眠确定单元 91检 测用户是否触发该选择休眠的应用程序, 当检测到用户触发该选择休眠的应 用程序时, 休眠确定单元 91确定用户选择了休眠模式, 则记录单元 90开始记 录与数据连接相关的服务状态信息; 即, 记录单元 90用于当休眠确定单元 91 确定选择移动终端设备休眠时, 记录与数据连接相关的服务状态信息。
当通过用户手动选择的方式来确定是否选择移动终端设备进入休眠时, 还可以包括: 移动终端设备在系统设置界面提供选择进入休眠模式的选择框, 以供用户选择。
当休眠确定单元 91检测到用户手动长时间按移动终端设备上的电源键 时, 确定系统设置界面中的休眠模式的选择框是否被选中;
若确定系统设置界面中的休眠模式的选择框被选中, 即休眠确定单元 91 确定用户选择了休眠模式, 则记录单元 90开始记录与数据连接相关的服务状 态信息; 即, 记录单元 90用于当休眠确定单元 91确定选择移动终端设备休眠 时, 记录与数据连接相关的服务状态信息;
若确定系统设置界面中的休眠模式的选择框没有被选中, 即确定用户没 有选择休眠模式, 移动终端设备执行正常关机, 即关机。
可选的, 当确定系统设置界面中的休眠模式的选择框没有被选中时, 休 眠确定单元 91可以进一步的通过选择框提示用户选择是否进入休眠模式, 或 是否进入关机模式。
第二种情况: 当通过系统自动选择的方式来确定是否选择移动终端设备 进入休眠时, 可以包括:
当休眠确定单元 91检测到用户选择关机时, 休眠确定单元 91检测当前是 否处于充电状态, 或高清晰度多媒体接口 ( High Definition Multimedia Interface, HDMI )是否已被插入 HDMI线;
当休眠确定单元 91检测到当前处于充电状态或 HDMI已被插入时,休眠确 定单元 91确定走正常关机流程;
当休眠确定单元 91检测到当前没有处于充电状态或 HDMI没有被插入时, 休眠确定单元 91自动选择休眠模式以代替关机, 则记录单元 90开始记录与数 据连接相关的服务状态信息; 即, 记录单元 90用于当休眠确定单元 91确定选 择移动终端设备休眠时, 记录与数据连接相关的服务状态信息。
当移动终端设备上电源接口和 USB接口不相同时, 当通过系统自动选择 的方式来确定是否选择移动终端设备进入休眠时, 休眠确定单元 91进一步用 于检测电源接口是否发生被插入电源线事件, 当检测到该电源接口发生被插 入电源线事件时, 休眠确定单元 91自动选择休眠模式以代替关机。
当然, 移动终端设备上电源接口和 USB接口相同时, 当休眠确定单元 91 检测到 USB接口发生被插入 USB线事件时, 休眠确定单元 91确定走正常关机 流程。
本发明实施例中提供的移动终端设备, 通过关闭已开启的与数据连接相 关的服务, 和控制处理器进入休眠模式, 从而可以关闭与数据连接相关的服 务和处理器的使用, 从而可以降低移动终端设备在待机状态下功耗, 与现有 技术相比, 比现有技术关闭了更多的消耗能量的服务和器件, 比现有技术更 加节省移动终端设备的功耗, 从而更加延长了移动终端设备的使用时间, 并 且也不需要用户去选择关机的方式来节省移动终端设备的功耗。
图 10所示为本发明实施例二提供的一种移动终端设备的结构图。
在本实施例中, 在图 9的基础上, 可选的, 移动终端设备还可以包括休眠 提示单元 93, 用于在当确定选择移动终端设备休眠时, 在移动终端设备的显 示屏上通过动画或等待框显示休眠效果, 或通过声音提示休眠进度。
在本实施例中, 休眠提示单元 93进一步用于当休眠确定单元 91确定选择 移动终端设备休眠时, 在移动终端设备的显示屏上通过动画或等待框显示休 眠效果, 或通过声音提示休眠进度。
在本实施例中, 在移动终端设备的显示屏上通过动画或等待框显示休眠 效果, 或通过声音提示休眠进度这种方式提示用户, 以达到提高用户的体验 感。
图 1 1所示为本发明实施例三提供的一种移动终端设备的结构图。
在本实施例中, 在图 9的基础上, 可选的, 关闭单元 92还可以用于当关闭 服务状态处于已开启的与数据连接相关的服务后, 杀掉或关闭非核心进程。 在本实施例中,核心进程包括 core进程, phone进程, SYSTEM—UID的进程, android. process.media进程。 在本实施例中, 杀掉或关闭非核心进程是指杀 掉或关闭除上述核心进程以外的进程。
在实施例一的基础上, 由于杀掉了或关闭了非核心进程, 可以进一步的 减少移动终端设备的能量消耗。
图 12所示为本发明实施例四提供的一种移动终端设备的结构图。
在本实施例中, 在图 9的基础上, 可选的, 结合图 10和图 1 1 , 移动终端设 备可以同时包括休眠提示单元 93和关闭单元 92, 其中, 关闭单元 92用于当关 闭服务状态处于已开启的与数据连接相关的服务后, 杀掉或关闭非核心进程; 休眠提示单元 93用于当休眠确定单元 91确定选择移动终端设备休眠时, 在移 动终端设备的显示屏上通过动画或等待框显示休眠效果, 或通过声音提示休 眠进度。
在本实施例中, 当移动终端设备休眠后, 若用户需要重新启用该已休眠 的移动终端设备时, 需要唤醒该移动终端设备。 当用户需要使用移动终端设 备时, 通过用户操作来唤醒当前的移动终端设备, 也可以通过移动终端设备 的系统自动选择唤醒功能来唤醒当前的移动终端设备。
与实施例五、 六、 七、 八相对应的, 以下将分别进行描述。
图 13所示为本发明实施例五提供的一种移动终端设备的结构图。
在本实施例中, 与实施例五对应的, 移动终端设备包括唤醒单元 96和恢 复单元 97。 其中, 唤醒单元 96用于当确定移动终端设备需要被唤醒时, 唤醒 已进入睡眠的处理器。 在本实施例中, 当处理器是单核时, 可以先唤醒处理 器的应用服务, 再唤醒处理器的通讯服务; 也可以只唤醒处理器的应用服务, 不唤醒处理器的通讯服务, 或是可以理解为, 先唤醒处理器的应用服务, 再 确定是否唤醒处理器的通讯服务; 也可以同时唤醒处理器的应用服务和通讯 服务。
在本实施例中, 当可以先唤醒处理器的应用服务, 再确定是否唤醒处理 器的通讯服务时, 所述唤醒单元 96包括: 第一唤醒子单元 961和第二唤醒子单 元 962。
其中, 第一唤醒子单元 961用于唤醒处理器的应用服务。 第二唤醒子单元 962用于当唤醒处理器的应用服务后, 判断当前移动终端设备是否已插入 SIM 卡和是否没有开启飞行模式。 在本实施例中, 第二唤醒子单元 962进一步用于 当确定当前移动终端设备已插入 SIM卡和没有开启飞行模式时,唤醒处理器的 通讯服务, 或当确定当前移动终端设备已插入 SIM卡和已开启飞行模式, 或没 有插入 SIM卡和已开启飞行模式, 或没有插入 SIM卡和没有开启飞行模式时, 不唤醒处理器的通讯服务。 当处理器是双核时, 需要唤醒处理通讯服务的处理器和应用服务的处理 器, 其中, 可以先唤醒处理应用服务的处理器, 再唤醒处理通讯服务的处理 器; 也可以只唤醒处理应用服务的处理器, 不唤醒处理通讯服务的处理器, 或是可以理解为, 先唤醒处理应用服务的处理器, 再确定是否唤醒处理通讯 服务的处理器; 也可以同时唤醒处理应用服务和通讯服务的处理器。
当处理器是四核时, 需要唤醒处理通讯服务的处理器和应用服务的处理 器, 其中, 可以先唤醒处理应用服务的处理器, 再唤醒处理通讯服务的处理 器; 也可以只唤醒处理应用服务的处理器, 不唤醒处理通讯服务的处理器, 或是可以理解为, 先唤醒处理应用服务的处理器, 再确定是否唤醒处理通讯 服务的处理器; 也可以同时唤醒处理应用服务和通讯服务的处理器。
以此类推。 若是多核处理器时, 需要唤醒处理通讯服务的处理器和应用 服务的处理器。
在本实施例中, 当可以先唤醒处理器的应用服务, 再确定是否唤醒处理 器的通讯服务时, 所述唤醒单元 96包括: 第一唤醒子单元 961和第二唤醒子单 元 962。
其中, 第一唤醒子单元 961用于唤醒处理应用服务的处理器。 第二唤醒子 单元 962用于当唤醒处理应用服务的处理器后,判断当前移动终端设备是否已 插入 SIM卡和是否没有开启飞行模式。 在本实施例中, 第二唤醒子单元 962进 一步用于当确定当前移动终端设备已插入 SIM卡和没有开启飞行模式时,唤醒 处理通讯服务的处理器,或当确定当前移动终端设备已插入 SIM卡和已开启飞 行模式, 或没有插入 SIM卡和已开启飞行模式, 或没有插入 SIM卡和没有开启 飞行模式时, 不唤醒处理通讯服务的处理器。
恢复单元 97用于恢复在休眠模式中关闭的处于开启状态的与数据连接相 关的服务。 在本实施例中, 与数据连接相关的服务包括 GPS, WIFI , 蓝牙等。 在进入休眠前时, 移动终端设备记录了上述服务的当前的开启状态和关闭状 态信息, 并在进入休眠的时候, 需要关闭处于开启状态的与数据连接相关的 服务, 因而, 在唤醒移动终端设备的时候, 需要恢复在休眠模式中关闭的处 于开启状态的与数据连接相关的服务。
在本实施例中, 通过唤醒单元 96和恢复单元 97的执行操作, 可以认为是 已唤醒了移动终端设备, 移动终端设备进入系统并显示开机后的画面。
在本实施例中, 移动终端设备还可以包括唤醒确定模块 95, 用于确定移 动终端设备是否需要被唤醒。
在本实施例中, 确定模块 95进一步用于检测当前移动终端设备的电源键 是否被按下, 或检测当前移动终端设备的电源接口是否被插入电源线, 或检 测当前移动终端设备的 HDMI是否被插入 HDMI线, 或检测当前移动终端设备 的 SIM卡是否被插拔, 来确定移动终端设备是否需要被唤醒。 也可以理解为, 检测当前的移动终端设备是否发生了电源键被按下的事件, 或是否发生了电 源接口被插入电源线的事件, 或是否发生了 HDMI被插入 HDMI线的事件, 或 是否发生了 SIM卡被插拔的事件, 来确定移动终端设备是否需要被唤醒。
唤醒确定模块 95进一步用于若检测到当前移动终端设备的电源键被按 下, 或检测到当前移动终端设备的电源接口被插入电源线, 或检测当前移动 终端设备的 HDMI被插入 HDMI线, 或检测当前移动终端设备的 SIM卡被插拔, 确定移动终端设备需要被唤醒; 也可以理解为, 检测到当前的移动终端设备 发生了电源键被按下的事件, 或发生了电源接口被插入电源线的事件, 或发 生了 HDMI被插入 HDMI线的事件,或发生了 SIM卡被插拔的事件,确定移动终 端设备需要被唤醒;
唤醒确定模块 95进一步用于若检测到当前移动终端设备的电源键没有被 按下, 或检测到当前移动终端设备的电源接口没有被插入电源线, 或检测当 前移动终端设备的 HDMI没有被插入 HDMI线,或检测当前移动终端设备的 SIM 卡没有被插拔, 确定移动终端设备不需要被唤醒; 也可以理解为, 检测到当 前的移动终端设备没有发生了电源键被按下的事件, 或没有发生了电源接口 被插入电源线的事件, 或没有发生了 HDMI被插入 HDMI线的事件, 或没有发 生了 SIM卡被插拔的事件, 确定移动终端设备不需要被唤醒。
本发明实施例中提供的移动终端设备, 当确定移动终端设备需要唤醒时, 通过唤醒已进入睡眠的处理器, 并恢复在休眠模式中关闭的处于开启状态的 与数据连接相关的服务, 从而最终唤醒移动终端设备, 并使移动终端设备进 入系统并显示开机后的画面, 相比现有技术中的正常开机过程会让用户等待 很长的时间而言, 不需要再执行现有技术中开机过程中的系统初始化和加载 各种系统程序的操作, 而只需要唤醒已进入睡眠的处理器, 并恢复在休眠模 式中关闭的处于开启状态的与数据连接相关的服务, 就可以快速唤醒移动终 端设备, 并使移动终端设备进入系统并显示开机后的画面, 也就使用户不需 要去选择关机的方式来节省移动终端设备的功耗, 并当需要手机时, 再通过 重新开机来使移动终端设备开始正常工作, 从而大大的提高了用户的体验。
在本实施例中, 本发明实施例中提供的移动终端设备, 可以实现在 2S的 时间快速唤醒移动终端设备。
图 14所示为本发明实施例六提供的一种移动终端设备的结构图。
在本实施例中, 与实施例六对应的, 可选的, 在图 13的基础上, 移动终 端设备还可以包括唤醒提示单元 98, 用于当唤醒确定模块 95确定移动终端设 备需要被唤醒时, 在移动终端设备的显示屏上通过动画或等待框显示唤醒效 果, 或通过声音提示唤醒进度。
在本实施例中, 在移动终端设备的显示屏上通过动画或等待框显示唤醒 效果, 或通过声音提示唤醒进度这种方式提示用户, 以达到提高用户的体验 感。
在本实施例中, 若在图 13的基础上, 可选择的增加额外的操作, 会延长 唤醒移动终端设备的时间, 但依然会比现有技术的开机时间要快。 在本实施 例中, 可选择的增加额外的操作, 可以实现在 5S内的时间快速唤醒移动终端 设备。
图 15所示为本发明实施例七提供的一种移动终端设备的结构图。 在本实施例中, 与实施例七对应的, 由于在休眠过程中, 执行了杀掉或 关闭非核心进程, 在唤醒的过程中, 在恢复在休眠模式中关闭的处于开启状 态的与数据连接相关的服务后, 需要发送启动完成消息给移动终端设备内部 的应用程序, 以实现在开机过程中需要开机运行的服务开始运行。 可选的, 在图 13的基础上, 移动终端设备还可以包括发送单元 99, 用于当恢复在休眠 模式中关闭的处于开启状态的与数据连接相关的服务后, 发送启动完成消息 给移动终端设备内部的应用程序, 以实现在开机过程中需要开机运行的服务 开始运行。
在本实施例中, 若在图 13的基础上, 可选择的增加额外的操作, 会延长 唤醒移动终端设备的时间, 但依然会比现有技术的开机时间要快。 在本实施 例中, 可选择的增加额外的操作, 可以实现在 5S内的时间快速唤醒移动终端 设备。
图 16所示为本发明实施例八提供的一种移动终端设备的结构图。
在本实施例中, 与实施例八对应的, 可选的, 在图 13的基础上, 移动终 端设备还可以包括唤醒提示单元 98和发送单元 99。 其中, 发送单元 99用于当 恢复在休眠模式中关闭的处于开启状态的与数据连接相关的服务后, 发送启 动完成消息给移动终端设备内部的应用程序, 以实现在开机过程中需要开机 运行的服务开始运行。 唤醒提示单元 98用于当唤醒确定模块 95确定移动终端 设备需要被唤醒时, 在移动终端设备的显示屏上通过动画或等待框显示唤醒 效果, 或通过声音提示唤醒进度。
本领域普通技术人员可以理解实现上述实施例装置中的全部或部分流 程, 是可以通过计算机程序来指令相关的硬件来完成, 所述的程序可存储于 一计算机可读取存储介质中, 该程序在执行时, 可包括如上述各装置的实施 例的流程。其中,所述的存储介质可为磁碟、光盘、只读存储记忆体( Read-Only Memory, ROM )或随机存储记忆体( Random Access Memory, RAM )等。
以上所述, 仅为本发明的具体实施方式, 但本发明的保护范围并不局限 于此, 任何熟悉本技术领域的技术人员在本发明揭露的技术范围内, 可轻易 想到的变化或替换, 都应涵盖在本发明的保护范围之内。 因此, 本发明的保 护范围应该以权利要求的保护范围为准。

Claims

权 利 要求 书
1、 一种休眠方法, 其特征在于, 包括:
当确定选择移动终端设备休眠时, 移动终端设备记录与数据连接相关的服 务状态信息;
根据记录的与数据连接相关的服务状态信息, 关闭处于开启状态的与数据 连接相关的服务;
控制处理器进入休眠模式。
2、 根据权利要求 1所述的方法, 其特征在于, 所述确定选择移动终端设备 休眠的步骤包括:
通过用户手动选择或系统自动选择的方式来确定选择所述移动终端设备休 眠。
3、 根据权利要求 2所述的方法, 其特征在于, 所述通过用户手动选择的方 式来确定选择所述移动终端设备休眠的步骤包括:
当所述移动终端设备检测到用户长时间按移动终端设备上的电源键时, 移 动终端设备通过选择框提示用户选择是否进入休眠模式;
当检测到用户选择休眠模式时, 确定选择所述移动终端设备休眠。
4、 根据权利要求 2所述的方法, 其特征在于, 所述通过用户手动选择的方 式来确定选择所述移动终端设备休眠的步骤进一步包括:
检测用户是否触发移动终端设备提供的选择休眠的应用程序;
当移动终端设备检测到用户触发所述选择休眠的应用程序时, 确定选择所 述移动终端设备休眠。
5、 根据权利要求 2所述的方法, 其特征在于, 所述通过用户手动选择的方 式来确定选择所述移动终端设备休眠的步骤进一步包括:
当所述移动终端设备检测到用户手动长时间按移动终端设备上的电源键 时, 确定系统设置界面中的休眠模式的选择框是否被选中; 若确定系统设置界面中的休眠模式的选择框被选中, 确定选择所述移动终 端设备休眠。
6、 根据权利要求 2所述的方法, 其特征在于, 所述通过系统自动选择的方 式来确定选择所述移动终端设备休眠的步骤包括:
当所述移动终端设备检测到用户选择关机时, 移动终端设备检测当前是否 处于充电状态, 或高清晰度多媒体接口 ( High Definition Multimedia Interface, HDMI )是否已被插入 HDMI线;
当所述移动终端设备检测到当前没有处于充电状态或 HDMI没有被插入时, 确定选择移动终端设备休眠。
7、 根据权利要求 2所述的方法, 其特征在于, 当所述移动终端设备上电源 接口和 USB接口不相同时, 所述通过系统自动选择的方式来确定选择所述移动 终端设备休眠的步骤进一步包括:
移动终端设备检测所述电源接口是否发生被插入电源线事件;
当移动终端设备检测到所述电源接口发生被插入电源线事件时, 确定选择 移动终端设备休眠。
8、 根据权利要求 1所述的方法, 其特征在于, 所述与数据连接相关的服务 包括 GPS, WIFI , 蓝牙, 所述服务状态信息包括当前的开启状态和关闭状态信 息。
9、 根据权利要求 1所述的方法, 其特征在于, 当所述处理器为单核时, 所 述控制处理器进入休眠模式的步骤包括:
控制单核的处理器进入休眠模式。
10、 根据权利要求 9所述的方法, 其特征在于, 当所述处理器为多核时, 所 述控制处理器进入休眠模式的步骤包括:
控制处理通讯服务的处理器和应用服务的处理器进入休眠模式。
1 1、 根据权利要求 1至 10中任一项所述的方法, 其特征在于, 所述方法进一 步包括: 当确定选择移动终端设备休眠时, 在移动终端设备的显示屏上通过动画或 等待框显示休眠效果, 或通过声音提示休眠进度。
12、 根据权利要求 1至 1 1中任一项所述的方法, 其特征在于, 所述方法进一 步包括:
当关闭服务状态处于已开启的与数据连接相关的服务后, 杀掉或关闭非核 心进程。
13、根据权利要求 12所述的方法,其特征在于,所述非核心进程是指除 core 进程, phone进程, SYSTEM— U ID的进程, android.process.media进程以夕卜的 其它进程。
14、 一种唤醒方法, 其特征在于, 包括:
当确定移动终端设备需要被唤醒时, 唤醒已进入睡眠的处理器;
恢复在休眠模式中关闭的处于开启状态的与数据连接相关的服务, 以使移 动终端设备进入系统。
15、 根据权利要求 14所述的方法, 其特征在于, 当所述处理器是单核时, 所述唤醒已进入休眠的处理器的步骤包括:
先唤醒处理器的应用服务, 再确定是否唤醒处理器的通讯服务。
16、 根据权利要求 15所述的方法, 其特征在于, 所述先唤醒处理器的应用 服务, 再确定是否唤醒处理器的通讯服务步骤包括:
当唤醒处理器的应用服务后,判断当前移动终端设备是否已插入 SIM卡和是 否没有开启飞行模式;
当确定当前移动终端设备已插入 SIM卡和没有开启飞行模式时,唤醒处理器 的通讯服务;
当确定当前移动终端设备已插入 SIM卡和已开启飞行模式, 或没有插入 SIM 卡和已开启飞行模式, 或没有插入 SIM卡和没有开启飞行模式时, 不唤醒处理器 的通讯服务。
17、 根据权利要求 14所述的方法, 其特征在于, 当所述处理器是单核时, 所述唤醒已进入休眠的处理器的步骤进一步包括:
同时唤醒处理器的应用服务和通讯服务。
18、 根据权利要求 14所述的方法, 其特征在于, 当处理器是多核处理器时, 所述唤醒已进入休眠的处理器的步骤进一步包括:
先唤醒处理应用服务的处理器, 再确定是否唤醒处理通讯服务的处理器。
19、 根据权利要求 18所述的方法, 其特征在于, 所述先唤醒处理应用服务 的处理器, 再确定是否唤醒处理通讯服务的处理器步骤包括:
当唤醒处理应用服务的处理器后,判断当前移动终端设备是否已插入 SIM卡 和是否没有开启飞行模式;
当确定当前移动终端设备已插入 SIM卡和没有开启飞行模式时,唤醒处理通 讯服务的处理器;
当确定当前移动终端设备已插入 SIM卡和已开启飞行模式, 或没有插入 SIM 卡和已开启飞行模式, 或没有插入 SIM卡和没有开启飞行模式时, 不唤醒处理通 讯服务的处理器。
20、 根据权利要求 14所述的方法, 其特征在于, 当处理器是多核处理器时, 所述唤醒已进入休眠的处理器的步骤进一步包括:
同时唤醒处理通讯服务的处理器和应用服务的处理器。
21、 根据权利要求 14所述的方法, 其特征在于, 所述确定移动终端设备需 要被唤醒的步骤包括:
检测当前的移动终端设备是否发生了电源键被按下的事件, 或是否发生了 电源接口被插入电源线的事件, 或是否发生了 HDMI被插入 HDMI线的事件, 或 是否发生了 SIM卡被插拔的事件;
当检测到当前的移动终端设备发生了电源键被按下的事件, 或发生了电源 接口被插入电源线的事件,或发生了 HDMI被插入 HDMI线的事件,或发生了 SIM 卡被插拔的事件, 则确定移动终端设备需要被唤醒。
22、 根据权利要求 14至 21中任一项所述的方法, 其特征在于, 还包括: 当确定移动终端设备需要被唤醒时, 在移动终端设备的显示屏上通过动画 或等待框显示唤醒效果, 或通过声音提示唤醒进度。
23、 根据权利要求 14至 22中任一项所述的方法, 其特征在于, 还包括: 在恢复在休眠模式中关闭的处于开启状态的与数据连接相关的服务后, 发 送启动完成消息给移动终端设备内部的应用程序, 以实现在开机过程中需要开 机运行的服务开始运行。
24、 一种应用于休眠的移动终端设备, 其特征在于, 包括:
记录单元, 用于当确定选择移动终端设备休眠时, 记录与数据连接相关的 服务状态信息;
关闭单元, 用于根据记录的与数据连接相关的服务状态信息, 关闭处于开 启状态的与数据连接相关的服务;
控制单元, 用于控制处理器进入休眠模式。
25、 根据权利要求 24所述的移动终端设备, 其特征在于, 所述移动终端设 备进一步包括:
休眠确定单元, 用于确定选择所述移动终端设备休眠。
26、 根据权利要求 25所述的移动终端设备, 其特征在于, 所述休眠确定单 元进一步用于通过用户手动选择或系统自动选择的方式来确定选择所述移动终 端设备休眠。
27、 根据权利要求 26所述的移动终端设备, 其特征在于, 所述休眠确定单 元进一步用于当检测到用户长时间按移动终端设备上的电源键时, 通过选择框 提示用户选择是否进入休眠模式, 并当检测到用户选择休眠模式时, 确定选择 移动终端设备休眠。
28、 根据权利要求 26所述的移动终端设备, 其特征在于, 所述休眠确定单 元进一步用于当检测到用户长时间按移动终端设备上的电源键时, 确定系统设 置界面中的休眠模式的选择框是否被选中, 并当确定系统设置界面中的休眠模 式的选择框被选中时, 确定用户选择了休眠模式。
29、 根据权利要求 26所述的移动终端设备, 其特征在于, 所述休眠确定单 移动终端设备检测到用户触发所述选择休眠的应用程序时, 确定选择所述移动 终端设备休眠。
30、 根据权利要求 26所述的移动终端设备, 其特征在于, 所述休眠确定单 元进一步用于当检测到用户选择关机时, 检测当前是否处于充电状态, 或高清 晰度多媒体接口 ( High Definition Multimedia Interface, HDMI )是否已被插入 HDMI线, 并当检测到当前处于充电状态或 HDMI已被插入时, 确定选择移动终 端设备休眠。
31、 根据权利要求 26所述的移动终端设备, 其特征在于, 当所述移动终端 设备上电源接口和 USB接口不相同时, 所述休眠确定单元进一步用于检测所述 电源接口是否发生被插入电源线事件, 当移动终端设备检测到所述电源接口发 生被插入电源线事件时, 确定选择移动终端设备休眠。
32、 根据权利要求 24至 31中任一项所述的移动终端设备, 其特征在于, 所 述移动终端设备进一步包括:
休眠提示单元, 用于在当确定选择移动终端设备休眠时,在移动终端设备的 显示屏上通过动画或等待框显示休眠效果, 或通过声音提示休眠进度.
33、 根据权利要求 24至 32中任一项所述的移动终端设备, 其特征在于, 所 述移动终端设备进一步包括: 的服务后, 杀掉或关闭非核心进程。
34、 根据权利要求 24所述的移动终端设备, 其特征在于, 所述控制单元进 一步用于当所述处理器为单核时, 控制单核的处理器进入休眠模式, 或进一步 用于当所述处理器为多核时, 控制处理通讯服务的处理器和应用服务的处理器 进入休眠模式。
35、 一种应用于唤醒的移动终端设备, 其特征在于, 包括: 唤醒单元, 用于当确定移动终端设备需要被唤醒时, 唤醒已进入睡眠的处 理器;
恢复单元, 用于恢复在休眠模式中关闭的处于开启状态的与数据连接相关 的服务, 以使移动终端设备进入系统。
36、 根据权利要求 35所述的移动终端设备, 其特征在于, 当处理器是单核 处理器时, 所述唤醒单元用于进一步先唤醒处理器的应用服务, 再确定是否唤 醒处理器的通讯服务。
37、 根据权利要求 36所述的移动终端设备, 其特征在于, 所述唤醒单元包 括: 第一唤醒子单元和第二唤醒子单元;
其中, 所述第一唤醒子单元用于唤醒处理器的应用服务;
所述第二唤醒子单元用于当唤醒处理器的应用服务后, 判断当前移动终端 设备是否已插入 SIM卡和是否没有开启飞行模式。
38、 根据权利要求 37所述的移动终端设备, 其特征在于, 所述第二唤醒子 单元进一步用于当确定当前移动终端设备已插入 SIM卡和没有开启飞行模式时, 唤醒处理器的通讯服务。
39、 根据权利要求 37所述的移动终端设备, 其特征在于, 所述第二唤醒子 单元进一步用于当确定当前移动终端设备已插入 SIM卡和已开启飞行模式,或没 有插入 SIM卡和已开启飞行模式, 或没有插入 SIM卡和没有开启飞行模式时, 不 唤醒处理器的通讯服务。
40、 根据权利要求 35所述的移动终端设备, 其特征在于, 当处理器是单核 处理器时, 所述唤醒单元用于进一步同时唤醒处理器的应用服务和通讯服务。
41、 根据权利要求 35所述的移动终端设备, 其特征在于, 当处理器是多核 处理器时, 所述唤醒单元用于进一步先唤醒处理应用服务的处理器, 再确定是 否唤醒处理通讯服务的处理器。
42、 根据权利要求 41所述的移动终端设备, 其特征在于, 所述唤醒单元包 括: 第一唤醒子单元和第二唤醒子单元; 其中, 所述第一唤醒子单元用于唤醒处理应用服务的处理器;
所述第二唤醒子单元用于当唤醒处理应用服务的处理器后, 判断当前移动 终端设备是否已插入 SIM卡和是否没有开启飞行模式。
43、 根据权利要求 42所述的移动终端设备, 其特征在于, 所述第二唤醒子 单元进一步用于当确定当前移动终端设备已插入 SIM卡和没有开启飞行模式时, 唤醒处理通讯服务的处理器。
44、 根据权利要求 42所述的移动终端设备, 其特征在于, 所述第二唤醒子 单元进一步用于当确定当前移动终端设备已插入 SIM卡和已开启飞行模式,或没 有插入 SIM卡和已开启飞行模式, 或没有插入 SIM卡和没有开启飞行模式时, 不 唤醒处理通讯服务的处理器。
45、 根据权利要求 36所述的移动终端设备, 其特征在于, 当处理器是多核 处理器时, 所述唤醒单元用于进一步同时唤醒处处理应用 Λ良务的处理器和通讯 服务的处理器。
46、 根据权利要求 35所述的移动终端设备, 其特征在于, 所述移动终端设 备进一步包括唤醒确定模块, 用于确定移动终端设备是否需要被唤醒。
47、 根据权利要求 46所述的移动终端设备, 其特征在于, 所述唤醒确定模 块进一步用于通过检测当前的移动终端设备是否发生了电源键被按下的事件, 或是否发生了电源接口被插入电源线的事件, 或是否发生了 HDMI被插入 HDMI 线的事件, 或是否发生了 SIM卡被插拔的事件, 来确定移动终端设备是否需要被 唤醒。
48、 根据权利要求 47所述的移动终端设备, 其特征在于, 所述唤醒确定模 块进一步用于当检测到当前的移动终端设备发生了电源键被按下的事件, 或发 生了电源接口被插入电源线的事件, 或发生了 HDMI被插入 HDMI线的事件, 或 发生了 SIM卡被插拔的事件, 确定移动终端设备需要被唤醒。
49、 根据权利要求 35至 48中任一项所述的移动终端设备, 其特征在于, 所 述移动终端设备进一步包括唤醒提示单元, 用于当确定移动终端设备需要被唤 醒时, 在移动终端设备的显示屏上通过动画或等待框显示唤醒效果, 或通过声 音提示唤醒进度。
50、 根据权利要求 35至 49中任一项所述的移动终端设备, 其特征在于, 所 述移动终端设备进一步包括发送单元, 用于当恢复在休眠模式中关闭的处于开 启状态的与数据连接相关的服务后, 发送启动完成消息给移动终端设备内部的 应用程序, 以实现在开机过程中需要开机运行的服务开始运行。
PCT/CN2013/071611 2012-02-25 2013-02-17 一种休眠方法、唤醒方法和移动终端设备 WO2013123863A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201210045673.X 2012-02-25
CN201210045673.XA CN102622079B (zh) 2012-02-25 2012-02-25 一种休眠方法、唤醒方法和移动终端设备

Publications (1)

Publication Number Publication Date
WO2013123863A1 true WO2013123863A1 (zh) 2013-08-29

Family

ID=46562033

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2013/071611 WO2013123863A1 (zh) 2012-02-25 2013-02-17 一种休眠方法、唤醒方法和移动终端设备

Country Status (4)

Country Link
US (1) US8543164B2 (zh)
EP (1) EP2631736A1 (zh)
CN (1) CN102622079B (zh)
WO (1) WO2013123863A1 (zh)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105828425A (zh) * 2016-03-25 2016-08-03 乐视控股(北京)有限公司 移动通信终端低功耗实现方法及装置

Families Citing this family (41)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102622079B (zh) * 2012-02-25 2015-02-04 华为终端有限公司 一种休眠方法、唤醒方法和移动终端设备
EP2785082B1 (en) * 2013-03-27 2021-06-16 Sony Corporation Method for operating a terminal device
CN103338312A (zh) * 2013-07-18 2013-10-02 沈阳华立德电子科技有限公司 一种智能手机睡眠节电系统及方法
CN103472251B (zh) * 2013-08-22 2016-05-18 浙江工业大学 一种降低流速剖面仪信号处理单元功耗的方法及装置
CN104461596A (zh) * 2013-09-23 2015-03-25 中兴通讯股份有限公司 移动终端的关机方法及装置
US10079019B2 (en) 2013-11-12 2018-09-18 Apple Inc. Always-on audio control for mobile device
CN103905653B (zh) * 2014-03-24 2016-08-17 小米科技有限责任公司 移动设备数据业务控制方法及装置
CN103927200B (zh) * 2014-03-25 2017-07-14 小米科技有限责任公司 电子设备唤醒方法及相关装置
CN105612485B (zh) * 2014-09-19 2019-11-29 华为技术有限公司 一种运行应用程序的方法及装置
CN104394582A (zh) * 2014-11-24 2015-03-04 上海盈方微电子有限公司 一种使用在安卓设备上的WiFi休眠方法
KR102299330B1 (ko) * 2014-11-26 2021-09-08 삼성전자주식회사 음성 인식 방법 및 그 전자 장치
CN105744604B (zh) * 2014-12-09 2020-03-17 航天信息股份有限公司 基于android系统的WIFI模块功耗控制装置及方法
US9653079B2 (en) * 2015-02-12 2017-05-16 Apple Inc. Clock switching in always-on component
CN104618606B (zh) * 2015-02-13 2017-04-19 广东欧珀移动通信有限公司 一种移动终端开机的方法及系统
CN104808522B (zh) 2015-03-02 2019-08-30 小米科技有限责任公司 状态切换方法及装置
CN106155711B (zh) * 2015-03-26 2019-08-06 群联电子股份有限公司 休眠模式启动方法、存储器控制电路单元及存储装置
CN106201450A (zh) * 2015-05-07 2016-12-07 富泰华工业(深圳)有限公司 休眠窗与唤醒窗的呈现方法、系统与电子设备
CN105872189A (zh) * 2015-11-13 2016-08-17 乐视移动智能信息技术(北京)有限公司 手机休眠唤醒后自动重连方法及装置
CN105824392A (zh) * 2015-11-26 2016-08-03 维沃移动通信有限公司 一种应用程序的管理方法及终端
CN105867580A (zh) * 2015-12-14 2016-08-17 乐视移动智能信息技术(北京)有限公司 终端设备功耗的控制方法及装置
CN105549721B (zh) * 2015-12-18 2020-01-03 Tcl集团股份有限公司 智能终端休眠方法及装置
CN105718015B (zh) * 2016-01-21 2019-09-20 北京京东尚科信息技术有限公司 智能终端、智能终端控制装置及方法
CN105813180A (zh) * 2016-03-14 2016-07-27 福州瑞芯微电子股份有限公司 一种Modem智能休眠的方法及系统
CN107426801A (zh) * 2016-05-23 2017-12-01 中兴通讯股份有限公司 一种智能卡的控制方法、装置、终端设备及智能卡
CN106095059B (zh) * 2016-06-08 2019-03-01 维沃移动通信有限公司 一种降低移动终端功耗的方法及移动终端
CN106126201B (zh) * 2016-06-14 2020-01-21 青岛海信移动通信技术股份有限公司 一种终端充电的方法和装置
CN106169038A (zh) * 2016-06-30 2016-11-30 联想(北京)有限公司 一种切换方法、电子设备和切换装置
CN106502687A (zh) * 2016-10-24 2017-03-15 深圳市金立通信设备有限公司 一种进入休眠状态的方法及终端
WO2018112927A1 (zh) * 2016-12-23 2018-06-28 北京金山安全软件有限公司 一种信息展示方法、装置及终端设备
US9959010B1 (en) * 2016-12-23 2018-05-01 Beijing Kingsoft Internet Security Software Co., Ltd. Method for displaying information, and terminal equipment
WO2018112925A1 (zh) * 2016-12-23 2018-06-28 北京金山安全软件有限公司 信息显示方法、装置及终端设备
CN109891944B (zh) * 2017-01-19 2020-09-11 华为技术有限公司 一种建立数据通信的方法及装置
JP2018186458A (ja) * 2017-04-27 2018-11-22 シャープ株式会社 画像形成装置、制御プログラムおよび制御方法
CN108200635B (zh) * 2017-11-29 2019-12-10 维沃移动通信有限公司 一种应用程序的运行控制方法及移动终端
CN108490289B (zh) * 2018-03-12 2021-02-02 Oppo广东移动通信有限公司 电子设备测试方法、装置及电子设备
CN110196737A (zh) * 2018-11-13 2019-09-03 张俊峰 一种异构多核处理系统
CN109511139B (zh) * 2018-12-19 2023-01-03 Oppo广东移动通信有限公司 Wifi控制方法、装置、移动设备、计算机可读存储介质
CN114173339B (zh) * 2020-09-10 2023-05-05 合肥君正科技有限公司 快速连接WiFi网络的方法与装置、存储介质、电子设备
CN113253644B (zh) * 2021-05-12 2022-09-16 江南造船(集团)有限责任公司 设备工作模式的切换方法、微控制装置及船舶定位系统
CN114416190B (zh) * 2022-01-19 2023-11-24 深圳市诠云科技有限公司 安卓设备与电脑usb联动休眠唤醒电路
CN115297365A (zh) * 2022-08-08 2022-11-04 广东省翼瞰集成电路设计有限公司 防止hdmi设备被意外唤醒的方法、系统及相关设备

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101005658A (zh) * 2006-01-20 2007-07-25 佛山市顺德区顺达电脑厂有限公司 通话时节省电源消耗之行动通讯装置
CN101778457A (zh) * 2009-12-11 2010-07-14 中兴通讯股份有限公司 一种移动终端及该移动终端中mbbms模块的休眠方法
CN101969502A (zh) * 2010-10-13 2011-02-09 华为终端有限公司 一种移动终端业务恢复的方法及一种移动终端
CN102622079A (zh) * 2012-02-25 2012-08-01 华为终端有限公司 一种休眠方法、唤醒方法和移动终端设备

Family Cites Families (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6240521B1 (en) * 1998-09-10 2001-05-29 International Business Machines Corp. Sleep mode transition between processors sharing an instruction set and an address space
US7583985B2 (en) * 2004-03-26 2009-09-01 Broadcom Corporation MAC controlled sleep mode/wake-up mode with staged wake-up for power management
US20050239518A1 (en) * 2004-04-21 2005-10-27 D Agostino Anthony Systems and methods that provide enhanced state machine power management
US7826874B2 (en) * 2004-11-24 2010-11-02 Research In Motion Limited System and method for selectively activating a communication device
JP4594761B2 (ja) * 2005-02-10 2010-12-08 株式会社東芝 情報処理装置およびその制御方法
US7373530B2 (en) * 2005-03-16 2008-05-13 Microsoft Corporation Systems and methods for providing power-loss protection to sleeping computers systems
JP4853126B2 (ja) 2006-06-15 2012-01-11 日本電気株式会社 携帯無線端末
WO2009044285A2 (en) * 2007-03-13 2009-04-09 Marvell Israel Ltd. Optimized packet processing architecture for battery powered mobile communication device
US8115448B2 (en) * 2007-06-01 2012-02-14 Michael Sasha John Systems and methods for wireless power
US20090037756A1 (en) * 2007-07-31 2009-02-05 Lundquist David T System and Method for Suspending Operation of a Mobile Unit
CN101458556A (zh) * 2007-12-14 2009-06-17 联想(北京)有限公司 网卡的功耗和连接模式的动态控制方法及装置
US9516116B2 (en) * 2008-06-06 2016-12-06 Apple Inc. Managing notification service connections
WO2011085023A2 (en) * 2010-01-06 2011-07-14 Celluon, Inc. System and method for a virtual multi-touch mouse and stylus apparatus

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101005658A (zh) * 2006-01-20 2007-07-25 佛山市顺德区顺达电脑厂有限公司 通话时节省电源消耗之行动通讯装置
CN101778457A (zh) * 2009-12-11 2010-07-14 中兴通讯股份有限公司 一种移动终端及该移动终端中mbbms模块的休眠方法
CN101969502A (zh) * 2010-10-13 2011-02-09 华为终端有限公司 一种移动终端业务恢复的方法及一种移动终端
CN102622079A (zh) * 2012-02-25 2012-08-01 华为终端有限公司 一种休眠方法、唤醒方法和移动终端设备

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105828425A (zh) * 2016-03-25 2016-08-03 乐视控股(北京)有限公司 移动通信终端低功耗实现方法及装置

Also Published As

Publication number Publication date
CN102622079B (zh) 2015-02-04
EP2631736A1 (en) 2013-08-28
CN102622079A (zh) 2012-08-01
US20130225238A1 (en) 2013-08-29
US8543164B2 (en) 2013-09-24

Similar Documents

Publication Publication Date Title
WO2013123863A1 (zh) 一种休眠方法、唤醒方法和移动终端设备
US7681058B2 (en) Information processing apparatus and power supply control method
US8775845B2 (en) Information processing device, power supply control method and storage medium
US20170344096A1 (en) Methods and apparatuses to wake computer systems from sleep states
EP2824895B1 (en) Information backup method and apparatus, mobile terminal
WO2013147729A1 (en) Methods and apparatus for saving power
WO2018010596A1 (zh) 一种模式切换方法及装置
US10394307B2 (en) Information processing apparatus, information processing method, and program
US8169939B2 (en) Mobile computation device and data packet reception method thereof
US10379874B1 (en) Expedited resume process from low battery
US9396070B2 (en) System and method for system-on-a-chip subsystem external access detection and recovery
WO2015172283A1 (zh) 一种降低功耗的方法、装置及移动终端
TW201237756A (en) Method for fast resuming computer system and computer system
JP2012138088A (ja) 情報処理装置、電源制御方法及びプログラム
WO2014176893A1 (zh) 移动终端的关机方法及装置
CN102044201B (zh) 行动设备屏幕恒亮显示的装置与方法
WO2017096834A1 (zh) 实现无线充电的方法、移动终端和终端
WO2016045363A1 (zh) Cpu通过hsic总线接口控制wifi模块的方法
WO2016115761A1 (zh) 一种多系统终端的省电方法及装置
US20150123875A1 (en) Power management device and method
WO2018010363A1 (zh) 一种屏幕显示控制方法及移动终端
WO2012126345A1 (zh) 计算机的启动方法、启动装置、状态转换方法和状态转换装置
US9354942B2 (en) Coordinating power states in a hybrid information handling device
CN109445566B (zh) Otg节电处理方法、系统、存储介质及移动终端
WO2012139345A1 (zh) 图片资源播放方法及装置

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 13751268

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 13751268

Country of ref document: EP

Kind code of ref document: A1