跳转至内容

硬件探测

来自 ArchWiki

hw-probe (硬件探测) 是一个 Perl 程序,它能够

  • 收集来自多个实用程序的输出——例如 lspci(8)hwinfo(8)——以及一些其他日志,
  • 分析收集到的数据
    • 检查驱动程序是否已加载,
    • 检查驱动程序或硬件的可操作性状态(部分),
  • 进行基准测试(快速且简单)——通过使用 7-Ziphdparm 等若干工具,
  • 将这些信息贡献给 Linux 硬件数据库

基于该数据库数据(包括当前和历史数据)的统计信息可以在 Trends 页面查看。

安装

安装 hw-probeAUR 软件包。其他可能有用的一些软件包:

用法

提示 hw-probe 没有 man 手册页。请查看 hw-probe --help 的输出、项目的 README 以及 源代码

进行探测

# hw-probe --all --upload

解码 ACPI 表(需要 acpica 软件包)

# hw-probe --all --upload --decode-acpi

基准测试

特定基准测试选项

  • --check-7z — 使用 7z b 测试 CPU 和 RAM,
  • --check-cpu — 通过对来自 dd(1) 的 512 MB 零数据运行 md5sum(1) 来测试 CPU,
  • --check-graphics — 使用 glxgears 测试 GPU,
  • --check-hdd — 使用 hdparm(8) § t 测试存储设备,
  • --limit-check-hdd=number — 限制被测试的驱动器 数量——即仅测试前 number 个驱动器,
  • 这些特定的基准测试选项没有列在 hw-probe --help 的输出中,但其中大部分在 README 的 Operability 章节中有所提及。
  • 如果某些测试工具(例如 memtesterglxgears)在您的系统中不存在,hw-probe 将静默跳过其使用且不显示任何通知,即使使用了 --list 选项。

执行上述所有基准测试,包括 7-Zip 测试

# hw-probe --check-extended

参见

© . This site is unofficial and not affiliated with Arch Linux.

Content is available under GNU Free Documentation License 1.3 or later unless otherwise noted.