> ## Documentation Index
> Fetch the complete documentation index at: https://dragonwingdocs.qualcomm.com/llms.txt
> Use this file to discover all available pages before exploring further.

# SoC 休眠验证

按照此流程确认 SoC 在挂起（suspend）期间是否切换到预期的低功耗休眠状态。

<Tabs>
  <Tab title="QCS6490/QCS5430">
    <img src="https://mintcdn.com/qualcomm-prod/OKFyShYzKWv2bmj8/System/Power/media/k2c-perf/power_debug.png?fit=max&auto=format&n=OKFyShYzKWv2bmj8&q=85&s=59c482a5eef8f17573c5ffa402fa9c19" alt="功耗调试" width="1066" height="700" data-path="System/Power/media/k2c-perf/power_debug.png" />

    **图：SoC 休眠进入工作流程**

    <br />

    **前提条件**

    1. 注册并登录 Renesas 网站。登录后，从 [Renesas UPD720201 Software & Tools](https://www.renesas.com/en/products/upd720201?tab=software-tools) 页面下载固件。

    2. 解压下载的固件包，并将 `K2026090` 文件夹重命名为 `renesas_usb_fw`。

    3. 将固件包推送到目标设备：

       ```text theme={null}
       adb push renesas_usb_fw.mem /usr/lib/firmware
       ```

    4. 配置以太网：

       ```text theme={null}
       echo -n "staging" > /var/data
       ```

       ```text theme={null}
       efivar -n 882f8c2b-9646-435f-8de5-f208ff80c1bd-VendorDtbOverlays \
         -w -f /var/data
       ```

       ```text theme={null}
       sync && reboot
       ```

    **挂起流程**

    1. 设置挂起模式：

       ```text theme={null}
       echo s2idle > /sys/power/mem_sleep
       ```

    2. 从串口控制台或 adb shell 绑定 Renesas USB 控制器：

       ```text theme={null}
       echo "0001:04:00.0" > /sys/bus/pci/drivers/xhci-pci-renesas/bind
       ```

    3. 断开 Type-C USB 线缆。

    4. 触发挂起：

       ```text theme={null}
       systemctl suspend
       ```

    5. 等待几秒钟，然后重新连接 Type-C USB 线缆。

    <br />

    **验证 SoC 休眠进入**

    AOSD 是最低的 SoC 休眠状态。使用[验证片上系统休眠状态 →](system-on-chip-sleep-states)中提供的命令验证 AOSD 休眠计数。

    **支持的休眠唤醒源**

    支持以下唤醒源将设备从 SoC 休眠中恢复：

    1. USB Type-C
    2. 电源键
    3. RTC 闹钟
  </Tab>

  <Tab title="IQ-9075">
    CX SD/AOSD 不适用 <br />
    CPU suspend 是支持的最低休眠状态
  </Tab>

  <Tab title="IQ-8275">
    CX SD/AOSD 不适用 <br />
    CPU suspend 是支持的最低休眠状态
  </Tab>
</Tabs>
