Patent ID: 8924759

Claim:
A power-supply control device comprising: a transition section that shifts a state of an operation target section to a power-supply state or one of a plurality of types of non-power-supply states, and that, in a case of shifting the state of the operation target section to a non-power-supply state, selects a non-power-supply state among the plurality of types of non-power-supply states and shifts the state of the operation target section to the selected non-power-supply state, the operation target section being a section which operates by receiving supply of power from a power source section, the power-supply state being a state in which power is supplied to the operation target section, each of the plurality of types of non-power-supply states being a state in which supply of power to the operation target section is interrupted, shifting from each of the plurality of types of non-power-supply states to the power-supply state taking a corresponding one of return time periods that are relatively different from one another; a body-capable-of-movement detection section that detects a body capable of movement including a user who intends to use the operation target section; a return control section that, when the body capable of movement is detected by the body-capable-of-movement detection section in each of the plurality of types of non-power-supply states, performs a return process of controlling the transition section so as to return the state of the operation target section to the power-supply state, the return process taking each of activation time periods from a time at which the return process starts to a time at which the return process finishes in a corresponding one of the plurality of types of non-power-supply states; a reference-time-period setting section that sets a reference time period on the basis of a longest activation time period among the activation time periods corresponding to the plurality of types of non-power-supply states, the reference time period being used for a time at which detection of the body capable of movement with the body-capable-of-movement detection section is performed again; a state determination section that checks a state of detection of the body capable of movement with the body-capable-of-movement detection section after the reference time period set by the reference-time-period setting section has elapsed from the time at which the return process started, and that determines whether the state of the operation target section which is the power-supply state is to be kept or the state of the operation target section is to be returned to one of the plurality of types of non-power-supply states by controlling the transition section; and a correction section that corrects the reference time period on the basis of detection position information concerning a position at which the body capable of movement is detected by the body-capable-of-movement detection section.