I have already marked this problem in the past. Now it has come back worse, let me explain sometimes the power button does not want to work at all. I don't think it's a hardware problem because then restarting it works. I also tried changing roms with Resurrection remix and it always worked fine. But then I went back to HAVOC because it's the best. Thanks in advance to those who will help me.