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

# SoC 睡眠验证

按照此流程确认 SoC 在挂起期间转换到预期的低功耗睡眠状态。

<Tabs>
  <Tab title="QCS6490/QCS5430">
    <img src="https://mintcdn.com/qualcomm-staging/uWQLnBcS9sxlZhgB/System/Power/media/k2c-perf/power_debug.png?fit=max&auto=format&n=uWQLnBcS9sxlZhgB&q=85&s=730237c004ffc25f242c0c6a54399cc1" 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 挂起是支持的最低睡眠状态
  </Tab>

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