The sensor 605 may be a gravity sensor (gravity sensor) or a magnetic manometer. When the sensor 605 is the gravity sensor, the sensor 605 may detect an acceleration magnitude in each direction (generally three axes) of the mobile phone, may detect a magnitude and a direction of gravity when the sensor 605 is stationary, and may be applied to an application used for identifying a mobile phone posture (for example, screen switching between landscape and portrait modes, a related game, or magnetometer posture calibration), a function related to vibration identification (such as a pedometer or a knock), and the like. When the sensor 605 is the magnetic manometer, the sensor 605 may detect a geomagnetic field signal. Certainly, the mobile phone 60 may include a plurality of types of sensors. Only the sensor 605 is described herein and is not a limitation to a quantity and a type.
The mobile phone 60 may further include another sensor, such as a light sensor. Specifically, the light sensor may include an ambient light sensor and an optical proximity sensor.
The ambient light sensor may adjust luminance of the display panel 6041 based on brightness of ambient light, and the optical proximity sensor may detect whether an object approaches or touches the mobile phone, and may turn off the display panel 6041 and/or backlight when the mobile phone 60 approaches an ear. For other sensors such as a gyroscope, a barometer, a hygrometer, a thermometer, and an infrared sensor that may also be disposed on the mobile phone 60, details are not described herein.