Does anyone know how I can change the power profile on TLP from “balanced” to “low-power” so that it will survive reboot?

  •  lnxtx   ( @lnxtx@feddit.nl ) 
    link
    fedilink
    English
    611 months ago

    There is an information in the /etc/tlp.conf file:

    # Select platform profile:
    #   performance, balanced, low-power.
    # Controls system operating characteristics around power/performance levels,
    # thermal and fan speed. Values are given in order of increasing power saving.
    # Note: check the output of tlp-stat -p to determine availability on your
    # hardware and additional profiles such as: balanced-performance, quiet, cool.
    # Default: 
    # !!!!!!!! Warning !!!!!!!!!
    # When use power-profiles-daemon, please use below items in
    # /var/lib/power-profiles-daemon/state.ini
    #    1) "balanced" is default mode
    #    2) "power-saver" mode means "low-power" in ppd
    #    3) "performance" mode
    # !!!!!!!!!!!!!!!!!!!!!!!!!!
    
    #PLATFORM_PROFILE_ON_AC=performance
    #PLATFORM_PROFILE_ON_BAT=low-power
    
    

    So, it depends if your distro uses power-profiles-daemon or if your desktop environment controls power profiles.

    •  hedge   ( @hedge@beehaw.org ) OP
      link
      fedilink
      English
      111 months ago

      I’m on Linux Mint Cinnamon 21.2; power-profiles-daemon does not seem to be installed on my system 🤔. Typing cat /sys/firmware/acpi/platform_profile in the terminal comes up as “low-power”, which is what I switched it to from “balanced” by hitting Fn+l. How do I get this setting to survive reboot? Do I uncomment “#PLATFORM_PROFILE_ON_BAT=low-power” or is there another way?

      •  lnxtx   ( @lnxtx@feddit.nl ) 
        link
        fedilink
        English
        211 months ago

        Do you want low-power setting only on a battery?

        Create, for example, /etc/tlp.d/99-custom.conf file, with content:

        PLATFORM_PROFILE_ON_BAT=low-power
        

        Reload the settings: tlp start

        And make sure the tlp service is enabled.

        •  hedge   ( @hedge@beehaw.org ) OP
          link
          fedilink
          English
          211 months ago

          Do you want low-power setting only on a battery?

          Yes, that’s what I’m aiming for. I’ve got a thinkpad x1 carbon 10th gen which is known for its not-so-great battery life, and so I’m trying to use the low-power setting for battery-only to see if that helps. If that doesn’t work I might try auto-cpufreq (do you know anything about that?) In any event, thanks very much for your response, I’ll create the .conf file and see if it works. 🙂👍

          •  lnxtx   ( @lnxtx@feddit.nl ) 
            link
            fedilink
            English
            211 months ago

            TLP can also control CPU clock.

            I’m using these settings on my trusty X260:

            CPU_SCALING_GOVERNOR_ON_AC=performance
            CPU_SCALING_GOVERNOR_ON_BAT=powersave
            
            CPU_MIN_PERF_ON_AC=0
            CPU_MAX_PERF_ON_AC=100
            
            CPU_MIN_PERF_ON_BAT=0
            CPU_MAX_PERF_ON_BAT=30
            
            CPU_BOOST_ON_AC=1
            CPU_BOOST_ON_BAT=0
            
            CPU_HWP_DYN_BOOST_ON_AC=1
            CPU_HWP_DYN_BOOST_ON_BAT=0
            
            SCHED_POWERSAVE_ON_AC=0
            SCHED_POWERSAVE_ON_BAT=1
            
            USB_EXCLUDE_WWAN=1