CPC G06F 3/04142 (2019.05) [G06F 3/0416 (2013.01); G06F 3/165 (2013.01); G06F 2203/04105 (2013.01)] | 20 Claims |
1. An electronic device control apparatus, comprising:
an interface circuit configured to:
input a drive signal to a pressure sensor; and
collect a sensor signal that is output from the pressure sensor in response to the drive signal; and
one or more processors coupled to the interface circuit and configured to:
determine, based on the sensor signal, a pressing time on the pressure sensor;
generate a control signal for a predetermined function based on the sensor signal, wherein the predetermined function comprises a power key function;
determine that the power key function is not responding when a pressing time T of the pressure sensor is less than T1;
generate a sleep signal when the pressing time T of the pressure sensor is greater than T1 but less than T2; and
generate a power-off or restart signal when the pressing time T of the pressure sensor is greater than T3, wherein T1<T2<T3.
|