11 Using powertop2tuned to Create a TuneD Profile

Use powertop2tuned to create a TuneD profile that includes the current active TuneD profile with the addition of PowerTOP recommendations.

Perform the following steps:

  1. Run the powertop2tuned command with the name of the profile you're creating. For example, to create a profile called mypowertuneprofile run the following command:
    sudo powertop2tuned mypowertuneprofile

    The command outputs a message as it starts PowerTOP to generate the recommendations, as shown in the following sample output:

    Running PowerTOP, please wait...
    Generating shell script /etc/tuned/mypowertuneprofile/script.sh
    Generating TuneD config file /etc/tuned/mypowertuneprofile/tuned.conf
    ...
  2. Open and customize the /etc/tuned/mypowertuneprofile/tuned.conf file generated in the preceding step.

    As shown in the following example file extract, by default, the PowerTOP recommendations are initially commented out. Uncomment entries according to system requirements.

    #Automatically generated by powertop2tuned tool
    
    [main]
    include=virtual-guest
    
    
    # Enable SATA link power management for host2 
    #/sys/class/scsi_host/host2/link_power_management_policy=med_power_with_dipm
    
    # Enable SATA link power management for host3 
    #/sys/class/scsi_host/host3/link_power_management_policy=med_power_with_dipm
    
    # Enable SATA link power management for host4 
    #/sys/class/scsi_host/host4/link_power_management_policy=med_power_with_dipm
    
    ...
    
    # Wake status for USB device usb1 
    #/sys/bus/usb/devices/usb1/power/wakeup=enabled
    
    # Wake status for USB device usb2 
    #/sys/bus/usb/devices/usb2/power/wakeup=enabled
    
    [sysctl]
    # VM writeback timeout 
    #vm.dirty_writeback_centisecs=1500
    ...

The profile with PowerTOP recommendations and the current active TuneD profile settings is created.

You can also use powertop2tuned to create a TuneD profile using an existing HTML PowerTOP report. For example, to use a PowerTOP report in file called myreport.html to create a profile called mypowertuneprofile, run the following command:

sudo powertop2tuned --input myreport.html mypowertuneprofile