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

# 监控挂起电源管理

挂起(Suspend)状态是 APSS 中最深的睡眠状态,所有用户空间进程被冻结,驱动程序释放其资源。在挂起状态期间,所有核心进入 C4 状态,随后进入 AOSD 睡眠状态。

用户空间模块可以使用以下命令配置挂起状态:

`echo s2idle > /sys/power/mem_sleep`

## **触发挂起的方式**

1. 断开 type-c USB,并使用 PuTTY 运行以下命令。

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

2. 通过 USB 使用 ADB 运行以下命令,并立即断开 USB 连接。

```text theme={null}
nohup sh -c 'sleep 10 && systemctl suspend ' >/dev/null 2>&1 &
```

3. 要同时触发挂起和恢复,请断开 USB 并使用 PuTTY 运行以下命令:

**注意**
IQ-9075 不支持 RTC 唤醒。

```text theme={null}
rtcwake -d /dev/rtc0 -m no -s 30 && systemctl suspend
```

## **验证挂起统计信息**

要检查挂起统计信息,请运行以下命令:

```text theme={null}
cd /sys/power/suspend_stats
cat success
cat fail
```

成功计数表示 APSS 成功进入挂起状态的次数,而失败计数表示 APSS 未能进入挂起状态的次数。

## **后续步骤**

* [SoC 睡眠验证 →](SoC-Sleep-Validation)
