When an auto-select program is executed in a reset process control program of a laser printer, an input prime signal valid mode is selected when the laser printer is not in sleep mode. Accordingly, the laser printer executes a reset process upon in response to an input prime signal. However, an input prime signal invalid mode is selected when the laser printer is in sleep mode. As a result, the laser printer ignores input prime signals. In this way, a user can prevent undesirable execution of the reset process, thereby reducing the number of unnecessary processes and lowering the running cost.