Closed aboutvin closed 8 months ago
Hi @aboutvin can you enable logging and paste the log and config.json here please. Both are in c:/programdata/lgtv companion/
Wed 11:16:25 > LGTV Companion Service started (v 3.4.0) --------------------------- Wed 11:16:25 > Data path: C:\ProgramData\LGTV Companion\ Wed 11:16:26 > Device1, [LG] webOS TV OLED42C3PSA, with IP 192.168.1.77 initiated (Enabled:yes, NewConn:yes, WOL:2, SubnetMask:255.255.255.0, PairingKey:abef9b4514ee305310312da093dcf7e7, MAC: F8:01:B4:44:15:36 14:7F:67:6A:54:66 00:E0:1E:15:00:66 , VerifyHdmiInput:off, SetHdmiInput:1, BlankOnIdle:off) Wed 11:16:26 > Host IP detected: 192.168.1.61/24 Wed 11:16:26 > Shutdown timing: default Wed 11:16:26 > Device1, spawning Thread_SendRequest(). Wed 11:16:26 > System requests displays ON. Wed 11:16:26 > Device1, spawning Thread_DisplayOn(). Wed 11:16:26 > Device1, repeating WOL broadcast started to MAC: F801B4441536 using IP address: 192.168.1.77 Wed 11:16:26 > Device1, Best route to IP - interface index 7 LUID 1689399632855040 route protocol 2 Wed 11:16:29 > Device1, [DEBUG] (SSL) ON response 1: {"type":"registered","id":"register_0","payload":{"client-key":"abef9b4514ee305310312da093dcf7e7"}} Wed 11:16:29 > Device1, [DEBUG] (SSL) ON response 2: {"type":"error","id":2,"error":"500 Application error","payload":{"returnValue":false,"state":"Screen On","errorCode":"-102","errorText":"The current sub state must be 'screen off'"}} Wed 11:16:29 > Device1, [DEBUG] (SSL) ON response 3: {"type":"response","id":3,"payload":{"state":"Suspend","processing":"Screen On","returnValue":true}} Wed 11:16:29 > Device1, [DEBUG] (SSL) ON response 1: {"type":"registered","id":"register_0","payload":{"client-key":"abef9b4514ee305310312da093dcf7e7"}} Wed 11:16:29 > Device1, [DEBUG] (SSL) ON response 2: {"type":"error","id":4,"error":"500 Application error","payload":{"returnValue":false,"state":"Screen On","errorCode":"-102","errorText":"The current sub state must be 'screen off'"}} Wed 11:16:29 > Device1, [DEBUG] (SSL) ON response 3: {"type":"response","id":5,"payload":{"state":"Suspend","processing":"Screen On","returnValue":true}} Wed 11:16:30 > Device1, [DEBUG] (SSL) ON response 1: {"type":"registered","id":"register_0","payload":{"client-key":"abef9b4514ee305310312da093dcf7e7"}} Wed 11:16:30 > Device1, [DEBUG] (SSL) ON response 2: {"type":"error","id":6,"error":"500 Application error","payload":{"returnValue":false,"state":"Active","errorCode":"-102","errorText":"The current sub state must be 'screen off'"}} Wed 11:16:30 > Device1, [DEBUG] (SSL) ON response 3: {"type":"response","id":7,"payload":{"state":"Active","returnValue":true}} Wed 11:16:30 > Device1, power state is: ON Wed 11:16:31 > Device1, repeating WOL broadcast ended Wed 11:16:33 > Device1, [DEBUG] (SSL) REQ response 1: {"type":"registered","id":"register_0","payload":{"client-key":"abef9b4514ee305310312da093dcf7e7"}} Wed 11:16:33 > Device1, [DEBUG] (SSL) REQ response 2: {"type":"response","id":1,"payload":{"returnValue":true,"id":"com.webos.app.hdmi1","sessionId":"Y29tLndlYm9zLmFwcC5oZG1pMQ=="}} Wed 11:16:33 > Device1, set hdmi-input [1] Wed 11:16:45 > -daemon 1 started Wed 11:16:45 > [IPC Daemon 1] Started. Wed 11:16:46 > -daemon 1 newversion Wed 11:16:46 > [IPC Daemon 1] A new version of this app is available for download here : https://github.com/JPersson77/LGTVCompanion/releases Wed 11:21:54 > Event subscription callback: System restart detected. Wed 11:21:56 > System is restarting. Wed 11:21:58 > The service terminated.
in this particular log snippet a system restart was detected. For system restarts the TV should not power off.
If this wasn't an actual system restart the most likely error is misconfiguration. Can you please also paste your config.json ?
{ "Device1": { "Enabled": true, "HDMIinputcontrol": false, "IP": "192.168.1.77", "MAC": [ "xx:E0:1E:15:00:xx" ], "Name": "[LG] webOS TV OLED42C3PSA", "NewSockConnect": true, "OnlyTurnOffIfCurrentHDMIInputNumberIs": 1, "SessionKey": "abef9b4514ee305310312da093dcf7e7", "SetHDMIInputOnResume": true, "SetHDMIInputOnResumeToNumber": 1, "Subnet": "255.255.255.0", "WOL": 2 }, "LGTV Companion": { "AdhereDisplayTopology": false, "AutoUpdate": true, "BlankWhenIdle": false, "BlankWhenIdleDelay": 15, "ExtendedLog": true, "ExternalAPI": false, "IdleFsExclusionsEnabled": false, "IdleFullscreen": false, "IdleWhiteListEnabled": false, "KeepTopologyOnBoot": false, "LocalEventLogRestartString": [ "shutdown", "restart", "power off" ], "MuteSpeakers": false, "PowerOnTimeOut": 40, "RemoteStream": false, "TimingPreshutdown": false, "TopologyPreferPowerEfficient": true, "Version": 2 } }
You need to uncheck "power off" and "shutdown" in the "localised restart strings" in global options to fix your issue.
Or install the latest version of the app which improves the implementation of this, which will also resolve your issue
The new version solved it! Thanks
Happy to hear it! :)
I have no issues with turning the PC on however, when I shutdown my PC. I kept getting the "no signal" input from the TV. I will appreciate any help here thank you!