In my htc one m8 it started happening after a software upgrade from HTC dot view in playstore.
I made possible to replicate the issue: whenever I play audio or video files without the headphones plugged in, HTC boom feature activates. When that happens the power button stops responding, plus if...