RTC Alarm trigger wakeup

  • Board: Luckfox Pico Pi A/W (RV1106G3)
    Issue: echo mem > /sys/power/state suspends the board, but it never wakes up after setting an RTC alarm.
    Question: Does the board support RTC alarm as a wakeup trigger?
  • Hello, we haven't tested the RTC wake-up function yet. You can refer to the implementation of AOV for guidance.viewtopic.php?p=5898&hilit=AOV#p5898
  • Thank you for your support. Could you please confirm whether the Luckfox Pico Pi A W RV1106G3 board supports wake-up via RTC alarm when in memory suspend (mem) mode?

    We are currently encountering issues with this process. Despite setting an alarm for 1 minute, the board does not wake up from mem suspend mode.
    Below is the sequence of commands we have used:

    1. Get the current time:
    date +%s
    expr $(date +%s) + 60
    2. Clear any existing alarm:
    echo 0 > /sys/class/rtc/rtc0/wakealarm
    3. Set a new alarm 60 seconds in the future:
    echo 1758691507 > /sys/class/rtc/rtc0/wakealarm
    4. Confirm the alarm and enter memory suspend:
    cat /proc/driver/rtc
    echo mem > /sys/power/state

    We tried to solve that issue for this we check SDK github and wiki but we didn't get any resource.
    Could you kindly try triggering an RTC wake-up alarm on your side to verify if this functionality is supported? This will help us determine whether the issue is board-specific or related to our procedure.
  • I have verified that the command you provided also fails to wake up the device. Currently, according to the documentation of Rockchip, only the description of GPIO interrupt-based wake-up is mentioned. The RTC wakealarm is also an interrupt and it is uncertain whether additional configuration is required for the kernel to support it.
    In principle, we do not assist with the verification work for the secondary development. For more details, please confirm on your own.
  • Kindly guide us to solve that rtc alarm trigger wakeup issue.
  • Please visit https://wiki.luckfox.com/intro/ to clearly understand our technical support scope. For any content outside this scope, we can only offer suggestions.
  • Thank you.
    We are using the PCF8563 RTC module and have enabled its corresponding driver. We tested the RTC alarm-triggered wake-up functionality on the Luckfox Pico Pi A W (RV1106G3) board.
    The system successfully wakes up; however, we observed that the RTC interrupt is not triggered at the expected time — the wake-up occurs approximately 30 seconds or more after the scheduled alarm time. We verified this behavior by monitoring the INT pin of the RTC module using a multimeter.
    Could you please confirm whether the RTC driver has been fully tested on this board, particularly with respect to alarm interrupt timing and wake-up functionality?
  • We have not verified the PCF8563 RTC on RV1103/RV1106, so we cannot offer any assistance. At present, it seems that waking up can only be achieved through GPIO interrupts. From the source code, it can be seen that the RTC driver has enabled the wake-up-related options. There will also be relevant kernel prints when the specified time arrives. However, it is still impossible to wake up in the sleep state. The RTC clock is maintained in the sleep state. It is possible that the chip design itself does not support RTC wake-up.
    From the AOV solution, Rockchip does not use the RTC method either. Instead, it writes a special register. We do not have the AOV SDK or any development plans for this. If you really have this requirement, we recommend applying for support from Rockchip's FAE. The technical support scope we can provide has been explained to you in the previous answer.
  • Hello,

    Could you please provide an update regarding the internal board RTC wake-up alarm trigger?

    Thank you.