← 返回命令列表

Linux command

powertop 命令

安全

权限或系统影响较大,执行前请核对目标。

常用示例

Calibrate

sudo powertop --calibrate

Example

sudo powertop --html=[report.html]

Auto-tune

sudo powertop --auto-tune

Example

sudo powertop --time=[60]

说明

powertop analyzes system power consumption and suggests optimizations. It identifies power-hungry processes, devices, and kernel settings, providing actionable recommendations. The interactive mode shows real-time power usage breakdown. Reports can identify specific software or hardware causing excessive power drain on laptops.

参数

--calibrate
Calibrate power measurement (cycles display states)
--html _file_
Generate HTML report
--auto-tune
Apply all suggested power optimizations
--time _seconds_
Measurement duration (default: 20)
--csv _file_
Generate CSV report
--iteration _num_
Number of iterations

FAQ

What is the powertop command used for?

powertop analyzes system power consumption and suggests optimizations. It identifies power-hungry processes, devices, and kernel settings, providing actionable recommendations. The interactive mode shows real-time power usage breakdown. Reports can identify specific software or hardware causing excessive power drain on laptops.

How do I run a basic powertop example?

Run `sudo powertop --calibrate` in a terminal, then adjust file names, paths, flags, or remote targets for your system.

What does --calibrate do in powertop?

Calibrate power measurement (cycles display states)