Patent ID: 11861872
Assignee: HUAWEI TECHNOLOGIES CO., LTD.
Field: Computer technology (Electrical engineering)
Classification: CPC G  H | IPC G

Claim 0:
1. A terminal device, comprising:
a power button;
a contact disposed proximate to the power button and configured to move with the power button in response to pressing of the power button by a finger, wherein when the contact is closed, a stroke of the power button is less than a maximum stroke of the power button;
a fingerprint sensor disposed on the power button;
a processor; and
a memory configured to store instructions that when executed by the processor, cause the terminal device to:
detect, when the terminal device is in a shutdown state, the pressing of the power button by the finger, wherein the fingerprint sensor is not powered on when the terminal device is in the shutdown state;
in response to detecting the pressing of the power button by the finger:
powering on the terminal device;
powering on the fingerprint sensor; and
collecting, by the fingerprint sensor, fingerprint data before releasing the pressing of the power button; and

log in to the terminal device in response to the fingerprint data matching with preset fingerprint data.