hyperion-project / hyperion.ng

The successor to Hyperion aka Hyperion Next Generation
https://hyperion-project.org/
MIT License
3.11k stars 384 forks source link

Sleep win 10 PC not turn off/on wled #1282

Closed fightingforyou46 closed 1 year ago

fightingforyou46 commented 3 years ago

Bug report

Sleep win 10 PC not turn off and screencapture after wakeup back

Steps to reproduce

when I put win 10 to sleep,wled doesn't turn off,and when I wake up and login to win10, wled out doesn't screencapture automatically

What is expected?

Wled can turn off with sleep of win 10 and screencapture automaticly after wakeup

What is actually happening?

< ----- Configured Instances ------------------ >
0: First LED Hardware instance Running: true

< ----- This instance's priorities ------------ >
250:  VISIBLE! (GRABBER) Owner: Qt
priorities_autoselect: true

< ----- This instance components' status ------->
ALL - true
SMOOTHING - false
BLACKBORDER - true
FORWARDER - false
BOBLIGHTSERVER - false
GRABBER - true
V4L - false
LEDDEVICE - false

< ----- This instance's configuration --------- >
{"backgroundEffect":{"color":[255,138,0],"effect":"Warm mood blobs","enable":false,"type":"effect"},"blackborderdetector":{"blurRemoveCnt":1,"borderFrameCnt":50,"enable":true,"maxInconsistentCnt":10,"mode":"default","threshold":5,"unknownFrameCnt":600},"boblightServer":{"enable":false,"port":19333,"priority":128},"color":{"channelAdjustment":[{"backlightColored":false,"backlightThreshold":0,"blue":[0,0,255],"brightness":100,"brightnessCompensation":100,"cyan":[0,255,255],"gammaBlue":1.5,"gammaGreen":1.5,"gammaRed":1.5,"green":[0,255,0],"id":"default","leds":"*","magenta":[255,0,255],"red":[255,0,0],"white":[255,255,255],"yellow":[255,255,0]}],"imageToLedMappingType":"multicolor_mean"},"device":{"brightness":255,"colorOrder":"rgb","hardwareLedCount":12,"host":"192.168.31.152","hostList":"NONE","latchTime":0,"overwriteBrightness":true,"overwriteSync":false,"restoreOriginalState":false,"type":"wled"},"effects":{"disable":[""],"paths":["$ROOT/custom-effects"]},"flatbufServer":{"enable":true,"port":19400,"timeout":5},"foregroundEffect":{"color":[0,0,255],"duration_ms":3000,"effect":"Rainbow swirl fast","enable":true,"type":"effect"},"forwarder":{"enable":false,"flat":["127.0.0.1:19401"],"json":["127.0.0.1:19446"]},"framegrabber":{"available_devices":"QT","cropBottom":0,"cropLeft":0,"cropRight":0,"cropTop":0,"device":"qt","device_inputs":"0","enable":true,"fps":25,"framerates":"25","height":1080,"input":0,"pixelDecimation":20,"resolutions":"0","width":1920},"general":{"configVersion":"2.0.0-alpha.10","name":"My Hyperion Config","previousVersion":"2.0.0-alpha.10","showOptHelp":true,"watchedVersionBranch":"Stable"},"grabberV4L2":{"blueSignalThreshold":0,"cecDetection":false,"cropBottom":0,"cropLeft":0,"cropRight":0,"cropTop":0,"device":"none","enable":false,"encoding":"NO_CHANGE","flip":"NO_CHANGE","fps":15,"fpsSoftwareDecimation":0,"greenSignalThreshold":100,"hardware_brightness":0,"hardware_contrast":0,"hardware_hue":0,"hardware_saturation":0,"height":0,"input":0,"noSignalCounterThreshold":200,"redSignalThreshold":0,"sDHOffsetMax":0.46,"sDHOffsetMin":0.4,"sDVOffsetMax":0.9,"sDVOffsetMin":0.1,"signalDetection":false,"sizeDecimation":8,"width":0},"instCapture":{"systemEnable":true,"systemGrabberDevice":"DX","systemPriority":250,"v4lEnable":false,"v4lGrabberDevice":"NONE","v4lPriority":240},"jsonServer":{"port":19444},"ledConfig":{"classic":{"bottom":0,"left":0,"right":12,"top":0},"ledBlacklist":[],"matrix":{"cabling":"snake","ledshoriz":1,"ledsvert":1,"start":"top-left"}},"leds":[{"hmax":1,"hmin":0.95,"vmax":0.0833,"vmin":0},{"hmax":1,"hmin":0.95,"vmax":0.1667,"vmin":0.0833},{"hmax":1,"hmin":0.95,"vmax":0.25,"vmin":0.1667},{"hmax":1,"hmin":0.95,"vmax":0.3333,"vmin":0.25},{"hmax":1,"hmin":0.95,"vmax":0.4167,"vmin":0.3333},{"hmax":1,"hmin":0.95,"vmax":0.5,"vmin":0.4167},{"hmax":1,"hmin":0.95,"vmax":0.5833,"vmin":0.5},{"hmax":1,"hmin":0.95,"vmax":0.6667,"vmin":0.5833},{"hmax":1,"hmin":0.95,"vmax":0.75,"vmin":0.6667},{"hmax":1,"hmin":0.95,"vmax":0.8333,"vmin":0.75},{"hmax":1,"hmin":0.95,"vmax":0.9167,"vmin":0.8333},{"hmax":1,"hmin":0.95,"vmax":1,"vmin":0.9167}],"logger":{"level":"debug"},"network":{"apiAuth":true,"internetAccessAPI":false,"ipWhitelist":[],"localAdminAuth":true,"localApiAuth":false,"restirctedInternetAccessAPI":false},"protoServer":{"enable":true,"port":19445,"timeout":5},"smoothing":{"enable":false},"webConfig":{"crtPath":"","document_root":"","keyPassPhrase":"","keyPath":"","port":8090,"sslPort":8092}}

< ----- Current Log --------------------------- >
2021-07-21T02:40:40.894Z [hyperiond HYPERION] (DEBUG) (PriorityMuxer.cpp:165:PriorityMuxer::registerInput()) Register new input 'System/GRABBER' with priority 250 as inactive
2021-07-21T02:40:40.894Z [hyperiond COMPONENTREG] (DEBUG) (ComponentRegister.cpp:36:ComponentRegister::setNewComponentState()) Framegrabber: enabled
2021-07-21T02:40:42.027Z [hyperiond DIRECTX] (DEBUG) (GrabberWrapper.cpp:62:GrabberWrapper::start()) Grabber start()
2021-07-21T02:40:40.894Z [hyperiond BOBLIGHT] (DEBUG) (BoblightServer.cpp:28:BoblightServer::BoblightServer()) Instance created
2021-07-21T02:40:42.028Z [hyperiond HYPERION] (INFO) Hyperion instance 'First LED Hardware instance' has been started
2021-07-21T02:40:40.906Z [hyperiond LEDDEVICE] (DEBUG) (LedDevice.cpp:148:LedDevice::init()) deviceConfig: [{"brightness":255,"colorOrder":"rgb","currentLedCount":12,"hardwareLedCount":12,"host":"192.168.1.103","hostList":"NONE","latchTime":0,"overwriteBrightness":true,"overwriteSync":false,"port":19446,"restoreOriginalState":false,"type":"wled"}]
2021-07-21T02:40:40.906Z [hyperiond LEDDEVICE] (DEBUG) (LedDevice.cpp:413:LedDevice::setLatchTime()) LatchTime updated to 0ms
2021-07-21T02:40:40.906Z [hyperiond LEDDEVICE] (DEBUG) (LedDevice.cpp:444:LedDevice::setRewriteTime()) RewriteTime updated to 0ms
2021-07-21T02:40:40.906Z [hyperiond LEDDEVICE] (DEBUG) (ProviderUdp.cpp:43:ProviderUdp::init()) Successfully parsed 192.168.1.103 as an IP-address.
2021-07-21T02:40:40.906Z [hyperiond LEDDEVICE] (DEBUG) (ProviderUdp.cpp:73:ProviderUdp::init()) UDP socket will write to 192.168.1.103:19446
2021-07-21T02:40:40.906Z [hyperiond LEDDEVICE] (DEBUG) (LedDeviceWled.cpp:123:LedDeviceWled::init()) Hostname/IP  : 192.168.1.103
2021-07-21T02:40:40.906Z [hyperiond LEDDEVICE] (DEBUG) (LedDeviceWled.cpp:124:LedDeviceWled::init()) Port         : 19446
2021-07-21T02:40:40.918Z [hyperiond HYPERION] (DEBUG) (PriorityMuxer.cpp:271:PriorityMuxer::setInputImage()) Priority 1 is now active
2021-07-21T02:40:40.918Z [hyperiond HYPERION] (DEBUG) (PriorityMuxer.cpp:374:PriorityMuxer::setCurrentTime()) Set visible priority to 1
2021-07-21T02:40:40.918Z [hyperiond HYPERION] (DEBUG) (Hyperion.cpp:559:Hyperion::handlePriorityChangedLedDevice()) priority[1], previousPriority[255]
2021-07-21T02:40:40.918Z [hyperiond HYPERION] (DEBUG) (Hyperion.cpp:569:Hyperion::handlePriorityChangedLedDevice()) new source available -> switch LED-Device on
2021-07-21T02:40:41.025Z [hyperiond COMPONENTREG] (DEBUG) (ComponentRegister.cpp:36:ComponentRegister::setNewComponentState()) LED device: enabled
2021-07-21T02:40:41.643Z [hyperiond WEBSERVER] (DEBUG) (WebServer.cpp:33:WebServer::initServer()) Initialize Webserver
2021-07-21T02:40:41.643Z [hyperiond WEBSERVER] (DEBUG) (WebServer.cpp:33:WebServer::initServer()) Initialize Webserver
2021-07-21T02:40:41.644Z [hyperiond FLATBUFSERVER] (INFO) Started on port 19400
2021-07-21T02:40:41.644Z [hyperiond PROTOSERVER] (INFO) Started on port 19445
2021-07-21T02:40:41.646Z [hyperiond WEBSERVER] (DEBUG) (WebServer.cpp:91:WebServer::handleSettingsUpdate()) Apply Webserver settings
2021-07-21T02:40:41.646Z [hyperiond WEBSERVER] (DEBUG) (WebServer.cpp:91:WebServer::handleSettingsUpdate()) Apply Webserver settings
2021-07-21T02:40:41.646Z [hyperiond WEBSERVER] (DEBUG) (WebServer.cpp:109:WebServer::handleSettingsUpdate()) Set document root to: :/webconfig
2021-07-21T02:40:41.646Z [hyperiond WEBSERVER] (DEBUG) (WebServer.cpp:109:WebServer::handleSettingsUpdate()) Set document root to: :/webconfig
2021-07-21T02:40:41.648Z [hyperiond WEBSERVER] (INFO) Started on port 8090 name 'Hyperion Webserver'
2021-07-21T02:40:41.658Z [hyperiond WEBSERVER] (DEBUG) (WebServer.cpp:175:WebServer::handleSettingsUpdate()) Setup SSL certificate
2021-07-21T02:40:41.658Z [hyperiond WEBSERVER] (DEBUG) (WebServer.cpp:191:WebServer::handleSettingsUpdate()) Setup private SSL key
2021-07-21T02:40:41.658Z [hyperiond WEBSERVER] (INFO) Started on port 8092 name 'Hyperion Webserver'
2021-07-21T02:40:42.080Z [hyperiond HYPERION] (DEBUG) (PriorityMuxer.cpp:271:PriorityMuxer::setInputImage()) Priority 250 is now active
2021-07-21T02:40:42.587Z [hyperiond WEBSOCKET] (DEBUG) (WebSocketClient.cpp:30:WebSocketClient::WebSocketClient()) New connection from ::1
2021-07-21T02:40:42.588Z [hyperiond WEBSOCKET] (DEBUG) (JsonAPI.cpp:122:JsonAPI::handleInstanceSwitch()) Client '::1' switch to Hyperion instance 0
2021-07-21T02:40:42.607Z [hyperiond WEBSOCKET] (DEBUG) (WebSocketClient.cpp:30:WebSocketClient::WebSocketClient()) New connection from ::1
2021-07-21T02:40:42.607Z [hyperiond WEBSOCKET] (DEBUG) (JsonAPI.cpp:122:JsonAPI::handleInstanceSwitch()) Client '::1' switch to Hyperion instance 0
2021-07-21T02:40:43.924Z [hyperiond EFFECTENGINE] (INFO) effect finished
2021-07-21T02:40:43.935Z [hyperiond HYPERION] (DEBUG) (PriorityMuxer.cpp:337:PriorityMuxer::setCurrentTime()) Timeout clear for priority 1
2021-07-21T02:40:43.935Z [hyperiond HYPERION] (DEBUG) (PriorityMuxer.cpp:374:PriorityMuxer::setCurrentTime()) Set visible priority to 250
2021-07-21T02:40:43.936Z [hyperiond HYPERION] (DEBUG) (Hyperion.cpp:559:Hyperion::handlePriorityChangedLedDevice()) priority[250], previousPriority[1]
2021-07-21T02:40:52.591Z [hyperiond DXGRABBER] (ERROR) Unable to get Buffer Surface Data
2021-07-21T02:40:58.193Z [hyperiond LEDDEVICE] (WARNING) (192.168.1.103:19446) Write Error: (7) Unable to send a message
2021-07-21T02:41:09.832Z [hyperiond HYPERION] (DEBUG) (PriorityMuxer.cpp:271:PriorityMuxer::setInputImage()) Priority 250 is now inactive
2021-07-21T02:41:09.832Z [hyperiond HYPERION] (DEBUG) (PriorityMuxer.cpp:374:PriorityMuxer::setCurrentTime()) Set visible priority to 255
2021-07-21T02:41:09.839Z [hyperiond HYPERION] (DEBUG) (Hyperion.cpp:559:Hyperion::handlePriorityChangedLedDevice()) priority[255], previousPriority[250]
2021-07-21T02:41:09.839Z [hyperiond HYPERION] (DEBUG) (Hyperion.cpp:562:Hyperion::handlePriorityChangedLedDevice()) No source left -> switch LED-Device off
2021-07-21T02:41:09.842Z [hyperiond LEDDEVICE] (DEBUG) (ProviderRestApi.cpp:181:ProviderRestApi::put()) PUT: [http://192.168.1.103/json/state] [{"on":false,"live":false}]
2021-07-21T02:41:09.842Z [hyperiond LEDDEVICE] (DEBUG) (ProviderRestApi.cpp:231:ProviderRestApi::getResponse()) Reply.httpStatusCode [0]
2021-07-21T02:41:09.842Z [hyperiond LEDDEVICE] (ERROR) Device disabled, device 'wled' signals error: 'Power-off request failed with error: 'Network access is disabled.''
2021-07-21T02:41:09.843Z [hyperiond COMPONENTREG] (DEBUG) (ComponentRegister.cpp:36:ComponentRegister::setNewComponentState()) LED device: disabled
2021-07-21T02:41:10.369Z [hyperiond HYPERION] (DEBUG) (PriorityMuxer.cpp:271:PriorityMuxer::setInputImage()) Priority 250 is now active
2021-07-21T02:41:10.369Z [hyperiond HYPERION] (DEBUG) (PriorityMuxer.cpp:374:PriorityMuxer::setCurrentTime()) Set visible priority to 250
2021-07-21T02:41:10.369Z [hyperiond HYPERION] (DEBUG) (Hyperion.cpp:559:Hyperion::handlePriorityChangedLedDevice()) priority[250], previousPriority[255]
2021-07-21T02:41:10.369Z [hyperiond HYPERION] (DEBUG) (Hyperion.cpp:569:Hyperion::handlePriorityChangedLedDevice()) new source available -> switch LED-Device on
2021-07-21T02:41:11.732Z [hyperiond WEBSOCKET] (DEBUG) (WebSocketClient.cpp:30:WebSocketClient::WebSocketClient()) New connection from ::1
2021-07-21T02:41:11.732Z [hyperiond WEBSOCKET] (DEBUG) (JsonAPI.cpp:122:JsonAPI::handleInstanceSwitch()) Client '::1' switch to Hyperion instance 0
2021-07-21T02:41:11.887Z [hyperiond WEBSOCKET] (DEBUG) (WebSocketClient.cpp:30:WebSocketClient::WebSocketClient()) New connection from ::1
2021-07-21T02:41:11.887Z [hyperiond WEBSOCKET] (DEBUG) (JsonAPI.cpp:122:JsonAPI::handleInstanceSwitch()) Client '::1' switch to Hyperion instance 0
2021-07-21T02:41:23.444Z [hyperiond WEBSOCKET] (DEBUG) (WebSocketClient.cpp:30:WebSocketClient::WebSocketClient()) New connection from ::1
2021-07-21T02:41:23.444Z [hyperiond WEBSOCKET] (DEBUG) (JsonAPI.cpp:122:JsonAPI::handleInstanceSwitch()) Client '::1' switch to Hyperion instance 0
2021-07-21T02:41:29.582Z [hyperiond WEBSOCKET] (DEBUG) (JsonAPI.cpp:1058:JsonAPI::handleLoggingCommand()) log streaming activated for client ::1
2021-07-21T02:41:41.313Z [hyperiond COMPONENTREG] (DEBUG) (ComponentRegister.cpp:36:ComponentRegister::setNewComponentState()) LED device: enabled
2021-07-21T02:41:42.967Z [hyperiond WEBSOCKET] (DEBUG) (JsonAPI.cpp:1067:JsonAPI::handleLoggingCommand()) log streaming deactivated for client  ::1
2021-07-21T02:41:42.967Z [hyperiond WEBSOCKET] (DEBUG) (JsonAPI.cpp:1058:JsonAPI::handleLoggingCommand()) log streaming activated for client ::1
2021-07-21T02:42:11.712Z [hyperiond WEBSOCKET] (DEBUG) (WebSocketClient.cpp:30:WebSocketClient::WebSocketClient()) New connection from ::1
2021-07-21T02:42:11.712Z [hyperiond WEBSOCKET] (DEBUG) (JsonAPI.cpp:122:JsonAPI::handleInstanceSwitch()) Client '::1' switch to Hyperion instance 0
2021-07-21T02:42:13.570Z [hyperiond WEBSOCKET] (DEBUG) (JsonAPI.cpp:1404:JsonAPI::handleLedDeviceCommand()) message: [{"command":"leddevice","ledDeviceType":"wled","subcommand":"discover","tan":5}]
2021-07-21T02:42:13.570Z [hyperiond WEBSOCKET] (DEBUG) (JsonAPI.cpp:1428:JsonAPI::handleLedDeviceCommand()) response: [{"devices":[],"ledDeviceType":"wled"}]
2021-07-21T02:42:15.711Z [hyperiond DXGRABBER] (DEBUG) (DirectXGrabber.cpp:222:DirectXGrabber::discover()) params: [{}]
2021-07-21T02:42:15.717Z [hyperiond DXGRABBER] (DEBUG) (DirectXGrabber.cpp:287:DirectXGrabber::discover()) device: [{"default":{"video_input":{"inputIdx":0,"resolution":{"fps":25}}},"device":"dx","device_name":"DX","type":"screen","video_inputs":[{"formats":[{"resolutions":[{"fps":[1,5,10,15,20,25,30,40,50,60],"height":1080,"width":1920}]}],"inputIdx":0,"name":"DISPLAY1"}]}]
2021-07-21T02:42:20.678Z [hyperiond DXGRABBER] (ERROR) Previous line repeats 113 times
2021-07-21T02:42:20.678Z [hyperiond DAEMON] (INFO) set screen capture device to 'qt'
2021-07-21T02:42:20.678Z [hyperiond DIRECTX] (DEBUG) (GrabberWrapper.cpp:76:GrabberWrapper::stop()) Grabber stop()
2021-07-21T02:42:20.679Z [hyperiond DIRECTX] (DEBUG) (GrabberWrapper.cpp:51:GrabberWrapper::~GrabberWrapper()) Close grabber: DirectX
2021-07-21T02:42:20.679Z [hyperiond QTGRABBER] (INFO) Set image size decimation to 20
2021-07-21T02:42:20.679Z [hyperiond DAEMON] (INFO) Qt grabber created
2021-07-21T02:42:20.679Z [hyperiond QT] (DEBUG) (GrabberWrapper.cpp:62:GrabberWrapper::start()) Grabber start()
2021-07-21T02:42:20.719Z [hyperiond QTGRABBER] (INFO) Available Displays:
2021-07-21T02:42:20.719Z [hyperiond QTGRABBER] (INFO) Display 0: Name: \\.\DISPLAY1 Geometry: (L,T,R,B) 0,0,1919,1079 Depth:32bit
2021-07-21T02:42:20.720Z [hyperiond QTGRABBER] (INFO) Update of screen resolution: [0x0] to [1920x1080]
2021-07-21T02:42:20.720Z [hyperiond QTGRABBER] (INFO) Update output image resolution to [96x54]
2021-07-21T02:42:20.720Z [hyperiond QTGRABBER] (INFO) Initialized display 0
2021-07-21T02:42:20.720Z [hyperiond QTGRABBER] (INFO) Capture interface is now enabled
2021-07-21T02:42:44.503Z [hyperiond HYPERION] (DEBUG) (PriorityMuxer.cpp:271:PriorityMuxer::setInputImage()) Priority 250 is now inactive
2021-07-21T02:42:45.017Z [hyperiond HYPERION] (DEBUG) (PriorityMuxer.cpp:374:PriorityMuxer::setCurrentTime()) Set visible priority to 255
2021-07-21T02:42:45.018Z [hyperiond HYPERION] (DEBUG) (Hyperion.cpp:559:Hyperion::handlePriorityChangedLedDevice()) priority[255], previousPriority[250]
2021-07-21T02:42:45.018Z [hyperiond HYPERION] (DEBUG) (Hyperion.cpp:562:Hyperion::handlePriorityChangedLedDevice()) No source left -> switch LED-Device off
2021-07-21T02:42:45.020Z [hyperiond LEDDEVICE] (WARNING) (192.168.1.103:19446) Write Error: (7) Unable to send a message
2021-07-21T02:42:45.021Z [hyperiond LEDDEVICE] (WARNING) Previous line repeats 1 times
2021-07-21T02:42:45.021Z [hyperiond LEDDEVICE] (DEBUG) (ProviderRestApi.cpp:181:ProviderRestApi::put()) PUT: [http://192.168.1.103/json/state] [{"on":false,"live":false}]
2021-07-21T02:42:45.021Z [hyperiond LEDDEVICE] (DEBUG) (ProviderRestApi.cpp:231:ProviderRestApi::getResponse()) Reply.httpStatusCode [0]
2021-07-21T02:42:45.021Z [hyperiond LEDDEVICE] (ERROR) Device disabled, device 'wled' signals error: 'Power-off request failed with error: 'Network access is disabled.''
2021-07-21T02:42:45.022Z [hyperiond COMPONENTREG] (DEBUG) (ComponentRegister.cpp:36:ComponentRegister::setNewComponentState()) LED device: disabled
2021-07-21T02:42:46.047Z [hyperiond HYPERION] (DEBUG) (PriorityMuxer.cpp:271:PriorityMuxer::setInputImage()) Priority 250 is now active
2021-07-21T02:42:46.047Z [hyperiond HYPERION] (DEBUG) (PriorityMuxer.cpp:374:PriorityMuxer::setCurrentTime()) Set visible priority to 250
2021-07-21T02:42:46.047Z [hyperiond HYPERION] (DEBUG) (Hyperion.cpp:559:Hyperion::handlePriorityChangedLedDevice()) priority[250], previousPriority[255]
2021-07-21T02:42:46.047Z [hyperiond HYPERION] (DEBUG) (Hyperion.cpp:569:Hyperion::handlePriorityChangedLedDevice()) new source available -> switch LED-Device on
2021-07-21T02:42:47.673Z [hyperiond WEBSOCKET] (DEBUG) (WebSocketClient.cpp:30:WebSocketClient::WebSocketClient()) New connection from ::1
2021-07-21T02:42:47.674Z [hyperiond WEBSOCKET] (DEBUG) (JsonAPI.cpp:122:JsonAPI::handleInstanceSwitch()) Client '::1' switch to Hyperion instance 0
2021-07-21T02:42:47.719Z [hyperiond WEBSOCKET] (DEBUG) (WebSocketClient.cpp:30:WebSocketClient::WebSocketClient()) New connection from ::1
2021-07-21T02:42:47.719Z [hyperiond WEBSOCKET] (DEBUG) (JsonAPI.cpp:122:JsonAPI::handleInstanceSwitch()) Client '::1' switch to Hyperion instance 0
2021-07-21T02:42:47.731Z [hyperiond WEBSOCKET] (DEBUG) (WebSocketClient.cpp:30:WebSocketClient::WebSocketClient()) New connection from ::1
2021-07-21T02:42:47.732Z [hyperiond WEBSOCKET] (DEBUG) (JsonAPI.cpp:122:JsonAPI::handleInstanceSwitch()) Client '::1' switch to Hyperion instance 0
2021-07-21T02:42:47.750Z [hyperiond WEBSOCKET] (DEBUG) (WebSocketClient.cpp:30:WebSocketClient::WebSocketClient()) New connection from ::1
2021-07-21T02:42:47.750Z [hyperiond WEBSOCKET] (DEBUG) (JsonAPI.cpp:122:JsonAPI::handleInstanceSwitch()) Client '::1' switch to Hyperion instance 0
2021-07-21T02:42:47.972Z [hyperiond WEBSOCKET] (DEBUG) (JsonAPI.cpp:1058:JsonAPI::handleLoggingCommand()) log streaming activated for client ::1
2021-07-21T02:42:56.584Z [hyperiond WEBSOCKET] (DEBUG) (WebSocketClient.cpp:30:WebSocketClient::WebSocketClient()) New connection from ::1
2021-07-21T02:42:56.584Z [hyperiond WEBSOCKET] (DEBUG) (JsonAPI.cpp:122:JsonAPI::handleInstanceSwitch()) Client '::1' switch to Hyperion instance 0
2021-07-21T02:42:58.656Z [hyperiond WEBSOCKET] (DEBUG) (JsonAPI.cpp:1058:JsonAPI::handleLoggingCommand()) log streaming activated for client ::1
2021-07-21T02:44:21.723Z [hyperiond WEBSOCKET] (DEBUG) (WebSocketClient.cpp:30:WebSocketClient::WebSocketClient()) New connection from ::1
2021-07-21T02:44:21.723Z [hyperiond WEBSOCKET] (DEBUG) (JsonAPI.cpp:122:JsonAPI::handleInstanceSwitch()) Client '::1' switch to Hyperion instance 0
2021-07-21T02:44:59.611Z [hyperiond WEBSOCKET] (DEBUG) (JsonAPI.cpp:1404:JsonAPI::handleLedDeviceCommand()) message: [{"command":"leddevice","ledDeviceType":"wled","subcommand":"discover","tan":428}]
2021-07-21T02:44:59.611Z [hyperiond WEBSOCKET] (DEBUG) (JsonAPI.cpp:1428:JsonAPI::handleLedDeviceCommand()) response: [{"devices":[],"ledDeviceType":"wled"}]
2021-07-21T02:45:04.736Z [hyperiond WEBSOCKET] (DEBUG) (JsonAPI.cpp:1404:JsonAPI::handleLedDeviceCommand()) message: [{"command":"leddevice","ledDeviceType":"wled","params":{"filter":"info","host":"192.168.31.152"},"subcommand":"getProperties","tan":141}]
2021-07-21T02:45:04.777Z [hyperiond WEBSOCKET] (DEBUG) (JsonAPI.cpp:1438:JsonAPI::handleLedDeviceCommand()) response: [{"properties":{"arch":"esp8266","brand":"WLED","core":"2_7_4_7","freeheap":20264,"fs":{"pmt":0,"t":1024,"u":16},"fxcount":118,"ip":"192.168.31.152","leds":{"count":12,"fps":2,"maxpwr":0,"maxseg":12,"pwr":0,"rgbw":false,"seglock":false,"wv":false},"lip":"","live":false,"lm":"","lwip":1,"mac":"98cdac259352","name":"WLED","ndc":0,"opt":127,"palcount":56,"product":"FOSS","str":false,"udpport":21324,"uptime":2393,"ver":"0.13.0-b2","vid":2107100,"wifi":{"bssid":"64:64:4A:82:7B:4B","channel":3,"rssi":-65,"signal":70},"ws":1}}]
2021-07-21T02:45:06.557Z [hyperiond LEDDEVICE] (INFO)  Stopped LedDevice 'wled'
2021-07-21T02:45:06.561Z [hyperiond LEDDEVICE] (INFO) Start LedDevice 'wled'.
2021-07-21T02:45:06.561Z [hyperiond LEDDEVICE] (DEBUG) (LedDevice.cpp:148:LedDevice::init()) deviceConfig: [{"brightness":255,"colorOrder":"rgb","currentLedCount":12,"hardwareLedCount":12,"host":"192.168.31.152","hostList":"NONE","latchTime":0,"overwriteBrightness":true,"overwriteSync":false,"restoreOriginalState":false,"type":"wled"}]
2021-07-21T02:45:06.561Z [hyperiond LEDDEVICE] (DEBUG) (LedDevice.cpp:413:LedDevice::setLatchTime()) LatchTime updated to 0ms
2021-07-21T02:45:06.561Z [hyperiond LEDDEVICE] (DEBUG) (LedDevice.cpp:444:LedDevice::setRewriteTime()) RewriteTime updated to 0ms
2021-07-21T02:45:06.561Z [hyperiond LEDDEVICE] (DEBUG) (LedDeviceWled.cpp:79:LedDeviceWled::init()) DeviceType   : wled
2021-07-21T02:45:06.562Z [hyperiond LEDDEVICE] (DEBUG) (LedDeviceWled.cpp:80:LedDeviceWled::init()) LedCount     : 12
2021-07-21T02:45:06.562Z [hyperiond LEDDEVICE] (DEBUG) (LedDeviceWled.cpp:81:LedDeviceWled::init()) ColorOrder   : rgb
2021-07-21T02:45:06.562Z [hyperiond LEDDEVICE] (DEBUG) (LedDeviceWled.cpp:82:LedDeviceWled::init()) LatchTime    : 0
2021-07-21T02:45:06.562Z [hyperiond LEDDEVICE] (DEBUG) (LedDeviceWled.cpp:89:LedDeviceWled::init()) RestoreOrigState  : 0
2021-07-21T02:45:06.562Z [hyperiond LEDDEVICE] (DEBUG) (LedDeviceWled.cpp:90:LedDeviceWled::init()) Overwrite Sync.   : 0
2021-07-21T02:45:06.562Z [hyperiond LEDDEVICE] (DEBUG) (LedDeviceWled.cpp:91:LedDeviceWled::init()) Overwrite Brightn.: 1
2021-07-21T02:45:06.562Z [hyperiond LEDDEVICE] (DEBUG) (LedDeviceWled.cpp:92:LedDeviceWled::init()) Set Brightness to : 255
2021-07-21T02:45:06.564Z [hyperiond LEDDEVICE] (DEBUG) (LedDevice.cpp:148:LedDevice::init()) deviceConfig: [{"brightness":255,"colorOrder":"rgb","currentLedCount":12,"hardwareLedCount":12,"host":"192.168.31.152","hostList":"NONE","latchTime":0,"overwriteBrightness":true,"overwriteSync":false,"port":19446,"restoreOriginalState":false,"type":"wled"}]
2021-07-21T02:45:06.564Z [hyperiond LEDDEVICE] (DEBUG) (LedDevice.cpp:413:LedDevice::setLatchTime()) LatchTime updated to 0ms
2021-07-21T02:45:06.564Z [hyperiond LEDDEVICE] (DEBUG) (LedDevice.cpp:444:LedDevice::setRewriteTime()) RewriteTime updated to 0ms
2021-07-21T02:45:06.564Z [hyperiond LEDDEVICE] (DEBUG) (ProviderUdp.cpp:43:ProviderUdp::init()) Successfully parsed 192.168.31.152 as an IP-address.
2021-07-21T02:45:06.564Z [hyperiond LEDDEVICE] (DEBUG) (ProviderUdp.cpp:73:ProviderUdp::init()) UDP socket will write to 192.168.31.152:19446
2021-07-21T02:45:06.564Z [hyperiond LEDDEVICE] (DEBUG) (LedDeviceWled.cpp:123:LedDeviceWled::init()) Hostname/IP  : 192.168.31.152
2021-07-21T02:45:06.564Z [hyperiond LEDDEVICE] (DEBUG) (LedDeviceWled.cpp:124:LedDeviceWled::init()) Port         : 19446
2021-07-21T02:45:06.658Z [hyperiond WEBSOCKET] (DEBUG) (WebSocketClient.cpp:215:WebSocketClient::sendClose()) send close: 1000 
2021-07-21T02:45:06.689Z [hyperiond COMPONENTREG] (DEBUG) (ComponentRegister.cpp:36:ComponentRegister::setNewComponentState()) LED device: enabled
2021-07-21T02:45:06.887Z [hyperiond WEBSOCKET] (DEBUG) (WebSocketClient.cpp:30:WebSocketClient::WebSocketClient()) New connection from ::1
2021-07-21T02:45:06.887Z [hyperiond WEBSOCKET] (DEBUG) (JsonAPI.cpp:122:JsonAPI::handleInstanceSwitch()) Client '::1' switch to Hyperion instance 0
2021-07-21T02:45:07.154Z [hyperiond WEBSOCKET] (DEBUG) (JsonAPI.cpp:1404:JsonAPI::handleLedDeviceCommand()) message: [{"command":"leddevice","ledDeviceType":"wled","subcommand":"discover","tan":673}]
2021-07-21T02:45:07.154Z [hyperiond WEBSOCKET] (DEBUG) (JsonAPI.cpp:1428:JsonAPI::handleLedDeviceCommand()) response: [{"devices":[],"ledDeviceType":"wled"}]
2021-07-21T02:45:11.688Z [hyperiond WEBSOCKET] (DEBUG) (JsonAPI.cpp:1404:JsonAPI::handleLedDeviceCommand()) message: [{"command":"leddevice","ledDeviceType":"wled","subcommand":"discover","tan":511}]
2021-07-21T02:45:11.688Z [hyperiond WEBSOCKET] (DEBUG) (JsonAPI.cpp:1428:JsonAPI::handleLedDeviceCommand()) response: [{"devices":[],"ledDeviceType":"wled"}]
2021-07-21T02:45:30.502Z [hyperiond HYPERION] (DEBUG) (PriorityMuxer.cpp:271:PriorityMuxer::setInputImage()) Priority 250 is now inactive
2021-07-21T02:45:31.005Z [hyperiond HYPERION] (DEBUG) (PriorityMuxer.cpp:374:PriorityMuxer::setCurrentTime()) Set visible priority to 255
2021-07-21T02:45:31.005Z [hyperiond HYPERION] (DEBUG) (Hyperion.cpp:559:Hyperion::handlePriorityChangedLedDevice()) priority[255], previousPriority[250]
2021-07-21T02:45:31.006Z [hyperiond HYPERION] (DEBUG) (Hyperion.cpp:562:Hyperion::handlePriorityChangedLedDevice()) No source left -> switch LED-Device off
2021-07-21T02:45:31.009Z [hyperiond LEDDEVICE] (WARNING) (192.168.31.152:19446) Write Error: (7) Unable to send a message
2021-07-21T02:45:31.402Z [hyperiond LEDDEVICE] (WARNING) Previous line repeats 1 times
2021-07-21T02:45:31.402Z [hyperiond LEDDEVICE] (DEBUG) (ProviderRestApi.cpp:181:ProviderRestApi::put()) PUT: [http://192.168.31.152/json/state] [{"on":false,"live":false}]
2021-07-21T02:45:31.402Z [hyperiond LEDDEVICE] (DEBUG) (ProviderRestApi.cpp:231:ProviderRestApi::getResponse()) Reply.httpStatusCode [0]
2021-07-21T02:45:31.402Z [hyperiond LEDDEVICE] (DEBUG) (ProviderRestApi.cpp:258:ProviderRestApi::getResponse()) Reply: [Operation canceled]
2021-07-21T02:45:32.022Z [hyperiond HYPERION] (DEBUG) (PriorityMuxer.cpp:271:PriorityMuxer::setInputImage()) Priority 250 is now active
2021-07-21T02:45:32.022Z [hyperiond HYPERION] (DEBUG) (PriorityMuxer.cpp:374:PriorityMuxer::setCurrentTime()) Set visible priority to 250
2021-07-21T02:45:32.022Z [hyperiond HYPERION] (DEBUG) (Hyperion.cpp:559:Hyperion::handlePriorityChangedLedDevice()) priority[250], previousPriority[255]
2021-07-21T02:45:32.022Z [hyperiond HYPERION] (DEBUG) (Hyperion.cpp:569:Hyperion::handlePriorityChangedLedDevice()) new source available -> switch LED-Device on
2021-07-21T02:45:32.022Z [hyperiond LEDDEVICE] (DEBUG) (ProviderRestApi.cpp:181:ProviderRestApi::put()) PUT: [http://192.168.31.152/json/state] [{"on":true,"live":true,"bri":255}]
2021-07-21T02:45:32.022Z [hyperiond LEDDEVICE] (DEBUG) (ProviderRestApi.cpp:231:ProviderRestApi::getResponse()) Reply.httpStatusCode [0]
2021-07-21T02:45:32.022Z [hyperiond LEDDEVICE] (ERROR) Device disabled, device 'wled' signals error: 'Power-on request failed with error: 'Network access is disabled.''
2021-07-21T02:45:32.023Z [hyperiond COMPONENTREG] (DEBUG) (ComponentRegister.cpp:36:ComponentRegister::setNewComponentState()) LED device: disabled
2021-07-21T02:45:33.866Z [hyperiond WEBSOCKET] (DEBUG) (WebSocketClient.cpp:30:WebSocketClient::WebSocketClient()) New connection from ::1
2021-07-21T02:45:33.866Z [hyperiond WEBSOCKET] (DEBUG) (JsonAPI.cpp:122:JsonAPI::handleInstanceSwitch()) Client '::1' switch to Hyperion instance 0
2021-07-21T02:45:33.961Z [hyperiond WEBSOCKET] (DEBUG) (WebSocketClient.cpp:30:WebSocketClient::WebSocketClient()) New connection from ::1
2021-07-21T02:45:33.961Z [hyperiond WEBSOCKET] (DEBUG) (JsonAPI.cpp:122:JsonAPI::handleInstanceSwitch()) Client '::1' switch to Hyperion instance 0
2021-07-21T02:45:33.992Z [hyperiond WEBSOCKET] (DEBUG) (WebSocketClient.cpp:30:WebSocketClient::WebSocketClient()) New connection from ::1
2021-07-21T02:45:33.992Z [hyperiond WEBSOCKET] (DEBUG) (JsonAPI.cpp:122:JsonAPI::handleInstanceSwitch()) Client '::1' switch to Hyperion instance 0
2021-07-21T02:45:34.036Z [hyperiond WEBSOCKET] (DEBUG) (WebSocketClient.cpp:30:WebSocketClient::WebSocketClient()) New connection from ::1
2021-07-21T02:45:34.036Z [hyperiond WEBSOCKET] (DEBUG) (JsonAPI.cpp:122:JsonAPI::handleInstanceSwitch()) Client '::1' switch to Hyperion instance 0
2021-07-21T02:45:34.057Z [hyperiond WEBSOCKET] (DEBUG) (WebSocketClient.cpp:30:WebSocketClient::WebSocketClient()) New connection from ::1
2021-07-21T02:45:34.057Z [hyperiond WEBSOCKET] (DEBUG) (JsonAPI.cpp:122:JsonAPI::handleInstanceSwitch()) Client '::1' switch to Hyperion instance 0
2021-07-21T02:45:34.072Z [hyperiond WEBSOCKET] (DEBUG) (WebSocketClient.cpp:30:WebSocketClient::WebSocketClient()) New connection from ::1
2021-07-21T02:45:34.072Z [hyperiond WEBSOCKET] (DEBUG) (JsonAPI.cpp:122:JsonAPI::handleInstanceSwitch()) Client '::1' switch to Hyperion instance 0
2021-07-21T02:45:34.522Z [hyperiond WEBSOCKET] (DEBUG) (JsonAPI.cpp:1058:JsonAPI::handleLoggingCommand()) log streaming activated for client ::1
2021-07-21T02:45:45.988Z [hyperiond WEBSOCKET] (DEBUG) (JsonAPI.cpp:1058:JsonAPI::handleLoggingCommand()) Previous line repeats 1 times
2021-07-21T02:45:45.988Z [hyperiond WEBSOCKET] (DEBUG) (WebSocketClient.cpp:30:WebSocketClient::WebSocketClient()) New connection from ::1
2021-07-21T02:45:45.988Z [hyperiond WEBSOCKET] (DEBUG) (JsonAPI.cpp:122:JsonAPI::handleInstanceSwitch()) Client '::1' switch to Hyperion instance 0
2021-07-21T02:45:48.064Z [hyperiond WEBSOCKET] (DEBUG) (JsonAPI.cpp:1058:JsonAPI::handleLoggingCommand()) log streaming activated for client ::1
2021-07-21T02:46:04.299Z [hyperiond WEBSOCKET] (DEBUG) (WebSocketClient.cpp:215:WebSocketClient::sendClose()) send close: 1000 
2021-07-21T02:48:38.915Z [hyperiond WEBSOCKET] (DEBUG) (WebSocketClient.cpp:215:WebSocketClient::sendClose()) Previous line repeats 5 times
2021-07-21T02:48:38.915Z [hyperiond WEBSOCKET] (DEBUG) (WebSocketClient.cpp:30:WebSocketClient::WebSocketClient()) New connection from ::1
2021-07-21T02:48:38.915Z [hyperiond WEBSOCKET] (DEBUG) (JsonAPI.cpp:122:JsonAPI::handleInstanceSwitch()) Client '::1' switch to Hyperion instance 0
2021-07-21T02:48:46.469Z [hyperiond WEBSOCKET] (DEBUG) (JsonAPI.cpp:1058:JsonAPI::handleLoggingCommand()) log streaming activated for client ::1
2021-07-21T02:55:28.864Z [hyperiond WEBSOCKET] (DEBUG) (JsonAPI.cpp:1067:JsonAPI::handleLoggingCommand()) log streaming deactivated for client  ::1
2021-07-21T02:55:28.864Z [hyperiond WEBSOCKET] (DEBUG) (JsonAPI.cpp:1058:JsonAPI::handleLoggingCommand()) log streaming activated for client ::1
2021-07-21T02:56:58.840Z [hyperiond HYPERION] (DEBUG) (PriorityMuxer.cpp:271:PriorityMuxer::setInputImage()) Priority 250 is now inactive
2021-07-21T02:56:58.840Z [hyperiond HYPERION] (DEBUG) (PriorityMuxer.cpp:374:PriorityMuxer::setCurrentTime()) Set visible priority to 255
2021-07-21T02:56:58.840Z [hyperiond HYPERION] (DEBUG) (Hyperion.cpp:559:Hyperion::handlePriorityChangedLedDevice()) priority[255], previousPriority[250]
2021-07-21T02:56:58.840Z [hyperiond HYPERION] (DEBUG) (Hyperion.cpp:562:Hyperion::handlePriorityChangedLedDevice()) No source left -> switch LED-Device off
2021-07-21T02:56:59.034Z [hyperiond HYPERION] (DEBUG) (PriorityMuxer.cpp:271:PriorityMuxer::setInputImage()) Priority 250 is now active
2021-07-21T02:56:59.034Z [hyperiond HYPERION] (DEBUG) (PriorityMuxer.cpp:374:PriorityMuxer::setCurrentTime()) Set visible priority to 250
2021-07-21T02:56:59.034Z [hyperiond HYPERION] (DEBUG) (Hyperion.cpp:559:Hyperion::handlePriorityChangedLedDevice()) priority[250], previousPriority[255]
2021-07-21T02:56:59.034Z [hyperiond HYPERION] (DEBUG) (Hyperion.cpp:569:Hyperion::handlePriorityChangedLedDevice()) new source available -> switch LED-Device on
2021-07-21T02:56:59.961Z [hyperiond WEBSOCKET] (DEBUG) (WebSocketClient.cpp:30:WebSocketClient::WebSocketClient()) New connection from ::1
2021-07-21T02:56:59.962Z [hyperiond WEBSOCKET] (DEBUG) (JsonAPI.cpp:122:JsonAPI::handleInstanceSwitch()) Client '::1' switch to Hyperion instance 0
2021-07-21T02:57:00.325Z [hyperiond WEBSOCKET] (DEBUG) (WebSocketClient.cpp:30:WebSocketClient::WebSocketClient()) New connection from ::1
2021-07-21T02:57:00.325Z [hyperiond WEBSOCKET] (DEBUG) (JsonAPI.cpp:122:JsonAPI::handleInstanceSwitch()) Client '::1' switch to Hyperion instance 0
2021-07-21T02:57:00.541Z [hyperiond WEBSOCKET] (DEBUG) (JsonAPI.cpp:1058:JsonAPI::handleLoggingCommand()) log streaming activated for client ::1
2021-07-21T02:57:14.653Z [hyperiond WEBSOCKET] (DEBUG) (JsonAPI.cpp:1058:JsonAPI::handleLoggingCommand()) Previous line repeats 1 times
2021-07-21T02:57:14.653Z [hyperiond WEBSOCKET] (DEBUG) (WebSocketClient.cpp:215:WebSocketClient::sendClose()) send close: 1000 
2021-07-21T02:57:14.925Z [hyperiond WEBSOCKET] (DEBUG) (WebSocketClient.cpp:30:WebSocketClient::WebSocketClient()) New connection from ::1
2021-07-21T02:57:14.926Z [hyperiond WEBSOCKET] (DEBUG) (JsonAPI.cpp:122:JsonAPI::handleInstanceSwitch()) Client '::1' switch to Hyperion instance 0
2021-07-21T02:57:15.045Z [hyperiond WEBSOCKET] (DEBUG) (JsonAPI.cpp:1058:JsonAPI::handleLoggingCommand()) log streaming activated for client ::1

System

Hyperion Server:

Hyperion Server OS:

Guyohms commented 3 years ago

Similar issue here. However I have no problems when I put Win10 to sleep: WLED disconnects and goes back to it's predefined setting.

The problem is with resuming Win10. The WLED led instance gets it's led output set to OFF and doesn't resume automatically. I have to go and turn it on each time.

State shown upon resume: image

Here's the log from a sleep and resume:

2021-08-07T16:47:28.500Z [hyperiond HYPERION] (DEBUG) (PriorityMuxer.cpp:271:PriorityMuxer::setInputImage()) Priority 100 is now inactive
2021-08-07T16:47:28.974Z [hyperiond HYPERION] (DEBUG) (PriorityMuxer.cpp:374:PriorityMuxer::setCurrentTime()) Set visible priority to 255
2021-08-07T16:47:28.975Z [hyperiond HYPERION] (DEBUG) (Hyperion.cpp:559:Hyperion::handlePriorityChangedLedDevice()) priority[255], previousPriority[100]
2021-08-07T16:47:28.975Z [hyperiond HYPERION] (DEBUG) (Hyperion.cpp:562:Hyperion::handlePriorityChangedLedDevice()) No source left -> switch LED-Device off
2021-08-07T16:47:28.980Z [hyperiond LEDDEVICE] (DEBUG) (LedDeviceWled.cpp:237:LedDeviceWled::powerOff()) Restore synchronisation with other WLED devices
2021-08-07T16:47:28.980Z [hyperiond LEDDEVICE] (DEBUG) (ProviderRestApi.cpp:181:ProviderRestApi::put()) PUT: [http://192.168.66.12/json/state] [{"on":false,"live":false,"udpn":{"send":false,"recv":false}}]
2021-08-07T16:47:28.980Z [hyperiond LEDDEVICE] (DEBUG) (ProviderRestApi.cpp:231:ProviderRestApi::getResponse()) Reply.httpStatusCode [0]
2021-08-07T16:47:28.980Z [hyperiond LEDDEVICE] (ERROR) Device disabled, device 'wled' signals error: 'Power-off request failed with error: 'Network access is disabled.''
2021-08-07T16:47:28.981Z [hyperiond COMPONENTREG] (DEBUG) (ComponentRegister.cpp:36:ComponentRegister::setNewComponentState()) LED device: disabled
2021-08-07T16:47:31.034Z [hyperiond HYPERION] (DEBUG) (PriorityMuxer.cpp:271:PriorityMuxer::setInputImage()) Priority 100 is now active
2021-08-07T16:47:31.034Z [hyperiond HYPERION] (DEBUG) (PriorityMuxer.cpp:374:PriorityMuxer::setCurrentTime()) Set visible priority to 100
2021-08-07T16:47:31.034Z [hyperiond HYPERION] (DEBUG) (Hyperion.cpp:559:Hyperion::handlePriorityChangedLedDevice()) priority[100], previousPriority[255]
2021-08-07T16:47:31.034Z [hyperiond HYPERION] (DEBUG) (Hyperion.cpp:569:Hyperion::handlePriorityChangedLedDevice()) new source available -> switch LED-Device on
2021-08-07T16:47:36.558Z [hyperiond HYPERION] (DEBUG) (PriorityMuxer.cpp:271:PriorityMuxer::setInputImage()) Priority 100 is now inactive
2021-08-07T16:47:36.560Z [hyperiond HYPERION] (DEBUG) (PriorityMuxer.cpp:374:PriorityMuxer::setCurrentTime()) Set visible priority to 255
2021-08-07T16:47:36.560Z [hyperiond HYPERION] (DEBUG) (Hyperion.cpp:559:Hyperion::handlePriorityChangedLedDevice()) priority[255], previousPriority[100]
2021-08-07T16:47:36.560Z [hyperiond HYPERION] (DEBUG) (Hyperion.cpp:562:Hyperion::handlePriorityChangedLedDevice()) No source left -> switch LED-Device off
2021-08-07T16:47:36.726Z [hyperiond HYPERION] (DEBUG) (PriorityMuxer.cpp:271:PriorityMuxer::setInputImage()) Priority 100 is now active
2021-08-07T16:47:36.726Z [hyperiond HYPERION] (DEBUG) (PriorityMuxer.cpp:374:PriorityMuxer::setCurrentTime()) Set visible priority to 100
2021-08-07T16:47:36.726Z [hyperiond HYPERION] (DEBUG) (Hyperion.cpp:559:Hyperion::handlePriorityChangedLedDevice()) priority[100], previousPriority[255]
2021-08-07T16:47:36.727Z [hyperiond HYPERION] (DEBUG) (Hyperion.cpp:569:Hyperion::handlePriorityChangedLedDevice()) new source available -> switch LED-Device on
2021-08-07T16:47:43.985Z [hyperiond WEBSOCKET] (DEBUG) (WebSocketClient.cpp:30:WebSocketClient::WebSocketClient()) New connection from ::1
2021-08-07T16:47:43.985Z [hyperiond WEBSOCKET] (DEBUG) (JsonAPI.cpp:122:JsonAPI::handleInstanceSwitch()) Client '::1' switch to Hyperion instance 0
2021-08-07T16:47:44.167Z [hyperiond WEBSOCKET] (DEBUG) (JsonAPI.cpp:1058:JsonAPI::handleLoggingCommand()) log streaming activated for client ::1
Hyperion Server: 
- Build:           (HEAD detached at b1a4e95c) (Paulchen-Panther-975f969a/b1a4e95c-1626550299)
- Build time:      Jul 17 2021 20:53:38
- Git Remote:      https://github.com/hyperion-project/hyperion.ng
- Version:         2.0.0-alpha.10
- UI Lang:         en (BrowserLang: fr-CA)
- UI Access:       expert
- Avail Capt:      v4l2,qt,dx
- Database:        read/write

Hyperion Server OS: 
- Distribution:   Windows 10 Version 2009
- Architecture:   x86_64
- Kernel:         winnt (10.0.19042 (WS: 64))
- Qt Version:     5.15.0
- Python Version: 3.9.6
- Browser:        Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/92.0.4515.131 Safari/537.36

Thanks

FluffyDiscord commented 3 years ago

Same behaviour with turning the pc off.

Steps to reproduce:

Adalight - Arduino nano clone (two different ones, with slightly different program on them, both have the same issue)

The fix would be to send some "turn off" signal to the LEDs whenever Hyperion is closed (probably forcefully by windows?)

Lord-Grey commented 3 years ago

@FluffyDiscord

The fix would be to send some "turn off" signal to the LEDs whenever Hyperion is closed

That is already done and works on Unix. Seems Windows stops the processes differently and there we need to find a different way…

FluffyDiscord commented 3 years ago

@Lord-Grey would you please point me in the source code, where you are currently catching the shutdown event on windows ? I seem to be blind

Lord-Grey commented 3 years ago

@FluffyDiscord There is no dedicated catching for a shutdown event that I am aware of. If hyperiond is stopped the aboutToQuit Signal cleans up the objects and in case of LEDs this triggers a proper close and switch off of the LED currently running. If you run on Unix in debug mode and stop Hyperion via ctrl-c or kill, you will see the order of events.

https://github.com/hyperion-project/hyperion.ng/blob/0227694d2049e6eccfd798f155a209f31ec35e7a/src/hyperiond/hyperiond.cpp#L126

On CoreElec the SIGUSR events are used when the platform is suspended or resumed. Here the LEDs are switched off/on. If there is a similar event on Windows, we could leverage the same mechanism. The related code is here:

https://github.com/hyperion-project/hyperion.ng/blob/0227694d2049e6eccfd798f155a209f31ec35e7a/src/hyperiond/main.cpp#L53

FluffyDiscord commented 3 years ago

I am not an expert on this matter, but from what I understand, app could use winuser.h module which has RegisterPowerSettingNotification

I would like to f*ck around and try it, if it's even the right thing, but it's pain in the *** to setup windows build.

more here https://docs.microsoft.com/en-us/windows/win32/api/winuser/nf-winuser-registerpowersettingnotification

Lord-Grey commented 3 years ago

@FluffyDiscord I know that setting up a Windows build takes some time (I did it with MSVC2019). Nevertheless, it might be worth, as you could support and contribute further leveraging the invest.... ;)