A method for controlling a device controller of an electronic device (100;100';500) comprising a fingerprint sensor to transition from a normal power mode to a low power mode relative the normal power mode , the method comprising: - when a first time limit given by a time duration is reached, determining (S604), using the fingerprint sensor, whether a finger is present on the fingerprint sensor, the first time limit is below or equal to a time out limit for transitioning the device controller from the normal power mode to the low power mode, such that the device controller is still in the normal power mode when the first time limit is reached; - when a presence of the finger on the fingerprint sensor has been concluded when the first time limit is reached using the fingerprint sensor, maintaining (S608) the device controller in the normal power mode at least until a second time limit given by a time duration is reached, - when a presence of the finger on the fingerprint sensor has not been concluded by the fingerprint sensor when the first time limit is reached, transitioning the device controller from the normal power mode to the low power mode once the time out limit is reached; wherein the following steps are repeated until it is determined that a finger is not present on the fingerprint sensor: when the second time limit is reached, determining (S610), using the fingerprint sensor, whether the finger is still present on the fingerprint sensor, wherein when the presence of the finger on the fingerprint sensor has been concluded by the fingerprint sensor, maintaining (S612) the device controller in the normal power mode at least until the second time limit is again reached, and when it is determined that a finger is not present on the fingerprint sensor, transitioning (S614) the device controller from the normal power mode to the low power mode. - when a first time limit given by a time duration is reached, determining (S604), using the fingerprint sensor, whether a finger is present on the fingerprint sensor, the first time limit is below or equal to a time out limit for transitioning the device controller from the normal power mode to the low power mode, such that the device controller is still in the normal power mode when the first time limit is reached; - when a presence of the finger on the fingerprint sensor has been concluded when the first time limit is reached using the fingerprint sensor, maintaining (S608) the device controller in the normal power mode at least until a second time limit given by a time duration is reached, - when a presence of the finger on the fingerprint sensor has not been concluded by the fingerprint sensor when the first time limit is reached, transitioning the device controller from the normal power mode to the low power mode once the time out limit is reached; when the second time limit is reached, determining (S610), using the fingerprint sensor, whether the finger is still present on the fingerprint sensor, wherein when the presence of the finger on the fingerprint sensor has been concluded by the fingerprint sensor, maintaining (S612) the device controller in the normal power mode at least until the second time limit is again reached, and when it is determined that a finger is not present on the fingerprint sensor, transitioning (S614) the device controller from the normal power mode to the low power mode. <EOS>