1. Field of the Invention
The present invention relates to an information processing apparatus, a method of controlling the same, and a storage medium, and more particularly to an information processing apparatus operated by software, a method of controlling the information processing apparatus, and a storage medium.
2. Description of the Related Art
Recently, an information processing apparatus realized as an image forming apparatus or the like has come to have more functions. Along with this, the information processing apparatus has become complicated in the system, and time taken to start up the software tends to be increased.
To solve the problems, a technique has been established in which when being switched off, the information processing apparatus is placed in a state (sleep state) where electric power is supplied only to a volatile memory (e.g. a DRAM) in which software is loaded, so that the information processing apparatus can be restarted from the state when the apparatus is switched on next time, to thereby reduce time required for the start-up of the software.
In relation to the above-mentioned technique, there has been disclosed a technique in which a time at which user operation is rarely performed is statistically determined during the sleep state, and the software is rebooted at the time (see e.g. Japanese Patent Laid-Open Publication No. 2006-229509).
However, if a software trouble (e.g. freeze or memory exhaustion) occurs before the information processing apparatus is switched off and brought into the state (sleep state) where only the volatile memory in which software is loaded is supplied with electric power, the operation of switching off and then switching on (rebooting) the information processing apparatus only returns the apparatus to the same troubled state.
As described above, it is difficult for the conventional technique of rebooting software during the sleep mode to recover the apparatus from a state in which software operation is abnormal to a state in which the software operation is normal.
Further, boot time in a recent information processing system tends to increase due to an increase in the number of programs. In order to achieve quick start of such a system, a technique of using a suspend/resume (or hibernation) function has been proposed.
Japanese Patent Laid-Open Publication No. 2005-284491 proposed a technique in which a memory image of each program formed at completion of the start of the system is made ready for use in advance, and is loaded when recovering from the sleep state, whereby time taken from the start to completion of the boot of an application is reduced.
In general, a user is not aware of difference in processing between a start involving initialization of the entire information processing system and a start performed using the resume function, and when the user turns on a power button, one of the two start processes is performed according to a boot setting.
On the other hand, when the user desires to terminate the information processing system, he/she needs to select between shutdown processing and suspend processing according to the situation.
Further, if a change in settings which requires a system reboot is performed in a normal state of the information processing system, the user needs to judge that the change in settings requires a system reboot and execute shutdown processing irrespective of the boot setting.
However, it is very difficult for an ordinary user to perform the above-mentioned judgment. For this reason, even though a change in settings has been performed which requires shutdown, shutdown may not be executed, making it impossible to properly reflect the change in the settings, or shutdown may be performed though unnecessary, making time taken to boot next time unnecessarily longer.
The present invention provides an information processing apparatus capable of recovering the information processing apparatus from a state in which a software operation is abnormal to a state in which the same is normal, a method of controlling the information processing apparatus, and a storage medium storing a computer-readable program implementing the method.
Further, the present invention provides an information processing apparatus which is capable of selectively using a suspend (or hibernation) function and a shutdown function in an appropriate manner without making a user aware of it, to thereby realize an information processing environment where appropriate initialization, quick start, and excellent usability of the apparatus are achieved.
In a first aspect of the present invention, there is provided an information processing apparatus comprising a receiving unit configured to receive an instruction for turning off power of the information processing apparatus, a determination unit configured to be operable when the instruction has been received, to determine whether or not it is necessary to turn off the power of the information processing apparatus, and a control unit configured to be operable when said determination unit has determined that it is necessary to turn off the power of the information processing apparatus, to control the information processing apparatus such that the power thereof is turned off, and when said determination unit has determined that it is unnecessary to turn off the power of the information processing apparatus, to control the information processing apparatus such that the power thereof is not turned off.
In a second aspect of the present invention, there is provided a method of controlling an information processing apparatus comprising receiving an instruction for turning off power of the information processing apparatus, determining, when the instruction has been received, whether or not it is necessary to turn off the power of the information processing apparatus, and controlling, when it is determined that it is necessary to turn off the power of the information processing apparatus, the information processing apparatus such that the power thereof is turned off, and controlling, when it is determined that it is unnecessary to turn off the power of the information processing apparatus, the information processing apparatus such that the power thereof is not turned off.
In a third aspect of the present invention, there is provided a non-transitory computer-readable storage medium storing a computer-executable program for causing a computer to execute a method of controlling an information processing apparatus, wherein the method comprises receiving an instruction for turning off power of the information processing apparatus, determining, when the instruction has been received, whether or not it is necessary to turn off the power of the information processing apparatus, and controlling, when it is determined that it is necessary to turn off the power of the information processing apparatus, the information processing apparatus such that the power thereof is turned off, and controlling, when it is determined that it is unnecessary to turn off the power of the information processing apparatus, the information processing apparatus such that the power thereof is not turned off.
According to the present invention, it is possible to recover the information processing system from the state in which a software operation is abnormal to the state in which the same is normal. Further, it is possible to selectively use a suspend (or hibernation) function and a shutdown function in an appropriate manner without making a user aware of it, to thereby realize an information processing environment where appropriate initialization, quick start, and excellent usability of the apparatus are achieved.
Further features of the present invention will become apparent from the following description of exemplary embodiments with reference to the attached drawings.
The present invention will now be described in detail below with reference to the accompanying drawings showing embodiments thereof.
Referring to
The controller 1 comprises a main board 100 and a sub board 120.
The main board 100 is a so-called general-purpose CPU system. The main board 100 comprises a CPU 101, a boot ROM 102, a USB controller 108, a memory 103, a bus controller 104, a nonvolatile memory 105, a power controller 109, a disk controller 106, and a flash disk 107.
The CPU 101 controls the overall operation of the main board 100. The boot ROM 102 stores a boot program. The memory 103 is a volatile memory, and the CPU 101 uses the same as a work memory. Usually, software is stored in the nonvolatile memory 105, and temporary data or the like for use in operating the software is loaded into the memory 103. In addition to the data, software generated from the software stored in the nonvolatile memory 105 is sometimes loaded into the memory 103. The controller 1 controls the image forming apparatus 200 according to the software programs. However, when a trouble occurs in information contained e.g. in data or software stored in the memory 103, the operating state of the software becomes abnormal. In this case, even when another device (e.g. the printer device 4) is rebooted while continuing supply of electric power to the memory 103 by supplying electric power to the memory 103, an unstable state of the software is inevitably continued. Therefore, the supply of electric power to the memory 103 is cut off by cutting off the supply of electric power to the controller 1, whereby it is possible to restore the image forming apparatus 200 from a state in which the operation of the software is abnormal to a state in which the same is normal.
The bus controller 104 has a function of acting as a bridge to an external bus. The nonvolatile memory 105 is capable of storing information even after the supply of electric power is cut off. The disk controller 106 controls a storage device (the flash disk 107 in the illustrated example) connected thereto. The flash disk (e.g. an SSD (solid state drive)) 107 is a relatively small-capacity storage device formed by a semiconductor device. The USB controller 108 is capable of controlling a USB device (the USB memory 9 in the illustrated example) connected thereto. The power controller 109 manages the supply of electric power to each section of the main board 100, which needs electric power.
The USB memory 9, the console section 5, the HDD 6, and the switch 10, mentioned above, are externally connected to the main board 100. The HDD 6 may be any type insofar as it is a nonvolatile device. The console section 5 comprises various kinds of buttons for user operation and a touch panel for displaying information to a user and for user operation. When the switch 10 is operated by the user, it sends an interrupt to the CPU 101. When detecting the interrupt, the CPU 101 controls the power controller 109 according to a state of the image forming apparatus 200. Thus, the user turns on or off the main power supply, but even when the main power supply of the image forming apparatus 200 is turned off, the supply of electric power is not completely cut off.
The sub board 120 comprises a relatively small general-purpose CPU system and image processing hardware.
The sub board 120 comprises a CPU 121, a memory 123, a bus controller 124, a nonvolatile memory 125, a power controller 128, an image processor 127, and device controllers 126 and 129.
The CPU 121 controls the overall operation of the sub board 120. The memory 123 is used as a work memory by the CPU 121. The bus controller 124 has a function of acting as a bridge to an external bus. The nonvolatile memory 125 is capable of storing information even after the supply of electric power is cut off.
The image processor 127 performs real-time digital image processing. The device controller 126 passes data between the printer device 4 and the image processor 127, and the device controller 129 passes data between the scanner device 2 and the image processor 127. The CPU 121 directly controls the FAX device 7.
The power controller 128 manages the supply of electric power to each section of the sub board 120, which needs electric power.
The main board 100 and the sub board 120 are supplied with electric power from the power supply 8. The switch 10 is used by the user for power on/off operation. When the switch 10 is operated, an interrupt is sent to the CPU 101, as described hereinbefore. When detecting the interrupt, the CPU 101 controls the power controllers 109 and 128 according to a state of the image forming apparatus 200.
Note that
The operation of the controller 1 configured as above will be described by taking image copying as an example.
When the user gives an instruction for image copying via the console section 5, the CPU 101 sends an image read command to the scanner device 2 via the CPU 121. The scanner device 2 optically scans a sheet original, converts an image into digital image data, and inputs the digital image data to the image processor 127 via the device controller 129. The image processor 127 DMA-transfers the digital image data to the memory 123 via the CPU 121, and the memory 123 temporarily stores the digital image data.
After it can be confirmed that all or a predetermined amount of the digital image data has been input to the memory 123, the CPU 101 gives an image output instruction to the printer device 4 via the CPU 121. The CPU 121 notifies the image processor 127 of the location of the image data in the memory 123. The digital image data in the memory 123 is sent to the printer device 4 via the image processor 127 and the device controller 126 according to a synchronization signal from the printer device 4, and is then printed on a sheet in the printer device 4.
In the case of printing a plurality of copies, the CPU 101 stores the image data in the HDD 6, so that the image data can be sent to the printer device 4 for printing of a second and following copies without receiving the image data from the scanner device 2.
The process in
Referring to
If it is determined in the step S102 that the operating state of the software has become abnormal (YES to the step S102), the CPU 101 cuts off the supply of electric power to the controller 1 via the power controllers 109 and 128 (step S104), followed by terminating the present process.
The sleep state (power saving state) means in its general sense a state in which the supply of electric power is cut off except to the controller 1, but in the present embodiment, as to the supply of electric power to the controller 1, it is only required that at least the supply of electric power to the memory 103 is not cut off.
According to the
In the process in
Referring to
If it is determined in the step S202 that any job has been executed at least once (NO to the step S202), it is determined whether or not any job remains unterminated (step S203). If there is any job remaining unterminated (YES to the step S203), the process proceeds to the step S205, whereas if not (NO to the step S203), the CPU 101 shifts the controller 1 to the sleep state (power saving state) via the power controllers 109 and 128 (step S204), followed by terminating the present process.
In the above-described process, determination is performed in respect of two points, i.e. whether no job has been executed at all and whether or not there is any job remaining unterminated. When no job has been executed at all, it can be presumed that some trouble occurred during the start of the apparatus or during an idle time. On the other hand, when there is any job remaining unterminated, it can be presumed that some trouble occurred during execution of the job.
Referring to
If it is determined in the step S302 that an error has occurred in software, from which the image forming apparatus 200 can be recovered only by turning off and on the power, (YES to the step S302), the CPU 101 turns off the power of the controller 1 via the power controllers 109 and 128 (step S304), followed by terminating the present process.
Referring to
If it is determined in the step S402 that the software is in an abnormal state (YES to the step S402), the CPU 101 reboots the software, and at the same time reboots a hardware device required to be initialized along with rebooting of the software, through the power controllers 109 and 128 (step S404). Then, the CPU 101 shifts the controller 1 to the sleep state via the power controllers 109 and 128 (step S403), followed by terminating the present process.
Compared with the power supply control process in
The information processing system 201 comprises a reader section 202, a printer section 206, a console section 207, a hard disk section 208, a FAX section 290, and a controller 210.
The reader section 202 reads image data. The printer section 206 outputs image data. The console section 207 comprises a keyboard for inputting/outputting image data, various hard keys including a power switch, and a liquid crystal panel for displaying image data, various functions, and so forth. Control programs, image data, etc. are written (recorded in a computer-readable manner) in the hard disk section 208 in advance. The FAX section 290 performs facsimile transmission and reception.
The controller 210 is connected to the reader section 202, the printer section 206, the console section 207, the hard disk section 208, the FAX section 290, and like other component elements, so as to control them.
The reader section 202 comprises a document feeder unit 230 for conveying an original sheet, and a scanner unit 211 for optically reading an original image and converting the original image to image data as an electric signal.
The printer section 206 comprises a sheet feed unit 212 having a plurality of sheet feed cassettes each containing recording sheets, a marking unit 213 for transferring image data onto a recording sheet and fixing the transferred image data on the same, and a discharge unit 214 for sorting and stapling printed recording sheets and discharging these from the apparatus.
It is to be understood that the main CPU unit 2200 and the sub CPU unit 2220 can also be formed as a single board. However, in the present embodiment, the following description will be given, for simplicity of explanation, by taking as an example a case where the controller 210 comprises the two separate boards, i.e. the main CPU unit 2200 and the sub CPU unit 2220.
On the main CPU unit 2200, there are mounted a boot ROM 2201, a CPU 2202, volatile memories (DRAM 2213 and SRAM 2216), and a memory controller 2212.
The boot ROM 2201 is a nonvolatile memory storing a boot program. The CPU 2202 is an arithmetic processing device for executing the boot program and other programs. The DRAM 2213 is a volatile memory for temporarily storing programs and data. The memory controller 2212 controls the DRAM 2213.
Further, on the main CPU unit 2200, there are mounted a bus controller 2204 for controlling connection to the sub CPU unit 2220, a disk controller 2205 for controlling a hard disk drive (HDD) 2209, and so forth. Note that the hard disk drive 2209 is housed in the hard disk section 208 appearing in
The disk controller 2205 is connected to a port selector 2207 via a port switch 2206 for switching between permission and inhibition of access to a connected device.
A flash disk 2208 and the hard disk drive 2209 are connected to the port selector 2207, such that the flash disk 2208 or the hard disk drive 2209 selected by the port selector 2207 can be controlled by the disk controller 2205.
Although in the present embodiment, the disk controller 2205, the port switch 2206, and the port selector 2207 are described as separate modules, it is possible to mount a part or all of these as a single module.
The flash disk 2208 or the hard disk drive 2209 stores various programs including an OS (operating system) and application programs.
Further, on the main CPU unit 2200, there is mounted a bus bridge 2214 for bus-connection between the main CPU unit 2200 and the sub CPU unit 2220. Furthermore, on the main CPU unit 2200, there is mounted a DMA controller 2215 for transferring memory data between the main CPU unit 2200 and the sub CPU unit 2220.
On the other hand, on the sub CPU unit 2220, there are mounted a boot ROM 2221, a CPU 2222, a volatile memory (DRAM) 2242, and a memory controller 2240.
The boot ROM 2221 is a nonvolatile memory storing a boot program. The CPU 2222 is an arithmetic processing device for executing the boot program and other programs. The volatile memory 2242 temporarily stores programs and data. The memory controller 2240 controls the volatile memory 2242.
Further, on the sub CPU unit 2220, there is mounted a bus controller 2225. Furthermore, on the sub CPU unit 2220, there are mounted an image processor 2224 and a device controller 2226.
The bus controller 2225 controls connection to the main CPU unit 2200. The image processor 2224 executes an image forming process at high speed. The device controller 2226 controls image forming devices, such as a FAX engine 2227, a print engine 2228, and a scan engine 2229, connected thereto, and executes an image forming process. Note that the FAX engine 2227, the print engine 2228, and the scan engine 2229 are housed in the FAX section 290, the printer section 206, and the reader section 202, each appearing in
Further, on the sub CPU unit 2220, there is mounted a DMA controller 2241 for transferring memory data between the main CPU unit 2200 and the sub CPU unit 2220.
The controller 210 has a network interface, not shown. A network driver for controlling the network interface is stored in the flash disk 2208, the hard disk drive 2209, the boot ROM 2221, or the like. Module drivers for controlling various modules including the FAX engine 2227, the print engine 2228, and the scan engine 2229 are also stored in the flash disk 2208, the hard disk drive 2209, the boot ROM 2221, or the like.
As shown in
The controller 210 having received a job in the standby state (302) shifts to a job execution state (303) to execute associated job processing. When the job is terminated, the controller 210 returns to the standby state (302).
When no operation is performed in the standby state (302) over a predetermined time period, the controller 210 shifts to a sleep state (power saving state) (304). Then, when a return-from-sleep factor, such as a switch operation, network packet reception, or expiration of a timer counting a designated time period, occurs in the sleep state (304), the controller 210 shifts (returns) to the standby state (302).
Further, when the power switch-off operation is performed in the standby state (302), the controller 210 determines whether or not shutdown is required (310). If shutdown is required (YES to 310), the controller 210 executes shutdown processing for a kernel and drivers, thereby shifting to the system-off state (301). On the other hand, if shutdown is not required (NO to 310), the controller 210 executes suspend processing for the kernel and the drivers, thereby shifting to a suspend state (power saving state) (305). Note that the shutdown processing corresponds to termination processing for terminating the information processing system 201. Further, the suspend processing corresponds to deactivation processing for deactivating the operation of the information processing system 201 after storing the state of the information processing system 201 in the DRAM 2213, the HDD 2209, or the flash disk 2208. Note that the term “suspend” in the present embodiment implies not only “suspend” but also “hibernation”.
The controller 210 in the suspend state (305) executes resume processing in response to a power switch-on operation, thereby shifting to the standby state (302). The resume processing corresponds to return processing for returning the state of the information processing system 201 to its former state before execution of the suspend processing, using the information stored in the DRAM 2213, the HDD 2209, or the flash disk 2208.
In the following, a description will be given, with reference to
Upon detecting a power switch-on operation (step S901), the CPU 2202 of the controller 210 initializes the OS kernel and the drivers (step S902). Further, the CPU 2202 starts the information processing system 201 by initializing application programs for various job operations, and then shifts the controller 210 to the standby state (302) (job waiting state) (step S903).
Then, when a power switch-off operation (power-off request) is detected (YES to a step S904), the process proceeds to a step S905.
In the step S905, the CPU 2202 determines, based on a shutdown flag, whether or not shutdown or reboot of the information processing system 201 (i.e. initialization of the OS kernel and the module drivers) is required. Note that the shutdown flag is stored e.g. in the HDD 2209 or the flash disk 2208.
If it is determined in the step S905 that shutdown or reboot is required (i.e. if the shutdown flag is turned ON), the following cases (1) to (3) can be envisaged, for example:
(1) a case where it is desired to start OS kernel update processing;
(2) a case where it is desired to change an OS kernel start mode (normal mode or update mode); and
(3) a case where it is desired to execute processing for rebooting a desired module driver (module driver required to be rebooted so as to reflect a change in settings).
For example, let it be assumed that the user operates the console section 207 e.g. in the standby mode (normal mode) to give an instruction for OS update. If this update instruction is detected, the CPU 2202 changes the flag (shutdown flag) indicative of requirement of shutdown to ON, and also sets an update mode start flag to ON. This processing is performed so as to shut down the OS operating in the normal mode and start up the OS by changing the kernel start mode to the update mode (2), and then execute the OS kernel update processing (1). Note that the update mode start flag is stored e.g. in the HDD 2209 or the flash disk 2208.
Further, let it be assumed that the user operates the console section 207 e.g. in the standby mode to change a setting of the network driver (e.g. the setting of the IP address). If this change is detected, the CPU 2202 changes the shutdown flag to ON. This processing is performed so as to reboot the network driver (3) and reflect the changed setting. Furthermore, let it be assumed that the user operates the console section 207 e.g. in the standby mode to update a module driver. If the update of the module driver is detected, the CPU 2202 changes the shutdown flag to ON. This processing is performed so as to reboot the updated module driver (3) and reflect the update. In short, when a specific change (i.e. a change in the network setting, an update of a module driver, which requires initialization of the module driver, or the like) is made in the information processing system 201, the CPU 2202 changes the shutdown flag to ON.
Then, if the power switch is turned off (step S904), the CPU 2202 determines in the step S905 that shutdown or reboot is required if the shutdown flag is on. On the other hand, if the shutdown flag is off, the CPU 2202 determines in the step S905 that neither shutdown nor reboot is required.
If it is determined that shutdown or reboot is required (YES to the step S905), the CPU 2202 executes termination processing for an application program and termination processing for the OS kernel driver (step S906), thereby shutting down the system (completion of system shutdown (step S907)). In other words, the CPU 2202 shifts the controller 210 to the system-off state (301). Thereafter, when the power switch is turned on and if the update mode start flag is on, the CPU 2202 performs control such that the OS is booted in the update mode. In doing this, the OS kernel driver and the application program are initialized.
On the other hand, if it is determined in the step S905 that neither shutdown nor reboot is required (NO to the step S905), the CPU 2202 executes suspend processing for the kernel driver and suspend processing for the hardware (step S910), thereby shifting the controller 210 to the suspend state (power saving state) (305).
If a power switch-on operation is detected in the suspend state (305) (YES to the step S911), the CPU 2202 executes resume processing for the hardware and resume processing for the OS kernel driver (step S912), thereby putting the information processing system 201 into operation. Then, the CPU 2202 shifts the controller 210 to the job waiting state (standby state (302)) (step S903).
Note that the first shift process in
When a power switch-on operation is detected (step S1001), the CPU 2202 of the controller 210 initializes the OS kernel and the drivers (step S1002). Further, the CPU 2202 initializes application programs for various job operations, thereby putting the information processing system 201 into operation, and shifts the controller 210 to the standby state (302) (job waiting state) (step S1003).
Then, when a power switch-off operation (power-off request) is detected (YES to a step S1004), the process proceeds to a step S1005. In the step S1005, the CPU 2202 determines, based on the above-mentioned shutdown flag, whether or not shutdown or reboot of the information processing system 201 (i.e. initialization of the OS kernel and the module drivers) is required. Cases in which it is determined in the step S1005 that shutdown or reboot of the information processing system 201 is required (i.e. when the shutdown flag is turned on) are as described hereinbefore with reference to
If it is determined in the step S1005 that shutdown or reboot is required (YES to the step S1005), the CPU 2202 executes termination processing for an application program and termination processing for the OS kernel driver (step S1006). Further, the CPU 2202 reinitializes the OS kernel driver and the application program as well (step S1007). In other words, the system is rebooted. In the case of rebooting the OS, if the above-mentioned update mode start flag is on, the CPU 2202 performs control such that the OS is booted in the update mode.
Then, after the information processing system 201 has shifted to the normal state (the standby state (302)), the CPU 2202 executes suspend processing for the kernel driver and suspend processing for the hardware (step S1010), thereby shifting the controller 210 to the suspend state (305). If a power switch-on operation is detected in the suspend state (305) (YES to the step S1011), the CPU 2202 executes resume processing for the hardware and resume processing for the OS kernel driver (step S1012), thereby putting the information processing system 201 into operation. Then, the CPU 2202 shifts the controller 210 to the job waiting state (standby state (302)) (step S1003).
On the other hand, if it is determined in the step S1005 that neither shutdown nor reboot is required (NO to the step S1005), the CPU 2202 immediately executes the steps S1010 to S1012, thereby putting the information processing system 201 into operation. Then, the CPU 2202 shifts the controller 210 to the job waiting state (standby state (302)) (step S1003).
In the variation in
Next, a description will be given, with reference to
When a power switch-on operation is detected (step S1101), the CPU 2202 of the controller 210 initializes the OS kernel and the drivers (step S1102). Further, the CPU 2202 initializes application programs for various job operations, thereby putting the information processing system 201 into operation, and then shifts the controller 210 to the standby state (302). Then, as described with reference to
Then, when a power switch-off operation (power-off request) is detected (YES to a step S1104), the CPU 2202 executes return-from-sleep processing (step S1105), thereby returning the controller 210 from the sleep state (304) so as to once shift the same to the standby state (302). After having shifted the controller 210 to the standby state (302), the CPU 2202 determines, based on the shutdown flag, whether or not shutdown or reboot of the information processing system 201 (i.e. initialization of the OS kernel and the module drivers) is required (step S1106). Cases in which it is determined in the step S1106 that shutdown or reboot of the information processing system 201 is required (i.e. when the shutdown flag is turned on) are as described hereinbefore with reference to
If it is determined that shutdown or reboot is required (YES to the step S1106), the CPU 2202 executes termination processing for an application program and termination processing for the OS kernel driver (step S1107), thereby shutting down the system (completion of system shutdown (step S1108). In other words, the CPU 2202 shifts the controller 210 to the system-off state (301). Thereafter, when the power switch is turned on and if the update mode start flag is on, the CPU 2202 performs control such that the OS is booted in the update mode.
On the other hand, if it is determined in the step S1106 that neither shutdown nor reboot is required (NO to the step S1106), the CPU 2202 executes suspend processing for the kernel driver and suspend processing for the hardware (step S1110), thereby shifting the controller 210 to the suspend state (power saving state) (305).
If a power switch-on operation is detected in the suspend state (305) (YES to the step S1111), the CPU 2202 executes resume processing for the hardware and resume processing for the OS kernel driver (step S1112), thereby putting the information processing system 201 into operation. Then, the CPU 2202 shifts the controller 210 to the job waiting state (standby state (302)). Then, if no operation is detected over the predetermined time period, the CPU 2202 executes sleep processing, thereby shifting the controller 210 to the sleep state (304) (step S1103).
In the following, a description will be given, with reference to
Referring to
As described hereinabove, when the user turns off the power switch 701, the CPU 2202 of the controller 210 determines whether or not shutdown is required. If shutdown is required, the CPU 2202 shuts down the information processing system and shifts the controller 210 to the system-off state. On the other hand, if shutdown is not required, the CPU 2202 executes suspend processing to thereby shift the controller 210 to the suspend state.
In the case of performing shutdown, the CPU 2202 of the controller 210 brings the relay switch 702 into an off state, as shown in
On the other hand, in the case of performing suspend processing, the CPU 2202 of the controller 210 holds the relay switch 702 in an on state, as shown in
As described above, according to the present embodiment, it is possible to selectively use suspend processing (or hibernation processing) and shutdown processing in an appropriate manner without making a user who performed a power-off operation aware of it, to thereby achieve appropriate initialization, quick start, and excellent usability of the information processing system.
In other words, when the user performs normal power-off operation without caring about the difference between deactivation processing (suspend or hibernation processing) and shutdown processing, the system automatically determines whether to perform deactivation processing or shutdown processing and appropriately carries out one of them. This makes it possible to achieve appropriate initialization, quick start, and excellent usability of the information processing system.
Note that the present invention is not limited to the above-described embodiments, but it can be practiced in various forms. For example, the present invention can be applied to a system, an apparatus, a method, a program, a storage medium, and so forth. Specifically, the present invention may be applied to a system formed by a plurality of devices or to an apparatus formed as a single device.
Further, the present invention includes a combination of the above-described embodiments.
Aspects of the present invention can also be realized by a computer of a system or apparatus (or devices such as a CPU or MPU) that reads out and executes a program recorded on a memory device to perform the functions of the above-described embodiments, and by a method, the steps of which are performed by a computer of a system or apparatus by, for example, reading out and executing a program recorded on a memory device to perform the functions of the above-described embodiments. For this purpose, the program is provided to the computer for example via a network or from a recording medium of various types serving as the memory device (e.g., computer-readable medium).
While the present invention has been described with reference to exemplary embodiments, it is to be understood that the invention is not limited to the disclosed exemplary embodiments. The scope of the following claims is to be accorded the broadest interpretation so as to encompass all such modifications and equivalent structures and functions.
This application claims the benefit of Japanese Patent Application No. 2010-288047 filed Dec. 24, 2010, Japanese Patent Application No. 2010-280091, filed Dec. 16, 2010 which are hereby incorporated by reference herein in their entirety.
Number | Date | Country | Kind |
---|---|---|---|
2010-280091 | Dec 2010 | JP | national |
2010-288047 | Dec 2010 | JP | national |