← 返回命令列表

Linux command

powertop2tuned 命令

安全

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

常用示例

Generate a new profile

sudo powertop2tuned [my_powersave]

Generate a profile from an existing

sudo powertop2tuned -i [/path/to/powertop.html] [my_powersave]

Output the profile

sudo powertop2tuned -o [/etc/tuned/my_profile] [my_powersave]

Create a fresh profile

sudo powertop2tuned -n [my_powersave]

Merge

sudo powertop2tuned -m [balanced] [my_powersave]

Enable all

sudo powertop2tuned -e [my_powersave]

Force-overwrite

sudo powertop2tuned -f [my_powersave]

说明

powertop2tuned turns the recommendations produced by PowerTOP into a runnable TuneD profile, bridging the two tools so that the savings PowerTOP discovers can be applied permanently and rolled back like any other TuneD profile. The utility runs PowerTOP under the hood (or reads an existing HTML report supplied with -i), parses each "Tunable" entry, and emits a profile directory containing a tuned.conf file plus a helper shell script. By default the resulting profile inherits from the currently-active TuneD profile so that base optimisations are preserved; --new-profile creates a stand-alone profile and --merge-profile lets you pick a different parent. For safety, every PowerTOP recommendation is initially commented out in the generated profile. The administrator is expected to review and uncomment only the lines that are appropriate for the target hardware. The --enable flag opts in to enabling all of them, except for ones that the script considers unsafe. The generated profile is activated like any other TuneD profile with tuned-adm profile _profile_name_.

参数

-i _FILE_, --input _FILE_
Use _FILE_ as PowerTOP HTML report instead of generating a new one.
-o _DIR_, --output _DIR_
Write the generated profile to _DIR_ (default: TuneD's user profile directory).
-n, --new-profile
Create a brand-new profile rather than merging with the active TuneD profile.
-m _PROFILE_, --merge-profile _PROFILE_
Merge with the named _PROFILE_ instead of the currently active one.
-f, --force
Overwrite the output directory if it already exists.
-e, --enable
Enable every tuning that PowerTOP suggests. Tunings considered harmful (like USB_AUTOSUSPEND) remain disabled.
-h, --help
Show usage and exit.

FAQ

What is the powertop2tuned command used for?

powertop2tuned turns the recommendations produced by PowerTOP into a runnable TuneD profile, bridging the two tools so that the savings PowerTOP discovers can be applied permanently and rolled back like any other TuneD profile. The utility runs PowerTOP under the hood (or reads an existing HTML report supplied with -i), parses each "Tunable" entry, and emits a profile directory containing a tuned.conf file plus a helper shell script. By default the resulting profile inherits from the currently-active TuneD profile so that base optimisations are preserved; --new-profile creates a stand-alone profile and --merge-profile lets you pick a different parent. For safety, every PowerTOP recommendation is initially commented out in the generated profile. The administrator is expected to review and uncomment only the lines that are appropriate for the target hardware. The --enable flag opts in to enabling all of them, except for ones that the script considers unsafe. The generated profile is activated like any other TuneD profile with tuned-adm profile _profile_name_.

How do I run a basic powertop2tuned example?

Run `sudo powertop2tuned [my_powersave]` in a terminal, then adjust file names, paths, flags, or remote targets for your system.

What does -i _FILE_, --input _FILE_ do in powertop2tuned?

Use _FILE_ as PowerTOP HTML report instead of generating a new one.