JPersson77 / LGTVCompanion

Power On and Off WebOS LG TVs together with your PC
MIT License
992 stars 40 forks source link

[FEATURE] Turn on TV after automatic TV shutdown #205

Closed sjmikler closed 7 months ago

sjmikler commented 7 months ago

Thanks for the program, it works well!

I have a feature request.

My problem is: when I approach my PC after the night, the TV is always off because it automatically turned off to save energy. I need to use the remote to turn it on. My suggestion to solve this is to add a setting to send the wake-up signal when moving the mouse after PC spent a predefined amount of time in "user idle mode". I would set it to send a wake up signal if my PC spent at least 1 hour in "user idle mode". This way LGTVCompanion would turn on my TV after the night.

JPersson77 commented 7 months ago

Hi there, thanks too! The app works in the way you suggested already.

The likely culprit with your issue is probably that the TV lose network connectivity during the night. So maybe consider enable "always ready" if you have a C2 or newer, or using a cable instead of wireless (if applicable).

Please paste a log as well and I will have a look

sjmikler commented 7 months ago

Log.txt

What you said seems likely to me. Looks like LGCompanion tried to connect to TV last night but TV was not answering.

I have older A1 so I guess there's no way around it?

JPersson77 commented 7 months ago

Running a cable usually helps really well if that is an option? Unless you already have.

Seems the built in wireless nic does not reconnect when the connection has been lost

sjmikler commented 7 months ago

I am not running the cable and that's not really an option for me.

If the problem is on the hardware side, I can deal with it I guess. Thanks, feel free to close the issue.