Your laptop screen goes black when you tilt it a certain way because of a sensor that senses the movement of the screen and the direction of the screen. It is an adjustable sensor that adjusts the brightness of the screen based on the position of the screen.