摘要 |
A portable electronic device including a control unit, an ambient light sensor, a proximity sensor and a panel is provided. The ambient light sensor is electrically connected to the control unit. The proximity sensor is electrically connected to the control unit. The panel is electrically connected to the control unit. When the portable electronic device is in a normal operation state and the panel is in an enabled state, if the ambient light sensor detects that the ambient light is dark and the proximity sensor detects that an object is close to a predetermined distance, the control unit switches the portable electronic device into one of a sleep mode, a hibernation mode or a shutdown mode, otherwise, the portable electronic device maintains in the normal operation state. |