may caused by power jack.
I have a same problem with my hp laptop. It's a very common problem for hp computer. you can google for it and get the repair steps. If it's the jack problem, you have to replace it from main-board. simple problem hard repair. good luck