HyperHdr not work after wake up
Gregor1980 opened this issue · comments
Bug report
Steps to reproduce
- Install the latest version of HyperHDR on a Mac Mini M2.
- Connect LEDs through a Pimoroni Plasma RP2040 via USB to the Mac.
- Use the 'System screen capture' feature in HyperHDR.
- Put the computer to sleep.
- 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
- Mac Mini Model: M2
- macOS version: Sonoma 14.5
- HyperHDR version: v20.0.0.0
- Hardware configuration: Pimoroni Plasma RP2040 connected via USB
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.
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
Logs:
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
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 #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
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.
logs:
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
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]
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
Thank you very much! Your improvement has solved the problem. Thank you for all your work on this project. The project is incredible!