JPersson77 / LGTVCompanion

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

[BUG] Doesn't turn TV off when going into hibernate (not sleep) #247

Closed D3nnis3n closed 2 weeks ago

D3nnis3n commented 1 month ago

Describe the bug

I use hibernate, as sleep has an issue causing games to have low fps after waking from sleep until the pc is completely restarted - that doesnt happen with hibernate.

Entering "Hibernate" does not make the program turn the TV off.

How to reproduce the bug?

Go into hibernate (not sleep) in Windows.

What was the expected behavior

TV turning off

What is your system?

Windows 11 24H2 , LG G3

Log file and screenshots

Will add later once I go to hibernate again this evening.

D3nnis3n commented 1 month ago

The "show" button unfortunately doesn't work in the app, it doesn't make anything appear. What is the path to the logfile?

D3nnis3n commented 1 month ago

Found it, here: https://pastebin.com/XjhTLJTe

Also tested with sleep - it always works when using sleep. Never with hibernate, unfortunately.

JPersson77 commented 1 month ago

Hi again, not sure if that is the wrong log. The log snippet shows no successful communication between the TV and the PC.

D3nnis3n commented 1 month ago

Hey, it was the correct log. When using hibernation it never works, but with normal sleep it does.

Is it possible networking is turned off before the software does its magic when using hibernate, maybe?

JPersson77 commented 1 month ago

There is not one successful attempt at communicating in the log though so at this point it looks like a misconfiguration/wrong IP for the TV. There is not enough information in the log to understand why sleep works and hibernate doesn't.

Can you upload another log please?

D3nnis3n commented 1 month ago

log.txt

Here the full log, it's too big for PasteBin this time unfortunately. I've been using sleep mostly for now, but given it started October 11 it should have hibernate tries in it.

I can also create a new one with hibernate this evening again.

I have not changed IP configuration since first setup and did it manually by the values shown in Fritz!Box, as autodiscover didn't work for me - potentially because I use a custom name for the TV. The data seems correct, though, given it works reliably with sleep mode.

JPersson77 commented 1 month ago

In that log I can see proper communication so that is good, but nothing looks out of the ordinary. Can you try to hibernate the system once, wake it up and then sleep it immediately after, and then point out the timecodes for me please

D3nnis3n commented 2 weeks ago

Issue seems to have resolved after updating to newest AGESA 1.0.0.2a beta bios, so probably something was wrong with my bios.