Linux command
sensors-detect 命令
安全
权限或系统影响较大,执行前请核对目标。
常用示例
Run interactively
sudo sensors-detect
Run in automatic mode
sudo sensors-detect --auto
Display I2C address statistics
sudo sensors-detect --stat
说明
sensors-detect is an interactive program that scans your system for hardware monitoring chips (sensors) supported by libsensors and the lm_sensors tool suite. It systematically searches for: 1. Sensors embedded in CPUs, south bridges, and memory controllers 2. Sensors embedded in Super I/O chips 3. Hardware monitoring chips accessed through ISA I/O ports 4. Hardware monitoring chips reachable over SMBus or I2C buses After detection, sensors-detect recommends which kernel modules need to be loaded and can optionally add them to /etc/modules for automatic loading at boot. The detected sensors can then be read using the sensors command. The program typically skips the last two detection steps if a Super I/O chip with complete hardware monitoring features is found, though users can request full detection if desired.
参数
- --auto
- Run in automatic, non-interactive mode. Assumes default answers to all questions. Use with caution as this may lead to potentially dangerous hardware probes.
- --stat
- Display I2C address statistics.
FAQ
What is the sensors-detect command used for?
sensors-detect is an interactive program that scans your system for hardware monitoring chips (sensors) supported by libsensors and the lm_sensors tool suite. It systematically searches for: 1. Sensors embedded in CPUs, south bridges, and memory controllers 2. Sensors embedded in Super I/O chips 3. Hardware monitoring chips accessed through ISA I/O ports 4. Hardware monitoring chips reachable over SMBus or I2C buses After detection, sensors-detect recommends which kernel modules need to be loaded and can optionally add them to /etc/modules for automatic loading at boot. The detected sensors can then be read using the sensors command. The program typically skips the last two detection steps if a Super I/O chip with complete hardware monitoring features is found, though users can request full detection if desired.
How do I run a basic sensors-detect example?
Run `sudo sensors-detect` in a terminal, then adjust file names, paths, flags, or remote targets for your system.
What does --auto do in sensors-detect?
Run in automatic, non-interactive mode. Assumes default answers to all questions. Use with caution as this may lead to potentially dangerous hardware probes.