Archives For November 30, 1999

CPU-G

Auto-cpufreq, automatic CPU speed & power optimizer for Linux to improve battery life, released version 1.2 with AMD support.

Different to cpufreq indicator and / or TLP, Auto-cpufreq automatically make “cpufreq” related changes based on active monitoring of laptop’s battery state, CPU usage and system load. Ultimately allowing you to improve battery life without making any compromises.

How to Install Auto-cpufreq in Ubuntu:

Auto-cpufreq is available as Snap package, which can be easily installed from Ubuntu Software:

Don’t like the containerized snap package? You may also download the source tarball which contains an install script:

Auto-cpufreq tarball

Extract and go into the source folder, then right-click on blank area and select ‘Open in Terminal’

Finally run the installer via command:

sudo ./auto-cpufreq-installer

How to run Auto-cpufre:

Once installed the tool, you can run it with different flags:

1. Monitor and suggest CPU optimizations by running command:

sudo auto-cpufreq --monitor

2. Run the tool to improve battery life for temporary use (work until reboot):

sudo auto-cpufreq --live

3. Install the daemon so it will work permanently and silently in background.

sudo auto-cpufreq --install

4. Uninstall the daemon to stop the service:

sudo auto-cpufreq --remove

see auto-cpufreq in github

Want to get better battery life for your Ubuntu laptop? Besides struggling with various settings or config files, try the power management tool TLP and Slimbook Battery.

TLP is a feature-rich command line utility for Linux, saving laptop battery power without the need to delve deeper into technical details.

TLP’s default settings are already optimized for battery life and implement Powertop’s recommendations out of the box. So you may just install and forget it.

1.) How to Install TLP in Ubuntu 20.04:

Simply open terminal either from application menu or by pressing Ctrl+Alt+T on keyboard. When terminal opens, run command:

sudo apt install tlp

Once installed, you’re done as it runs silently in background with a default configuration already optimized for battery life.

To fulfil your specific requirements, you can install the GTK user interface TLPUI via this PPA.

2.) Install Slimbook Battery:

Slimbook Battery is a graphical tool based on TLP, it offers an indicator menu that includes Energy Saving, Balanced, and Maximum Performance modes.

Advanced mode provides options to change CPU limit, graphics saving, screen brightess, disable animation, bluetooth, auto-suspend USB ports, etc.

To install Slimbook Battery from its official PPA, run following commands in terminal one by one in terminal:

sudo add-apt-repository ppa:slimbook/slimbook

sudo apt update

sudo apt install slimbookbattery

Once installed, launch it from ‘Show Applications’ menu and enjoy!

(Optional) To remove Slimbook Battery as well as its PPA, run following commands one by one:

sudo add-apt-repository --remove ppa:slimbook/slimbook

sudo apt remove --autoremove slimbookbattery

TLP is a free and open-source tool aims to save laptop battery life for Linux laptops. It’s a feature-rich command line utility for saving battery power without the need to dig deeper into technical details

It comes with a default configuration already optimized for battery life, so you may just install and forget it. Nevertheless TLP is highly customizable to fulfill your specific requirements.

TLP features include:

  • Kernel laptop mode and dirty buffer timeouts
  • AMD/Intel CPU scaling driver operation mode
  • Processor frequency scaling and turbo boost
  • Intel CPU max/min P-state limits to control power dissipation
  • AMD/Intel CPU energy/performance policies (EPP) and dynamic boost
  • Intel GPU frequency limits
  • AMD GPU power management
  • Enable/disable integrated bluetooth, Wi-Fi and WWAN devices
  • And much more.

How to Install TLP in Ubuntu:

The software has an official PPA repository so far supports for Ubuntu 20.04, Ubuntu 22.04, Ubuntu 23.10, and Ubuntu 24.04.

1.) Open terminal either from application launcher or by pressing Ctrl+Alt+T on keyboard. When it opens, run command to add the PPA:

sudo add-apt-repository ppa:linrunner/tlp

Type user password (no asterisk feedback) when it asks and hit Enter to continue.

2.) If you already installed an old version, open Software Updater and upgrade the package.

This will also upgrade TLP from the beta release to the latest stable.

Or run command in terminal to install it for the first time:

sudo apt update && sudo apt install tlp

After installation, just leave it running silently in the background and you’re done.

For advanced users, you may edit the config file /etc/tlp.conf and change the settings according to your need:

sudo gedit /etc/tlp.conf

For Ubuntu 23.10, and Ubuntu 24.04, replace gedit with gnome-text-editor. For non-default desktop environments, use your own text editor, or use nano that works for all. For how to configure the file, see the official documentation.

Uninstall TLP:

You can run command in terminal to purge the PPA which also downgrade TLP to the stable version available in Ubuntu main repository:

sudo apt install ppa-purge && sudo ppa-purge ppa:linrunner/tlp

To completely remove the TLP power management tool, run command:

sudo apt remove tlp tlp-rdw

Slimbook battery is a battery optimization tool that works on Gnome, KDE, Unity, Cinnamon, and MATE desktop.

The software offers a system tray application indicator with three energy modes: Energy Saving, Balanced, and Maximum Performance. Also an ‘Off‘ menu option is available to turn off the optimization.

Each energy mode comes with default values. User is allowed to change the most important values via the Preferences (Advanced mode).

How to Install Slimbook battery in Ubuntu:

Slimbook’s official PPA contains the latest packages for Ubuntu 16.04, Ubuntu 18.04, Ubuntu 18.10, Ubuntu 19.04, and their derivatives.

1. Open terminal either via Ctrl+Alt+T keyboard shortcut or from application menu. When it opens, run command to add the PPA:

sudo add-apt-repository ppa:slimbook/slimbook

Type user password (no asterisk feedback) when it prompts and hit Enter to continue adding PPA.

2. Then refresh system package cache and install the tool:

sudo apt update

sudo apt install slimbookbattery

Once installed, launch it from application menu and enjoy!

Uninstall:

To remove the tool, open terminal and run command:

sudo apt remove --auto-remove slimbookbattery

And remove the PPA either via Software & Updates-> Other Software, or by running command:

sudo add-apt-repository --remove ppa:slimbook/slimbook