My MXQ tv box was also shutting the TV off then on again after every few minutes, so I took the advice of @koditvguy and turned on the CEC under settings and the box is working perfect now