$schemamarkup = get_post_meta(get_the_ID(), 'schemamarkup', true); if(!empty($schemamarkup)) { echo $schemamarkup; }

Best Laptop Battery Saving Solutions for AlmaLinux 8/9

May 20, 2025 | By the+gnu+linux+evangelist.

Setting up

  1. 2. Installing TLP on AlmaLinux 8/9

    TLP is a powerful and easy-to-use tool for optimizing battery life on Linux laptops. It applies advanced settings automatically at startup.

    First, enable EPEL:

    # AlmaLinux 8
    sudo dnf install -y epel-release
    
    # AlmaLinux 9
    sudo dnf install -y epel-release epel-next-release
    

    Then install TLP:

    sudo dnf install -y tlp tlp-rdw

    Start TLP immediately with:

    sudo tlp start

    It runs automatically at boot — no configuration needed for most users.

  2. 3. Enabling Auto-CPUFreq for Dynamic CPU Scaling

    auto-cpufreq is a modern, intelligent CPU frequency manager that dynamically adjusts performance based on battery or AC power.

    sudo dnf install -y git
    git clone https://github.com/AdnanHodzic/auto-cpufreq.git
    cd auto-cpufreq && sudo ./auto-cpufreq-installer
    

    Then run the daemon installer:

    sudo auto-cpufreq --install

    This tool works great alongside TLP and is especially helpful on modern laptops.

  3. 4. Optimizing with PowerTOP

    PowerTOP by Intel analyzes and helps to reduce power consumption on Linux.

    First, ensure EPEL is enabled as above, then install PowerTOP:

    sudo dnf install -y powertop

    To apply auto-tuning optimizations:

    sudo powertop --auto-tune

    You can also monitor in real-time:

    sudo powertop
  4. 5. Installing Laptop Mode Tools (Optional)

    Laptop-mode-tools is not in the default repos. You can compile it from source:

    sudo dnf install -y git make
    git clone https://github.com/rickysarraf/laptop-mode-tools.git
    cd laptop-mode-tools
    sudo make install
    

    Then enable and start the service:

    sudo systemctl enable laptop-mode
    sudo systemctl start laptop-mode
    

    May conflict with TLP — test to see which works best for your setup.

  5. 6. Additional Tips to Save Battery

    • Lower Screen Brightness — Use Fn keys or brightness applets.
    • Disable Bluetooth when not in use:
      rfkill block bluetooth
    • Turn Off Wi-Fi if not needed:
      nmcli radio wifi off
    • Use Lightweight desktop Environments — XFCE and MATE consume less power.

Contents


Tags: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,