awawa-dev / HyperHDR

Highly optimized open source ambient lighting implementation based on modern digital video and audio stream analysis for Windows, macOS and Linux (x86 and Raspberry Pi / ARM).
http://www.hyperhdr.eu/
MIT License
1.12k stars 117 forks source link

HyperHdr not work after wake up #868

Closed Gregor1980 closed 5 months ago

Gregor1980 commented 5 months ago

Bug report

Steps to reproduce

  1. Install the latest version of HyperHDR on a Mac Mini M2.
  2. Connect LEDs through a Pimoroni Plasma RP2040 via USB to the Mac.
  3. Use the 'System screen capture' feature in HyperHDR.
  4. Put the computer to sleep.
  5. Wake the computer up.

What is expected?

After waking up the computer, the LEDs should continue to function without manual intervention.

What is actually happening?

After waking up the computer, the LED backlighting only turns on for a second before anything appears on the screen, and then the LEDs turn off. I have to manually turn off and turn on the 'System screen capture' button in HyperHDR to restore functionality. This issue does not occur when a static effect like 'candle' is set instead of screen capture, which works fine even after the computer wakes up.

System

Debug log

2024-05-26T21:11:24.360Z [LEDDEVICE0_ADALIGHT] (ProviderSerial.cpp:164) Serial port is closed: cu.usbmodem2401 2024-05-26T21:11:24.360Z [LEDDEVICE0_ADALIGHT] (LedDevice.cpp:423) Refresh rate = 50.00 Hz 2024-05-26T21:11:24.360Z [LEDDEVICE0_ADALIGHT] (LedDevice.cpp:373) Device is not ready to start a timer 2024-05-26T21:11:24.360Z [COMPONENTCTRL0] LED device: disabled 2024-05-26T21:11:24.360Z [LEDDEVICE0_ADALIGHT] (LedDevice.cpp:433) Refresh interval updated to 20ms 2024-05-26T21:11:24.360Z [LEDDEVICE0_ADALIGHT] (LedDevice.cpp:448) LED refresh interval adjustment caused by smoothing configuration change to 20ms (proposed: 0ms) 2024-05-26T21:11:24.360Z [LEDDEVICE0_ADALIGHT] (LedDevice.cpp:297) Disable the device 2024-05-26T21:11:24.360Z [LEDDEVICE0_ADALIGHT] (LedDevice.cpp:214) Saving retryTimer (interval: 0) 2024-05-27T05:24:10.909Z [HYPER_MANAGER] The system is going to wake up 2024-05-27T05:24:13.847Z [COMPONENTCTRL0] (ComponentController.cpp:73) Enabling HyperHDR instance: recovering previuosly saved component states 2024-05-27T05:24:13.847Z [SMOOTHING0] Clearing queued colors before: enabling 2024-05-27T05:24:13.847Z [SMOOTHING0] Smoothing queue is cleared 2024-05-27T05:24:13.847Z [COMPONENTCTRL0] Smoothing: enabled 2024-05-27T05:24:13.847Z [LEDDEVICE0_ADALIGHT] Ignoring user LED refresh rate. Forcing smoothing refresh rate = 50.00 Hz 2024-05-27T05:24:13.847Z [COMPONENTCTRL0] Blackborder detector: enabled 2024-05-27T05:24:13.847Z [LEDDEVICE0_ADALIGHT] (LedDevice.cpp:423) Refresh rate = 50.00 Hz 2024-05-27T05:24:13.847Z [LEDDEVICE0_ADALIGHT] (LedDevice.cpp:373) Device is not ready to start a timer 2024-05-27T05:24:13.847Z [LEDDEVICE0_ADALIGHT] (LedDevice.cpp:433) Refresh interval updated to 20ms 2024-05-27T05:24:13.847Z [MUXER0] Register new input 'System/VIDEOGRABBER' with priority 240 as inactive 2024-05-27T05:24:13.847Z [LEDDEVICE0_ADALIGHT] (LedDevice.cpp:448) LED refresh interval adjustment caused by smoothing configuration change to 20ms (proposed: 20ms) 2024-05-27T05:24:13.847Z [COMPONENTCTRL0] Video capture device: enabled 2024-05-27T05:24:13.847Z [MUXER0] Register new input 'System/SYSTEMGRABBER' with priority 245 as inactive 2024-05-27T05:24:13.847Z [COMPONENTCTRL0] System capture device: enabled 2024-05-27T05:24:13.847Z [MACOS AVF:AUTO] Multithreading for AVF is enabled. Available thread's count 4 2024-05-27T05:24:13.847Z [MACOS_SYSTEM:AUTO] (macOsGrabber.mm:111) init 2024-05-27T05:24:13.847Z [SMOOTHING0] Clearing queued colors before: enabling 2024-05-27T05:24:13.847Z [MACOS AVF:AUTO] (AVFGrabber.mm:409) Searching for devices... 2024-05-27T05:24:13.847Z [MACOS_SYSTEM:AUTO] Started 2024-05-27T05:24:13.847Z [SMOOTHING0] Smoothing queue is cleared 2024-05-27T05:24:13.848Z [COMPONENTCTRL0] HyperHDR: enabled 2024-05-27T05:24:13.848Z [MACOS AVF:AUTO] (AVFGrabber.mm:257) Forcing auto discovery device 2024-05-27T05:24:13.848Z [LEDDEVICE0_ADALIGHT] (LedDevice.cpp:247) Enable the device 2024-05-27T05:24:13.848Z [MACOS AVF:AUTO] Could not find any capture device 2024-05-27T05:24:13.848Z [LEDDEVICE0_ADALIGHT] Opening UART: cu.usbmodem2401 2024-05-27T05:24:13.848Z [LEDDEVICE0_ADALIGHT] (ProviderSerial.cpp:209) _serialPort.open(QIODevice::ReadWrite): cu.usbmodem2401, Baud rate [2000000]bps 2024-05-27T05:24:13.849Z [LEDDEVICE0_ADALIGHT] (ProviderSerial.cpp:214) portName: cu.usbmodem2401 2024-05-27T05:24:13.849Z [LEDDEVICE0_ADALIGHT] (ProviderSerial.cpp:215) systemLocation: /dev/cu.usbmodem2401 2024-05-27T05:24:13.849Z [LEDDEVICE0_ADALIGHT] (ProviderSerial.cpp:216) description: Pico 2024-05-27T05:24:13.849Z [LEDDEVICE0_ADALIGHT] (ProviderSerial.cpp:217) manufacturer: Raspberry Pi 2024-05-27T05:24:13.849Z [LEDDEVICE0_ADALIGHT] (ProviderSerial.cpp:218) productIdentifier: 0xa 2024-05-27T05:24:13.849Z [LEDDEVICE0_ADALIGHT] (ProviderSerial.cpp:219) vendorIdentifier: 0x2e8a 2024-05-27T05:24:13.849Z [LEDDEVICE0_ADALIGHT] (ProviderSerial.cpp:220) serialNumber: E66141040377B639 2024-05-27T05:24:13.879Z [LEDDEVICE0_ADALIGHT] Detected Rp2040 type board. HyperHDR skips the reset. State: 1, 1 2024-05-27T05:24:13.883Z [LEDDEVICE0_ADALIGHT] ESP sent: 'HyperHDR frames: 0 (FPS), receiv.: 0, good: 0, incompl.: 0, mem1' 2024-05-27T05:24:13.883Z [LEDDEVICE0_ADALIGHT] DETECTED DEVICE USING HyperSerialEsp8266/HyperSerialESP32/HyperSerialPico FIRMWARE (: 0, mem2: 448, heap: 123232 Welcome! Awa driver 9.) at 2 msec 2024-05-27T05:24:13.883Z [LEDDEVICE0_ADALIGHT] (LedDevice.cpp:64) Switch on 2024-05-27T05:24:13.883Z [LEDDEVICE0_ADALIGHT] (LedDevice.cpp:140) Power On 2024-05-27T05:24:13.883Z [LEDDEVICE0_ADALIGHT] (LedDevice.cpp:367) Starting timer with interval = 20ms 2024-05-27T05:24:13.883Z [COMPONENTCTRL0] LED device: enabled 2024-05-27T05:24:13.884Z [SMOOTHING0] Using alternative smoothing input (0) 2024-05-27T05:24:13.884Z [EFFECTENGINE0] Run effect "Candle" on channel 0 2024-05-27T05:24:13.884Z [EFFECTENGINE0] (EffectEngine.cpp:92) Start the effect: name [Candle] 2024-05-27T05:24:13.884Z [MUXER0] Register new input 'System/EFFECT' with priority 0 as inactive 2024-05-27T05:24:13.884Z [HYPERHDR0] Boot effect: animation set to 'Candle' [started] 2024-05-27T05:24:13.884Z [EFFECT0(Candle)] Begin playing the effect with priority: 0 2024-05-27T05:24:13.884Z [MUXER0] Priority 0 is now active 2024-05-27T05:24:13.884Z [MUXER0] Set visible priority to 0 2024-05-27T05:24:13.884Z [SMOOTHING0] Clearing queued colors before: enabling. Smoothing configuration changed: restarting timer. 2024-05-27T05:24:13.884Z [SMOOTHING0] Smoothing queue is cleared 2024-05-27T05:24:13.884Z [SMOOTHING0] Selecting config (4) => type: Linear, directMode: false, pause: false, settlingTime: 500ms, interval: 50ms (20Hz), antiFlickTres: 0, antiFlickStep: 0, antiFlickTime: 0 2024-05-27T05:24:13.884Z [SMOOTHING0] Using linear smoothing input (4) 2024-05-27T05:24:13.884Z [LEDDEVICE0_ADALIGHT] (LedDevice.cpp:381) Stopping refresh timer 2024-05-27T05:24:13.884Z [HYPERHDR0] New priority[0], previous [255] 2024-05-27T05:24:13.884Z [LEDDEVICE0_ADALIGHT] Ignoring user LED refresh rate. Forcing smoothing refresh rate = 20.00 Hz 2024-05-27T05:24:13.884Z [HYPERHDR0] New source available -> switch LED-Device on 2024-05-27T05:24:13.884Z [LEDDEVICE0_ADALIGHT] (LedDevice.cpp:423) Refresh rate = 20.00 Hz 2024-05-27T05:24:13.884Z [SMOOTHING0] Clearing queued colors before: enabling 2024-05-27T05:24:13.885Z [LEDDEVICE0_ADALIGHT] (LedDevice.cpp:367) Starting timer with interval = 50ms 2024-05-27T05:24:13.885Z [SMOOTHING0] Smoothing queue is cleared 2024-05-27T05:24:13.885Z [LEDDEVICE0_ADALIGHT] (LedDevice.cpp:433) Refresh interval updated to 50ms 2024-05-27T05:24:13.885Z [LEDDEVICE0_ADALIGHT] (LedDevice.cpp:448) LED refresh interval adjustment caused by smoothing configuration change to 50ms (proposed: 50ms) 2024-05-27T05:24:13.885Z [COLORSPACE_CALIBRATION0] (ColorSpaceCalibration.cpp:225) setBackLightEnabled: 0 2024-05-27T05:24:13.885Z [LEDDEVICE0_ADALIGHT] (LedDevice.cpp:247) Enable the device 2024-05-27T05:24:13.885Z [SMOOTHING0] Using linear smoothing input (4) 2024-05-27T05:24:13.962Z [MUXER0] Priority 245 is now active 2024-05-27T05:24:13.986Z [SMOOTHING0] Using linear smoothing procedure (4) 2024-05-27T05:24:15.869Z [MACOS_SYSTEM:AUTO] Lost connection to the display or user didn't grant access rights 2024-05-27T05:24:15.870Z [MACOS_SYSTEM:AUTO] Stopped 2024-05-27T05:24:15.870Z [MACOS_SYSTEM:AUTO] (macOsGrabber.mm:101) Uninit grabber: Display id: 2 2024-05-27T05:24:15.915Z [EFFECT0(Candle)] The effect quits with priority: 0 2024-05-27T05:24:15.952Z [MUXER0] Removed source priority 0 2024-05-27T05:24:15.952Z [MUXER0] Set visible priority to 245 2024-05-27T05:24:15.954Z [SMOOTHING0] Clearing queued colors before: enabling. Smoothing configuration changed: restarting timer. 2024-05-27T05:24:15.954Z [SMOOTHING0] Smoothing queue is cleared 2024-05-27T05:24:15.954Z [SMOOTHING0] Selecting config (0) => type: Alternative, directMode: false, pause: false, settlingTime: 150ms, interval: 20ms (50Hz), antiFlickTres: 32, antiFlickStep: 2, antiFlickTime: 250 2024-05-27T05:24:15.955Z [SMOOTHING0] Using alternative smoothing input (0) 2024-05-27T05:24:15.956Z [HYPERHDR0] New priority[245], previous [0] 2024-05-27T05:24:15.956Z [LEDDEVICE0_ADALIGHT] (LedDevice.cpp:381) Stopping refresh timer 2024-05-27T05:24:15.957Z [COLORSPACE_CALIBRATION0] (ColorSpaceCalibration.cpp:225) setBackLightEnabled: 1 2024-05-27T05:24:15.957Z [LEDDEVICE0_ADALIGHT] Ignoring user LED refresh rate. Forcing smoothing refresh rate = 50.00 Hz 2024-05-27T05:24:15.958Z [EFFECTENGINE0] Effect 'Candle' has finished. 2024-05-27T05:24:15.958Z [LEDDEVICE0_ADALIGHT] (LedDevice.cpp:423) Refresh rate = 50.00 Hz 2024-05-27T05:24:15.958Z [LEDDEVICE0_ADALIGHT] (LedDevice.cpp:367) Starting timer with interval = 20ms 2024-05-27T05:24:15.959Z [EFFECT0(Candle)] Effect named: 'Candle' is deleted 2024-05-27T05:24:15.959Z [LEDDEVICE0_ADALIGHT] (LedDevice.cpp:433) Refresh interval updated to 20ms 2024-05-27T05:24:15.960Z [LEDDEVICE0_ADALIGHT] (LedDevice.cpp:448) LED refresh interval adjustment caused by smoothing configuration change to 20ms (proposed: 20ms) 2024-05-27T05:24:16.000Z [SMOOTHING0] Using alternative smoothing procedure (0) 2024-05-27T05:24:16.446Z [MUXER0] Priority 245 is now inactive 2024-05-27T05:24:16.447Z [MUXER0] Set visible priority to 255 2024-05-27T05:24:16.447Z [HYPERHDR0] New priority[255], previous [245] 2024-05-27T05:24:16.447Z [HYPERHDR0] No source left -> switch LED-Device off 2024-05-27T05:24:16.447Z [SMOOTHING0] Clearing queued colors before: disabling 2024-05-27T05:24:16.447Z [SMOOTHING0] Smoothing queue is cleared 2024-05-27T05:24:16.447Z [LEDDEVICE0_ADALIGHT] (LedDevice.cpp:297) Disable the device 2024-05-27T05:24:16.447Z [COLORSPACE_CALIBRATION0] (ColorSpaceCalibration.cpp:225) setBackLightEnabled: 0 2024-05-27T05:24:16.447Z [LEDDEVICE0_ADALIGHT] (LedDevice.cpp:381) Stopping refresh timer 2024-05-27T05:24:16.447Z [LEDDEVICE0_ADALIGHT] (LedDevice.cpp:90) Switch off 2024-05-27T05:24:16.447Z [LEDDEVICE0_ADALIGHT] (LedDevice.cpp:544) Set LED strip to black/power off 2024-05-27T05:24:16.447Z [LEDDEVICE0_ADALIGHT] (ProviderSerial.cpp:146) Flush was successful 2024-05-27T05:24:16.457Z [LEDDEVICE0_ADALIGHT] Received goodbye: 'HyperHDR frames: 0 (FPS), receiv.: 0, good: 0, incompl.: 0, mem1: 0, mem2: 448, heap: 123232 ' (94) 2024-05-27T05:24:16.472Z [LEDDEVICE0_ADALIGHT] (ProviderSerial.cpp:164) Serial port is closed: cu.usbmodem2401 2024-05-27T05:24:16.472Z [COMPONENTCTRL0] LED device: disabled 2024-05-27T05:29:47.866Z [WEBSOCKET] (WebSocketClient.cpp:39) New connection from ::1 2024-05-27T05:29:51.218Z [WEBSOCKET] (HyperAPI.cpp:957) log streaming activated for client ::1

Additional information

I have recently reinstalled macOS and have the latest version of HyperHDR. The issue persists even after the reinstallation. If anyone has encountered a similar problem or has suggestions for a solution, I would appreciate the help.

awawa-dev commented 5 months ago

Hi Please provide full logs from the moment when the system is going to sleep because that part is missing. We only have that part when the system is waking up. 2024-05-27T05:24:10.909Z [HYPER_MANAGER] The system is going to wake up

Gregor1980 commented 5 months ago

Logs:

2024-06-01T19:18:21.621Z [CORE] TTY is not attached to the log output 2024-06-01T19:18:21.621Z [MAIN] Database path: '/Users/grzegorzjasionowski/.hyperhdr/db/hyperhdr.db', readonlyMode = disabled 2024-06-01T19:18:21.621Z [MAIN] Starting HyperHdr - 20.0.0.0, (HEAD detached at v20.0.0.0) (awawa-dev-9e960c9/52f12b4-1711236142), built: Mar 23 2024:23:28:09 2024-06-01T19:18:21.621Z [MAIN] Set user data path to '/Users/grzegorzjasionowski/.hyperhdr' 2024-06-01T19:18:21.621Z [INSTANCE_CFG] Loading instance configuration 2024-06-01T19:18:21.622Z [DB] Database opened: /Users/grzegorzjasionowski/.hyperhdr/db/hyperhdr.db 2024-06-01T19:18:21.625Z [INSTANCE_CFG] Settings database initialized 2024-06-01T19:18:21.626Z [SOUND_GRABBER] Sound device is disabled 2024-06-01T19:18:21.653Z [JSONSERVER] (JsonServer.cpp:26) Created new instance 2024-06-01T19:18:21.653Z [JSONSERVER] Started on port 19444 2024-06-01T19:18:21.653Z [SSDP] (SSDPHandler.cpp:31) SSDPHandler is initialized 2024-06-01T19:18:21.653Z [MAIN] start systray 2024-06-01T19:18:21.651Z [macOS AVF:auto] (GrabberWrapper.cpp:55) Starting the grabber wrapper 2024-06-01T19:18:21.651Z [MACOS_SYSTEM:AUTO] Found display: Display id: 2 2024-06-01T19:18:21.651Z [MACOS_SYSTEM:AUTO] Restarting video grabber is now blocked due to reloading of the configuration 2024-06-01T19:18:21.651Z [MACOS_SYSTEM:AUTO] (Grabber.cpp:159) Set new width: 512, height: 512 for capture 2024-06-01T19:18:21.651Z [MACOS_SYSTEM:AUTO] (Grabber.cpp:335) setWidthHeight preparing to restarting video grabber 0 2024-06-01T19:18:21.651Z [MACOS_SYSTEM:AUTO] Delayed restart of the grabber due to change of the capturing resolution 2024-06-01T19:18:21.651Z [MACOS_SYSTEM:AUTO] Delayed restart of the grabber due to change of the framerate 2024-06-01T19:18:21.651Z [SIGNAL_OLD] (DetectionManual.cpp:84) Signal detection area set to: 0.250000,0.250000 x 0.750000,0.750000 2024-06-01T19:18:21.651Z [SIGNAL_OLD] (DetectionManual.cpp:74) Signal threshold set to: {0, 0, 0} and frames: 50 2024-06-01T19:18:21.651Z [MACOS_SYSTEM:AUTO] (Grabber.cpp:380) setDeviceVideoStandard preparing to restart video grabber. Old: '' new: 'auto' 2024-06-01T19:18:21.651Z [MACOS_SYSTEM:AUTO] Delayed restart of the grabber due to change of selected device 2024-06-01T19:18:21.651Z [HYPERHDR0] Starting the instance 2024-06-01T19:18:21.651Z [INSTANCE_CFG0] Loading instance configuration 2024-06-01T19:18:21.651Z [DB] Database opened: /Users/grzegorzjasionowski/.hyperhdr/db/hyperhdr.db 2024-06-01T19:18:21.652Z [MACOS AVF:AUTO] HyperHDR has the camera's permission 2024-06-01T19:18:21.652Z [MACOS AVF:AUTO] (AVFGrabber.mm:409) Searching for devices... 2024-06-01T19:18:21.652Z [MACOS AVF:AUTO] Restarting video grabber is now blocked due to reloading of the configuration 2024-06-01T19:18:21.652Z [macOS AVF:auto] (GrabberWrapper.cpp:488) Auto resume is: enabled 2024-06-01T19:18:21.652Z [MACOS AVF:AUTO] Cropping image: width=0 height=0; crop: left=0 right=0 top=0 bottom=0 2024-06-01T19:18:21.652Z [macOS AVF:auto] (GrabberWrapper.cpp:126) CEC keycode. Start: 0, stop: 0 2024-06-01T19:18:21.652Z [MACOS AVF:AUTO] (Grabber.cpp:273) setBrightnessContrastSaturationHue nothing changed 2024-06-01T19:18:21.652Z [MACOS AVF:AUTO] (AVFGrabber.mm:195) setHdrToneMappingMode to: Disabled 2024-06-01T19:18:21.652Z [MACOS AVF:AUTO] (Grabber.cpp:182) setFpsSoftwareDecimation to: 1 2024-06-01T19:18:21.652Z [SIGNAL_OLD] (DetectionManual.cpp:84) Signal detection area set to: 0.250000,0.250000 x 0.750000,0.750000 2024-06-01T19:18:21.652Z [SIGNAL_OLD] (DetectionManual.cpp:74) Signal threshold set to: {12, 12, 12} and frames: 200 2024-06-01T19:18:21.652Z [MACOS AVF:AUTO] Automatic signal detection is now enabled 2024-06-01T19:18:21.652Z [SIGNAL_AUTO] (DetectionAutomatic.cpp:376) Automatic signal detection -> errorTolerance: 3, modelTolerance: 90, sleepTime: 5000, wakeTime: 1000 2024-06-01T19:18:21.652Z [MACOS AVF:AUTO] (Grabber.cpp:380) setDeviceVideoStandard preparing to restart video grabber. Old: '' new: 'auto' 2024-06-01T19:18:21.652Z [MACOS AVF:AUTO] Delayed restart of the grabber due to change of selected device 2024-06-01T19:18:21.652Z [MACOS AVF:AUTO] (Grabber.cpp:200) Force encoding to: NO_CHANGE (old: NO_CHANGE) 2024-06-01T19:18:21.652Z [MACOS AVF:AUTO] setQFrameDecimation is now: disabled 2024-06-01T19:18:21.657Z [INSTANCE_CFG0] Settings database initialized 2024-06-01T19:18:21.657Z [COMPONENTCTRL0] (ComponentController.cpp:31) ComponentController is initialized. Components are ENABLED 2024-06-01T19:18:21.657Z [MUXER0] (Muxer.cpp:55) Muxer initialized 2024-06-01T19:18:21.657Z [BLACKBORDER] Set mode to: default 2024-06-01T19:18:21.657Z [COMPONENTCTRL0] Blackborder detector: enabled 2024-06-01T19:18:21.657Z [IMAGETOLED_MNG0] (ImageToLedManager.cpp:192) Set LED mapping type to advanced 2024-06-01T19:18:21.657Z [IMAGETOLED_MNG0] (ImageToLedManager.cpp:176) setSparseProcessing to 0 2024-06-01T19:18:21.657Z [IMAGETOLED_MNG0] (ImageToLedManager.cpp:103) ImageToLedManager initialized 2024-06-01T19:18:21.658Z [COLORSPACE_CALIBRATION0] classicMode: no, gammas:[1.50, 1.50, 1.50], saturation: 1.00, luminance: 1.00, backLight: [enabled, threshold: 1, colored: yes] 2024-06-01T19:18:21.658Z [LED_CALIBRATION0] (LedCalibration.cpp:101) Calibration config '0' for LED segment: [0, 111] 2024-06-01T19:18:21.658Z [HYPERHDR0] Led strip RGB order is: rgb 2024-06-01T19:18:21.658Z [SMOOTHING0] High resolution clock is steady (good) 2024-06-01T19:18:21.658Z [SMOOTHING0] Clearing queued colors before: enabling 2024-06-01T19:18:21.658Z [SMOOTHING0] Smoothing queue is cleared 2024-06-01T19:18:21.658Z [COMPONENTCTRL0] Smoothing: enabled 2024-06-01T19:18:21.658Z [SMOOTHING0] Creating config (0) => type: Alternative, dirMode: false, pause: false, settlingTime: 150ms, interval: 20ms (50Hz), antiFlickTres: 32, antiFlickStep: 2, antiFlickTime: 250 2024-06-01T19:18:21.658Z [SMOOTHING0] Clearing queued colors before: enabling. Smoothing configuration changed: restarting timer. 2024-06-01T19:18:21.658Z [SMOOTHING0] Smoothing queue is cleared 2024-06-01T19:18:21.658Z [SMOOTHING0] Selecting config (0) => type: Alternative, directMode: false, pause: false, settlingTime: 150ms, interval: 20ms (50Hz), antiFlickTres: 32, antiFlickStep: 2, antiFlickTime: 250 2024-06-01T19:18:21.658Z [SMOOTHING0] Selecting config (0) => type: Alternative, directMode: false, pause: false, settlingTime: 150ms, interval: 20ms (50Hz), antiFlickTres: 32, antiFlickStep: 2, antiFlickTime: 250 2024-06-01T19:18:21.658Z [LEDDEVICE0_ADALIGHT] Start LedDevice 'adalight'. 2024-06-01T19:18:21.658Z [LEDDEVICE0_ADALIGHT] (LedDevice.cpp:337) deviceConfig: [{"awa_mode":true,"colorOrder":"rgb","currentLedCount":112,"espHandshake":true,"forceSerialDetection":false,"maxRetry":0,"output":"cu.usbmodem2401","rate":2000000,"refreshTime":20,"smoothingRefreshTime":20,"type":"adalight","white_channel_calibration":false}] 2024-06-01T19:18:21.658Z [LEDDEVICE0_ADALIGHT] Ignoring user LED refresh rate. Forcing smoothing refresh rate = 50.00 Hz 2024-06-01T19:18:21.658Z [LEDDEVICE0_ADALIGHT] (LedDevice.cpp:423) Refresh rate = 50.00 Hz 2024-06-01T19:18:21.658Z [LEDDEVICE0_ADALIGHT] (LedDevice.cpp:373) Device is not ready to start a timer 2024-06-01T19:18:21.658Z [LEDDEVICE0_ADALIGHT] (LedDevice.cpp:433) Refresh interval updated to 20ms 2024-06-01T19:18:21.658Z [LEDDEVICE0_ADALIGHT] (ProviderSerial.cpp:50) DeviceType : adalight 2024-06-01T19:18:21.658Z [LEDDEVICE0_ADALIGHT] (ProviderSerial.cpp:51) LedCount : 112 2024-06-01T19:18:21.658Z [LEDDEVICE0_ADALIGHT] (ProviderSerial.cpp:52) RefreshTime : 20 2024-06-01T19:18:21.658Z [LEDDEVICE0_ADALIGHT] (ProviderSerial.cpp:67) Device name : cu.usbmodem2401 2024-06-01T19:18:21.658Z [LEDDEVICE0_ADALIGHT] (ProviderSerial.cpp:68) Auto selection: 0 2024-06-01T19:18:21.658Z [LEDDEVICE0_ADALIGHT] (ProviderSerial.cpp:69) Baud rate : 2000000 2024-06-01T19:18:21.658Z [LEDDEVICE0_ADALIGHT] (ProviderSerial.cpp:70) ESP handshake : ON 2024-06-01T19:18:21.658Z [LEDDEVICE0_ADALIGHT] (ProviderSerial.cpp:71) Force ESP/Pico Detection : OFF 2024-06-01T19:18:21.658Z [LEDDEVICE0_ADALIGHT] (ProviderSerial.cpp:72) Delayed open : 0 2024-06-01T19:18:21.658Z [LEDDEVICE0_ADALIGHT] (ProviderSerial.cpp:73) Retry limit : 0 2024-06-01T19:18:21.658Z [LEDDEVICE0_ADALIGHT] The refresh timer is enabled ('Refresh time' > 0) and may limit the performance of the LED driver. Ignore this error if you set it on purpose for some reason (but you almost never need it). 2024-06-01T19:18:21.658Z [LEDDEVICE0_ADALIGHT] (LedDeviceAdalight.cpp:79) Adalight driver with activated high speeed & data integration check AWA protocol 2024-06-01T19:18:21.658Z [LEDDEVICE0_ADALIGHT] (LedDeviceAdalight.cpp:89) Adalight header for 112 leds: Awa 0x00 0x6f 0x3a 2024-06-01T19:18:21.658Z [LEDDEVICE0_ADALIGHT] (LedDevice.cpp:247) Enable the device 2024-06-01T19:18:21.658Z [LEDDEVICE0_ADALIGHT] Opening UART: cu.usbmodem2401 2024-06-01T19:18:21.658Z [LEDDEVICE0_ADALIGHT] (ProviderSerial.cpp:209) _serialPort.open(QIODevice::ReadWrite): cu.usbmodem2401, Baud rate [2000000]bps 2024-06-01T19:18:21.670Z [HYPER_MANAGER] HyperHDR instance 'First LED instance' has been started 2024-06-01T19:18:21.658Z [HYPERHDR0] The instance is running 2024-06-01T19:18:21.658Z [MUXER0] Register new input 'System/VIDEOGRABBER' with priority 240 as inactive 2024-06-01T19:18:21.658Z [COMPONENTCTRL0] Video capture device: enabled 2024-06-01T19:18:21.658Z [MUXER0] Register new input 'System/SYSTEMGRABBER' with priority 245 as inactive 2024-06-01T19:18:21.658Z [COMPONENTCTRL0] System capture device: enabled 2024-06-01T19:18:21.658Z [MACOS AVF:AUTO] Multithreading for AVF is enabled. Available thread's count 4 2024-06-01T19:18:21.658Z [MACOS AVF:AUTO] (AVFGrabber.mm:409) Searching for devices... 2024-06-01T19:18:21.658Z [MACOS AVF:AUTO] (AVFGrabber.mm:257) Forcing auto discovery device 2024-06-01T19:18:21.658Z [MACOS AVF:AUTO] Could not find any capture device 2024-06-01T19:18:21.658Z [MACOS_SYSTEM:AUTO] (macOsGrabber.mm:111) init 2024-06-01T19:18:21.658Z [LEDDEVICE0_ADALIGHT] (ProviderSerial.cpp:214) portName: cu.usbmodem2401 2024-06-01T19:18:21.658Z [LEDDEVICE0_ADALIGHT] (ProviderSerial.cpp:215) systemLocation: /dev/cu.usbmodem2401 2024-06-01T19:18:21.658Z [LEDDEVICE0_ADALIGHT] (ProviderSerial.cpp:216) description: Pico 2024-06-01T19:18:21.658Z [LEDDEVICE0_ADALIGHT] (ProviderSerial.cpp:217) manufacturer: Raspberry Pi 2024-06-01T19:18:21.658Z [LEDDEVICE0_ADALIGHT] (ProviderSerial.cpp:218) productIdentifier: 0xa 2024-06-01T19:18:21.658Z [LEDDEVICE0_ADALIGHT] (ProviderSerial.cpp:219) vendorIdentifier: 0x2e8a 2024-06-01T19:18:21.658Z [LEDDEVICE0_ADALIGHT] (ProviderSerial.cpp:220) serialNumber: E66141040377B639 2024-06-01T19:18:21.661Z [MACOS_SYSTEM:AUTO] (macOsGrabber.mm:130) Forcing auto discovery device 2024-06-01T19:18:21.661Z [MACOS_SYSTEM:AUTO] (macOsGrabber.mm:135) Auto discovery set to Display id: 2 2024-06-01T19:18:21.661Z [MACOS_SYSTEM:AUTO] ************************************************************************************************* 2024-06-01T19:18:21.661Z [MACOS_SYSTEM:AUTO] Starting macOS grabber. Selected: 'Display id: 2' max width: 512 (512) @ 10 fps 2024-06-01T19:18:21.661Z [MACOS_SYSTEM:AUTO] ************************************************************************************************* 2024-06-01T19:18:21.661Z [MACOS_SYSTEM:AUTO] Started 2024-06-01T19:18:21.671Z [WEBSERVER] Initialize Webserver 2024-06-01T19:18:21.671Z [FLATBUFSERVER] Started on port 19400 2024-06-01T19:18:21.671Z [WEBSERVER] Apply Webserver settings 2024-06-01T19:18:21.671Z [WEBSERVER] Set document root to: :/www 2024-06-01T19:18:21.671Z [WEBSERVER] Started: 'HyperHDR WebServer (HTTP)' on port: 8090 2024-06-01T19:18:21.671Z [SSDP] (SSDPHandler.cpp:93) The local address is empty 2024-06-01T19:18:21.671Z [WEBSERVER] Initialize Webserver 2024-06-01T19:18:21.671Z [WEBSERVER] Apply Webserver settings 2024-06-01T19:18:21.671Z [WEBSERVER] Set document root to: :/www 2024-06-01T19:18:21.671Z [FLATBUFSERVER] Started local domain socket server: 'hyperhdr-domain' 2024-06-01T19:18:21.671Z [WEBSERVER] No valid SSL certificate has been found (':/hyperhdrcrt.pem'). Did you install OpenSSL? 2024-06-01T19:18:21.671Z [WEBSERVER] The provided SSL key is invalid or not supported use RSA encrypt and PEM format (':/hyperhdrkey.pem') 2024-06-01T19:18:21.671Z [WEBSERVER] Started: 'HyperHDR WebServer (HTTPS)' on port: 8092 2024-06-01T19:18:21.671Z [SSDP] (SSDPHandler.cpp:42) SSDPHandler is initializing 2024-06-01T19:18:21.671Z [SSDP] (SSDPHandler.cpp:183) The local address is: 192.168.178.10 2024-06-01T19:18:21.671Z [SSDP] (SSDPServer.cpp:95) Initialize the SSDP server 2024-06-01T19:18:21.671Z [WEBSERVER] (StaticFileServing.cpp:68) SSDP description is set up 2024-06-01T19:18:21.671Z [SSDP] Starting the SSDP server 2024-06-01T19:18:21.683Z [NETFORWARDER] Forwarder has changed state to disabled 2024-06-01T19:18:21.686Z [LEDDEVICE0_ADALIGHT] Detected Rp2040 type board. HyperHDR skips the reset. State: 1, 1 2024-06-01T19:18:21.690Z [LEDDEVICE0_ADALIGHT] ESP sent: 'HyperHDR frames: 0 (FPS), receiv.: 0, good: 0, incompl.: 0, mem1' 2024-06-01T19:18:21.690Z [LEDDEVICE0_ADALIGHT] DETECTED DEVICE USING HyperSerialEsp8266/HyperSerialESP32/HyperSerialPico FIRMWARE (: 0, mem2: 448, heap: 123232 Welcome! Awa driver 9.) at 2 msec 2024-06-01T19:18:21.690Z [LEDDEVICE0_ADALIGHT] (LedDevice.cpp:64) Switch on 2024-06-01T19:18:21.690Z [LEDDEVICE0_ADALIGHT] (LedDevice.cpp:140) Power On 2024-06-01T19:18:21.690Z [LEDDEVICE0_ADALIGHT] (LedDevice.cpp:367) Starting timer with interval = 20ms 2024-06-01T19:18:21.690Z [COMPONENTCTRL0] LED device: enabled 2024-06-01T19:18:21.690Z [SMOOTHING0] Using alternative smoothing input (0) 2024-06-01T19:18:21.690Z [EFFECTENGINE0] Run effect "Candle" on channel 0 2024-06-01T19:18:21.690Z [EFFECTENGINE0] (EffectEngine.cpp:92) Start the effect: name [Candle] 2024-06-01T19:18:21.690Z [MUXER0] Register new input 'System/EFFECT' with priority 0 as inactive 2024-06-01T19:18:21.690Z [HYPERHDR0] Boot effect: animation set to 'Candle' [started] 2024-06-01T19:18:21.690Z [EFFECT0(Candle)] Begin playing the effect with priority: 0 2024-06-01T19:18:21.690Z [MUXER0] Priority 0 is now active 2024-06-01T19:18:21.690Z [MUXER0] Set visible priority to 0 2024-06-01T19:18:21.690Z [SMOOTHING0] Clearing queued colors before: enabling. Smoothing configuration changed: restarting timer. 2024-06-01T19:18:21.690Z [SMOOTHING0] Smoothing queue is cleared 2024-06-01T19:18:21.690Z [SMOOTHING0] Selecting config (4) => type: Linear, directMode: false, pause: false, settlingTime: 500ms, interval: 50ms (20Hz), antiFlickTres: 0, antiFlickStep: 0, antiFlickTime: 0 2024-06-01T19:18:21.690Z [SMOOTHING0] Using linear smoothing input (4) 2024-06-01T19:18:21.690Z [LEDDEVICE0_ADALIGHT] (LedDevice.cpp:381) Stopping refresh timer 2024-06-01T19:18:21.690Z [HYPERHDR0] New priority[0], previous [255] 2024-06-01T19:18:21.690Z [HYPERHDR0] New source available -> switch LED-Device on 2024-06-01T19:18:21.690Z [LEDDEVICE0_ADALIGHT] Ignoring user LED refresh rate. Forcing smoothing refresh rate = 20.00 Hz 2024-06-01T19:18:21.690Z [LEDDEVICE0_ADALIGHT] (LedDevice.cpp:423) Refresh rate = 20.00 Hz 2024-06-01T19:18:21.690Z [SMOOTHING0] Clearing queued colors before: enabling 2024-06-01T19:18:21.690Z [LEDDEVICE0_ADALIGHT] (LedDevice.cpp:367) Starting timer with interval = 50ms 2024-06-01T19:18:21.690Z [LEDDEVICE0_ADALIGHT] (LedDevice.cpp:433) Refresh interval updated to 50ms 2024-06-01T19:18:21.690Z [SMOOTHING0] Smoothing queue is cleared 2024-06-01T19:18:21.690Z [LEDDEVICE0_ADALIGHT] (LedDevice.cpp:448) LED refresh interval adjustment caused by smoothing configuration change to 50ms (proposed: 50ms) 2024-06-01T19:18:21.690Z [COLORSPACE_CALIBRATION0] (ColorSpaceCalibration.cpp:225) setBackLightEnabled: 0 2024-06-01T19:18:21.690Z [SMOOTHING0] Using linear smoothing input (4) 2024-06-01T19:18:21.690Z [LEDDEVICE0_ADALIGHT] (LedDevice.cpp:247) Enable the device 2024-06-01T19:18:21.778Z [MUXER0] Priority 245 is now active 2024-06-01T19:18:21.791Z [SMOOTHING0] Using linear smoothing procedure (4) 2024-06-01T19:18:23.174Z [NET_DISCOVERY] Found Pico/RP2040 at cu.usbmodem2401:-1 (Pico) 2024-06-01T19:18:23.175Z [NET_DISCOVERY] Found Pico/RP2040 at tty.usbmodem2401:-1 (Pico) 2024-06-01T19:18:23.173Z [SERVICE_mDNS] Starting the network discovery thread 2024-06-01T19:18:23.370Z [NET_DISCOVERY] Found WLED at 192.168.178.165:80 (wled-cf6ca4.local) 2024-06-01T19:18:23.692Z [EFFECT0(Candle)] The effect quits with priority: 0 2024-06-01T19:18:23.692Z [MUXER0] Removed source priority 0 2024-06-01T19:18:23.692Z [MUXER0] Set visible priority to 245 2024-06-01T19:18:23.692Z [SMOOTHING0] Clearing queued colors before: enabling. Smoothing configuration changed: restarting timer. 2024-06-01T19:18:23.692Z [SMOOTHING0] Smoothing queue is cleared 2024-06-01T19:18:23.692Z [SMOOTHING0] Selecting config (0) => type: Alternative, directMode: false, pause: false, settlingTime: 150ms, interval: 20ms (50Hz), antiFlickTres: 32, antiFlickStep: 2, antiFlickTime: 250 2024-06-01T19:18:23.692Z [SMOOTHING0] Using alternative smoothing input (0) 2024-06-01T19:18:23.692Z [LEDDEVICE0_ADALIGHT] (LedDevice.cpp:381) Stopping refresh timer 2024-06-01T19:18:23.692Z [HYPERHDR0] New priority[245], previous [0] 2024-06-01T19:18:23.692Z [LEDDEVICE0_ADALIGHT] Ignoring user LED refresh rate. Forcing smoothing refresh rate = 50.00 Hz 2024-06-01T19:18:23.692Z [COLORSPACE_CALIBRATION0] (ColorSpaceCalibration.cpp:225) setBackLightEnabled: 1 2024-06-01T19:18:23.692Z [LEDDEVICE0_ADALIGHT] (LedDevice.cpp:423) Refresh rate = 50.00 Hz 2024-06-01T19:18:23.692Z [EFFECTENGINE0] Effect 'Candle' has finished. 2024-06-01T19:18:23.692Z [LEDDEVICE0_ADALIGHT] (LedDevice.cpp:367) Starting timer with interval = 20ms 2024-06-01T19:18:23.692Z [LEDDEVICE0_ADALIGHT] (LedDevice.cpp:433) Refresh interval updated to 20ms 2024-06-01T19:18:23.692Z [LEDDEVICE0_ADALIGHT] (LedDevice.cpp:448) LED refresh interval adjustment caused by smoothing configuration change to 20ms (proposed: 20ms) 2024-06-01T19:18:23.692Z [EFFECT0(Candle)] Effect named: 'Candle' is deleted 2024-06-01T19:18:23.733Z [SMOOTHING0] Using alternative smoothing procedure (0) 2024-06-01T19:18:23.780Z [NET_DISCOVERY] Found Hue bridge at 192.168.178.50:80 (DIYHue.local) 2024-06-01T19:18:23.783Z [IMAGETOLED_MNG0] Total index number is: 37792 (memory: 37792). User sparse processing is: disabled, image size: 512 x 288, area number: 112 2024-06-01T19:18:23.783Z [IMAGETOLED_MNG0] Total index number is: 37792 (memory: 37792). User sparse processing is: disabled, image size: 512 x 288, area number: 112 2024-06-01T19:18:27.524Z [WEBSOCKET] (WebSocketClient.cpp:39) New connection from ::1 2024-06-01T19:18:30.965Z [WEBSOCKET] (HyperAPI.cpp:957) log streaming activated for client ::1 Sleep ! 2024-06-01T19:19:02.443Z [HYPER_MANAGER] The system is going to sleep 2024-06-01T19:19:02.444Z [COMPONENTCTRL0] (ComponentController.cpp:47) Disabling HyperHDR instance: saving current component states first 2024-06-01T19:19:02.444Z [SMOOTHING0] Clearing queued colors before: disabling 2024-06-01T19:19:02.444Z [SMOOTHING0] Smoothing queue is cleared 2024-06-01T19:19:02.444Z [SMOOTHING0] Clearing queued colors before: disabling 2024-06-01T19:19:02.445Z [LEDDEVICE0_ADALIGHT] (LedDevice.cpp:297) Disable the device 2024-06-01T19:19:02.446Z [LEDDEVICE0_ADALIGHT] (LedDevice.cpp:381) Stopping refresh timer 2024-06-01T19:19:02.446Z [LEDDEVICE0_ADALIGHT] (LedDevice.cpp:90) Switch off 2024-06-01T19:19:02.446Z [SMOOTHING0] Smoothing queue is cleared 2024-06-01T19:19:02.446Z [COMPONENTCTRL0] Smoothing: disabled 2024-06-01T19:19:02.446Z [LEDDEVICE0_ADALIGHT] (LedDevice.cpp:544) Set LED strip to black/power off 2024-06-01T19:19:02.446Z [COMPONENTCTRL0] Blackborder detector: disabled 2024-06-01T19:19:02.446Z [MUXER0] Removed source priority 240 2024-06-01T19:19:02.447Z [COMPONENTCTRL0] Video capture device: disabled 2024-06-01T19:19:02.447Z [MUXER0] Removed source priority 245 2024-06-01T19:19:02.447Z [MUXER0] Set visible priority to 255 2024-06-01T19:19:02.447Z [HYPERHDR0] New priority[255], previous [245] 2024-06-01T19:19:02.448Z [HYPERHDR0] No source left -> switch LED-Device off 2024-06-01T19:19:02.447Z [LEDDEVICE0_ADALIGHT] (ProviderSerial.cpp:146) Flush was successful 2024-06-01T19:19:02.450Z [SMOOTHING0] Clearing queued colors before: disabling 2024-06-01T19:19:02.450Z [SMOOTHING0] Smoothing queue is cleared 2024-06-01T19:19:02.450Z [COLORSPACE_CALIBRATION0] (ColorSpaceCalibration.cpp:225) setBackLightEnabled: 0 2024-06-01T19:19:02.450Z [COMPONENTCTRL0] System capture device: disabled 2024-06-01T19:19:02.450Z [COMPONENTCTRL0] (ComponentController.cpp:66) Disabling HyperHDR instance: preparations completed 2024-06-01T19:19:02.450Z [MACOS_SYSTEM:AUTO] Stopped 2024-06-01T19:19:02.457Z [LEDDEVICE0_ADALIGHT] Received goodbye: 'HyperHDR frames: 50 (FPS), receiv.: 50, good: 50, incompl.: 0, mem1: 0, mem2: 448, heap: 123232 ' (97) 2024-06-01T19:19:02.472Z [LEDDEVICE0_ADALIGHT] (ProviderSerial.cpp:164) Serial port is closed: cu.usbmodem2401 2024-06-01T19:19:02.472Z [LEDDEVICE0_ADALIGHT] (LedDevice.cpp:423) Refresh rate = 50.00 Hz 2024-06-01T19:19:02.472Z [LEDDEVICE0_ADALIGHT] (LedDevice.cpp:373) Device is not ready to start a timer 2024-06-01T19:19:02.472Z [LEDDEVICE0_ADALIGHT] (LedDevice.cpp:433) Refresh interval updated to 20ms 2024-06-01T19:19:02.472Z [LEDDEVICE0_ADALIGHT] (LedDevice.cpp:448) LED refresh interval adjustment caused by smoothing configuration change to 20ms (proposed: 0ms) 2024-06-01T19:19:02.472Z [COMPONENTCTRL0] LED device: disabled 2024-06-01T19:19:02.472Z [LEDDEVICE0_ADALIGHT] (LedDevice.cpp:297) Disable the device 2024-06-01T19:19:02.472Z [LEDDEVICE0_ADALIGHT] (LedDevice.cpp:214) Saving retryTimer (interval: 0) Wake UP ! 2024-06-01T19:20:03.407Z [HYPER_MANAGER] The system is going to wake up 2024-06-01T19:20:06.293Z [COMPONENTCTRL0] (ComponentController.cpp:73) Enabling HyperHDR instance: recovering previuosly saved component states 2024-06-01T19:20:06.293Z [SMOOTHING0] Clearing queued colors before: enabling 2024-06-01T19:20:06.293Z [SMOOTHING0] Smoothing queue is cleared 2024-06-01T19:20:06.293Z [COMPONENTCTRL0] Smoothing: enabled 2024-06-01T19:20:06.293Z [LEDDEVICE0_ADALIGHT] Ignoring user LED refresh rate. Forcing smoothing refresh rate = 50.00 Hz 2024-06-01T19:20:06.293Z [COMPONENTCTRL0] Blackborder detector: enabled 2024-06-01T19:20:06.293Z [LEDDEVICE0_ADALIGHT] (LedDevice.cpp:423) Refresh rate = 50.00 Hz 2024-06-01T19:20:06.293Z [LEDDEVICE0_ADALIGHT] (LedDevice.cpp:373) Device is not ready to start a timer 2024-06-01T19:20:06.293Z [LEDDEVICE0_ADALIGHT] (LedDevice.cpp:433) Refresh interval updated to 20ms 2024-06-01T19:20:06.293Z [LEDDEVICE0_ADALIGHT] (LedDevice.cpp:448) LED refresh interval adjustment caused by smoothing configuration change to 20ms (proposed: 20ms) 2024-06-01T19:20:06.294Z [MUXER0] Register new input 'System/VIDEOGRABBER' with priority 240 as inactive 2024-06-01T19:20:06.294Z [COMPONENTCTRL0] Video capture device: enabled 2024-06-01T19:20:06.294Z [MACOS AVF:AUTO] Multithreading for AVF is enabled. Available thread's count 4 2024-06-01T19:20:06.294Z [MUXER0] Register new input 'System/SYSTEMGRABBER' with priority 245 as inactive 2024-06-01T19:20:06.294Z [MACOS AVF:AUTO] (AVFGrabber.mm:409) Searching for devices... 2024-06-01T19:20:06.294Z [COMPONENTCTRL0] System capture device: enabled 2024-06-01T19:20:06.294Z [MACOS AVF:AUTO] (AVFGrabber.mm:257) Forcing auto discovery device 2024-06-01T19:20:06.294Z [MACOS AVF:AUTO] Could not find any capture device 2024-06-01T19:20:06.294Z [MACOS_SYSTEM:AUTO] (macOsGrabber.mm:111) init 2024-06-01T19:20:06.295Z [SMOOTHING0] Clearing queued colors before: enabling 2024-06-01T19:20:06.295Z [MACOS_SYSTEM:AUTO] Started 2024-06-01T19:20:06.295Z [SMOOTHING0] Smoothing queue is cleared 2024-06-01T19:20:06.296Z [COMPONENTCTRL0] HyperHDR: enabled 2024-06-01T19:20:06.296Z [LEDDEVICE0_ADALIGHT] (LedDevice.cpp:247) Enable the device 2024-06-01T19:20:06.296Z [LEDDEVICE0_ADALIGHT] Opening UART: cu.usbmodem2401 2024-06-01T19:20:06.296Z [LEDDEVICE0_ADALIGHT] (ProviderSerial.cpp:209) _serialPort.open(QIODevice::ReadWrite): cu.usbmodem2401, Baud rate [2000000]bps 2024-06-01T19:20:06.297Z [LEDDEVICE0_ADALIGHT] (ProviderSerial.cpp:214) portName: cu.usbmodem2401 2024-06-01T19:20:06.297Z [LEDDEVICE0_ADALIGHT] (ProviderSerial.cpp:215) systemLocation: /dev/cu.usbmodem2401 2024-06-01T19:20:06.297Z [LEDDEVICE0_ADALIGHT] (ProviderSerial.cpp:216) description: Pico 2024-06-01T19:20:06.297Z [LEDDEVICE0_ADALIGHT] (ProviderSerial.cpp:217) manufacturer: Raspberry Pi 2024-06-01T19:20:06.297Z [LEDDEVICE0_ADALIGHT] (ProviderSerial.cpp:218) productIdentifier: 0xa 2024-06-01T19:20:06.297Z [LEDDEVICE0_ADALIGHT] (ProviderSerial.cpp:219) vendorIdentifier: 0x2e8a 2024-06-01T19:20:06.297Z [LEDDEVICE0_ADALIGHT] (ProviderSerial.cpp:220) serialNumber: E66141040377B639 2024-06-01T19:20:06.327Z [LEDDEVICE0_ADALIGHT] Detected Rp2040 type board. HyperHDR skips the reset. State: 1, 1 2024-06-01T19:20:06.331Z [LEDDEVICE0_ADALIGHT] ESP sent: 'HyperHDR frames: 0 (FPS), receiv.: 0, good: 0, incompl.: 0, mem1' 2024-06-01T19:20:06.331Z [LEDDEVICE0_ADALIGHT] DETECTED DEVICE USING HyperSerialEsp8266/HyperSerialESP32/HyperSerialPico FIRMWARE (: 0, mem2: 448, heap: 123232 Welcome! Awa driver 9.) at 2 msec 2024-06-01T19:20:06.331Z [LEDDEVICE0_ADALIGHT] (LedDevice.cpp:64) Switch on 2024-06-01T19:20:06.331Z [LEDDEVICE0_ADALIGHT] (LedDevice.cpp:140) Power On 2024-06-01T19:20:06.331Z [LEDDEVICE0_ADALIGHT] (LedDevice.cpp:367) Starting timer with interval = 20ms 2024-06-01T19:20:06.331Z [COMPONENTCTRL0] LED device: enabled 2024-06-01T19:20:06.331Z [SMOOTHING0] Using alternative smoothing input (0) 2024-06-01T19:20:06.372Z [SMOOTHING0] Using alternative smoothing procedure (0) 2024-06-01T19:20:06.411Z [MUXER0] Priority 245 is now active 2024-06-01T19:20:06.411Z [MUXER0] Set visible priority to 245 2024-06-01T19:20:06.411Z [HYPERHDR0] New priority[245], previous [255] 2024-06-01T19:20:06.411Z [HYPERHDR0] New source available -> switch LED-Device on 2024-06-01T19:20:06.411Z [SMOOTHING0] Clearing queued colors before: enabling 2024-06-01T19:20:06.411Z [SMOOTHING0] Smoothing queue is cleared 2024-06-01T19:20:06.411Z [COLORSPACE_CALIBRATION0] (ColorSpaceCalibration.cpp:225) setBackLightEnabled: 1 2024-06-01T19:20:06.412Z [LEDDEVICE0_ADALIGHT] (LedDevice.cpp:247) Enable the device 2024-06-01T19:20:06.412Z [SMOOTHING0] Using alternative smoothing input (0) 2024-06-01T19:20:06.453Z [SMOOTHING0] Using alternative smoothing procedure (0) 2024-06-01T19:20:07.009Z [IMAGETOLED_MNG0] Total index number is: 33420 (memory: 33420). User sparse processing is: disabled, image size: 480 x 270, area number: 112 2024-06-01T19:20:08.089Z [MACOS_SYSTEM:AUTO] Lost connection to the display or user didn't grant access rights 2024-06-01T19:20:08.089Z [MACOS_SYSTEM:AUTO] Stopped 2024-06-01T19:20:08.089Z [MACOS_SYSTEM:AUTO] (macOsGrabber.mm:101) Uninit grabber: Display id: 2 2024-06-01T19:20:08.793Z [MUXER0] Priority 245 is now inactive 2024-06-01T19:20:08.793Z [MUXER0] Set visible priority to 255 2024-06-01T19:20:08.793Z [HYPERHDR0] New priority[255], previous [245] 2024-06-01T19:20:08.793Z [HYPERHDR0] No source left -> switch LED-Device off 2024-06-01T19:20:08.793Z [SMOOTHING0] Clearing queued colors before: disabling 2024-06-01T19:20:08.793Z [SMOOTHING0] Smoothing queue is cleared 2024-06-01T19:20:08.793Z [COLORSPACE_CALIBRATION0] (ColorSpaceCalibration.cpp:225) setBackLightEnabled: 0 2024-06-01T19:20:08.793Z [LEDDEVICE0_ADALIGHT] (LedDevice.cpp:297) Disable the device 2024-06-01T19:20:08.793Z [LEDDEVICE0_ADALIGHT] (LedDevice.cpp:381) Stopping refresh timer 2024-06-01T19:20:08.794Z [LEDDEVICE0_ADALIGHT] (LedDevice.cpp:90) Switch off 2024-06-01T19:20:08.794Z [LEDDEVICE0_ADALIGHT] (LedDevice.cpp:544) Set LED strip to black/power off 2024-06-01T19:20:08.794Z [LEDDEVICE0_ADALIGHT] (ProviderSerial.cpp:146) Flush was successful 2024-06-01T19:20:08.804Z [LEDDEVICE0_ADALIGHT] Received goodbye: 'HyperHDR frames: 45 (FPS), receiv.: 45, good: 45, incompl.: 0, mem1: 0, mem2: 448, heap: 123232 ' (97) 2024-06-01T19:20:08.819Z [LEDDEVICE0_ADALIGHT] (ProviderSerial.cpp:164) Serial port is closed: cu.usbmodem2401 2024-06-01T19:20:08.819Z [COMPONENTCTRL0] LED device: disabled
awawa-dev commented 5 months ago

Thank you. So the sleep handler seems correct, but something is wrong with the wake-up permissions and auto-resume doesnt work. I recently fixed one bug (incorrect thread affiliation when calling) in https://github.com/awawa-dev/HyperHDR/pull/852, which may be related to the problem. Can you test the installer from this build: https://github.com/awawa-dev/HyperHDR/actions/runs/9308928835

Gregor1980 commented 5 months ago

Unfortunately, this issue also occurs in this version (Apple_macOS_arm64_M1_M2_DMG_installer). The behavior of the HyperHdr program is just as faulty when waking up the computer.

Gregor1980 commented 5 months ago

logs:

Wake Up ! 2024-06-01T20:06:26.607Z [HYPER_MANAGER] The system is going to wake up 2024-06-01T20:06:29.758Z [COMPONENTCTRL0] (ComponentController.cpp:73) Enabling HyperHDR instance: recovering previuosly saved component states 2024-06-01T20:06:29.758Z [SMOOTHING0] Clearing queued colors before: enabling 2024-06-01T20:06:29.758Z [SMOOTHING0] Smoothing queue is cleared 2024-06-01T20:06:29.758Z [COMPONENTCTRL0] Smoothing: enabled 2024-06-01T20:06:29.758Z [COMPONENTCTRL0] Blackborder detector: enabled 2024-06-01T20:06:29.758Z [LEDDEVICE0_ADALIGHT] Ignoring user LED refresh rate. Forcing smoothing refresh rate = 50.00 Hz 2024-06-01T20:06:29.758Z [LEDDEVICE0_ADALIGHT] (LedDevice.cpp:423) Refresh rate = 50.00 Hz 2024-06-01T20:06:29.758Z [LEDDEVICE0_ADALIGHT] (LedDevice.cpp:373) Device is not ready to start a timer 2024-06-01T20:06:29.758Z [MUXER0] Register new input 'System/VIDEOGRABBER' with priority 240 as inactive 2024-06-01T20:06:29.758Z [COMPONENTCTRL0] Video capture device: enabled 2024-06-01T20:06:29.758Z [LEDDEVICE0_ADALIGHT] (LedDevice.cpp:433) Refresh interval updated to 20ms 2024-06-01T20:06:29.758Z [LEDDEVICE0_ADALIGHT] (LedDevice.cpp:448) LED refresh interval adjustment caused by smoothing configuration change to 20ms (proposed: 20ms) 2024-06-01T20:06:29.758Z [MUXER0] Register new input 'System/SYSTEMGRABBER' with priority 245 as inactive 2024-06-01T20:06:29.758Z [COMPONENTCTRL0] System capture device: enabled 2024-06-01T20:06:29.758Z [MACOS AVF:AUTO] Multithreading for AVF is enabled. Available thread's count 4 2024-06-01T20:06:29.758Z [MACOS AVF:AUTO] (AVFGrabber.mm:408) Searching for devices... 2024-06-01T20:06:29.758Z [SMOOTHING0] Clearing queued colors before: enabling 2024-06-01T20:06:29.758Z [SMOOTHING0] Smoothing queue is cleared 2024-06-01T20:06:29.758Z [LEDDEVICE0_ADALIGHT] (LedDevice.cpp:247) Enable the device 2024-06-01T20:06:29.758Z [LEDDEVICE0_ADALIGHT] Opening UART: cu.usbmodem2401 2024-06-01T20:06:29.758Z [COMPONENTCTRL0] HyperHDR: enabled 2024-06-01T20:06:29.758Z [LEDDEVICE0_ADALIGHT] (ProviderSerial.cpp:209) _serialPort.open(QIODevice::ReadWrite): cu.usbmodem2401, Baud rate [2000000]bps 2024-06-01T20:06:29.758Z [MACOS_SYSTEM:AUTO] (macOsGrabber.mm:110) init 2024-06-01T20:06:29.758Z [MACOS_SYSTEM:AUTO] Started 2024-06-01T20:06:29.758Z [MACOS AVF:AUTO] (AVFGrabber.mm:256) Forcing auto discovery device 2024-06-01T20:06:29.758Z [MACOS AVF:AUTO] Could not find any capture device 2024-06-01T20:06:29.760Z [LEDDEVICE0_ADALIGHT] (ProviderSerial.cpp:214) portName: cu.usbmodem2401 2024-06-01T20:06:29.760Z [LEDDEVICE0_ADALIGHT] (ProviderSerial.cpp:215) systemLocation: /dev/cu.usbmodem2401 2024-06-01T20:06:29.760Z [LEDDEVICE0_ADALIGHT] (ProviderSerial.cpp:216) description: Pico 2024-06-01T20:06:29.760Z [LEDDEVICE0_ADALIGHT] (ProviderSerial.cpp:217) manufacturer: Raspberry Pi 2024-06-01T20:06:29.760Z [LEDDEVICE0_ADALIGHT] (ProviderSerial.cpp:218) productIdentifier: 0xa 2024-06-01T20:06:29.760Z [LEDDEVICE0_ADALIGHT] (ProviderSerial.cpp:219) vendorIdentifier: 0x2e8a 2024-06-01T20:06:29.760Z [LEDDEVICE0_ADALIGHT] (ProviderSerial.cpp:220) serialNumber: E66141040377B639 2024-06-01T20:06:29.790Z [LEDDEVICE0_ADALIGHT] Detected Rp2040 type board. HyperHDR skips the reset. State: 1, 1 2024-06-01T20:06:29.794Z [LEDDEVICE0_ADALIGHT] ESP sent: 'HyperHDR frames: 0 (FPS), receiv.: 0, good: 0, incompl.: 0, mem1' 2024-06-01T20:06:29.794Z [LEDDEVICE0_ADALIGHT] DETECTED DEVICE USING HyperSerialEsp8266/HyperSerialESP32/HyperSerialPico FIRMWARE (: 0, mem2: 448, heap: 123232 Welcome! Awa driver 9.) at 2 msec 2024-06-01T20:06:29.794Z [LEDDEVICE0_ADALIGHT] (LedDevice.cpp:64) Switch on 2024-06-01T20:06:29.794Z [LEDDEVICE0_ADALIGHT] (LedDevice.cpp:140) Power On 2024-06-01T20:06:29.794Z [LEDDEVICE0_ADALIGHT] (LedDevice.cpp:367) Starting timer with interval = 20ms 2024-06-01T20:06:29.794Z [COMPONENTCTRL0] LED device: enabled 2024-06-01T20:06:29.795Z [SMOOTHING0] Using alternative smoothing input (0) 2024-06-01T20:06:29.836Z [SMOOTHING0] Using alternative smoothing procedure (0) 2024-06-01T20:06:29.878Z [MUXER0] Priority 245 is now active 2024-06-01T20:06:29.878Z [MUXER0] Set visible priority to 245 2024-06-01T20:06:29.878Z [HYPERHDR0] New priority[245], previous [255] 2024-06-01T20:06:29.878Z [HYPERHDR0] New source available -> switch LED-Device on 2024-06-01T20:06:29.878Z [SMOOTHING0] Clearing queued colors before: enabling 2024-06-01T20:06:29.878Z [SMOOTHING0] Smoothing queue is cleared 2024-06-01T20:06:29.878Z [LEDDEVICE0_ADALIGHT] (LedDevice.cpp:247) Enable the device 2024-06-01T20:06:29.878Z [COLORSPACE_CALIBRATION0] (ColorSpaceCalibration.cpp:224) setBackLightEnabled: 1 2024-06-01T20:06:29.878Z [SMOOTHING0] Using alternative smoothing input (0) 2024-06-01T20:06:29.916Z [SMOOTHING0] Using alternative smoothing procedure (0) 2024-06-01T20:06:30.067Z [MACOS_SYSTEM:AUTO] Lost connection to the display or user didn't grant access rights 2024-06-01T20:06:30.069Z [MACOS_SYSTEM:AUTO] Stopped 2024-06-01T20:06:30.069Z [MACOS_SYSTEM:AUTO] (macOsGrabber.mm:100) Uninit grabber: Display id: 2 2024-06-01T20:06:31.406Z [MUXER0] Priority 245 is now inactive 2024-06-01T20:06:31.406Z [MUXER0] Set visible priority to 255 2024-06-01T20:06:31.406Z [HYPERHDR0] New priority[255], previous [245] 2024-06-01T20:06:31.406Z [HYPERHDR0] No source left -> switch LED-Device off 2024-06-01T20:06:31.406Z [SMOOTHING0] Clearing queued colors before: disabling 2024-06-01T20:06:31.406Z [SMOOTHING0] Smoothing queue is cleared 2024-06-01T20:06:31.406Z [COLORSPACE_CALIBRATION0] (ColorSpaceCalibration.cpp:224) setBackLightEnabled: 0 2024-06-01T20:06:31.406Z [LEDDEVICE0_ADALIGHT] (LedDevice.cpp:297) Disable the device 2024-06-01T20:06:31.406Z [LEDDEVICE0_ADALIGHT] (LedDevice.cpp:381) Stopping refresh timer 2024-06-01T20:06:31.406Z [LEDDEVICE0_ADALIGHT] (LedDevice.cpp:90) Switch off 2024-06-01T20:06:31.406Z [LEDDEVICE0_ADALIGHT] (LedDevice.cpp:544) Set LED strip to black/power off 2024-06-01T20:06:31.406Z [LEDDEVICE0_ADALIGHT] (ProviderSerial.cpp:146) Flush was successful 2024-06-01T20:06:31.417Z [LEDDEVICE0_ADALIGHT] Received goodbye: 'HyperHDR frames: 0 (FPS), receiv.: 0, good: 0, incompl.: 0, mem1: 0, mem2: 448, heap: 123232 ' (94) 2024-06-01T20:06:31.446Z [LEDDEVICE0_ADALIGHT] (ProviderSerial.cpp:164) Serial port is closed: cu.usbmodem2401 2024-06-01T20:06:31.447Z [COMPONENTCTRL0] LED device: disabled 2024-06-01T20:06:42.061Z [WEBSOCKET] (WebSocketClient.cpp:40) New connection from ::1 2024-06-01T20:06:43.871Z [WEBSOCKET] (HyperAPI.cpp:955) log streaming activated for client ::1
awawa-dev commented 5 months ago

I cannot reproduce the problem on my Sonoma setup using latest HyperHDR v21alpha0. Logs:

``` 2024-06-02T15:53:15.353Z [HYPER_MANAGER] The system is going to sleep 2024-06-02T15:53:15.353Z [COMPONENTCTRL0] (ComponentController.cpp:47) Disabling HyperHDR instance: saving current component states first 2024-06-02T15:53:15.353Z [SMOOTHING0] Clearing queued colors before: disabling 2024-06-02T15:53:15.353Z [SMOOTHING0] Smoothing queue is cleared 2024-06-02T15:53:15.353Z [SMOOTHING0] Clearing queued colors before: disabling 2024-06-02T15:53:15.353Z [LEDDEVICE0_FILE] (LedDevice.cpp:297) Disable the device 2024-06-02T15:53:15.353Z [SMOOTHING0] Smoothing queue is cleared 2024-06-02T15:53:15.353Z [LEDDEVICE0_FILE] (LedDevice.cpp:381) Stopping refresh timer 2024-06-02T15:53:15.353Z [COMPONENTCTRL0] Smoothing: disabled 2024-06-02T15:53:15.353Z [LEDDEVICE0_FILE] (LedDevice.cpp:90) Switch off 2024-06-02T15:53:15.354Z [LEDDEVICE0_FILE] (LedDevice.cpp:126) Power Off 2024-06-02T15:53:15.354Z [MUXER0] Removed source priority 245 2024-06-02T15:53:15.354Z [LEDDEVICE0_FILE] (LedDevice.cpp:544) Set LED strip to black/power off 2024-06-02T15:53:15.354Z [MUXER0] Set visible priority to 255 2024-06-02T15:53:15.354Z [LEDDEVICE0_FILE] (LedDeviceFile.cpp:86) File: /dev/null 2024-06-02T15:53:15.354Z [HYPERHDR0] New priority[255], previous [245] 2024-06-02T15:53:15.354Z [LEDDEVICE0_FILE] (LedDevice.cpp:433) Refresh interval updated to 0ms 2024-06-02T15:53:15.354Z [HYPERHDR0] No source left -> switch LED-Device off 2024-06-02T15:53:15.354Z [LEDDEVICE0_FILE] (LedDevice.cpp:448) LED refresh interval adjustment caused by smoothing configuration change to 0ms (proposed: 0ms) 2024-06-02T15:53:15.354Z [SMOOTHING0] Clearing queued colors before: disabling 2024-06-02T15:53:15.355Z [SMOOTHING0] Smoothing queue is cleared 2024-06-02T15:53:15.355Z [COLORSPACE_CALIBRATION0] (ColorSpaceCalibration.cpp:224) setBackLightEnabled: 0 2024-06-02T15:53:15.355Z [LEDDEVICE0_FILE] (LedDevice.cpp:297) Disable the device 2024-06-02T15:53:15.355Z [COMPONENTCTRL0] System capture device: disabled 2024-06-02T15:53:15.356Z [COMPONENTCTRL0] (ComponentController.cpp:66) Disabling HyperHDR instance: preparations completed 2024-06-02T15:53:15.356Z [COMPONENTCTRL0] LED device: disabled 2024-06-02T15:53:15.356Z [LEDDEVICE0_FILE] (LedDevice.cpp:214) Saving retryTimer (interval: 0) 2024-06-02T15:53:15.434Z [MACOS_SYSTEM:AUTO] Stopped 2024-06-02T15:53:25.334Z [HYPER_MANAGER] The system is going to wake up 2024-06-02T15:53:28.486Z [COMPONENTCTRL0] (ComponentController.cpp:73) Enabling HyperHDR instance: recovering previuosly saved component states 2024-06-02T15:53:28.486Z [SMOOTHING0] Clearing queued colors before: enabling 2024-06-02T15:53:28.486Z [SMOOTHING0] Smoothing queue is cleared 2024-06-02T15:53:28.487Z [LEDDEVICE0_FILE] (LedDevice.cpp:423) Refresh rate = 50.00 Hz 2024-06-02T15:53:28.487Z [COMPONENTCTRL0] Smoothing: enabled 2024-06-02T15:53:28.487Z [LEDDEVICE0_FILE] (LedDevice.cpp:373) Device is not ready to start a timer 2024-06-02T15:53:28.487Z [MUXER0] Register new input 'System/SYSTEMGRABBER' with priority 245 as inactive 2024-06-02T15:53:28.487Z [LEDDEVICE0_FILE] (LedDevice.cpp:433) Refresh interval updated to 20ms 2024-06-02T15:53:28.487Z [COMPONENTCTRL0] System capture device: enabled 2024-06-02T15:53:28.487Z [LEDDEVICE0_FILE] (LedDevice.cpp:448) LED refresh interval adjustment caused by smoothing configuration change to 20ms (proposed: 20ms) 2024-06-02T15:53:28.488Z [SMOOTHING0] Clearing queued colors before: enabling 2024-06-02T15:53:28.488Z [MACOS_SYSTEM:AUTO] (macOsGrabber.mm:110) init 2024-06-02T15:53:28.488Z [SMOOTHING0] Smoothing queue is cleared 2024-06-02T15:53:28.488Z [MACOS_SYSTEM:AUTO] Started 2024-06-02T15:53:28.488Z [COMPONENTCTRL0] HyperHDR: enabled 2024-06-02T15:53:28.488Z [LEDDEVICE0_FILE] (LedDevice.cpp:247) Enable the device 2024-06-02T15:53:28.488Z [LEDDEVICE0_FILE] (LedDeviceFile.cpp:56) Open filename: /dev/null 2024-06-02T15:53:28.488Z [LEDDEVICE0_FILE] (LedDeviceFile.cpp:60) QIODevice::WriteOnly, /dev/null 2024-06-02T15:53:28.489Z [LEDDEVICE0_FILE] (LedDevice.cpp:64) Switch on 2024-06-02T15:53:28.489Z [LEDDEVICE0_FILE] (LedDevice.cpp:140) Power On 2024-06-02T15:53:28.489Z [LEDDEVICE0_FILE] (LedDevice.cpp:367) Starting timer with interval = 20ms 2024-06-02T15:53:28.489Z [COMPONENTCTRL0] LED device: enabled 2024-06-02T15:53:28.490Z [SMOOTHING0] Using alternative smoothing input (0) 2024-06-02T15:53:28.530Z [SMOOTHING0] Using alternative smoothing procedure (0) 2024-06-02T15:53:28.608Z [MUXER0] Priority 245 is now active 2024-06-02T15:53:28.608Z [MUXER0] Set visible priority to 245 2024-06-02T15:53:28.608Z [HYPERHDR0] New priority[245], previous [255] 2024-06-02T15:53:28.608Z [HYPERHDR0] New source available -> switch LED-Device on 2024-06-02T15:53:28.608Z [SMOOTHING0] Clearing queued colors before: enabling 2024-06-02T15:53:28.608Z [SMOOTHING0] Smoothing queue is cleared 2024-06-02T15:53:28.609Z [COLORSPACE_CALIBRATION0] (ColorSpaceCalibration.cpp:224) setBackLightEnabled: 1 2024-06-02T15:53:28.609Z [LEDDEVICE0_FILE] (LedDevice.cpp:247) Enable the device 2024-06-02T15:53:28.609Z [SMOOTHING0] Using alternative smoothing input (0) 2024-06-02T15:53:28.630Z [SMOOTHING0] Using alternative smoothing procedure (0) 2024-06-02T15:54:33.918Z [PERFORMANCE] [INSTANCE0: FPS = 10.00, processed = 600], [LED0: FPS = 50.00, send = 3000, processed = 3000, dropped = 0] ```
awawa-dev commented 5 months ago

Anyway, I added a new feature for the macOS grabber: auto-resume, so it should solve situations like yours You can install this build and let me know if it solves the problem:

https://github.com/awawa-dev/HyperHDR/actions/runs/9339273352

Gregor1980 commented 5 months ago

Thank you very much! Your improvement has solved the problem. Thank you for all your work on this project. The project is incredible!