Skip to content

HyperHdr not work after wake up #868

@Gregor1980

Description

@Gregor1980

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

  • 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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions