I had one more post to try that didn't appear.
It may be CEC settings.
Try this on STB:
Look under menu settings audio/video video settings TV input control. Set it to disabled.
Also look in TV options to see if there is setting for CEC.
On my Samsung it is called AnyNet. Description says it can power down device when TV is turned off.