Electronic device and control method thereof
In response to the input of a startup instruction being detected, an electronic device executes a first startup process using hibernation data including information for restoring a status of the electronic device to a status at a time when the electronic device was in operation. The electronic device then executes the first startup process using a combination of a plurality of pieces of hibernation data necessary to restore the electronic device to a status of providing a specific function associated with the startup instruction.
1. An electronic device comprising:
a storage device that stores hibernation data including information for restoring a status of the electronic device at a time when the electronic device was in operation; and
a processor that executes programs stored in a memory and thereby functions as a control unit configured to execute a first startup process using the hibernation data in response to an input of a startup instruction being detected,
wherein the storage device stores a plurality of pieces of hibernation data that can be used in combination with each other; and
the control unit executes the first startup process using a combination of a plurality of pieces of hibernation data necessary to restore the electronic device to a status of providing a specific function associated with the startup instruction,
wherein the electronic device has an image capture function; and
the plurality of pieces of hibernation data stored in the storage device includes hibernation data corresponding only to the image capture function, hibernation data corresponding only to a playback function, and hibernation data common to both the image capture function and the playback function.
2. The electronic device according to claim 1 ,
wherein the storage device stores one or more pieces of hibernation data common for a plurality of functions and one or more pieces of hibernation data corresponding to only one function; and
the control unit executes the first, startup process using a combination of one or more pieces of hibernation data corresponding to only the specific function and one or more pieces of hibernation data common for a plurality of functions.
3. The electronic device according to claim 1 ,
wherein in the case where an instruction associated with a function requiring hibernation data not used in the first startup process has been detected while the first startup process is being executed, the control unit starts executing a second startup process using a combination of a plurality of pieces of hibernation data necessary to restore the electronic device to a status of providing the function.
4. The electronic device according to claim 3 ,
wherein the control unit executes the second startup process with priority over the first startup process.
5. The electronic device according to claim 3 ,
wherein the control unit stops the first startup process while the second startup process is being executed.
6. The electronic device according to claim 1 ,
wherein the startup instruction is input through controls included in the electronic device.
7. The electronic device according to claim 1 ,
wherein the startup instruction is input from a device external to the electronic device.
8. The electronic device according to claim 1 ,
wherein the first startup process is for restoring the electronic device to a status of providing the image capture function.
9. The electronic device according to claim 1 , wherein the processor further functions as:
a generating unit configured to generate the plurality of pieces of hibernation data.
10. A method of controlling an electronic device, the electronic device including a storage unit that stores a plurality pieces of hibernation data, each of which including information for restoring a status of the electronic device at a time when the electronic device was in operation, the method comprising:
executing a first startup process using one or more pieces of the hibernation data in response to an input of a startup instruction being detected,
wherein the plurality of pieces of hibernation data can be used in different combinations; and
in the executing, the first startup process is executed using a combination of a plurality of pieces of the hibernation data that are necessary to restore the electronic device to a status of providing a specific function associated with the startup instruction,
wherein the electronic device has an image capture function; and
the plurality of pieces of hibernation data stored in the storage unit includes hibernation data corresponding only to the image capture function, hibernation data corresponding only to a playback function, and hibernation data common to both the image capture function and the playback function.
11. A non-transitory computer-readable medium storing a program that causes, when executed by a computer included in an electronic device that has a storage unit storing a plurality pieces of hibernation data, each of which including information for restoring a status of the electronic device at a time when the electronic device was in operation, the computer to perform a method comprising:
executing a first startup process using one or more pieces of the hibernation data in response to an input of a startup instruction being detected,
wherein the plurality of pieces of hibernation data can be used in different combinations; and
in the executing, the first startup process is executed using a combination of a plurality of pieces of the hibernation data that are necessary to restore the electronic device to a status of providing a specific function associated with the startup instruction,
wherein the electronic device has an image capture function; and
the plurality of pieces of hibernation data stored in the storage unit includes hibernation data corresponding only to the image capture function, hibernation data corresponding only to a playback function, and hibernation data common to both the image capture function and the playback function.