Control the screen when proximity sensor does not work.

On another firmware I have the ability automatic or manual controlling the screen after dial ( Xiaomi Mi2, MoKee 7.1.2)
Usually Phone -> Settings -> Use proximity sensor (On/Off)
If my proximity sensor is corrupt I can not control for screen (input tone code, turn on record, end a call).