A method for controlling a display screen backlight, applied to an electronic device with an optical proximity sensor, wherein an aperture is disposed on the electronic device, the optical proximity sensor detects intensity of infrared light by using the aperture, wherein optical proximity sensor includes an infrared emitting diode and an infrared receiver and the method comprises: in response to a determination that the electronic device is in a calling state, determining, by the electronic device, an included angle between the electronic device and a preset direction, and determining, by the electronic device, the intensity of the infrared light, wherein the included angle between the electronic device and the preset direction is an included angle between a vertical direction and an axis perpendicular to a plane where a display screen of the electronic device is located; or, is an included angle between a vertical direction and a plane where a display screen of the electronic device is located; turning on, by the electronic device, the display screen backlight based on a determination that the intensity of the infrared light is less than a first threshold and a determination that the included angle between the electronic device and a preset direction is greater than or equal to the preset angle; turning off, by the electronic device, the display screen backlight based on a determination that the intensity of the infrared light is less than a second threshold and the intensity of the infrared light is greater than or equal to the first threshold and a determination that the included angle between the electronic device and a preset direction is greater than or equal to the preset angle, wherein the first threshold is an intensity value of infrared light received by the optical proximity sensor when a dark object shields the aperture; maintaining, by the electronic device, a state of the display screen backlight based on a determination that the intensity of the infrared light is less than or equal to a third threshold and the intensity of the infrared light is greater than or equal to the second threshold, and a determination that the included angle between the electronic device and the preset direction is less than the preset angle; and turning off, by the electronic device, the display screen backlight based on a determination that the intensity of the infrared light is greater than the third threshold, no matter the included angle between the electronic device and the preset direction is greater than or equal to the preset angle, or the included angle between the electronic device and the preset direction is less than the preset angle, wherein the first threshold is less than the second threshold, and wherein the second threshold is less than the third threshold. in response to a determination that the electronic device is in a calling state, determining, by the electronic device, an included angle between the electronic device and a preset direction, and determining, by the electronic device, the intensity of the infrared light, wherein the included angle between the electronic device and the preset direction is an included angle between a vertical direction and an axis perpendicular to a plane where a display screen of the electronic device is located; or, is an included angle between a vertical direction and a plane where a display screen of the electronic device is located; turning on, by the electronic device, the display screen backlight based on a determination that the intensity of the infrared light is less than a first threshold and a determination that the included angle between the electronic device and a preset direction is greater than or equal to the preset angle; turning off, by the electronic device, the display screen backlight based on a determination that the intensity of the infrared light is less than a second threshold and the intensity of the infrared light is greater than or equal to the first threshold and a determination that the included angle between the electronic device and a preset direction is greater than or equal to the preset angle, wherein the first threshold is an intensity value of infrared light received by the optical proximity sensor when a dark object shields the aperture; maintaining, by the electronic device, a state of the display screen backlight based on a determination that the intensity of the infrared light is less than or equal to a third threshold and the intensity of the infrared light is greater than or equal to the second threshold, and a determination that the included angle between the electronic device and the preset direction is less than the preset angle; and turning off, by the electronic device, the display screen backlight based on a determination that the intensity of the infrared light is greater than the third threshold, no matter the included angle between the electronic device and the preset direction is greater than or equal to the preset angle, or the included angle between the electronic device and the preset direction is less than the preset angle, wherein the first threshold is less than the second threshold, and wherein the second threshold is less than the third threshold.