I think u might want to press the whole back of your phone.. To tighten up yhe connections. Its a bit silly solution but i use it to fix mine all the time. At first i thought it was the software bug.. But i
Don't think it is. As I've tried almost every rom. So try pressing the back of your phone...