I have no idea to call it 'fix' but here's the tip.
When you use bb in the bed, sometimes it goes black out and on again.
This is because Flip to save power function in the Advanced Interaction menu.
Your phone mistakenly reconize itself flip on the desk when you hold it to upwards and stay close on your face.
hope it helpful.