JPersson77 / LGTVCompanion

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

[BUG] Does not power off screen when fastboot is disabled on Windows #223

Open Hequin0x opened 3 months ago

Hequin0x commented 3 months ago

Describe the bug

When fastboot is disabled on Windows, the screen does not power off when shutdown Windows.

How to reproduce the bug?

Turn off fastboot on Windows power settings and shutdown Windows.

What was the expected behavior

Screen power off when shutdown Windows even when fastboot is disabled.

What is your system?

Windows 11 build 26100.994, LG OLED C2

Log file and screenshots

Capture d'écran 2024-06-21 162833

JPersson77 commented 3 months ago

Hi @Hequin0x would ypu mind please enabling debug log level and paste a link here to the log. With fastboot on and then off preferrably. Cheers!

Hequin0x commented 3 months ago

Thanks for the quick reply.

Here is the log with the following procedure:

Set fastboot on Power off (screen shutdown) Power on Set fastboot off Power off (screen does not shutdown) Power on

https://pastebin.com/84WjjYz3

JPersson77 commented 3 months ago

Hi again,

I notice the following in the log: 1) Redémarrer is not automatically recognised a a restart word so that was fixed. 2) your system did not produce an event in the event log marking the system shutdown before the system started shutting down, but it was recorded after system shutdown had initiated, but it was logged as an event containing invalid XML. Can you please look through the event viewer (sort for system event 1074) for the event which occurred at about 17:31:53 and paste the XML here? image

Nevertheless...

3) The app did correctly try to power off the TV both when fastboot was enabled and disabled. However it failed to do so when fastboot was disabled. (From the log: "Retried twice but failed to perform work of type 2. Aborting!")

I don't see how #3 is related to fastboot specifically. Howewver I have seen the issue pop up intermittently and it seems to be related to webos23 potentially - it seems sometimes the TV refuses connections. To resolve this issue you should probably choose to use "persistent connection" or "persistent connection + keep alive" in the device configuration

Hequin0x commented 3 months ago

Hi, here the requested logs:

at 17:28:40: https://pastebin.com/7c1qjavy at 17:30:36: https://pastebin.com/88CNsiqW and at 17:42:01: https://pastebin.com/zWeL4D8q

Note: With "persistent connection + keep alive" the screen power off as intended both with and without fastboot enabled!

Thanks you!

JPersson77 commented 3 months ago

Thanks too for confirming and the XML