The thread is older, but I come back to it because the problem is still there.
I figured out that my rear display stopped working after a little while, when I open any game.
Enabling the display in settings and immediately restarting the phone caused the rear display to work as usual again...