Files
Power-off-analysis/linux_collect_sensors_使用说明.txt
2026-04-04 15:32:51 +08:00

26 lines
844 B
Plaintext
Executable File
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
Linux 传感器收集脚本使用说明
====================================
脚本: linux_collect_sensors.sh
用途: 在 Linux 下收集热区、hwmon、lm-sensors、ectool如有、dmesg 等信息
适用: 通用 LinuxUbuntu、Debian 等),以及 Chromebox 安装的 Linux 发行版
步骤:
1. chmod +x linux_collect_sensors.sh
2. ./linux_collect_sensors.sh
输出: /tmp/sensor_report_YYYYMMDD_HHMMSS.txt或当前目录
收集内容:
- /sys/class/thermal: ACPI 热区温度
- /sys/class/hwmon: Linux hwmon 设备及温度
- lm-sensors (sensors): 若已安装
- ectool: 若为 Chromebox 且有 ectoolChrome EC
- dmesg: thermal/hwmon/cros_ec/sensor/peci 相关日志
- CPU 型号
可选安装:
- lm-sensors: apt install lm-sensors # Debian/Ubuntu
- 安装后执行 sensors-detect 初始化