Powertop Auto Tune Systemd

Per rubo77's answer, I'm running powertop -auto-tune in /etc/rc.local and then undoing an unwanted default change. However, since the device I want to disable auto power control for is an external USB device that could potentially appear with a different /sys tree device number, I did a bit more scripting to dynamically identify it. You can use the -auto-tune feature from powertop which sets all tunable options to their GOOD setting. This can be combined with systemd service to have the tunables set on boot. Remember to enable/start the service.

Fks@thinkmad $ sudo powertop -auto-tune modprobe cpufreqstats failedLoaded 220 prior measurements RAPL device for cpu 0 RAPL Using PowerCap Sysfs: Domain Mask f. May 08, 2016 Automatic power saving on a Linux laptop with PowerTOP and systemd. The plan is to use the power of powertop ––auto-tune but I’ll then turn power saving. Automated Tuning with PowerTop. The command sudo powertop -auto-tune' will allow PowerTop to automatically tune power management based on it's recommendations. From a practical perspective, the best way to use PowerTops auto-tuning is with a systemd service. To create, start and enable a systemd service for PowerTop you can use the commands.

Powertop is a tool provided by Intel to enable various powersaving modes in userspace, kernel and hardware. It is possible to monitor processes and show which of them are utilizing the CPU and wake it from its Idle-States, allowing to identify applications with particular high power demands.

  • 2Usage
  • 3Troubleshooting

Powertop 2.5 introduced the auto-tune option: it would be nice to have it launched at boot with a systemd service Additional info:. package version(s): 2.5-1. config and/or log files etc. Steps to reproduce: run 'powertop -auto-tune' to set all tunables at GOOD at once. Power management aims at reducing operating costs for energy and cooling systems while at the same time keeping the performance of a system at a level that matches the current requirements.

Installation

Install the powertop package.

Usage

Powertop suggests a few methods to reduce the power consumption further. However, in interactive mode, powertop does not display the parameters. To find out which ones are suggested, proceed as follows:

Powertop Auto Tune System Requirements

  1. If you have changed parameters (e.g. in powertop), reboot so that the system has default state of the parameters.
  2. Use powertop to produce a report on parameters: # powertop --html=powerreport.html
  3. Open the report in your favorite web browser. The 'Tuning' tab of the report now shows the actual parameters suggested by the tool to apply to save power. You may extract the commands with awk -F '</?td ?>' '/tune/ { print $4 }' powerreport.html.

Apply settings

There are two ways to automatically apply the suggested settings:

  • Recommended: You can apply these settings at boot by using module parameters, udev rules and sysctl. For details, see the power management page.
  • You can use the --auto-tune feature from powertop which sets all tunable options to their GOOD setting. This can be combined with systemd service to have the tunables set on boot. Remember to enable/start the service.

Troubleshooting

Error: Cannot load from file

Powertop Auto-tune

If you receive an error like the following when starting powertop, it's likely that powertop has not collected enough measurement data yet. To fix this, keep powertop running for a certain time connected to battery power only.

Calibration to prevent inaccurate measurement

Powertop

Powertop Auto Tune Startup

If you experience inaccurate measurement, then it is likely that you need to calibrate powertop first. This can be done by running powertop with the --calibrate parameter.

Powertop Auto Tune System Parts

Note: Calibration will toggle various functions like backlight or wifi. Thus, it may turn your screen black for some time, lose your connection, and so on. Do not touch the machine during the calibration.

Antares Auto-tune

See also

Voice Changer

Retrieved from 'https://wiki.archlinux.org/index.php?title=Powertop&oldid=604206'