Use this in terminal to test the hardware. Code: while true; do cat /sys/devices/platform/gpio-switch/proximity/state; done I have the opposite issue of the screen goes black while making a call.
while true; do cat /sys/devices/platform/gpio-switch/proximity/state; done