NO LONGER AN ISSUE BUT I'LL LEAVE THIS HERE FOR YOUR AMUSMENT
So after much trouble-shooting of my network, of your app, in CMD to make sure nothing was preventing sleep, and a full system restore (bearing in mind I have over 3tb stored on my computer so it was not quick)...
I usually sleep my computer, but for a couple of reasons the last few nights I've shut it down, anyway I woke up this morning after the system restore had finished, loaded up my computer and then put it to sleep, and it woke up instantly, again I slept it, again it woke... I shut it down as I had work to do and kind of forgot about it.
Forgetting about this mornings sleep/wake issue I went back and spent a few hours trouble-shooting again, I was looking over the debugging logs in your app and noticed it was never sending the request for sleep, so I started unplugging USB's, as I'm unplugging USB's I kicked something on the floor... a flight stick that I'd just started using again after going on holiday... the bloody thing must have a dodgy solenoid and is preventing sleep, and obviously it was what was waking the computer this morning too. Of course none of Windows Powercfg commands were showing this...
Anyway, let this be a lesson to anyone who reads this, start with the basics first...
P.S. Chucked you a little donation just as a thanks for sorting out the muting speaker issue, was supposed to at the time but forgot.
Thanks again for a great app!
The TV will not reliably turn off after idle state. The app functions correctly with wake, shutdown and restart.
I've tried running directly after restart to ensure no apps are keeping it awake.
Currently on most recent windows built, using an LG OLED C2, and LGTV Companion App on most recent version.
It seems it will work once and then not again. Also, I've noticed on the one instance where it works (although this may be correct behaviour) when it triggers the orange light does not come on at the bottom of the TV as it does when you shut down, restart or sleep.
[ . 10:58:20][-I--][ System ] The service has terminated
[Thu Jul 25 10:58:20][-I--][ System ] --- LGTV Companion Service has started (v 4.0.5) ---------------------------
[ . . ][D---][config.json] {
[ . . ][D---][config.json] "Device1": {
[ . . ][D---][config.json] "Enabled": false,
[ . . ][D---][config.json] "HDMIinputcontrol": false,
[ . . ][D---][config.json] "IP": "192.168.1.83",
[ . . ][D---][config.json] "MAC": [
[ . . ][D---][config.json] "D4:63:FE:2B:F7:09"
[ . . ][D---][config.json] ],
[ . . ][D---][config.json] "Name": "[LG] webOS TV UH650V",
[ . . ][D---][config.json] "NewSockConnect": true,
[ . . ][D---][config.json] "OnlyTurnOffIfCurrentHDMIInputNumberIs": 1,
[ . . ][D---][config.json] "PersistentConnectionLevel": 0,
[ . . ][D---][config.json] "SessionKey": "",
[ . . ][D---][config.json] "SetHDMIInputOnResume": false,
[ . . ][D---][config.json] "SetHDMIInputOnResumeToNumber": 1,
[ . . ][D---][config.json] "Subnet": "255.255.255.0",
[ . . ][D---][config.json] "WOL": 3
[ . . ][D---][config.json] },
[ . . ][D---][config.json] "Device2": {
[ . . ][D---][config.json] "Enabled": true,
[ . . ][D---][config.json] "HDMIinputcontrol": true,
[ . . ][D---][config.json] "IP": "192.168.0.98",
[ . . ][D---][config.json] "MAC": [
[ . . ][D---][config.json] "20:28:BC:28:30:24"
[ . . ][D---][config.json] ],
[ . . ][D---][config.json] "Name": "[LG] webOS TV OLED48C24LA",
[ . . ][D---][config.json] "NewSockConnect": true,
[ . . ][D---][config.json] "OnlyTurnOffIfCurrentHDMIInputNumberIs": 4,
[ . . ][D---][config.json] "PersistentConnectionLevel": 0,
[ . . ][D---][config.json] "SessionKey": "a8ea96ca846c44a3bdc2b7a200c0b192",
[ . . ][D---][config.json] "SetHDMIInputOnResume": false,
[ . . ][D---][config.json] "SetHDMIInputOnResumeToNumber": 1,
[ . . ][D---][config.json] "Subnet": "255.255.255.0",
[ . . ][D---][config.json] "WOL": 3
[ . . ][D---][config.json] },
[ . . ][D---][config.json] "LGTV Companion": {
[ . . ][D---][config.json] "AdhereDisplayTopology": false,
[ . . ][D---][config.json] "AutoUpdate": false,
[ . . ][D---][config.json] "BlankWhenIdle": true,
[ . . ][D---][config.json] "BlankWhenIdleDelay": 1,
[ . . ][D---][config.json] "ExternalAPI": false,
[ . . ][D---][config.json] "IdleFsExclusionsEnabled": false,
[ . . ][D---][config.json] "IdleFullscreen": false,
[ . . ][D---][config.json] "IdleWhiteListEnabled": false,
[ . . ][D---][config.json] "KeepTopologyOnBoot": false,
[ . . ][D---][config.json] "LogLevel": 4,
[ . . ][D---][config.json] "MuteSpeakers": true,
[ . . ][D---][config.json] "PowerOnTimeOut": 40,
[ . . ][D---][config.json] "RemoteStream": false,
[ . . ][D---][config.json] "RemoteStreamPowerOff": true,
[ . . ][D---][config.json] "TimingShutdown": 0,
[ . . ][D---][config.json] "Version": 3
[ . . ][D---][config.json] }
[ . . ][D---][config.json] }
[ . . ][D---][ System ] Host IP: 192.168.0.171/24
[ . . ][-I--][ PWR ] *** System requests displays to power on
[ . . ][D---][[LG] webOS ] Enqueueing work of type: 1
[ . . ][D---][ System ] Creating a new thread pool - 2 threads
[ . . ][D---][[LG] webOS ] --- Starting work: POWER ON -----------------
[ . . ][D---][[LG] webOS ] > > > SEND > > >: [webOS handshake]
[ . . ][D---][[LG] webOS ] < < < RECV < < <: {"type":"registered","id":"register_0","payload":{"client-key":"a8ea96ca846c44a3bdc2b7a200c0b192"}}
[ . . ][D---][[LG] webOS ] > > > SEND > > >: {"type":"request","id":"getPowerState","uri":"ssap://com.webos.service.tvpower/power/getPowerState","payload":{}}
[ . . ][D---][[LG] webOS ] < < < RECV < < <: {"type":"response","id":"getPowerState","payload":{"state":"Active","returnValue":true}}
[ . . ][D---][[LG] webOS ] > > > SEND > > >: {"type":"request","id":"getAudioStatus","uri":"ssap://audio/getStatus","payload":{}}
[ . . ][D---][[LG] webOS ] < < < RECV < < <: {"type":"response","id":"getAudioStatus","payload":{"returnValue":true,"volumeStatus":{"volumeLimitable":false,"activeStatus":true,"maxVolume":100,"volumeLimiter":"none","soundOutput":"external_arc","volume":50,"mode":"normal","externalDeviceControl":true,"muteStatus":false,"volumeSyncable":false,"adjustVolume":true},"callerId":"com.webos.service.apiadapter","mute":false,"volume":50}}
[ . . ][-I--][[LG] webOS ] Power state is ON
[ . . ][D---][[LG] webOS ] Work queue is empty
[ . . ][D---][[LG] webOS ] Closing connection
[ . . ][D---][[LG] webOS ] Socket closed gracefully
[ . . ][D---][[LG] webOS ] The I/O operation has been aborted because of either a thread exit or an application request (onRead)
[ . . ][D---][ IPC ] Received IPC/CLI: -daemon 1 started
[ . . ][D---][ Daemon 1 ] Daemon started!
NO LONGER AN ISSUE BUT I'LL LEAVE THIS HERE FOR YOUR AMUSMENT
So after much trouble-shooting of my network, of your app, in CMD to make sure nothing was preventing sleep, and a full system restore (bearing in mind I have over 3tb stored on my computer so it was not quick)...
I usually sleep my computer, but for a couple of reasons the last few nights I've shut it down, anyway I woke up this morning after the system restore had finished, loaded up my computer and then put it to sleep, and it woke up instantly, again I slept it, again it woke... I shut it down as I had work to do and kind of forgot about it.
Forgetting about this mornings sleep/wake issue I went back and spent a few hours trouble-shooting again, I was looking over the debugging logs in your app and noticed it was never sending the request for sleep, so I started unplugging USB's, as I'm unplugging USB's I kicked something on the floor... a flight stick that I'd just started using again after going on holiday... the bloody thing must have a dodgy solenoid and is preventing sleep, and obviously it was what was waking the computer this morning too. Of course none of Windows Powercfg commands were showing this...
Anyway, let this be a lesson to anyone who reads this, start with the basics first...
P.S. Chucked you a little donation just as a thanks for sorting out the muting speaker issue, was supposed to at the time but forgot.
Thanks again for a great app!