BAD CAPS.
Now I'm assuming you are an electronics tech so no need for me to warn you about lethal voltages and how to inspect for this.
Bob
If anyone could help with this issue, it would be wonderful.
I bought this current TV set five years ago and never had an issue with it until now. It's an LG 55LD530 model and mounted.
The main issue is 'random' powering on and off, and I say 'random' in that sense that it only happens in certain scenarios, which in themselves seem to be random.
The times it happens are whenever I use an external hard drive to watch sometime and when a game console is on the main dashboard, though has not happened with the cable box being on, all powered via HDMI. The weird part comes when a game or DVD/Bluray is playing, it does not power of. I have tested it for several hours and not one instance of powering down occurred.
I am unsure if this could be a board issue, power supply, or even possibly bad HDMI ports? I have tried factory reseting it several times, as well as unplugging it for over five minutes and turning everything on. Nothing has worked so far, so any help at all to explain or even fix this would be greatly appreciated.
Thank you.

Chowhound
Comic Vine
GameFAQs
GameSpot
Giant Bomb
TechRepublic