WO2013123863A1 - Sleep method, wakeup method and mobile terminal device - Google Patents

Sleep method, wakeup method and mobile terminal device 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
French (fr)
Chinese (zh)
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/en

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).

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Telephone Function (AREA)

Abstract

Disclosed is a sleep method, which comprises: when determining to select a mobile terminal device to sleep, the mobile terminal device recording service state information related to a data connection; according to the recorded service state information related to the data connection, closing a service related to the data connection, which is in an open state; and a control processor entering a sleep mode, thereby saving more power consumption of the mobile terminal device compared with the prior art.

Description

一种休眠方法、 唤醒方法和移动终端设备 技术领域 本发明涉及通信技术领域, 尤其涉及一种休眠方法、 唤醒方法和移动终 端设备。 背景技术  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
随着诸如智能手机和平板电脑的移动终端设备越来越受广大用户的喜 在现有技术中, 由于上述移动终端设备的触摸屏会消耗很大部分能量, 因而, 当用户不需要使用上述的移动终端设备时, 往往会通过使用待机的功 能, 熄掉移动终端设备的触摸屏, 以使移动终端设备处于熄屏待机状态, 并 在用户需要使用上述的移动终端设备时, 再通过唤醒功能, 使处于待机状态 下的移动终端设备的触摸屏开始正常工作, 以节省移动终端设备的功耗, 以 达到延长移动终端设备的使用时间的目的。  As mobile terminal devices such as smart phones and tablets are increasingly popular among the users in the prior art, since 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 When the terminal device is used, 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.
然而, 在现有技术的待机方案中, 当移动终端设备处于待机状态时, 虽 然熄掉了移动终端设备的触摸屏, 但是移动终端设备依然会处于工作状态中, 依然会很大程度的消耗该移动终端设备的能量, 不能达到高效的延长移动终 端设备的使用时间。  However, in the prior art standby scheme, when the mobile terminal device is in the standby state, although the touch screen of the mobile terminal device is turned off, the mobile terminal device is still in the working state, and the mobile device is still consumed to a large extent. The energy of the terminal device cannot achieve an efficient extension of the use time of the mobile terminal device.
为克服上述的缺陷, 用户可以通过暂时关机来关闭移动终端设备, 当需 要使用移动终端设备时, 再通过重新开机来使移动终端设备开始正常工作的 方法来解决上述的问题, 然而, 移动终端设备的开机过程中需要进行系统初 始化和加载各种系统程序后, 移动终端设备才会逐渐进入系统, 但是这个开 机过程会很长, 若用户急需使用移动终端设备, 而现有技术的开机过程会让 用户等待很长的时间, 这会影响用户对该移动终端设备的用户体验, 从而降 低用户的体验感。 发明内容 In order to overcome the above drawbacks, 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. Summary of the invention
本发明的实施例提供一种休眠方法、 唤醒方法和移动终端设备, 以节省 移动终端设备的功耗。  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.
为达到上述目的, 本发明的实施例釆用如下技术方案:  In order to achieve the above object, embodiments of the present invention use the following technical solutions:
一种休眠方法, 包括:  A sleep method, including:
当确定选择移动终端设备休眠时, 移动终端设备记录与数据连接相关的 服务状态信息;  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;
根据记录的与数据连接相关的服务状态信息, 关闭处于开启状态的与数 据连接相关的服务;  Turn off the data connection-related services in the open state according to the recorded service status information related to the data connection;
控制处理器进入休眠模式。  The control processor enters sleep mode.
一种唤醒方法, 包括:  A wake-up method, including:
当确定移动终端设备需要被唤醒时, 唤醒已进入睡眠的处理器; 恢复在休眠模式中关闭的处于开启状态的与数据连接相关的服务, 以使 移动终端设备进入系统。  When it is determined that the mobile terminal device needs to be woken up, 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. DRAWINGS
为了更清楚地说明本发明实施例中的技术方案, 下面将对实施例描述中 所需要使用的附图作一简单地介绍, 显而易见地, 下面描述中的附图仅仅是 本发明的一些实施例, 对于本领域普通技术人员来讲, 在不付出创造性劳动 性的前提下, 还可以根据这些附图获得其他的附图。  In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings used in the description of the embodiments will be briefly described below. It is obvious that the drawings in the following description are only some embodiments of the present invention. For those skilled in the art, other drawings may be obtained based on these drawings without paying for creative labor.
图 1所示为本发明实施例一提供的一种休眠方法的流程图;  FIG. 1 is a flowchart of a sleep method according to Embodiment 1 of the present invention;
图 2所示为本发明实施例二提供的一种休眠方法的流程图;  2 is a flowchart of a sleep method according to Embodiment 2 of the present invention;
图 3所示为本发明实施例三提供的一种休眠方法的流程图;  FIG. 3 is a flowchart of a sleep method according to Embodiment 3 of the present invention;
图 4所示为本发明实施例四提供的一种休眠方法的流程图;  4 is a flowchart of a sleep method according to Embodiment 4 of the present invention;
图 5所示为本发明实施例五提供的一种唤醒方法的流程图;  FIG. 5 is a flowchart of a wake-up method according to Embodiment 5 of the present invention;
图 6所示为本发明实施例六提供的一种唤醒方法的流程图;  6 is a flowchart of a wake-up method according to Embodiment 6 of the present invention;
图 7所示为本发明实施例七提供的一种唤醒方法的流程图;  FIG. 7 is a flowchart of a wake-up method according to Embodiment 7 of the present invention;
图 8所示为本发明实施例八提供的一种唤醒方法的流程图;  FIG. 8 is a flowchart of a wake-up method according to Embodiment 8 of the present invention;
图 9所示为本发明实施例一提供的一种移动终端设备的结构图;  FIG. 9 is a structural diagram of a mobile terminal device according to Embodiment 1 of the present invention;
图 10所示为本发明实施例二提供的一种移动终端设备的结构图; 图 1 1所示为本发明实施例三提供的一种移动终端设备的结构图; 图 12所示为本发明实施例四提供的一种移动终端设备的结构图; 图 13所示为本发明实施例五提供的一种移动终端设备的结构图; 图 14所示为本发明实施例六提供的一种移动终端设备的结构图; 图 15所示为本发明实施例七提供的一种移动终端设备的结构图; 图 16所示为本发明实施例八提供的一种移动终端设备的结构图。 具体实施方式 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. detailed description
下面将结合本发明实施例中的附图, 对本发明实施例中的技术方案进行 清楚、 完整地描述, 显然, 所描述的实施例仅仅是本发明一部分实施例, 而 不是全部的实施例。 基于本发明中的实施例, 本领域普通技术人员在没有做 出创造性劳动前提下所获得的所有其它实施例, 都属于本发明保护的范围。  The technical solutions in the embodiments of the present invention are clearly and completely described in the following with reference to the accompanying drawings in the embodiments of the present invention. It is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments obtained by those skilled in the art based on the embodiments of the present invention without creative efforts are within the scope of the present invention.
在本实施例中, 当用户不需要使用移动终端设备时, 用户可以通过手动 选择或系统设置来使当前的移动终端设备进入休眠模式, 也可以通过移动终 端设备的系统自动选择待机功能使当前的移动终端设备进入休眠模式; 并当 用户需要使用移动终端设备时, 通过用户操作来唤醒当前的移动终端设备, 也可以通过移动终端设备的系统自动选择唤醒功能来唤醒当前的移动终端设 备。 在本实施例中, 该移动终端设备可以是指智能手机或平板电脑。  In this embodiment, 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. In this embodiment, the mobile terminal device may refer to a smart phone or a tablet computer.
在本实施例中, 上述的休眠模式是指将该移动终端设备进行仿制关机, 但并不是真的关机, 也可以称之为待机模式。 以下将进行说明。  In this embodiment, 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.
如图 1所示, 图 1所示为本发明实施例一提供的一种休眠方法的流程图。 在本实施例中, 步骤 S10, 当确定选择移动终端设备休眠时, 移动终端设 备记录与数据连接相关的服务状态信息; 在本实施例中, 与数据连接相关的 服务包括 GPS, WIFI , 蓝牙等。 在本实施例中, 由于移动终端设备在正常使 用时, 上述的服务会有一个当前的使用状态, 当进入休眠的时候, 移动终端 设备记录上述服务的当前的开启状态和关闭状态信息, 该记录的状态信息以 备后续唤醒移动终端设备所使用。  As shown in FIG. 1, FIG. 1 is a flowchart of a sleep method according to Embodiment 1 of the present invention. In this embodiment, 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. In this embodiment, the services related to the data connection include GPS, WIFI, Bluetooth, etc. . In this embodiment, 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.
在本实施例中, 可以通过用户手动选择或系统自动选择的方式来确定是 否选择移动终端设备进入休眠。 以下分别描述。  In this embodiment, 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 through the selection box, or whether to enter the shutdown mode;
当用户选择休眠模式时, 移动终端设备开始步骤 S10;  When the user selects the sleep mode, the mobile terminal device starts step S10;
当用户选择关机模式时, 移动终端设备执行正常关机流程, 即关机。 移动终端设备可以提供一个选择休眠的应用程序以供用户手动选择, 这 个选择休眠的应用程序可以显示在移动终端设备的触摸屏上, 当通过用户手 动选择的方式来确定是否选择移动终端设备进入休眠时, 还可以包括:  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;
当移动终端设备检测到用户触发该选择休眠的应用程序时, 移动终端设 备开始步骤 S10。  When the mobile terminal device detects that the user triggers the application for selecting the hibernation, the mobile terminal device starts step S10.
当通过用户手动选择的方式来确定是否选择移动终端设备进入休眠时, 还可以包括: 移动终端设备在系统设置界面提供选择进入休眠模式的选择框, 以供用户选择。  When determining whether to select the mobile terminal device to enter hibernation by means of manual selection by the user, 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.
当移动终端设备检测到用户手动长时间按移动终端设备上的电源键时, 确定系统设置界面中的休眠模式的选择框是否被选中;  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;
若确定系统设置界面中的休眠模式的选择框被选中, 即确定用户选择了 休眠模式, 则移动终端设备开始步骤 S10;  If it is determined that the selection mode of the sleep mode in the system setting interface is selected, that is, it is determined that the user selects the sleep mode, the mobile terminal device starts step S10;
若确定系统设置界面中的休眠模式的选择框没有被选中, 即确定用户没 有选择休眠模式, 移动终端设备执行正常关机流程, 即关机。  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.
可选的, 当确定系统设置界面中的休眠模式的选择框没有被选中时, 移 动终端设备可以进一步的通过选择框提示用户选择是否进入休眠模式, 或是 否进入关机模式。  Optionally, when it is determined that the selection box of the sleep mode in the system setting interface is not selected, 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:
当移动终端设备检测到用户选择关机时, 移动终端设备检测当前是否处 于充电状态, 或高清晰度多媒体接口 ( High Definition Multimedia Interface, HDMI )是否已被插入 HDMI线; When the mobile terminal device detects that the user selects to shut down, 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;
当移动终端设备检测到当前处于充电状态或 HDMI已被插入时, 移动终端 设备走正常关机流程;  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;
当移动终端设备检测到当前没有处于充电状态或 HDMI没有被插入时, 移 动终端设备自动选择休眠模式以代替关机, 开始执行步骤 S10。  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.
当移动终端设备上电源接口和 USB接口不相同时, 当通过系统自动选择 的方式来确定是否选择移动终端设备进入休眠时, 还可以包括:  When the power interface and the USB interface of the mobile terminal device are different, when the system automatically selects whether to select the mobile terminal device to enter the sleep mode, the method may further include:
移动终端设备检测电源接口是否发生被插入电源线事件;  The mobile terminal device detects whether a power interface is inserted into the power line event;
当移动终端设备检测到该电源接口发生被插入电源线事件时, 移动终端 设备自动选择休眠模式以代替关机, 开始执行步骤 S10。  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.
当然, 移动终端设备上电源接口和 USB接口相同时, 当移动终端设备检 测到 USB接口发生被插入 USB线事件时, 移动终端设备走正常关机流程。  Of course, 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.
关步骤 S12,根据记录的与数据连接相关的服务状态信息, 关闭处于开启 状态的与数据连接相关的服务。 在本实施例中, 关闭已开启的与数据连接相 关的服务包括开启飞行模式和关闭 G PS。  In 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. In this embodiment, 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.
步骤 S14, 控制处理器进入休眠模式。 在本实施例中, 当控制处理器进入 休眠模式时, 处理器将不会再处理通讯和应用的服务。 在本实施例中, 可以 通过将处理器当前的运行状态设置为休眠状态, 来控制处理器进入休眠模式。  Step S14, the control processor enters a sleep mode. In this embodiment, when the control processor enters sleep mode, the processor will no longer process the services of the communication and application. In this embodiment, the processor can be controlled to enter the sleep mode by setting the current operating state of the processor to the sleep state.
在本实施例中, 由于处理器可以包括单核, 双核, 四核等多种型号的处 理器。 在本实施例中, 当处理器是单核时, 由于通讯服务和应用服务是由一 个处理器来处理, 因而, 直接控制单核的处理器进入休眠模式; 当处理器是 双核时, 需要控制处理通讯服务的处理器和应用服务的处理器进入休眠模式; 当处理器是四核时, 需要控制处理通讯服务的处理器和应用服务的处理器进 入休眠模式。 以此类推。 若是多核处理器时, 需要控制处理通讯服务的处理 器和应用服务的处理器进入休眠模式。  In this embodiment, the processor may include a plurality of types of processors such as a single core, a dual core, and a quad core. In this embodiment, 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.
在本实施例中, 当处理器的应用服务进入休眠模式后, 移动终端设备就 熄屏了, 即表明该移动终端设备已进入休眠模式。 In this embodiment, 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. Compared with the prior art, 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.
在本实施例中, 可选的, 在实施例一的基础上, 可选择的增加额外的操 作。 比如, 在当确定选择移动终端设备休眠时, 在移动终端设备的显示屏上 通过动画或等待框显示休眠效果, 或通过声音提示休眠进度。 当然, 上述的 操作可以跟其它步骤同时进行。 在本实施例中, 在移动终端设备的显示屏上 通过动画或等待框显示休眠效果, 或通过声音提示休眠进度这种方式提示用 户, 以达到提高用户的体验感。 杀掉或关闭非核心进程。在本实施例中,核心进程包括 core进程, phone进程, SYSTEM— U ID的进程, android. process. media进程。 在本实施例中, 杀掉或 关闭非核心进程是指杀掉或关闭除上述核心进程以外的进程。 在本实施例中, 由于杀掉了或关闭了非核心进程, 可以进一步的减少移动终端设备的能量消 耗。  In this embodiment, optionally, based on the first embodiment, an additional operation may be optionally added. For example, when it is determined that the mobile terminal device is selected to be dormant, 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. Of course, the above operations can be performed simultaneously with other steps. In this embodiment, 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. In this embodiment, the core process includes a core process, a phone process, a SYSTEM-U ID process, and an android. process. media process. In this embodiment, killing or shutting down a non-core process means killing or shutting down processes other than the above core processes. In this embodiment, since the non-core process is killed or turned off, the energy consumption of the mobile terminal device can be further reduced.
以下将结合上述可选的操作和实施例一的休眠方法进行分别描述。  The following description will be respectively described in conjunction with the above optional operations and the sleep method of the first embodiment.
图 2所示为本发明实施例二提供的一种休眠方法的流程图。  FIG. 2 is a flowchart of a sleep method according to Embodiment 2 of the present invention.
在本实施例中, 步骤 S20, 确定是否选择移动终端设备休眠。  In this embodiment, in step S20, it is determined whether the mobile terminal device is selected to be dormant.
在本实施例中, 可以通过用户手动选择或系统自动选择的方式来确定是 否选择移动终端设备进入休眠。 以下分别描述。  In this embodiment, 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;
当用户选择休眠模式时, 移动终端设备开始步骤 S22和 S24;  When the user selects the sleep mode, the mobile terminal device starts steps S22 and S24;
当用户选择关机模式时, 移动终端设备执行正常关机流程, 即关机。 移动终端设备可以提供一个选择休眠的应用程序以供用户手动选择, 这 个选择休眠的应用程序可以显示在移动终端设备的触摸屏上, 当通过用户手 动选择的方式来确定是否选择移动终端设备进入休眠时, 还可以包括:  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;
当移动终端设备检测到用户触发该选择休眠的应用程序时, 移动终端设 备开始步骤 S22和 S24。  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.
当通过用户手动选择的方式来确定是否选择移动终端设备进入休眠时, 还可以包括: 移动终端设备在系统设置界面提供选择进入休眠模式的选择框, 以供用户选择。  When determining whether to select the mobile terminal device to enter hibernation by means of manual selection by the user, 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.
当移动终端设备检测到用户手动长时间按移动终端设备上的电源键时, 确定系统设置界面中的休眠模式的选择框是否被选中;  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;
若确定系统设置界面中的休眠模式的选择框被选中, 即确定用户选择了 休眠模式, 则移动终端设备开始步骤 S22和 S24;  If it is determined that the selection mode of the sleep mode in the system setting interface is selected, that is, it is determined that the user selects the sleep mode, the mobile terminal device starts steps S22 and S24;
若确定系统设置界面中的休眠模式的选择框没有被选中, 即确定用户没 有选择休眠模式, 移动终端设备执行正常关机流程, 即关机。  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.
可选的, 当确定系统设置界面中的休眠模式的选择框没有被选中时, 移 动终端设备可以进一步的通过选择框提示用户选择是否进入休眠模式, 或是 否进入关机模式。  Optionally, when it is determined that the selection box of the sleep mode in the system setting interface is not selected, 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:
当移动终端设备检测到用户选择关机时, 移动终端设备检测当前是否处 于充电状态, 或高清晰度多媒体接口 ( High Definition Multimedia Interface, HDMI )是否已被插入; When the mobile terminal device detects that the user selects to shut down, 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已被插入时, 移动终端 设备正常关机流程;  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;
当移动终端设备检测到当前没有处于充电状态或 HDMI没有被插入时, 移 动终端设备走自动选择休眠模式以代替关机, 移动终端设备开始步骤 S22和 S24。  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.
当移动终端设备上电源接口和 USB接口不相同时, 当通过系统自动选择 的方式来确定是否选择移动终端设备进入休眠时, 还可以包括:  When the power interface and the USB interface of the mobile terminal device are different, when the system automatically selects whether to select the mobile terminal device to enter the sleep mode, the method may further include:
移动终端设备检测电源接口是否发生被插入电源线事件;  The mobile terminal device detects whether a power interface is inserted into the power line event;
当移动终端设备检测到该电源接口发生被插入电源线事件时, 移动终端 设备自动选择休眠模式以代替关机, 开始执行步骤 S22和 S24。  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.
当然, 移动终端设备上电源接口和 USB接口相同时, 当移动终端设备检 测到 USB接口发生被插入 USB线事件时, 移动终端设备走正常关机流程。  Of course, 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.
步骤 S22, 当确定选择移动终端设备休眠时, 在移动终端设备的显示屏上 通过动画或等待框方式显示休眠效果, 或通过声音方式提示休眠进度。  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.
在执行步骤 S22的同时, 可以同步执行以下步骤:  While performing step S22, the following steps can be performed simultaneously:
步骤 S24, 当确定选择移动终端设备休眠时, 移动终端设备记录与数据连 接相关的服务状态信息; 在本实施例中, 与数据连接相关的服务包括 GPS, WIFI , 蓝牙等。 在本实施例中, 由于移动终端设备在正常使用时, 上述的服 务会有一个当前的使用状态, 当进入休眠的时候, 移动终端设备记录上述服 务的当前使用状态信息, 该记录的状态信息以备后续唤醒移动终端设备所使 用。  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. In this embodiment, the services related to the data connection include GPS, WIFI, Bluetooth, and the like. In this embodiment, 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.
步骤 S26, 关闭服务状态处于已开启的与数据连接相关的服务。在本实施 例中, 关闭已开启的与数据连接相关的服务包括开启飞行模式和关闭 G PS。  Step S26, the service state related to the data connection is turned off. In this embodiment, 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.
步骤 S28, 控制处理器进入休眠模式。 在本实施例中, 当控制处理器进入 休眠模式时, 处理器将不会再处理通讯和应用的服务。 在本实施例中, 可以 通过将处理器当前的运行状态设置为休眠状态, 来控制处理器进入休眠模式。 Step S28, the control processor enters a sleep mode. In this embodiment, when the control processor enters In sleep mode, the processor will no longer process communications and application services. In this embodiment, the processor can be controlled to enter the sleep mode by setting the current operating state of the processor to the sleep state.
在本实施例中, 由于处理器可以包括单核, 双核, 四核等多种型号的处 理器。 在本实施例中, 当处理器是单核时, 由于通讯服务和应用服务是由一 个处理器来处理, 因而, 直接控制单核的处理器进入休眠模式; 当处理器是 双核时, 需要控制处理通讯服务的处理器和应用服务的处理器进入休眠模式; 当处理器是四核时, 需要控制处理通讯服务的处理器和应用服务的处理器进 入休眠模式。 以此类推。 若是多核处理器时, 需要控制处理通讯服务的处理 器和应用服务的处理器进入休眠模式。  In this embodiment, the processor may include a plurality of types of processors such as a single core, a dual core, and a quad core. In this embodiment, 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.
当处理器进入休眠模式后, 步骤 S22可以结束操作, 以表明移动终端设备 当前已进入休眠模式。  After the processor enters 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. Compared with the prior art, 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.
图 3所示为本发明实施例三提供的一种休眠方法的流程图。  FIG. 3 is a flowchart of a sleep method according to Embodiment 3 of the present invention.
在本实施例中, 步骤 S30, 确定是否选择移动终端设备休眠。  In this embodiment, in step S30, it is determined whether the mobile terminal device is selected to be dormant.
在本实施例中, 可以通过用户手动选择或系统自动选择的方式来确定是 否选择移动终端设备进入休眠。 以下分别描述。  In this embodiment, 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 through the selection box, or whether to enter the shutdown mode;
当用户选择休眠模式时, 移动终端设备开始步骤 S32; 当用户选择关机模式时, 移动终端设备执行正常关机流程, 即关机。 移动终端设备可以提供一个选择休眠的应用程序以供用户手动选择, 这 个选择休眠的应用程序可以显示在移动终端设备的触摸屏上, 当通过用户手 动选择的方式来确定是否选择移动终端设备进入休眠时, 还可以包括: 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;
当移动终端设备检测到用户触发该选择休眠的应用程序时, 移动终端设 备开始步骤 S32。  When the mobile terminal device detects that the user triggers the application for selecting to sleep, the mobile terminal device starts step S32.
当通过用户手动选择的方式来确定是否选择移动终端设备进入休眠时, 还可以包括: 移动终端设备在系统设置界面提供选择进入休眠模式的选择框, 以供用户选择。  When determining whether to select the mobile terminal device to enter hibernation by means of manual selection by the user, 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.
当移动终端设备检测到用户手动长时间按移动终端设备上的电源键时, 确定系统设置界面中的休眠模式的选择框是否被选中;  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;
若确定系统设置界面中的休眠模式的选择框被选中, 即确定用户选择了 休眠模式, 则移动终端设备开始步骤 S32;  If it is determined that the selection mode of the sleep mode in the system setting interface is selected, that is, it is determined that the user selects the sleep mode, the mobile terminal device starts step S32;
若确定系统设置界面中的休眠模式的选择框没有被选中, 即确定用户没 有选择休眠模式, 移动终端设备执行正常关机流程, 即关机。  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.
可选的, 当确定系统设置界面中的休眠模式的选择框没有被选中时, 移 动终端设备可以进一步的通过选择框提示用户选择是否进入休眠模式, 或是 否进入关机模式。  Optionally, when it is determined that the selection box of the sleep mode in the system setting interface is not selected, 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:
当移动终端设备检测到用户选择关机时, 移动终端设备检测当前是否处 于充电状态, 或高清晰度多媒体接口 ( High Definition Multimedia Interface, HDMI )是否已被插入;  When the mobile terminal device detects that the user selects to shut down, 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已被插入时, 移动终端 设备走正常关机流程; 当移动终端设备检测到当前没有处于充电状态或 HDMI没有被插入时, 移 动终端设备自动选择休眠模式以代替关机, 移动终端设备开始步骤 S32。 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.
当移动终端设备上电源接口和 USB接口不相同时, 当通过系统自动选择 的方式来确定是否选择移动终端设备进入休眠时, 还可以包括:  When the power interface and the USB interface of the mobile terminal device are different, when the system automatically selects whether to select the mobile terminal device to enter the sleep mode, the method may further include:
移动终端设备检测电源接口是否发生被插入电源线事件;  The mobile terminal device detects whether a power interface is inserted into the power line event;
当移动终端设备检测到该电源接口发生被插入电源线事件时, 移动终端 设备自动选择休眠模式以代替关机, 开始执行步骤 S32。  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.
当然, 移动终端设备上电源接口和 USB接口相同时, 当移动终端设备检 测到 USB接口发生被插入 USB线事件时, 移动终端设备走正常关机流程。  Of course, 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.
步骤 S32, 当确定选择移动终端设备休眠时, 移动终端设备记录与数据连 接相关的服务状态信息; 在本实施例中, 与数据连接相关的服务包括 GPS, WIFI , 蓝牙等。 在本实施例中, 由于移动终端设备在正常使用时, 上述的服 务会有一个当前的使用状态, 当进入休眠的时候, 移动终端设备记录上述服 务的当前使用状态信息, 该记录的状态信息以备后续唤醒移动终端设备所使 用。  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. In this embodiment, the services related to the data connection include GPS, WIFI, Bluetooth, and the like. In this embodiment, 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.
步骤 S34, 关闭服务状态处于已开启的与数据连接相关的服务。在本实施 例中, 关闭已开启的与数据连接相关的服务包括开启飞行模式和关闭 G PS。  Step S34, the service state related to the data connection is turned off. In this embodiment, 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.
步骤 S36, 杀掉或关闭非核心进程。 在本实施例中, 核心进程包括 core 进程, phone进程, SYSTEM— U ID的进程, android.process.media进程。 在 本实施例中, 杀掉或关闭非核心进程是指杀掉或关闭除上述核心进程以外的 进程。  Step S36, killing or shutting down the non-core process. In this embodiment, the core process includes a core process, a phone process, a SYSTEM_U ID process, and an android.process.media process. In this embodiment, killing or shutting down a non-core process means killing or shutting down processes other than the above-described core processes.
步骤 S38, 控制处理器进入休眠模式。 在本实施例中, 当控制处理器进入 休眠模式时, 处理器将不会再处理通讯和应用的服务。 在本实施例中, 可以 通过将处理器当前的运行状态设置为休眠状态, 来控制处理器进入休眠模式。  Step S38, the control processor enters a sleep mode. In this embodiment, when the control processor enters sleep mode, the processor will no longer process the services of the communication and application. In this embodiment, the processor can be controlled to enter the sleep mode by setting the current operating state of the processor to the sleep state.
在本实施例中, 由于处理器可以包括单核, 双核, 四核等多种型号的处 理器。 在本实施例中, 当处理器是单核时, 由于通讯服务和应用服务是由一 个处理器来处理, 因而, 直接控制单核的处理器进入休眠模式; 当处理器是 双核时, 需要控制处理通讯服务的处理器和应用服务的处理器进入休眠模式; 当处理器是四核时, 需要控制处理通讯服务的处理器和应用服务的处理器进 入休眠模式。 以此类推。 若是多核处理器时, 需要控制处理通讯服务的处理 器和应用服务的处理器进入休眠模式。 In this embodiment, the processor may include multiple types of processors such as a single core, a dual core, and a quad core. In this embodiment, 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 When it is necessary, the processor that controls the communication service and the processor of the application service enter the 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.
在本实施例中, 当处理器的应用服务进入休眠模式后, 移动终端设备就 熄屏了, 即表明该移动终端设备已进入休眠模式。  In this embodiment, after the application service of the processor enters the sleep mode, 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. Compared with the prior art, 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.
图 4所示为本发明实施例四提供的一种休眠方法的流程图。  FIG. 4 is a flowchart of a sleep method according to Embodiment 4 of the present invention.
在本实施例中, 步骤 S40, 确定是否选择移动终端设备休眠。  In this embodiment, in step S40, it is determined whether the mobile terminal device is selected to be dormant.
在本实施例中, 可以通过用户手动选择或系统自动选择的方式来确定是 否选择移动终端设备进入休眠。 以下分别描述。  In this embodiment, 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 through the selection box, or whether to enter the shutdown mode;
当用户选择休眠模式时, 移动终端设备开始步骤 S42和 S44;  When the user selects the sleep mode, the mobile terminal device starts steps S42 and S44;
当用户选择关机模式时, 移动终端设备执行正常关机流程, 即关机。 移动终端设备可以提供一个选择休眠的应用程序以供用户手动选择, 这 个选择休眠的应用程序可以显示在移动终端设备的触摸屏上, 当通过用户手 动选择的方式来确定是否选择移动终端设备进入休眠时, 还可以包括: 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. When determining whether to select the mobile terminal device to enter hibernation by means of manual selection by the user, the method may further include:
移动终端设备检测用户是否触发该选择休眠的应用程序;  The mobile terminal device detects whether the user triggers the application for selecting to sleep;
当移动终端设备检测到用户触发该选择休眠的应用程序时, 移动终端设 备开始步骤 S42和 S44。  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.
当通过用户手动选择的方式来确定是否选择移动终端设备进入休眠时, 还可以包括: 移动终端设备在系统设置界面提供选择进入休眠模式的选择框, 以供用户选择。  When determining whether to select the mobile terminal device to enter hibernation by means of manual selection by the user, 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.
当移动终端设备检测到用户手动长时间按移动终端设备上的电源键时, 确定系统设置界面中的休眠模式的选择框是否被选中;  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;
若确定系统设置界面中的休眠模式的选择框被选中, 即确定用户选择了 休眠模式, 则移动终端设备开始步骤 S42和 S44;  If it is determined that the selection mode of the sleep mode in the system setting interface is selected, that is, it is determined that the user selects the sleep mode, the mobile terminal device starts steps S42 and S44;
若确定系统设置界面中的休眠模式的选择框没有被选中, 即确定用户没 有选择休眠模式, 移动终端设备执行正常关机流程, 即关机。  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.
可选的, 当确定系统设置界面中的休眠模式的选择框没有被选中时, 移 动终端设备可以进一步的通过选择框提示用户选择是否进入休眠模式, 或是 否进入关机模式。  Optionally, when it is determined that the selection box of the sleep mode in the system setting interface is not selected, 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:
当移动终端设备检测到用户选择关机时, 移动终端设备检测当前是否处 于充电状态, 或高清晰度多媒体接口 ( High Definition Multimedia Interface, HDMI )是否已被插入;  When the mobile terminal device detects that the user selects to shut down, 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已被插入时, 移动终端 设备走正常关机流程;  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;
当移动终端设备检测到当前没有处于充电状态或 HDMI没有被插入时, 移 动终端设备走自动选择休眠模式以代替关机, 移动终端设备开始步骤 S42和 S44。 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.
当移动终端设备上电源接口和 USB接口不相同时, 当通过系统自动选择 的方式来确定是否选择移动终端设备进入休眠时, 还可以包括:  When the power interface and the USB interface of the mobile terminal device are different, when the system automatically selects whether to select the mobile terminal device to enter the sleep mode, the method may further include:
移动终端设备检测电源接口是否发生被插入电源线事件;  The mobile terminal device detects whether a power interface is inserted into the power line event;
当移动终端设备检测到该电源接口发生被插入电源线事件时, 移动终端 设备自动选择休眠模式以代替关机, 开始执行步骤 S42和 S44。  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.
当然, 移动终端设备上电源接口和 USB接口相同时, 当移动终端设备检 测到 USB接口发生被插入 USB线事件时, 移动终端设备走正常关机流程。  Of course, 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.
步骤 S42, 当确定选择移动终端设备休眠时, 在移动终端设备的显示屏上 通过动画或等待框方式显示休眠效果, 或通过声音方式提示休眠进度。  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.
在执行步骤 S42的同时, 可以同步执行以下步骤:  While performing step S42, the following steps can be performed simultaneously:
步骤 S44, 当确定选择移动终端设备休眠时, 移动终端设备记录与数据连 接相关的服务状态信息; 在本实施例中, 与数据连接相关的服务包括 GPS, WIFI , 蓝牙等。 在本实施例中, 由于移动终端设备在正常使用时, 上述的服 务会有一个当前的使用状态, 当进入休眠的时候, 移动终端设备记录上述服 务的当前使用状态信息, 该记录的状态信息以备后续唤醒移动终端设备所使 用。  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. In this embodiment, the services related to the data connection include GPS, WIFI, Bluetooth, and the like. In this embodiment, 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.
步骤 S46, 关闭服务状态处于已开启的与数据连接相关的服务。在本实施 例中, 关闭已开启的与数据连接相关的服务包括开启飞行模式和关闭 G PS。  Step S46, the service state related to the data connection is turned off. In this embodiment, 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.
步骤 S48, 杀掉或关闭非核心进程。 在本实施例中, 核心进程包括 core 进程, phone进程, SYSTEM— U ID的进程, android.process.media进程。 在 本实施例中, 杀掉或关闭非核心进程是指杀掉或关闭除上述核心进程以外的 进程。  Step S48, killing or shutting down the non-core process. In this embodiment, the core process includes a core process, a phone process, a SYSTEM_U ID process, and an android.process.media process. In this embodiment, killing or shutting down a non-core process means killing or shutting down processes other than the above-described core processes.
步骤 S49, 控制处理器进入休眠模式。 在本实施例中, 当控制处理器进入 休眠模式时, 处理器将不会再处理通讯和应用的服务。 在本实施例中, 可以 通过将处理器当前的运行状态设置为休眠状态, 来控制处理器进入休眠模式。 在本实施例中, 由于处理器可以包括单核, 双核, 四核等多种型号的处 理器。 在本实施例中, 当处理器是单核时, 由于通讯服务和应用服务是由一 个处理器来处理, 因而, 直接控制单核的处理器进入休眠模式; 当处理器是 双核时, 需要控制处理通讯服务的处理器和应用服务的处理器进入休眠模式; 当处理器是四核时, 需要控制处理通讯服务的处理器和应用服务的处理器进 入休眠模式。 以此类推。 若是多核处理器时, 需要控制处理通讯服务的处理 器和应用服务的处理器进入休眠模式。 Step S49, the control processor enters a sleep mode. In this embodiment, when the control processor enters the sleep mode, the processor will no longer process the services of the communication and application. In this embodiment, the processor can be controlled to enter the sleep mode by setting the current operating state of the processor to the sleep state. In this embodiment, the processor may include multiple types of processors such as a single core, a dual core, and a quad core. In this embodiment, 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.
当处理器进入休眠模式后, 步骤 S42可以结束操作, 以表明移动终端设备 当前已进入休眠模式。  After the processor enters 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. Compared with the prior art, 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.
在本实施例中, 当移动终端设备休眠后, 若用户需要重新启用该已休眠 的移动终端设备时, 需要唤醒该移动终端设备。 当用户需要使用移动终端设 备时, 通过用户操作来唤醒当前的移动终端设备, 也可以通过移动终端设备 的系统自动选择唤醒功能来唤醒当前的移动终端设备。  In this embodiment, 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. 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.
与实施例一、 二、 三、 四相对应的, 以下将分别进行描述。  Corresponding to the first, second, third, and fourth embodiments, the following description will be respectively made.
图 5所示为本发明实施例五提供的一种唤醒方法的流程图。  FIG. 5 is a flowchart of a wake-up method according to Embodiment 5 of the present invention.
在本实施例中, 与实施例一相对应的, 步骤 S50, 当确定移动终端设备需 要被唤醒时, 唤醒已进入睡眠的处理器。  In this embodiment, corresponding to the first embodiment, in 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.
在本实施例中, 当处理器是单核的时候, 可以先唤醒处理器的应用服务, 再唤醒处理器的通讯服务; 也可以只唤醒处理器的应用服务, 不唤醒处理器 的通讯服务, 或是理解为, 先唤醒处理器的应用服务, 再确定是否唤醒处理 器的通讯服务; 也可以同时唤醒处理器的应用服务和通讯服务。 In this embodiment, 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.
在本实施例中, 可以先唤醒处理器的应用服务, 再唤醒处理器的通讯服 务; 也可以只唤醒处理器的应用服务, 不唤醒处理器的通讯服务的过程可以 包括:  In this embodiment, 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:
当唤醒处理器的应用服务后,判断当前移动终端设备是否已插入 SIM卡和 是否没有开启飞行模式;  After waking up the application service of the processor, determining whether the current mobile terminal device has inserted the SIM card and whether the flight mode is not enabled;
当确定当前移动终端设备已插入 SIM卡和没有开启飞行模式时,唤醒处理 器的通讯服务;  Wake up the communication service of the processor when it is determined that the current mobile terminal device has inserted the SIM card and the flight mode is not turned on;
当确定当前移动终端设备已插入 SIM卡和已开启飞行模式, 或没有插入 SIM卡和已开启飞行模式, 或没有插入 SIM卡和没有开启飞行模式时, 不唤醒 处理器的通讯服务。  When it is determined that the current mobile terminal device has inserted the SIM card and the airplane 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 communication service of the processor is not woken up.
当处理器是双核时, 需要唤醒处理通讯服务的处理器和应用服务的处理 器, 其中, 可以先唤醒处理应用服务的处理器, 再唤醒处理通讯服务的处理 器; 也可以只唤醒处理应用服务的处理器, 不唤醒处理通讯服务的处理器; 也可以同时唤醒处理应用服务和通讯服务的处理器。  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.
当处理器是四核时, 需要唤醒处理通讯服务的处理器和应用服务的处理 器, 其中, 可以先唤醒处理应用服务的处理器, 再唤醒处理通讯服务的处理 器; 也可以只唤醒处理应用服务的处理器, 不唤醒处理通讯服务的处理器; 或是理解为, 先唤醒处理应用服务的处理器, 再确定是否唤醒处理通讯服务 的处理器; 也可以同时唤醒处理应用服务和通讯服务的处理器。  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.
以此类推。 若是多核处理器时, 需要唤醒处理通讯服务的处理器和应用 服务的处理器。  And so on. In the case of a multi-core processor, it is necessary to wake up the processor that handles the communication service and the processor of the application service.
在本实施例中, 可以先唤醒处理应用服务的处理器, 再确定是否唤醒处 理通讯服务的处理器的过程可以包括:  In this embodiment, 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:
当唤醒处理器的应用服务后,判断当前移动终端设备是否已插入 SIM卡和 是否没有开启飞行模式; After waking up the application service of the processor, determining whether the current mobile terminal device has inserted the SIM card and Whether the flight mode is not turned on;
当确定当前移动终端设备已插入 SIM卡和没有开启飞行模式时,唤醒处理 器的通讯服务;  Wake up the communication service of the processor when it is determined that the current mobile terminal device has inserted the SIM card and the flight mode is not turned on;
当确定当前移动终端设备已插入 SIM卡和已开启飞行模式, 或没有插入 SIM卡和已开启飞行模式, 或没有插入 SIM卡和没有开启飞行模式时, 不唤醒 处理器的通讯服务。  When it is determined that the current mobile terminal device has inserted the SIM card and the airplane 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 communication service of the processor is not woken up.
在本实施例中, 确定移动终端设备需要被唤醒的过程可以包括: 检测当前移动终端设备的电源键是否被按下, 或检测当前移动终端设备 的电源接口是否被插入电源线, 或检测当前移动终端设备的 HDMI是否被插入 HDMI线, 或检测当前移动终端设备的 SIM卡是否被插拔; 也可以理解为, 检 测当前的移动终端设备是否发生了电源键被按下的事件, 或是否发生了电源 接口被插入电源线的事件, 或是否发生了 HDMI被插入 HDMI线的事件, 或是 否发生了 SIM卡被插拔的事件;  In this embodiment, 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;
若检测到当前移动终端设备的电源键被按下, 或检测到当前移动终端设 备的电源接口被插入电源线, 或检测当前移动终端设备的 HDMI被插入 HDMI 线, 或检测当前移动终端设备的 SIM卡被插拔, 则确定移动终端设备需要被唤 醒; 也可以理解为, 检测到当前的移动终端设备发生了电源键被按下的事件, 或发生了电源接口被插入电源线的事件, 或发生了 H DM I被插入 H DM I线的事 件, 或发生了 SIM卡被插拔的事件, 则确定移动终端设备需要被唤醒;  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;
若检测到当前移动终端设备的电源键没有被按下, 或检测到当前移动终 端设备的电源接口没有被插入电源线, 或检测当前移动终端设备的 HDMI没有 被插入 HDMI线, 或检测当前移动终端设备的 SIM卡没有被插拔, 则确定移动 终端设备不需要被唤醒; 也可以理解为, 检测到当前的移动终端设备没有发 生了电源键被按下的事件, 或没有发生了电源接口被插入电源线的事件, 或 没有发生了 HDMI被插入 HDMI线的事件, 或没有发生了 SIM卡被插拔的事件, 则确定移动终端设备不需要被唤醒。 步骤 S52 ,恢复在休眠模式中关闭的处于开启状态的与数据连接相关的服 务, 以使移动终端设备进入系统。 在本实施例中, 与数据连接相关的服务包 括 GPS, WIFI , 蓝牙等。 在进入休眠前时, 移动终端设备记录了上述服务的 当前的开启状态和关闭状态信息, 并在进入休眠的时候, 需要关闭处于开启 状态的与数据连接相关的服务, 因而, 在唤醒移动终端设备的时候, 需要恢 复在休眠模式中关闭的处于开启状态的与数据连接相关的服务。 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 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. The event of the power line, or the event that the HDMI is inserted into the HDMI line has not occurred, or the event that the SIM card has been inserted or removed has not occurred, it is determined that the mobile terminal device does not need to be woken up. 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. In this embodiment, the services related to the data connection include GPS, WIFI, Bluetooth, and the like. 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.
当执行完上述的步骤后, 可以认为是已唤醒了移动终端设备, 移动终端 设备进入系统并显示开机后的画面。  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. And 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 .
在本实施例中, 本发明实施例中提供的唤醒方法, 可以实现在 2S的时间 快速唤醒移动终端设备。  In this embodiment, the awake method provided in the embodiment of the present invention can quickly wake up the mobile terminal device at a time of 2S.
在本实施例中, 可选的, 在图 5的基础上, 可选择的增加额外的操作。 比 如, 在当确定移动终端设备需要被唤醒时, 在移动终端设备的显示屏上通过 动画或等待框显示唤醒效果, 或通过声音提示唤醒进度。 当然, 上述的操作 可以跟其它步骤同时进行。 在本实施例中, 若在图 5的基础上, 可选择的增加 额外的操作, 会延长唤醒移动终端设备的时间, 但依然会比现有技术的开机 时间要快。 在本实施例中, 可选择的增加额外的操作, 可以实现在 5S内的时 间快速唤醒移动终端设备。 同时, 也可以随时为用户提示当前移动终端设备 的唤醒效果, 可以提高用户的体验感。 In this embodiment, optionally, on the basis of FIG. 5, 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. Of course, the above operations can be performed simultaneously with other steps. In this embodiment, if 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. In this embodiment, 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.
可选的, 若在休眠过程中, 执行了杀掉或关闭非核心进程, 在唤醒的过 程中, 在恢复在休眠模式中关闭的处于开启状态的与数据连接相关的服务后, 发送启动完成消息给移动终端设备内部的应用程序, 以实现在开机过程中需 要开机运行的服务开始运行。 在本实施例中, 若在图 5的基础上, 可选择的增 加额外的操作, 会延长唤醒移动终端设备的时间, 但依然会比现有技术的开 机时间要快。 在本实施例中, 可选择的增加额外的操作, 可以实现在 5S内的 时间快速唤醒移动终端设备。  Optionally, if the non-core process is executed during the hibernation process, 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. In this embodiment, if 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. In this embodiment, optional additional operations can be implemented to quickly wake up the mobile terminal device within 5 seconds.
以下将结合上述可选的操作和实施例一的唤醒方法进行分别描述。  The following description will be respectively made in conjunction with the above optional operations and the wake-up method of the first embodiment.
图 6所示为本发明实施例六提供的一种唤醒方法的流程图。  FIG. 6 is a flowchart of a wake-up method according to Embodiment 6 of the present invention.
在本实施例中, 与实施例二相对应的, 步骤 S60, 确定移动终端设备是否 需要被唤醒。  In this embodiment, corresponding to the second embodiment, in step S60, it is determined whether the mobile terminal device needs to be woken up.
在本实施例中, 确定移动终端设备是否需要被唤醒的过程可以包括: 检测当前移动终端设备的电源键是否被按下, 或检测当前移动终端设备 的电源接口是否被插入电源线, 或检测当前移动终端设备的 HDMI是否被插入 HDMI线, 或检测当前移动终端设备的 SIM卡是否被插拔; 也可以理解为, 检 测当前的移动终端设备是否发生了电源键被按下的事件, 或是否发生了电源 接口被插入电源线的事件, 或是否发生了 HDMI被插入 HDMI线的事件, 或是 否发生了 SIM卡被插拔的事件;  In this embodiment, 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;
若检测到当前移动终端设备的电源键被按下, 或检测到当前移动终端设 备的电源接口被插入电源线, 或检测当前移动终端设备的 HDMI被插入 HDMI 线, 或检测当前移动终端设备的 SIM卡被插拔, 则确定移动终端设备需要被唤 醒, 可以执行步骤 S61和 S62; 也可以理解为, 检测到当前的移动终端设备发 生了电源键被按下的事件, 或发生了电源接口被插入电源线的事件, 或发生 了 HDMI被插入 HDMI线的事件,或发生了 SIM卡被插拔的事件,则确定移动终 端设备需要被唤醒, 可以执行步骤 S61和 S62; 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;
若检测到当前移动终端设备的电源键没有被按下, 或检测到当前移动终 端设备的电源接口没有被插入电源线, 或检测当前移动终端设备的 H DM I没有 被插入 HDMI线, 或检测当前移动终端设备的 SIM卡没有被插拔, 则确定移动 终端设备不需要被唤醒; 也可以理解为, 检测到当前的移动终端设备没有发 生了电源键被按下的事件, 或没有发生了电源接口被插入电源线的事件, 或 没有发生了 HDMI被插入 HDMI线的事件, 或没有发生了 SIM卡被插拔的事件, 则确定移动终端设备不需要被唤醒, 移动终端设备将不于响应, 即不做任何 操作。  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. The event that is inserted into the power line, or the event that the HDMI is inserted into the HDMI line, or the event that the SIM card is not inserted or removed, determines that the mobile terminal device does not need to be woken up, and the mobile terminal device will not respond, that is, Do nothing.
步骤 S61 , 当确定移动终端设备需要被唤醒时,在移动终端设备的显示屏 上通过动画或等待框显示唤醒效果, 或通过声音提示唤醒进度。  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.
在执行步骤 S61的同时, 可以同步执行以下步骤。  While performing step S61, the following steps can be performed in synchronization.
步骤 S62,当确定移动终端设备需要被唤醒时,唤醒已进入睡眠的处理器。 步骤 S64 ,恢复在休眠模式中关闭的处于开启状态的与数据连接相关的服 务, 以使移动终端设备进入系统。 在本实施例中, 与数据连接相关的服务包 括 GPS, WIFI , 蓝牙等。 在进入休眠前时, 移动终端设备记录了上述服务的 当前的开启状态和关闭状态信息, 并在进入休眠的时候, 需要关闭处于开启 状态的与数据连接相关的服务, 因而, 在唤醒移动终端设备的时候, 需要恢 复在休眠模式中关闭的处于开启状态的与数据连接相关的服务。  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. In this embodiment, the services related to the data connection include GPS, WIFI, Bluetooth, and the like. 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.
当执行完上述的步骤后, 可以认为是已唤醒了移动终端设备, 步骤 S61 可以结束操作, 移动终端设备进入系统并显示开机后的画面。 在本实施例中, 在移动终端设备的显示屏上通过动画或等待框显示唤醒效果, 或通过声音提 示唤醒进度中, 该动画或等待框的显示时间, 或声音的提示时间可以大于或 等于执行步骤 S62和 S64的所使用的时间。  After the above steps are performed, it can be considered that the mobile terminal device has been woken up, step S61 can end the operation, and the mobile terminal device enters the system and displays the screen after the booting. In this embodiment, 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 time used by steps S62 and S64.
本发明实施例中提供的唤醒方法, 当确定移动终端设备需要唤醒时, 通 过唤醒已进入睡眠的处理器, 并恢复在休眠模式中关闭的处于开启状态的与 数据连接相关的服务, 从而最终唤醒移动终端设备, 并使移动终端设备进入 系统并显示开机后的画面, 相比现有技术中的正常开机过程会让用户等待很 长的时间而言, 不需要再执行现有技术中开机过程中的系统初始化和加载各 种系统程序的操作, 而只需要唤醒已进入睡眠的处理器, 并恢复在休眠模式 中关闭的处于开启状态的与数据连接相关的服务, 就可以快速唤醒移动终端 设备, 并使移动终端设备进入系统并显示开机后的画面, 也就使用户不需要 去选择关机的方式来节省移动终端设备的功耗, 并当需要手机时, 再通过重 新开机来使移动终端设备开始正常工作, 从而大大的提高了用户的体验。 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 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.
图 7所示为本发明实施例七提供的一种唤醒方法的流程图。  FIG. 7 is a flowchart of a wake-up method according to Embodiment 7 of the present invention.
在本实施例中, 与实施例三相对应的, 步骤 S70, 确定移动终端设备是否 需要被唤醒。  In this embodiment, corresponding to the three phases of the embodiment, in step S70, it is determined whether the mobile terminal device needs to be woken up.
在本实施例中, 确定移动终端设备是否需要被唤醒的过程可以包括: 检测当前移动终端设备的电源键是否被按下, 或检测当前移动终端设备 的电源接口是否被插入电源线, 或检测当前移动终端设备的 HDMI是否被插入 HDMI线, 或检测当前移动终端设备的 SIM卡是否被插拔; 也可以理解为, 检 测当前的移动终端设备是否发生了电源键被按下的事件, 或是否发生了电源 接口被插入电源线的事件, 或是否发生了 HDMI被插入 HDMI线的事件, 或是 否发生了 SIM卡被插拔的事件;  In this embodiment, 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;
若检测到当前移动终端设备的电源键被按下, 或检测到当前移动终端设 备的电源接口被插入电源线, 或检测当前移动终端设备的 HDMI被插入 HDMI 线, 或检测当前移动终端设备的 SIM卡被插拔, 则确定移动终端设备需要被唤 醒, 可以执行步骤 S71 ; 也可以理解为, 检测到当前的移动终端设备发生了电 源键被按下的事件, 或发生了电源接口被插入电源线的事件, 或发生了 HDMI 被插入 HDMI线的事件, 或发生了 SIM卡被插拔的事件, 则确定移动终端设备 需要被唤醒, 可以执行步骤 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;
若检测到当前移动终端设备的电源键没有被按下, 或检测到当前移动终 端设备的电源接口没有被插入电源线, 或检测当前移动终端设备的 H DM I没有 被插入 HDMI线, 或检测当前移动终端设备的 SIM卡没有被插拔, 则确定移动 终端设备不需要被唤醒; 也可以理解为, 检测到当前的移动终端设备没有发 生了电源键被按下的事件, 或没有发生了电源接口被插入电源线的事件, 或 没有发生了 HDMI被插入 HDMI线的事件, 或没有发生了 SIM卡被插拔的事件, 则确定移动终端设备不需要被唤醒, 移动终端设备将不于响应, 即不做任何 操作。 If it is detected that 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. 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 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.
步骤 S71 ,当确定移动终端设备需要被唤醒时,唤醒已进入睡眠的处理器。 步骤 S72 ,恢复在休眠模式中关闭的处于开启状态的与数据连接相关的服 务, 以使移动终端设备进入系统。 在本实施例中, 与数据连接相关的服务包 括 GPS, WIFI , 蓝牙等。 在进入休眠前时, 移动终端设备记录了上述服务的 当前的开启状态和关闭状态信息, 并在进入休眠的时候, 需要关闭处于开启 状态的与数据连接相关的服务, 因而, 在唤醒移动终端设备的时候, 需要恢 复在休眠模式中关闭的处于开启状态的与数据连接相关的服务。  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. In this embodiment, the services related to the data connection include GPS, WIFI, Bluetooth, and the like. 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.
步骤 S73,发送启动完成消息给移动终端设备内部的应用程序, 以实现在 开机过程中需要开机运行的服务开始运行。  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.
当执行完上述的步骤后, 可以认为是已唤醒了移动终端设备, 移动终端 设备进入系统并显示开机后的画面。  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. And let the mobile terminal device enter the system and display the screen after booting, so that the user does not need 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.
图 8所示为本发明实施例八提供的一种唤醒方法的流程图。  FIG. 8 is a flowchart of a wake-up method according to Embodiment 8 of the present invention.
在本实施例中, 与实施例四相对应的, 步骤 S80, 确定移动终端设备是否 需要被唤醒。  In this embodiment, corresponding to the fourth embodiment, in step S80, it is determined whether the mobile terminal device needs to be woken up.
在本实施例中, 确定移动终端设备是否需要被唤醒的过程可以包括: 检测当前移动终端设备的电源键是否被按下, 或检测当前移动终端设备 的电源接口是否被插入电源线, 或检测当前移动终端设备的 HDMI是否被插入 HDMI线, 或检测当前移动终端设备的 SIM卡是否被插拔; 也可以理解为, 检 测当前的移动终端设备是否发生了电源键被按下的事件, 或是否发生了电源 接口被插入电源线的事件, 或是否发生了 HDMI被插入 HDMI线的事件, 或是 否发生了 SIM卡被插拔的事件;  In this embodiment, 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;
若检测到当前移动终端设备的电源键被按下, 或检测到当前移动终端设 备的电源接口被插入电源线, 或检测当前移动终端设备的 HDMI被插入 HDMI 线, 或检测当前移动终端设备的 SIM卡被插拔, 则确定移动终端设备需要被唤 醒, 可以执行步骤 S81和 S82; 也可以理解为, 检测到当前的移动终端设备发 生了电源键被按下的事件, 或发生了电源接口被插入电源线的事件, 或发生 了 HDMI被插入 HDMI线的事件,或发生了 SIM卡被插拔的事件,则确定移动终 端设备需要被唤醒, 可以执行步骤 S81和 S82;  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 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;
若检测到当前移动终端设备的电源键没有被按下, 或检测到当前移动终 端设备的电源接口没有被插入电源线, 或检测当前移动终端设备的 HDMI没有 被插入 HDMI线, 或检测当前移动终端设备的 SIM卡没有被插拔, 则确定移动 终端设备不需要被唤醒; 也可以理解为, 检测到当前的移动终端设备没有发 生了电源键被按下的事件, 或没有发生了电源接口被插入电源线的事件, 或 没有发生了 HDMI被插入 HDMI线的事件, 或没有发生了 SIM卡被插拔的事件, 则确定移动终端设备不需要被唤醒, 移动终端设备将不于响应, 即不做任何 操作。 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 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. 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 not inserted or removed, determines that the mobile terminal device does not need to be woken up, and the mobile terminal device will not respond, that is, does not do Any Operation.
步骤 S81 , 当确定移动终端设备需要被唤醒时,在移动终端设备的显示屏 上通过动画或等待框显示唤醒效果, 或通过声音提示唤醒进度。 在本实施例 中, 该步骤 S81可以与以下步骤同时执行。  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. In this embodiment, the step S81 can be performed simultaneously with the following steps.
步骤 S82,当确定移动终端设备需要被唤醒时,唤醒已进入睡眠的处理器。 步骤 S83 ,恢复在休眠模式中关闭的处于开启状态的与数据连接相关的服 务, 以使移动终端设备进入系统。 在本实施例中, 与数据连接相关的服务包 括 GPS, WIFI , 蓝牙等。 在进入休眠前时, 移动终端设备记录了上述服务的 当前的开启状态和关闭状态信息, 并在进入休眠的时候, 需要关闭处于开启 状态的与数据连接相关的服务, 因而, 在唤醒移动终端设备的时候, 需要恢 复在休眠模式中关闭的处于开启状态的与数据连接相关的服务。  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. In this embodiment, the services related to the data connection include GPS, WIFI, Bluetooth, and the like. 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.
步骤 S84,发送启动完成消息给移动终端设备内部的应用程序, 以实现在 开机过程中需要开机运行的服务开始运行。  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.
当执行完上述的步骤后, 可以认为是已唤醒了移动终端设备, 步骤 S81 可以结束操作, 移动终端设备进入系统并显示开机后的画面。  After the above steps are performed, it can be considered that the mobile terminal device has been woken up, 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. And 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 .
相应的, 图 9所示为本发明实施例一提供的一种移动终端设备的结构图。 在本实施例中, 记录单元 90、 关闭单元 92, 控制单元 94。 Correspondingly, FIG. 9 is a structural diagram of a mobile terminal device according to Embodiment 1 of the present invention. In the present embodiment, the recording unit 90, the closing unit 92, and the control unit 94 are provided.
其中, 记录单元 90用于当确定选择移动终端设备休眠时, 记录与数据连 接相关的服务状态信息。 在本实施例中, 与数据连接相关的服务包括 GPS, WIFI , 蓝牙等。 在本实施例中, 由于移动终端设备在正常使用时, 上述的服 务会有一个当前的使用状态, 当进入休眠的时候, 移动终端设备记录上述服 务的当前的开启状态和关闭状态信息, 该记录的状态信息以备后续唤醒移动 终端设备所使用。  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. In this embodiment, the services related to the data connection include GPS, WIFI, Bluetooth, and the like. In this embodiment, 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.
关闭单元 92用于根据记录单元 90记录的与数据连接相关的服务状态信 息, 关闭处于开启状态的与数据连接相关的服务。 在本实施例中, 关闭已开 启的与数据连接相关的服务包括开启飞行模式和关闭 G PS。 务后, 控制处理器进入休眠模式。 在本实施例中, 当控制处理器进入休眠模 式时, 处理器将不会再处理通讯和应用的服务。 在本实施例中, 可以通过将 处理器当前的运行状态设置为休眠状态, 来控制处理器进入休眠模式。  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. In this embodiment, turning off the open data connection related services includes turning on the airplane mode and turning off the G PS. After that, the control processor enters sleep mode. In this embodiment, when the control processor enters the sleep mode, the processor will no longer process the communication and application services. In this embodiment, the processor can be controlled to enter a sleep mode by setting the current operating state of the processor to a sleep state.
在本实施例中, 由于处理器可以包括单核, 双核, 四核等多种型号的处 理器。 在本实施例中, 当处理器是单核时, 由于通讯服务和应用服务是由一 个处理器来处理, 因而, 直接控制单核的处理器进入休眠模式; 当处理器是 双核时, 需要控制处理通讯服务的处理器和应用服务的处理器进入休眠模式; 当处理器是四核时, 需要控制处理通讯服务的处理器和应用服务的处理器进 入休眠模式。 以此类推。 若是多核处理器时, 需要控制处理通讯服务的处理 器和应用服务的处理器进入休眠模式。  In this embodiment, the processor may include a plurality of types of processors such as a single core, a dual core, and a quad core. In this embodiment, 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.
在本实施例中, 当处理器的应用服务进入休眠模式后, 移动终端设备就 熄屏了, 即表明该移动终端设备已进入休眠模式。  In this embodiment, after the application service of the processor enters the sleep mode, the mobile terminal device is turned off, indicating that the mobile terminal device has entered the sleep mode.
在本实施例中, 移动终端设备还可以包括休眠确定单元 91 , 其中, 该休 眠确定单元 91用于确定是否选择移动终端设备进入休眠。 在本实施例中, 休 眠确定单元 91通过用户手动选择或系统自动选择的方式来确定是否选择移动 终端设备进入休眠。 以下分别描述。 In this embodiment, 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. In this embodiment, 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:
当休眠确定单元 91检测到用户手动长时间按移动终端设备上的电源键 时, 休眠确定单元 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;
当用户选择休眠模式时, 记录单元 90开始记录与数据连接相关的服务状 态信息; 即, 记录单元 90用于当休眠确定单元 91确定选择移动终端设备休眠 时, 记录与数据连接相关的服务状态信息;  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. ;
当用户选择关机模式时, 移动终端设备执行正常关机, 即关机, 此时, 还可以包括关机模块(未画出) , 用于执行正常关机。  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.
移动终端设备可以提供一个选择休眠的应用程序以供用户手动选择, 这 个选择休眠的应用程序可以显示在移动终端设备的触摸屏上, 当通过用户手 动选择的方式来确定是否选择移动终端设备进入休眠时, 休眠确定单元 91检 测用户是否触发该选择休眠的应用程序, 当检测到用户触发该选择休眠的应 用程序时, 休眠确定单元 91确定用户选择了休眠模式, 则记录单元 90开始记 录与数据连接相关的服务状态信息; 即, 记录单元 90用于当休眠确定单元 91 确定选择移动终端设备休眠时, 记录与数据连接相关的服务状态信息。  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.
当通过用户手动选择的方式来确定是否选择移动终端设备进入休眠时, 还可以包括: 移动终端设备在系统设置界面提供选择进入休眠模式的选择框, 以供用户选择。  When determining whether to select the mobile terminal device to enter hibernation by means of manual selection by the user, 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.
当休眠确定单元 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, it is determined whether the selection box of the sleep mode in the system setting interface is selected;
若确定系统设置界面中的休眠模式的选择框被选中, 即休眠确定单元 91 确定用户选择了休眠模式, 则记录单元 90开始记录与数据连接相关的服务状 态信息; 即, 记录单元 90用于当休眠确定单元 91确定选择移动终端设备休眠 时, 记录与数据连接相关的服务状态信息; If it is determined that the selection box of the sleep mode in the system setting interface is selected, that is, the sleep determination unit 91 determines that 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 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;
若确定系统设置界面中的休眠模式的选择框没有被选中, 即确定用户没 有选择休眠模式, 移动终端设备执行正常关机, 即关机。  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.
可选的, 当确定系统设置界面中的休眠模式的选择框没有被选中时, 休 眠确定单元 91可以进一步的通过选择框提示用户选择是否进入休眠模式, 或 是否进入关机模式。  Optionally, when it is determined that the selection box of the sleep mode in the system setting interface is not selected, 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:
当休眠确定单元 91检测到用户选择关机时, 休眠确定单元 91检测当前是 否处于充电状态, 或高清晰度多媒体接口 ( High Definition Multimedia Interface, HDMI )是否已被插入 HDMI线;  When the sleep determination unit 91 detects that the user selects the shutdown, 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;
当休眠确定单元 91检测到当前处于充电状态或 HDMI已被插入时,休眠确 定单元 91确定走正常关机流程;  When the sleep determination unit 91 detects that it is currently in the charging state or the HDMI has been inserted, the sleep determination unit 91 determines to go to the normal shutdown procedure;
当休眠确定单元 91检测到当前没有处于充电状态或 HDMI没有被插入时, 休眠确定单元 91自动选择休眠模式以代替关机, 则记录单元 90开始记录与数 据连接相关的服务状态信息; 即, 记录单元 90用于当休眠确定单元 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.
当移动终端设备上电源接口和 USB接口不相同时, 当通过系统自动选择 的方式来确定是否选择移动终端设备进入休眠时, 休眠确定单元 91进一步用 于检测电源接口是否发生被插入电源线事件, 当检测到该电源接口发生被插 入电源线事件时, 休眠确定单元 91自动选择休眠模式以代替关机。  When the power interface and the USB interface are different on the mobile terminal device, when determining whether to select the mobile terminal device to enter the hibernation by means of automatically selecting by the system, 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.
当然, 移动终端设备上电源接口和 USB接口相同时, 当休眠确定单元 91 检测到 USB接口发生被插入 USB线事件时, 休眠确定单元 91确定走正常关机 流程。  Of course, when the power interface and the USB interface are the same on the mobile terminal device, when the sleep determination unit 91 detects that the USB interface is inserted into the USB cable event, 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. Compared with the prior art, more energy-consuming services and devices are turned off than the prior art, and the mobile device is more mobile than the prior art. 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.
图 10所示为本发明实施例二提供的一种移动终端设备的结构图。  FIG. 10 is a structural diagram of a mobile terminal device according to Embodiment 2 of the present invention.
在本实施例中, 在图 9的基础上, 可选的, 移动终端设备还可以包括休眠 提示单元 93, 用于在当确定选择移动终端设备休眠时, 在移动终端设备的显 示屏上通过动画或等待框显示休眠效果, 或通过声音提示休眠进度。  In this embodiment, on the basis of FIG. 9, 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.
在本实施例中, 休眠提示单元 93进一步用于当休眠确定单元 91确定选择 移动终端设备休眠时, 在移动终端设备的显示屏上通过动画或等待框显示休 眠效果, 或通过声音提示休眠进度。  In this embodiment, 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.
在本实施例中, 在移动终端设备的显示屏上通过动画或等待框显示休眠 效果, 或通过声音提示休眠进度这种方式提示用户, 以达到提高用户的体验 感。  In this embodiment, 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.
图 1 1所示为本发明实施例三提供的一种移动终端设备的结构图。  FIG. 11 is a structural diagram of a mobile terminal device according to Embodiment 3 of the present invention.
在本实施例中, 在图 9的基础上, 可选的, 关闭单元 92还可以用于当关闭 服务状态处于已开启的与数据连接相关的服务后, 杀掉或关闭非核心进程。 在本实施例中,核心进程包括 core进程, phone进程, SYSTEM—UID的进程, android. process.media进程。 在本实施例中, 杀掉或关闭非核心进程是指杀 掉或关闭除上述核心进程以外的进程。  In this embodiment, on the basis of FIG. 9, optionally, 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. In this embodiment, the core process includes a core process, a phone process, a SYSTEM-UID process, and an android.process.media process. In this embodiment, killing or shutting down a non-core process means killing or shutting down processes other than the core process described above.
在实施例一的基础上, 由于杀掉了或关闭了非核心进程, 可以进一步的 减少移动终端设备的能量消耗。  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.
图 12所示为本发明实施例四提供的一种移动终端设备的结构图。  FIG. 12 is a structural diagram of a mobile terminal device according to Embodiment 4 of the present invention.
在本实施例中, 在图 9的基础上, 可选的, 结合图 10和图 1 1 , 移动终端设 备可以同时包括休眠提示单元 93和关闭单元 92, 其中, 关闭单元 92用于当关 闭服务状态处于已开启的与数据连接相关的服务后, 杀掉或关闭非核心进程; 休眠提示单元 93用于当休眠确定单元 91确定选择移动终端设备休眠时, 在移 动终端设备的显示屏上通过动画或等待框显示休眠效果, 或通过声音提示休 眠进度。 In this embodiment, on the basis of FIG. 9, optionally, in conjunction with FIG. 10 and FIG. 11, 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.
在本实施例中, 当移动终端设备休眠后, 若用户需要重新启用该已休眠 的移动终端设备时, 需要唤醒该移动终端设备。 当用户需要使用移动终端设 备时, 通过用户操作来唤醒当前的移动终端设备, 也可以通过移动终端设备 的系统自动选择唤醒功能来唤醒当前的移动终端设备。  In this embodiment, 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. 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.
与实施例五、 六、 七、 八相对应的, 以下将分别进行描述。  Corresponding to the fifth, sixth, seventh, and eighth embodiments, the following description will be respectively made.
图 13所示为本发明实施例五提供的一种移动终端设备的结构图。  FIG. 13 is a structural diagram of a mobile terminal device according to Embodiment 5 of the present invention.
在本实施例中, 与实施例五对应的, 移动终端设备包括唤醒单元 96和恢 复单元 97。 其中, 唤醒单元 96用于当确定移动终端设备需要被唤醒时, 唤醒 已进入睡眠的处理器。 在本实施例中, 当处理器是单核时, 可以先唤醒处理 器的应用服务, 再唤醒处理器的通讯服务; 也可以只唤醒处理器的应用服务, 不唤醒处理器的通讯服务, 或是可以理解为, 先唤醒处理器的应用服务, 再 确定是否唤醒处理器的通讯服务; 也可以同时唤醒处理器的应用服务和通讯 服务。  In this embodiment, corresponding to the fifth embodiment, 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. In this embodiment, when the processor is a single core, 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.
在本实施例中, 当可以先唤醒处理器的应用服务, 再确定是否唤醒处理 器的通讯服务时, 所述唤醒单元 96包括: 第一唤醒子单元 961和第二唤醒子单 元 962。  In this embodiment, 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.
其中, 第一唤醒子单元 961用于唤醒处理器的应用服务。 第二唤醒子单元 962用于当唤醒处理器的应用服务后, 判断当前移动终端设备是否已插入 SIM 卡和是否没有开启飞行模式。 在本实施例中, 第二唤醒子单元 962进一步用于 当确定当前移动终端设备已插入 SIM卡和没有开启飞行模式时,唤醒处理器的 通讯服务, 或当确定当前移动终端设备已插入 SIM卡和已开启飞行模式, 或没 有插入 SIM卡和已开启飞行模式, 或没有插入 SIM卡和没有开启飞行模式时, 不唤醒处理器的通讯服务。 当处理器是双核时, 需要唤醒处理通讯服务的处理器和应用服务的处理 器, 其中, 可以先唤醒处理应用服务的处理器, 再唤醒处理通讯服务的处理 器; 也可以只唤醒处理应用服务的处理器, 不唤醒处理通讯服务的处理器, 或是可以理解为, 先唤醒处理应用服务的处理器, 再确定是否唤醒处理通讯 服务的处理器; 也可以同时唤醒处理应用服务和通讯服务的处理器。 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. In this embodiment, 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. 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.
当处理器是四核时, 需要唤醒处理通讯服务的处理器和应用服务的处理 器, 其中, 可以先唤醒处理应用服务的处理器, 再唤醒处理通讯服务的处理 器; 也可以只唤醒处理应用服务的处理器, 不唤醒处理通讯服务的处理器, 或是可以理解为, 先唤醒处理应用服务的处理器, 再确定是否唤醒处理通讯 服务的处理器; 也可以同时唤醒处理应用服务和通讯服务的处理器。  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.
以此类推。 若是多核处理器时, 需要唤醒处理通讯服务的处理器和应用 服务的处理器。  And so on. In the case of a multi-core processor, it is necessary to wake up the processor that handles the communication service and the processor of the application service.
在本实施例中, 当可以先唤醒处理器的应用服务, 再确定是否唤醒处理 器的通讯服务时, 所述唤醒单元 96包括: 第一唤醒子单元 961和第二唤醒子单 元 962。  In this embodiment, 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.
其中, 第一唤醒子单元 961用于唤醒处理应用服务的处理器。 第二唤醒子 单元 962用于当唤醒处理应用服务的处理器后,判断当前移动终端设备是否已 插入 SIM卡和是否没有开启飞行模式。 在本实施例中, 第二唤醒子单元 962进 一步用于当确定当前移动终端设备已插入 SIM卡和没有开启飞行模式时,唤醒 处理通讯服务的处理器,或当确定当前移动终端设备已插入 SIM卡和已开启飞 行模式, 或没有插入 SIM卡和已开启飞行模式, 或没有插入 SIM卡和没有开启 飞行模式时, 不唤醒处理通讯服务的处理器。  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. In this embodiment, 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.
恢复单元 97用于恢复在休眠模式中关闭的处于开启状态的与数据连接相 关的服务。 在本实施例中, 与数据连接相关的服务包括 GPS, WIFI , 蓝牙等。 在进入休眠前时, 移动终端设备记录了上述服务的当前的开启状态和关闭状 态信息, 并在进入休眠的时候, 需要关闭处于开启状态的与数据连接相关的 服务, 因而, 在唤醒移动终端设备的时候, 需要恢复在休眠模式中关闭的处 于开启状态的与数据连接相关的服务。 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. In this embodiment, the services related to the data connection include GPS, WIFI, Bluetooth, and the like. 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.
在本实施例中, 通过唤醒单元 96和恢复单元 97的执行操作, 可以认为是 已唤醒了移动终端设备, 移动终端设备进入系统并显示开机后的画面。  In this embodiment, 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.
在本实施例中, 移动终端设备还可以包括唤醒确定模块 95, 用于确定移 动终端设备是否需要被唤醒。  In this embodiment, the mobile terminal device may further include a wakeup determination module 95 for determining whether the mobile terminal device needs to be woken up.
在本实施例中, 确定模块 95进一步用于检测当前移动终端设备的电源键 是否被按下, 或检测当前移动终端设备的电源接口是否被插入电源线, 或检 测当前移动终端设备的 HDMI是否被插入 HDMI线, 或检测当前移动终端设备 的 SIM卡是否被插拔, 来确定移动终端设备是否需要被唤醒。 也可以理解为, 检测当前的移动终端设备是否发生了电源键被按下的事件, 或是否发生了电 源接口被插入电源线的事件, 或是否发生了 HDMI被插入 HDMI线的事件, 或 是否发生了 SIM卡被插拔的事件, 来确定移动终端设备是否需要被唤醒。  In this embodiment, 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.
唤醒确定模块 95进一步用于若检测到当前移动终端设备的电源键被按 下, 或检测到当前移动终端设备的电源接口被插入电源线, 或检测当前移动 终端设备的 HDMI被插入 HDMI线, 或检测当前移动终端设备的 SIM卡被插拔, 确定移动终端设备需要被唤醒; 也可以理解为, 检测到当前的移动终端设备 发生了电源键被按下的事件, 或发生了电源接口被插入电源线的事件, 或发 生了 HDMI被插入 HDMI线的事件,或发生了 SIM卡被插拔的事件,确定移动终 端设备需要被唤醒;  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;
唤醒确定模块 95进一步用于若检测到当前移动终端设备的电源键没有被 按下, 或检测到当前移动终端设备的电源接口没有被插入电源线, 或检测当 前移动终端设备的 HDMI没有被插入 HDMI线,或检测当前移动终端设备的 SIM 卡没有被插拔, 确定移动终端设备不需要被唤醒; 也可以理解为, 检测到当 前的移动终端设备没有发生了电源键被按下的事件, 或没有发生了电源接口 被插入电源线的事件, 或没有发生了 HDMI被插入 HDMI线的事件, 或没有发 生了 SIM卡被插拔的事件, 确定移动终端设备不需要被唤醒。 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 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 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. Compared with the normal boot process in the prior art, 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. And 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.
在本实施例中, 本发明实施例中提供的移动终端设备, 可以实现在 2S的 时间快速唤醒移动终端设备。  In this embodiment, 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.
图 14所示为本发明实施例六提供的一种移动终端设备的结构图。  FIG. 14 is a structural diagram of a mobile terminal device according to Embodiment 6 of the present invention.
在本实施例中, 与实施例六对应的, 可选的, 在图 13的基础上, 移动终 端设备还可以包括唤醒提示单元 98, 用于当唤醒确定模块 95确定移动终端设 备需要被唤醒时, 在移动终端设备的显示屏上通过动画或等待框显示唤醒效 果, 或通过声音提示唤醒进度。  In this embodiment, corresponding to the sixth embodiment, optionally, on the basis of FIG. 13, 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.
在本实施例中, 在移动终端设备的显示屏上通过动画或等待框显示唤醒 效果, 或通过声音提示唤醒进度这种方式提示用户, 以达到提高用户的体验 感。  In this embodiment, 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.
在本实施例中, 若在图 13的基础上, 可选择的增加额外的操作, 会延长 唤醒移动终端设备的时间, 但依然会比现有技术的开机时间要快。 在本实施 例中, 可选择的增加额外的操作, 可以实现在 5S内的时间快速唤醒移动终端 设备。  In the present embodiment, if additional operations are optionally added on the basis of Fig. 13, the time for waking up the mobile terminal device is prolonged, but it is still faster than the prior art boot time. In this embodiment, an optional additional operation can be implemented to quickly wake up the mobile terminal device within 5 seconds.
图 15所示为本发明实施例七提供的一种移动终端设备的结构图。 在本实施例中, 与实施例七对应的, 由于在休眠过程中, 执行了杀掉或 关闭非核心进程, 在唤醒的过程中, 在恢复在休眠模式中关闭的处于开启状 态的与数据连接相关的服务后, 需要发送启动完成消息给移动终端设备内部 的应用程序, 以实现在开机过程中需要开机运行的服务开始运行。 可选的, 在图 13的基础上, 移动终端设备还可以包括发送单元 99, 用于当恢复在休眠 模式中关闭的处于开启状态的与数据连接相关的服务后, 发送启动完成消息 给移动终端设备内部的应用程序, 以实现在开机过程中需要开机运行的服务 开始运行。 FIG. 15 is a structural diagram of a mobile terminal device according to Embodiment 7 of the present invention. In this embodiment, corresponding to the seventh embodiment, since the non-core process is executed during the sleep process, in the process of waking up, the data connection that is turned off in the sleep mode is restored. After the related service, a startup completion message needs to be sent to the application inside the mobile terminal device, so that the service that needs to be powered on during the booting process starts running. Optionally, on the basis of FIG. 13, 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.
在本实施例中, 若在图 13的基础上, 可选择的增加额外的操作, 会延长 唤醒移动终端设备的时间, 但依然会比现有技术的开机时间要快。 在本实施 例中, 可选择的增加额外的操作, 可以实现在 5S内的时间快速唤醒移动终端 设备。  In the present embodiment, if additional operations are optionally added on the basis of Fig. 13, the time for waking up the mobile terminal device is prolonged, but it is still faster than the prior art boot time. In this embodiment, an optional additional operation can be implemented to quickly wake up the mobile terminal device within 5 seconds.
图 16所示为本发明实施例八提供的一种移动终端设备的结构图。  FIG. 16 is a structural diagram of a mobile terminal device according to Embodiment 8 of the present invention.
在本实施例中, 与实施例八对应的, 可选的, 在图 13的基础上, 移动终 端设备还可以包括唤醒提示单元 98和发送单元 99。 其中, 发送单元 99用于当 恢复在休眠模式中关闭的处于开启状态的与数据连接相关的服务后, 发送启 动完成消息给移动终端设备内部的应用程序, 以实现在开机过程中需要开机 运行的服务开始运行。 唤醒提示单元 98用于当唤醒确定模块 95确定移动终端 设备需要被唤醒时, 在移动终端设备的显示屏上通过动画或等待框显示唤醒 效果, 或通过声音提示唤醒进度。  In this embodiment, corresponding to the eighth embodiment, optionally, on the basis of FIG. 13, 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.
本领域普通技术人员可以理解实现上述实施例装置中的全部或部分流 程, 是可以通过计算机程序来指令相关的硬件来完成, 所述的程序可存储于 一计算机可读取存储介质中, 该程序在执行时, 可包括如上述各装置的实施 例的流程。其中,所述的存储介质可为磁碟、光盘、只读存储记忆体( Read-Only Memory, ROM )或随机存储记忆体( Random Access Memory, RAM )等。  A person skilled in the art can understand that all or part of the process of implementing the foregoing embodiment apparatus can be completed by a computer program to instruct related hardware, and the program can be stored in a computer readable storage medium. In execution, the flow of an embodiment of the various devices as described above may be included. The storage medium may be a magnetic disk, an optical disk, a read-only memory (ROM), or a random access memory (RAM).
以上所述, 仅为本发明的具体实施方式, 但本发明的保护范围并不局限 于此, 任何熟悉本技术领域的技术人员在本发明揭露的技术范围内, 可轻易 想到的变化或替换, 都应涵盖在本发明的保护范围之内。 因此, 本发明的保 护范围应该以权利要求的保护范围为准。 The above description is only a specific embodiment of the present invention, but the scope of protection of the present invention is not limited. All changes or substitutions that may be easily conceived within the scope of the present invention are intended to be included within the scope of the present invention. Therefore, the scope of protection of the present invention should be determined by the scope of the claims.

Claims

权 利 要求 书 Claim
1、 一种休眠方法, 其特征在于, 包括: A sleep method, comprising:
当确定选择移动终端设备休眠时, 移动终端设备记录与数据连接相关的服 务状态信息;  When it is determined that the mobile terminal device is selected to be dormant, the mobile terminal device records service status information related to the data connection;
根据记录的与数据连接相关的服务状态信息, 关闭处于开启状态的与数据 连接相关的服务;  Turn off the data connection-related services that are turned on according to the recorded service status information related to the data connection;
控制处理器进入休眠模式。  The control processor enters sleep mode.
2、 根据权利要求 1所述的方法, 其特征在于, 所述确定选择移动终端设备 休眠的步骤包括:  2. The method according to claim 1, wherein the determining to select the sleep of the mobile terminal device comprises:
通过用户手动选择或系统自动选择的方式来确定选择所述移动终端设备休 眠。  The selection of the mobile terminal device to sleep is determined by means of manual selection by the user or automatic selection by the system.
3、 根据权利要求 2所述的方法, 其特征在于, 所述通过用户手动选择的方 式来确定选择所述移动终端设备休眠的步骤包括:  The method according to claim 2, wherein the determining, by the manner manually selected by the user, the step of selecting the sleep of the mobile terminal device comprises:
当所述移动终端设备检测到用户长时间按移动终端设备上的电源键时, 移 动终端设备通过选择框提示用户选择是否进入休眠模式;  When the mobile terminal device detects that the user 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;
当检测到用户选择休眠模式时, 确定选择所述移动终端设备休眠。  When it is detected that the user selects the sleep mode, it is determined that the mobile terminal device is selected to sleep.
4、 根据权利要求 2所述的方法, 其特征在于, 所述通过用户手动选择的方 式来确定选择所述移动终端设备休眠的步骤进一步包括:  The method according to claim 2, wherein the determining, by the manner manually selected by the user, the step of selecting the sleep of the mobile terminal device further comprises:
检测用户是否触发移动终端设备提供的选择休眠的应用程序;  Detecting whether the user triggers an application for selecting hibernation provided by the mobile terminal device;
当移动终端设备检测到用户触发所述选择休眠的应用程序时, 确定选择所 述移动终端设备休眠。  When the mobile terminal device detects that the user triggers the application for selecting to sleep, it is determined to select the mobile terminal device to sleep.
5、 根据权利要求 2所述的方法, 其特征在于, 所述通过用户手动选择的方 式来确定选择所述移动终端设备休眠的步骤进一步包括:  The method according to claim 2, wherein the determining, by the manner manually selected by the user, the step of selecting the sleep of the mobile terminal device further comprises:
当所述移动终端设备检测到用户手动长时间按移动终端设备上的电源键 时, 确定系统设置界面中的休眠模式的选择框是否被选中; 若确定系统设置界面中的休眠模式的选择框被选中, 确定选择所述移动终 端设备休眠。 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; If it is determined that the selection box of the sleep mode in the system setting interface is selected, it is determined that the mobile terminal device is selected to sleep.
6、 根据权利要求 2所述的方法, 其特征在于, 所述通过系统自动选择的方 式来确定选择所述移动终端设备休眠的步骤包括:  The method according to claim 2, wherein the determining, by the automatic selection of the system, the step of selecting the sleep of the mobile terminal device comprises:
当所述移动终端设备检测到用户选择关机时, 移动终端设备检测当前是否 处于充电状态, 或高清晰度多媒体接口 ( High Definition Multimedia Interface, HDMI )是否已被插入 HDMI线;  When the mobile terminal device detects that the user selects to shut down, the mobile terminal device detects whether it is currently in a charging state, or whether a High Definition Multimedia Interface (HDMI) has been inserted into the HDMI cable;
当所述移动终端设备检测到当前没有处于充电状态或 HDMI没有被插入时, 确定选择移动终端设备休眠。  When the mobile terminal device detects that it is not currently in a charging state or that HDMI is not inserted, it is determined to select the mobile terminal device to sleep.
7、 根据权利要求 2所述的方法, 其特征在于, 当所述移动终端设备上电源 接口和 USB接口不相同时, 所述通过系统自动选择的方式来确定选择所述移动 终端设备休眠的步骤进一步包括:  The method according to claim 2, wherein when the power interface and the USB interface on the mobile terminal device are different, the step of selecting the mobile terminal device to sleep by determining the manner automatically selected by the system Further includes:
移动终端设备检测所述电源接口是否发生被插入电源线事件;  The mobile terminal device detects whether the power interface is inserted into the power line event;
当移动终端设备检测到所述电源接口发生被插入电源线事件时, 确定选择 移动终端设备休眠。  When the mobile terminal device detects that the power interface has been inserted into the power line event, it is determined that the mobile terminal device is selected to sleep.
8、 根据权利要求 1所述的方法, 其特征在于, 所述与数据连接相关的服务 包括 GPS, WIFI , 蓝牙, 所述服务状态信息包括当前的开启状态和关闭状态信 息。  The method according to claim 1, wherein the service related to the data connection comprises GPS, WIFI, and Bluetooth, and the service status information includes current open status and closed status information.
9、 根据权利要求 1所述的方法, 其特征在于, 当所述处理器为单核时, 所 述控制处理器进入休眠模式的步骤包括:  9. The method according to claim 1, wherein when the processor is a single core, the step of the control processor entering the sleep mode comprises:
控制单核的处理器进入休眠模式。  The processor controlling the single core enters sleep mode.
10、 根据权利要求 9所述的方法, 其特征在于, 当所述处理器为多核时, 所 述控制处理器进入休眠模式的步骤包括:  10. The method according to claim 9, wherein when the processor is a multi-core, the step of the control processor entering the sleep mode comprises:
控制处理通讯服务的处理器和应用服务的处理器进入休眠模式。  The processor that controls the processing of the communication service and the processor of the application service enters a sleep mode.
1 1、 根据权利要求 1至 10中任一项所述的方法, 其特征在于, 所述方法进一 步包括: 当确定选择移动终端设备休眠时, 在移动终端设备的显示屏上通过动画或 等待框显示休眠效果, 或通过声音提示休眠进度。 The method according to any one of claims 1 to 10, wherein the method further comprises: When it is determined that the mobile terminal device is selected to sleep, 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.
12、 根据权利要求 1至 1 1中任一项所述的方法, 其特征在于, 所述方法进一 步包括:  The method according to any one of claims 1 to 11, wherein the method further comprises:
当关闭服务状态处于已开启的与数据连接相关的服务后, 杀掉或关闭非核 心进程。  Kill or shut down a non-core process when the service state is turned off for an open data connection-related service.
13、根据权利要求 12所述的方法,其特征在于,所述非核心进程是指除 core 进程, phone进程, SYSTEM— U ID的进程, android.process.media进程以夕卜的 其它进程。  The method according to claim 12, wherein the non-core process refers to a process other than a core process, a phone process, a SYSTEM_U ID, and another process of the android.process.media process.
14、 一种唤醒方法, 其特征在于, 包括:  14. A wake-up method, characterized in that:
当确定移动终端设备需要被唤醒时, 唤醒已进入睡眠的处理器;  When it is determined that the mobile terminal device needs to be woken up, wake up the processor that has entered sleep;
恢复在休眠模式中关闭的处于开启状态的与数据连接相关的服务, 以使移 动终端设备进入系统。  The open data connection related service that is turned off in the sleep mode is restored to cause the mobile terminal device to enter the system.
15、 根据权利要求 14所述的方法, 其特征在于, 当所述处理器是单核时, 所述唤醒已进入休眠的处理器的步骤包括:  The method according to claim 14, wherein when the processor is a single core, the step of waking up the processor that has entered the sleep comprises:
先唤醒处理器的应用服务, 再确定是否唤醒处理器的通讯服务。  Wake up the processor's application service first, and then determine whether to wake up the processor's communication service.
16、 根据权利要求 15所述的方法, 其特征在于, 所述先唤醒处理器的应用 服务, 再确定是否唤醒处理器的通讯服务步骤包括:  The method according to claim 15, wherein the step of waking up the application service of the processor and determining whether to wake up the communication service of the processor comprises:
当唤醒处理器的应用服务后,判断当前移动终端设备是否已插入 SIM卡和是 否没有开启飞行模式;  After waking up the application service of the processor, determining whether the current mobile terminal device has inserted the SIM card and whether the flight mode is not enabled;
当确定当前移动终端设备已插入 SIM卡和没有开启飞行模式时,唤醒处理器 的通讯服务;  Wake up the communication service of the processor when it is determined that the current mobile terminal device has inserted the SIM card and the flight mode is not turned on;
当确定当前移动终端设备已插入 SIM卡和已开启飞行模式, 或没有插入 SIM 卡和已开启飞行模式, 或没有插入 SIM卡和没有开启飞行模式时, 不唤醒处理器 的通讯服务。  The communication service of the processor is not woken up when it is determined that the current mobile terminal device has inserted the SIM card and the airplane 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.
17、 根据权利要求 14所述的方法, 其特征在于, 当所述处理器是单核时, 所述唤醒已进入休眠的处理器的步骤进一步包括: 17. The method according to claim 14, wherein when the processor is a single core, The step of waking up the processor that has entered the hibernation further includes:
同时唤醒处理器的应用服务和通讯服务。  At the same time wake up the processor's application services and communication services.
18、 根据权利要求 14所述的方法, 其特征在于, 当处理器是多核处理器时, 所述唤醒已进入休眠的处理器的步骤进一步包括:  The method according to claim 14, wherein when the processor is a multi-core processor, the step of waking up the processor that has entered the hibernation further comprises:
先唤醒处理应用服务的处理器, 再确定是否唤醒处理通讯服务的处理器。 The processor that processes the application service is first awake, and then determines whether to wake up the processor that processes the communication service.
19、 根据权利要求 18所述的方法, 其特征在于, 所述先唤醒处理应用服务 的处理器, 再确定是否唤醒处理通讯服务的处理器步骤包括: The method according to claim 18, wherein the step of waking up the processor that processes the application service to determine whether to wake up the processor that processes the communication service comprises:
当唤醒处理应用服务的处理器后,判断当前移动终端设备是否已插入 SIM卡 和是否没有开启飞行模式;  After waking up the processor of the processing application service, determining whether the current mobile terminal device has inserted the SIM card and whether the flight mode is not enabled;
当确定当前移动终端设备已插入 SIM卡和没有开启飞行模式时,唤醒处理通 讯服务的处理器;  Wake up the processor that processes the communication service when it is determined that the current mobile terminal device has inserted the SIM card and the flight mode is not turned on;
当确定当前移动终端设备已插入 SIM卡和已开启飞行模式, 或没有插入 SIM 卡和已开启飞行模式, 或没有插入 SIM卡和没有开启飞行模式时, 不唤醒处理通 讯服务的处理器。  The processor handling the communication service is not woken up when it is determined that the current mobile terminal device has inserted the SIM card and the airplane 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.
20、 根据权利要求 14所述的方法, 其特征在于, 当处理器是多核处理器时, 所述唤醒已进入休眠的处理器的步骤进一步包括:  The method according to claim 14, wherein when the processor is a multi-core processor, the step of waking up the processor that has entered the hibernation further comprises:
同时唤醒处理通讯服务的处理器和应用服务的处理器。  At the same time, the processor that processes the communication service and the processor of the application service are woken up.
21、 根据权利要求 14所述的方法, 其特征在于, 所述确定移动终端设备需 要被唤醒的步骤包括:  The method according to claim 14, wherein the step of determining that the mobile terminal device needs to be woken up comprises:
检测当前的移动终端设备是否发生了电源键被按下的事件, 或是否发生了 电源接口被插入电源线的事件, 或是否发生了 HDMI被插入 HDMI线的事件, 或 是否发生了 SIM卡被插拔的事件;  Detecting 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 HDMI is inserted into the HDMI line, or whether a SIM card is inserted Pulled out;
当检测到当前的移动终端设备发生了电源键被按下的事件, 或发生了电源 接口被插入电源线的事件,或发生了 HDMI被插入 HDMI线的事件,或发生了 SIM 卡被插拔的事件, 则确定移动终端设备需要被唤醒。  When 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 an event occurs in which the HDMI is inserted into the HDMI line, or the SIM card is inserted or removed. The event determines that the mobile terminal device needs to be woken up.
22、 根据权利要求 14至 21中任一项所述的方法, 其特征在于, 还包括: 当确定移动终端设备需要被唤醒时, 在移动终端设备的显示屏上通过动画 或等待框显示唤醒效果, 或通过声音提示唤醒进度。 The method according to any one of claims 14 to 21, further comprising: 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.
23、 根据权利要求 14至 22中任一项所述的方法, 其特征在于, 还包括: 在恢复在休眠模式中关闭的处于开启状态的与数据连接相关的服务后, 发 送启动完成消息给移动终端设备内部的应用程序, 以实现在开机过程中需要开 机运行的服务开始运行。  The method according to any one of claims 14 to 22, further comprising: sending a startup completion message to the mobile after restoring the data connection-related service in the open state that is turned off in the sleep mode An application inside the terminal device to start running the service that needs to be powered on during the boot process.
24、 一种应用于休眠的移动终端设备, 其特征在于, 包括:  24. A mobile terminal device for sleeping, characterized in that it comprises:
记录单元, 用于当确定选择移动终端设备休眠时, 记录与数据连接相关的 服务状态信息;  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 shutting down unit, configured to close a data connection related service in an open state according to the recorded service state information related to the data connection;
控制单元, 用于控制处理器进入休眠模式。  A control unit is configured to control the processor to enter a sleep mode.
25、 根据权利要求 24所述的移动终端设备, 其特征在于, 所述移动终端设 备进一步包括:  The mobile terminal device according to claim 24, wherein the mobile terminal device further comprises:
休眠确定单元, 用于确定选择所述移动终端设备休眠。  And a dormancy determining unit, configured to determine that the mobile terminal device is selected to be dormant.
26、 根据权利要求 25所述的移动终端设备, 其特征在于, 所述休眠确定单 元进一步用于通过用户手动选择或系统自动选择的方式来确定选择所述移动终 端设备休眠。  The mobile terminal device according to claim 25, wherein the sleep determining unit is further configured to determine that the mobile terminal device is dormant by means of manual selection by a user or automatic selection by a system.
27、 根据权利要求 26所述的移动终端设备, 其特征在于, 所述休眠确定单 元进一步用于当检测到用户长时间按移动终端设备上的电源键时, 通过选择框 提示用户选择是否进入休眠模式, 并当检测到用户选择休眠模式时, 确定选择 移动终端设备休眠。  The mobile terminal device according to claim 26, wherein the sleep determination unit is further configured to: when detecting that the user presses the power button on the mobile terminal device for a long time, prompting the user to select whether to enter the sleep through the selection box Mode, and when it is detected that the user selects the sleep mode, it is determined to select the mobile terminal device to sleep.
28、 根据权利要求 26所述的移动终端设备, 其特征在于, 所述休眠确定单 元进一步用于当检测到用户长时间按移动终端设备上的电源键时, 确定系统设 置界面中的休眠模式的选择框是否被选中, 并当确定系统设置界面中的休眠模 式的选择框被选中时, 确定用户选择了休眠模式。 The mobile terminal device according to claim 26, wherein the sleep determination unit is further configured to determine a sleep mode in the system setting interface when detecting that the user presses a power button on the mobile terminal device for a long time. Whether the selection box is selected or not, and when it is determined that the selection mode of the sleep mode in the system setting interface is selected, it is determined that the user has selected the sleep mode.
29、 根据权利要求 26所述的移动终端设备, 其特征在于, 所述休眠确定单 移动终端设备检测到用户触发所述选择休眠的应用程序时, 确定选择所述移动 终端设备休眠。 The mobile terminal device according to claim 26, wherein the sleep determination unit mobile terminal device determines that the mobile terminal device is dormant when detecting that the user triggers the application for selecting to sleep.
30、 根据权利要求 26所述的移动终端设备, 其特征在于, 所述休眠确定单 元进一步用于当检测到用户选择关机时, 检测当前是否处于充电状态, 或高清 晰度多媒体接口 ( High Definition Multimedia Interface, HDMI )是否已被插入 HDMI线, 并当检测到当前处于充电状态或 HDMI已被插入时, 确定选择移动终 端设备休眠。  The mobile terminal device according to claim 26, wherein the sleep determination unit is further configured to detect whether the current state is in a state of charge when detecting that the user selects shutdown, or a high definition multimedia interface (High Definition Multimedia) Interface, HDMI) has been inserted into the HDMI cable, and when it is detected that it is currently in a charging state or HDMI has been inserted, it is determined to select the mobile terminal device to sleep.
31、 根据权利要求 26所述的移动终端设备, 其特征在于, 当所述移动终端 设备上电源接口和 USB接口不相同时, 所述休眠确定单元进一步用于检测所述 电源接口是否发生被插入电源线事件, 当移动终端设备检测到所述电源接口发 生被插入电源线事件时, 确定选择移动终端设备休眠。  The mobile terminal device according to claim 26, wherein when the power interface and the USB interface of the mobile terminal device are different, the sleep determination unit is further configured to detect whether the power interface is inserted. The power line event determines to select the mobile terminal device to sleep when the mobile terminal device detects that the power interface is inserted into the power line event.
32、 根据权利要求 24至 31中任一项所述的移动终端设备, 其特征在于, 所 述移动终端设备进一步包括:  The mobile terminal device according to any one of claims 24 to 31, wherein the mobile terminal device further comprises:
休眠提示单元, 用于在当确定选择移动终端设备休眠时,在移动终端设备的 显示屏上通过动画或等待框显示休眠效果, 或通过声音提示休眠进度.  The sleep prompting unit is configured to display a sleep effect by an animation or a waiting box on the display screen of the mobile terminal device when determining to select the mobile terminal device to sleep, or prompt the sleep progress by sound.
33、 根据权利要求 24至 32中任一项所述的移动终端设备, 其特征在于, 所 述移动终端设备进一步包括: 的服务后, 杀掉或关闭非核心进程。  The mobile terminal device according to any one of claims 24 to 32, wherein the mobile terminal device further comprises: after the service, killing or shutting down the non-core process.
34、 根据权利要求 24所述的移动终端设备, 其特征在于, 所述控制单元进 一步用于当所述处理器为单核时, 控制单核的处理器进入休眠模式, 或进一步 用于当所述处理器为多核时, 控制处理通讯服务的处理器和应用服务的处理器 进入休眠模式。  The mobile terminal device according to claim 24, wherein the control unit is further configured to: when the processor is a single core, control a processor of the single core to enter a sleep mode, or further use for When the processor is multi-core, the processor controlling the processing service and the processor of the application service enter a sleep mode.
35、 一种应用于唤醒的移动终端设备, 其特征在于, 包括: 唤醒单元, 用于当确定移动终端设备需要被唤醒时, 唤醒已进入睡眠的处 理器; 35. A mobile terminal device for waking 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.
36、 根据权利要求 35所述的移动终端设备, 其特征在于, 当处理器是单核 处理器时, 所述唤醒单元用于进一步先唤醒处理器的应用服务, 再确定是否唤 醒处理器的通讯服务。  The mobile terminal device according to claim 35, wherein when the processor is a single core processor, the waking unit is configured to further wake up the application service of the processor, and then determine whether to wake up the communication of the processor. service.
37、 根据权利要求 36所述的移动终端设备, 其特征在于, 所述唤醒单元包 括: 第一唤醒子单元和第二唤醒子单元;  The mobile terminal device according to claim 36, wherein the waking unit comprises: a first waking subunit and a second waking subunit;
其中, 所述第一唤醒子单元用于唤醒处理器的应用服务;  The first wakeup subunit is used to wake up an application service of the processor;
所述第二唤醒子单元用于当唤醒处理器的应用服务后, 判断当前移动终端 设备是否已插入 SIM卡和是否没有开启飞行模式。  The second wakeup subunit 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.
38、 根据权利要求 37所述的移动终端设备, 其特征在于, 所述第二唤醒子 单元进一步用于当确定当前移动终端设备已插入 SIM卡和没有开启飞行模式时, 唤醒处理器的通讯服务。  The mobile terminal device according to claim 37, wherein the second wakeup subunit 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. .
39、 根据权利要求 37所述的移动终端设备, 其特征在于, 所述第二唤醒子 单元进一步用于当确定当前移动终端设备已插入 SIM卡和已开启飞行模式,或没 有插入 SIM卡和已开启飞行模式, 或没有插入 SIM卡和没有开启飞行模式时, 不 唤醒处理器的通讯服务。  The mobile terminal device according to claim 37, wherein the second wakeup subunit is further configured to: when it is determined that the current mobile terminal device has inserted the SIM card and the airplane mode is turned on, or does not insert the SIM card and has The communication service is not woken up when the airplane mode is turned on, or when the SIM card is not inserted and the airplane mode is not turned on.
40、 根据权利要求 35所述的移动终端设备, 其特征在于, 当处理器是单核 处理器时, 所述唤醒单元用于进一步同时唤醒处理器的应用服务和通讯服务。  40. The mobile terminal device according to claim 35, wherein when the processor is a single core processor, the wakeup unit is configured to further wake up the application service and the communication service of the processor.
41、 根据权利要求 35所述的移动终端设备, 其特征在于, 当处理器是多核 处理器时, 所述唤醒单元用于进一步先唤醒处理应用服务的处理器, 再确定是 否唤醒处理通讯服务的处理器。  The mobile terminal device according to claim 35, wherein when the processor is a multi-core processor, the waking unit is configured to further wake up a processor that processes the application service, and then determine whether to wake up processing the communication service. processor.
42、 根据权利要求 41所述的移动终端设备, 其特征在于, 所述唤醒单元包 括: 第一唤醒子单元和第二唤醒子单元; 其中, 所述第一唤醒子单元用于唤醒处理应用服务的处理器; The mobile terminal device according to claim 41, wherein the waking unit comprises: a first waking subunit and a second waking subunit; The first wakeup subunit is configured to wake up a processor that processes an application service;
所述第二唤醒子单元用于当唤醒处理应用服务的处理器后, 判断当前移动 终端设备是否已插入 SIM卡和是否没有开启飞行模式。  The second wakeup subunit is configured to, after waking up the processor that processes the application service, determine whether the current mobile terminal device has inserted the SIM card and whether the flight mode is not enabled.
43、 根据权利要求 42所述的移动终端设备, 其特征在于, 所述第二唤醒子 单元进一步用于当确定当前移动终端设备已插入 SIM卡和没有开启飞行模式时, 唤醒处理通讯服务的处理器。  The mobile terminal device according to claim 42, wherein the second waking subunit is further configured to: wake up processing the communication service when determining that the current mobile terminal device has inserted the SIM card and does not turn on the flight mode. Device.
44、 根据权利要求 42所述的移动终端设备, 其特征在于, 所述第二唤醒子 单元进一步用于当确定当前移动终端设备已插入 SIM卡和已开启飞行模式,或没 有插入 SIM卡和已开启飞行模式, 或没有插入 SIM卡和没有开启飞行模式时, 不 唤醒处理通讯服务的处理器。  The mobile terminal device according to claim 42, wherein the second waking subunit is further configured to: when determining that the current mobile terminal device has inserted the SIM card and the airplane mode is turned on, or does not insert the SIM card and has The processor that handles the communication service is not woken up when the airplane mode is turned on, or when the SIM card is not inserted and the airplane mode is not turned on.
45、 根据权利要求 36所述的移动终端设备, 其特征在于, 当处理器是多核 处理器时, 所述唤醒单元用于进一步同时唤醒处处理应用 Λ良务的处理器和通讯 服务的处理器。  The mobile terminal device according to claim 36, wherein when the processor is a multi-core processor, the waking unit is configured to further wake up a processor that processes an application processor and a communication service at the same time. .
46、 根据权利要求 35所述的移动终端设备, 其特征在于, 所述移动终端设 备进一步包括唤醒确定模块, 用于确定移动终端设备是否需要被唤醒。  The mobile terminal device according to claim 35, wherein the mobile terminal device further comprises a wakeup determination module, configured to determine whether the mobile terminal device needs to be woken up.
47、 根据权利要求 46所述的移动终端设备, 其特征在于, 所述唤醒确定模 块进一步用于通过检测当前的移动终端设备是否发生了电源键被按下的事件, 或是否发生了电源接口被插入电源线的事件, 或是否发生了 HDMI被插入 HDMI 线的事件, 或是否发生了 SIM卡被插拔的事件, 来确定移动终端设备是否需要被 唤醒。  47. The mobile terminal device according to claim 46, wherein the wakeup determination module is further configured to detect, by detecting whether a current mobile terminal device has an event that a power key is pressed, or whether a power interface has occurred An event of plugging in the power cord, or an event of HDMI being inserted into the HDMI line, or an event of a SIM card being inserted or removed occurs to determine whether the mobile terminal device needs to be woken up.
48、 根据权利要求 47所述的移动终端设备, 其特征在于, 所述唤醒确定模 块进一步用于当检测到当前的移动终端设备发生了电源键被按下的事件, 或发 生了电源接口被插入电源线的事件, 或发生了 HDMI被插入 HDMI线的事件, 或 发生了 SIM卡被插拔的事件, 确定移动终端设备需要被唤醒。  The mobile terminal device according to claim 47, wherein the wakeup determination module is further configured to: when it is detected that a current power terminal has a power button pressed, 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.
49、 根据权利要求 35至 48中任一项所述的移动终端设备, 其特征在于, 所 述移动终端设备进一步包括唤醒提示单元, 用于当确定移动终端设备需要被唤 醒时, 在移动终端设备的显示屏上通过动画或等待框显示唤醒效果, 或通过声 音提示唤醒进度。 The mobile terminal device according to any one of claims 35 to 48, wherein the mobile terminal device further comprises a wakeup prompting unit, configured to: when determining that the mobile terminal device needs to be called When waking up, the wake-up effect is displayed by an animation or waiting box on the display screen of the mobile terminal device, or the progress is awakened by an audible prompt.
50、 根据权利要求 35至 49中任一项所述的移动终端设备, 其特征在于, 所 述移动终端设备进一步包括发送单元, 用于当恢复在休眠模式中关闭的处于开 启状态的与数据连接相关的服务后, 发送启动完成消息给移动终端设备内部的 应用程序, 以实现在开机过程中需要开机运行的服务开始运行。  The mobile terminal device according to any one of claims 35 to 49, wherein the mobile terminal device further comprises a transmitting unit, configured to restore the data connection in an open state that is turned off in the sleep mode. After the related service, the startup completion message is sent to the application inside the mobile terminal device, so that the service that needs to be powered on during the startup process starts running.
PCT/CN2013/071611 2012-02-25 2013-02-17 Sleep method, wakeup method and mobile terminal device WO2013123863A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201210045673.XA CN102622079B (en) 2012-02-25 2012-02-25 Sleep method, wakening method and mobile terminal device
CN201210045673.X 2012-02-25

Publications (1)

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

Family

ID=46562033

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2013/071611 WO2013123863A1 (en) 2012-02-25 2013-02-17 Sleep method, wakeup method and mobile terminal device

Country Status (4)

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

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105828425A (en) * 2016-03-25 2016-08-03 乐视控股(北京)有限公司 Low-power consumption implementation method and device of mobile communication terminal

Families Citing this family (41)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102622079B (en) 2012-02-25 2015-02-04 华为终端有限公司 Sleep method, wakening method and mobile terminal device
EP2785082B1 (en) * 2013-03-27 2021-06-16 Sony Corporation Method for operating a terminal device
CN103338312A (en) * 2013-07-18 2013-10-02 沈阳华立德电子科技有限公司 Intelligent handset sleeping energy-saving system and method
CN103472251B (en) * 2013-08-22 2016-05-18 浙江工业大学 A kind of method and device that reduces fluid velocity profile instrument signal processing unit power consumption
CN104461596A (en) * 2013-09-23 2015-03-25 中兴通讯股份有限公司 Shut-down method and device for mobile terminal
US10079019B2 (en) 2013-11-12 2018-09-18 Apple Inc. Always-on audio control for mobile device
CN103905653B (en) * 2014-03-24 2016-08-17 小米科技有限责任公司 mobile device data service control method and device
CN103927200B (en) * 2014-03-25 2017-07-14 小米科技有限责任公司 Electronic equipment awakening method and relevant apparatus
KR102048329B1 (en) 2014-09-19 2019-11-25 후아웨이 테크놀러지 컴퍼니 리미티드 Method and apparatus for running application program
CN104394582A (en) * 2014-11-24 2015-03-04 上海盈方微电子有限公司 WiFi sleeping method for Android device
KR102299330B1 (en) * 2014-11-26 2021-09-08 삼성전자주식회사 Method for voice recognition and an electronic device thereof
CN105744604B (en) * 2014-12-09 2020-03-17 航天信息股份有限公司 WIFI module power consumption control device and method based on android system
US9653079B2 (en) * 2015-02-12 2017-05-16 Apple Inc. Clock switching in always-on component
CN104618606B (en) * 2015-02-13 2017-04-19 广东欧珀移动通信有限公司 Method and system for starting up mobile terminal
CN104808522B (en) 2015-03-02 2019-08-30 小米科技有限责任公司 State switching method and device
CN106155711B (en) * 2015-03-26 2019-08-06 群联电子股份有限公司 Suspend mode starts method, memorizer control circuit unit and storage device
CN106201450A (en) * 2015-05-07 2016-12-07 富泰华工业(深圳)有限公司 Dormant window with wake up the rendering method of window, system and electronic equipment up
CN105872189A (en) * 2015-11-13 2016-08-17 乐视移动智能信息技术(北京)有限公司 Automatic reconnection method and device after dormancy wakeup of mobile phone
CN105824392A (en) * 2015-11-26 2016-08-03 维沃移动通信有限公司 Application program management method and terminal
CN105867580A (en) * 2015-12-14 2016-08-17 乐视移动智能信息技术(北京)有限公司 Power consumption control method and apparatus for terminal device
CN105549721B (en) * 2015-12-18 2020-01-03 Tcl集团股份有限公司 Intelligent terminal dormancy method and device
CN105718015B (en) * 2016-01-21 2019-09-20 北京京东尚科信息技术有限公司 Intelligent terminal, intelligent terminal control device and method
CN105813180A (en) * 2016-03-14 2016-07-27 福州瑞芯微电子股份有限公司 Modem intelligent dormancy method and system
CN107426801A (en) * 2016-05-23 2017-12-01 中兴通讯股份有限公司 A kind of control method of smart card, device, terminal device and smart card
CN106095059B (en) * 2016-06-08 2019-03-01 维沃移动通信有限公司 A kind of method and mobile terminal reducing mobile terminal power consumption
CN106126201B (en) * 2016-06-14 2020-01-21 青岛海信移动通信技术股份有限公司 Terminal charging method and device
CN106169038A (en) * 2016-06-30 2016-11-30 联想(北京)有限公司 A kind of changing method, electronic equipment and switching device
CN106502687A (en) * 2016-10-24 2017-03-15 深圳市金立通信设备有限公司 A kind of method and terminal for entering resting state
US9959010B1 (en) * 2016-12-23 2018-05-01 Beijing Kingsoft Internet Security Software Co., Ltd. Method for displaying information, and terminal equipment
CN108521819B (en) * 2016-12-23 2022-06-21 北京金山安全软件有限公司 Information display method and device and terminal equipment
WO2018112925A1 (en) * 2016-12-23 2018-06-28 北京金山安全软件有限公司 Information display method, device and terminal apparatus
CN109891944B (en) * 2017-01-19 2020-09-11 华为技术有限公司 Method and device for establishing data communication
JP2018186458A (en) * 2017-04-27 2018-11-22 シャープ株式会社 Image forming apparatus, control program, and control method
CN108200635B (en) * 2017-11-29 2019-12-10 维沃移动通信有限公司 Operation control method of application program and mobile terminal
CN108490289B (en) * 2018-03-12 2021-02-02 Oppo广东移动通信有限公司 Electronic equipment testing method and device and electronic equipment
CN110196737A (en) * 2018-11-13 2019-09-03 张俊峰 A kind of heterogeneous polynuclear processing system
CN109511139B (en) * 2018-12-19 2023-01-03 Oppo广东移动通信有限公司 WIFI control method and device, mobile device and computer-readable storage medium
CN114173339B (en) * 2020-09-10 2023-05-05 合肥君正科技有限公司 Method and device for quickly connecting WiFi network, storage medium and electronic equipment
CN113253644B (en) * 2021-05-12 2022-09-16 江南造船(集团)有限责任公司 Equipment working mode switching method, micro-control device and ship positioning system
CN114416190B (en) * 2022-01-19 2023-11-24 深圳市诠云科技有限公司 Android device and computer USB linkage dormancy awakening circuit
CN115297365A (en) * 2022-08-08 2022-11-04 广东省翼瞰集成电路设计有限公司 Method, system and related equipment for preventing HDMI equipment from being awakened accidentally

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101005658A (en) * 2006-01-20 2007-07-25 佛山市顺德区顺达电脑厂有限公司 Action communication device for power saving while talking
CN101778457A (en) * 2009-12-11 2010-07-14 中兴通讯股份有限公司 Mobile terminal and sleep method of MBBMS module therein
CN101969502A (en) * 2010-10-13 2011-02-09 华为终端有限公司 Mobile terminal service recovering method and mobile terminal
CN102622079A (en) * 2012-02-25 2012-08-01 华为终端有限公司 Sleep method, wakening method and mobile terminal device

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 (en) * 2005-02-10 2010-12-08 株式会社東芝 Information processing apparatus and control method thereof
US7373530B2 (en) * 2005-03-16 2008-05-13 Microsoft Corporation Systems and methods for providing power-loss protection to sleeping computers systems
JP4853126B2 (en) 2006-06-15 2012-01-11 日本電気株式会社 Portable wireless terminal
CN101720532B (en) * 2007-03-13 2012-10-03 马维尔国际有限公司 Optimized packet processing architecture for battery powered mobile communication device
US8805530B2 (en) * 2007-06-01 2014-08-12 Witricity Corporation Power generation for implantable devices
US20090037756A1 (en) * 2007-07-31 2009-02-05 Lundquist David T System and Method for Suspending Operation of a Mobile Unit
CN101458556A (en) * 2007-12-14 2009-06-17 联想(北京)有限公司 Dynamic control method and device for network card power consumption and connection mode
US9516116B2 (en) * 2008-06-06 2016-12-06 Apple Inc. Managing notification service connections
US8941620B2 (en) * 2010-01-06 2015-01-27 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 (en) * 2006-01-20 2007-07-25 佛山市顺德区顺达电脑厂有限公司 Action communication device for power saving while talking
CN101778457A (en) * 2009-12-11 2010-07-14 中兴通讯股份有限公司 Mobile terminal and sleep method of MBBMS module therein
CN101969502A (en) * 2010-10-13 2011-02-09 华为终端有限公司 Mobile terminal service recovering method and mobile terminal
CN102622079A (en) * 2012-02-25 2012-08-01 华为终端有限公司 Sleep method, wakening method and mobile terminal device

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105828425A (en) * 2016-03-25 2016-08-03 乐视控股(北京)有限公司 Low-power consumption implementation method and device of mobile communication terminal

Also Published As

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

Similar Documents

Publication Publication Date Title
WO2013123863A1 (en) Sleep method, wakeup method and mobile terminal device
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
WO2013147729A1 (en) Methods and apparatus for saving power
EP2824895A1 (en) Information backup method and apparatus, mobile terminal
WO2018010596A1 (en) Mode switching method and device
US10379874B1 (en) Expedited resume process from low battery
JP6647285B2 (en) System and method for external access detection and recovery of a system-on-chip subsystem
US8954800B1 (en) Recovery button for automatically entering recovery mode
US10394307B2 (en) Information processing apparatus, information processing method, and program
US8169939B2 (en) Mobile computation device and data packet reception method thereof
WO2015172283A1 (en) Method, device and mobile terminal for reducing power consumption
TW201237756A (en) Method for fast resuming computer system and computer system
WO2014176893A1 (en) Method and device for powering off mobile terminal
JP2012138088A (en) Information processing device, power supply control method, and program
CN102044201B (en) Device and method for constant brightness display of mobile equipment screen
WO2017096834A1 (en) Method, mobile terminal and terminal for realizing wireless charging
WO2016045363A1 (en) Method for cpu to control wifi module via hsic bus interface
WO2016115761A1 (en) Electricity saving method and device for multi-system terminal
US20150123875A1 (en) Power management device and method
WO2018010363A1 (en) Screen display control method and mobile terminal
WO2012126345A1 (en) Computer startup method, startup apparatus, state transition method, and state transition apparatus
US9354942B2 (en) Coordinating power states in a hybrid information handling device
CN109445566B (en) OTG (on-the-go) power-saving processing method and system, storage medium and mobile terminal

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