Patent ID: 8803799

Claim:
An electronic device, comprising: one or more first temperature sensors, a second temperature sensor, a display screen; a storage system and at least one processor; one or more programs that are stored in the storage system and are executed by the at least one processor, the one or more programs comprising: a setting module that defines a screensaver time for the electronic device, sets a standard temperature difference value for the electronic device, and sets an allowable number of the one or more first temperature sensors; a record module that records a first operation temperature of the electronic device detected from each of the one or more first temperature sensors, and records a first ambient temperature detected from the second temperature sensor, when the display screen is activated to be in an active state; a timer that starts timing once the electronic device is not operated, and stores a duration of the timer temporarily and resets the timer once the electronic device is being operated; a reading module that obtains a second operation temperature of the electronic device detected from each of the one or more first temperature sensors, and obtains a second ambient temperature detected from the second temperature sensor, upon the condition that the duration is equal to the screensaver time; a determination module that determines whether the electronic device is currently being held by a hand of a user according to the first operation temperatures, the first ambient temperature, the second operation temperatures and the second ambient temperature, the electronic device being determined to be held by a hand of the user, when a first difference value is less than or equal to the standard temperature difference value and at least one allowable number of second difference values are less than or equal to the standard temperature difference value, and the electronic device being determined not to be held by a hand of the user, when the first difference value is less than or equal to the standard temperature difference value and at least one allowable number of the second difference values are greater the standard temperature difference value, the first difference value representing a difference between the first ambient temperature and the second ambient temperature, and each of the second difference values representing a difference between each of the first operation temperatures and each of the corresponding second operation temperatures; a processing module that controls the display screen to be in an inactive state, upon the condition that the electronic device is not held by a hand of the user; and the processing module further continually maintains the display screen to be in the active state, upon the condition that the electronic device is held by the hand of the user.