Patent ID: 8405516

Claim:
A portable electronic device, comprising: a storage unit; a display unit; at least one processor; a gyroscope operable to detect a rotation direction and a rotation angle of the portable electronic device; one or more programs that are stored in the memory and are executed by the at least one processor, the one or more programs comprising: a setup module operable to set a predetermined rotation direction and a predetermined rotation angle for unlocking the portable electronic device; a receiving module operable to receive the rotation direction and the rotation angle of the portable electronic device detected from the gyroscope and save the received information of the rotation direction and the rotation angle in the storage unit; a checking module operable to determine whether the rotation direction and the rotation angle stored in the storage unit change within a predetermined time period; a determination module operable to determine whether the rotation direction and the rotation angle are the same as the predetermined rotation direction and the predetermined rotation angle if the rotation direction and the rotation angle do not change within the predetermined time period; and an unlocking module operable to control the least one processor to unlock the portable electronic device if the rotation direction and the rotation angle are the same as the predetermined rotation direction and the predetermined rotation angle; wherein the setup module further sets the predetermined time period.