first commit

This commit is contained in:
jack
2026-04-04 15:32:51 +08:00
commit a862314d94
34 changed files with 10253 additions and 0 deletions

View File

@@ -0,0 +1,25 @@
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 初始化