在 Ubuntu 中使用 Slimbook Battery Optimizer 切换电源模式
电源 电池

> 
> Slimbook Battery Optimizer 是一个美观实用的指示器小程序，它可以让你在安装了 Linux 的笔记本上快速切换电源模式来延长续航时间。
> 
> 
> 


[Slimbook](https://slimbook.es/en/) 是一个销售 [预装 Linux 的笔记本电脑](https://itsfoss.com/get-linux-laptops/) 的西班牙电脑制造商，他们发布了一款好用的小程序，用来在基于 Ubuntu 的 Linux 发行版下调整电池性能。


因为 Slimbook 销售他们自己的 Linux 系统，所以他们制作了一些在 Linux 上用于调整他们自己硬件性能的小工具。Battery Optimizer 就是这样一个工具。


要使用这个实用小程序，你不必购买 Slimbook 的产品，因为 Slimbook 已经将它在 [他们的官方 PPA 源](https://launchpad.net/%7Eslimbook/+archive/ubuntu/slimbook) 发行了。


### Slimbook Battery Optimizer 简介


这个程序叫 Slimbook Battery。它是一个常驻顶栏的指示器小程序，使得你可以快速切换电源模式。


![Slimbook Battery Mode Ubuntu](/data/attachment/album/201905/25/101349katxob9x5oobb5tb.jpg)


你可能在 Windows 中见过类似的程序。Slimbook Battery 和它们一样，提供了类似的电源计划：


* 节能：最大程度延长电池续航时间
* 平衡：性能与节能间的最佳平衡
* 高性能：最大程度提高性能


你可以在高级模式中配置这些模式：


![配置多种多样的电源模式](/data/attachment/album/201905/25/101350rlkelgsjji1491nl.jpg)


如果你觉得你把设置调乱了，你可以用“恢复默认设置”的按钮还原它。


你也可以修改像程序自启或默认电源模式这样的通用设置。


![Slimbook Battery 通用设置](/data/attachment/album/201905/25/101351o9hj3j6ezm6nl0y9.jpg)


Slimbook 有专门为多种电源管理参数提供的页面。如果你希望自己配置，请参照 [此页](https://slimbook.es/en/tutoriales/aplicaciones-slimbook/398-slimbook-battery-3-application-for-optimize-battery-of-your-laptop)。


不过，我认为 Slimbook 的界面需要一些改进。例如，某些页面上的“问题标记”的图标应该改为可点击的，以此提供更多信息。然而，在我写这篇文章时，那个标记仍然无法点击。


总的来说，Slimbook Battery 是一个小巧精美的软件，你可以用它来快速切换电源模式。如果你决定在 Ubuntu 及其衍生发行版上（比如 Linux Mint 或 elementary OS 等），你可以使用官方 [PPA 源](https://itsfoss.com/ppa-guide/)。


#### 在基于 Ubuntu 的发行版上安装 Slimbook Battery


打开终端，一步一步地使用以下命令：



```
sudo add-apt-repository ppa:slimbook/slimbook
sudo apt update
sudo apt install slimbookbattery
```

安装好之后，在菜单中搜索 Slimbook Battery：


![启动 Slimbook Battery Optimizer](/data/attachment/album/201905/25/101351tb7mbqfmsju7zusb.jpg)


在你点击它之后，你会发现它出现在了顶栏。你可以在这里选择你希望使用的电源模式。


![Slimbook Battery 电源模式](/data/attachment/album/201905/25/101349katxob9x5oobb5tb.jpg)


#### 卸载 Slimbook Battery


如果你不再使用它，你可以通过以下命令来卸载它：



```
sudo apt remove slimbookbattery
sudo add-apt-repository -r ppa:slimbook/slimbook
```

在我看来，这样的应用程序为某些特定的目的服务，这是值得鼓励的。这个工具给了你一条调整电源模式的捷径，和调整性能的更多选项。


你用过 Slimbook Battery 吗？你觉得它如何？




---


via: <https://itsfoss.com/slimbook-battry-optimizer-ubuntu/>


作者：[Abhishek Prakash](https://itsfoss.com/author/abhishek/) 选题：[lujun9972](https://github.com/lujun9972) 译者：[zhs852](https://github.com/zhs852) 校对：[wxy](https://github.com/wxy)


本文由 [LCTT](https://github.com/LCTT/TranslateProject) 原创编译，[Linux中国](https://linux.cn/) 荣誉推出


OK
*Brief: Slimbook Battery is a nifty applet indicator that allows you to quickly change the power mode on your Linux laptop and thus save battery life.*

[Slimbook](https://slimbook.es/en/), the Spanish computer vendor that sells [laptops preloaded with Linux](https://itsfoss.com/get-linux-laptops/), has released a handy little application to optimize battery performance in Ubuntu-based Linux distributions.

Since Slimbook sells its own Linux systems, they have created a few applications to tweak the performance of Linux on their hardware. This battery optimizer is one such tool.

You don’t need to buy a Slimbook product to use this nifty application because Slimbook has made it available via [their official PPA](https://launchpad.net/~slimbook/+archive/ubuntu/slimbook).

## Slimbook battery optimizer application

The application is called Slimbook Battery. It is basically an applet indicator that sits on the top panel and gives you quick access to various power/battery modes.

![Slimbook Battery application](https://itsfoss.com/content/images/wordpress/2019/05/slimbook-battery-mode-ubuntu-800x400.jpg)

You might have seen it in Windows where you can put your laptop in one of the power modes. Slimbook Battery also offers similar battery saving modes here:

- Energy Saving: For maximum battery saving
- Balanced: A compromise between performance and power saving
- Maximum Performance: For maximum performance obviously

You can configure all these modes from the advanced mode:

![Slimbook Battery Optimizer for Ubuntu Linux](https://itsfoss.com/content/images/wordpress/2019/05/slimbook-battery-optimizer-2.jpg)

If you feel like you have messed up the configuration, you can set things back to normal with ‘restore default values’ option.

You can also change the general configuration of the application like auto-start, default power mode etc.

![Slimbook Battery Optimizer for Ubuntu Linux](https://itsfoss.com/content/images/wordpress/2019/05/slimbook-battery-optimizer-1.jpg)

Skimbook has a dedicated page that provides more information on various power saving parameters. If you want to configure things on your own, you should refer to [this page](https://slimbook.es/en/tutoriales/aplicaciones-slimbook/398-slimbook-battery-3-application-for-optimize-battery-of-your-laptop).

I have noticed that the interface of Slimbook Battery needs some improvements. For example, the ‘question mark’ icon on some parameters should be clickable to provide more information. But clicking the question mark icon doesn’t do anything at the time of writing this article.

Altogether, Slimbook Battery is a handy app you can use for quickly switching the power mode. If you decide to install it on Ubuntu and other Ubuntu-based distributions such as Linux Mint, elementary OS etc, you can use its official [PPA](https://itsfoss.com/ppa-guide/).

### Install Slimbook Batter in Ubuntu-based distributions

Open a terminal and use the following commands one by one:

sudo add-apt-repository ppa:slimbook/slimbook

sudo apt update

sudo apt install slimbookbattery

Once installed, search for Slimbook Battery in the menu:

![Slimbook Battery Optimizer](https://itsfoss.com/content/images/wordpress/2019/05/slimbook-battery-optimizer.jpg)

When you click on it to start it, you’ll find it in the top panel. From here, you can select your desired power mode.

![Slimbook Battery application](https://itsfoss.com/content/images/wordpress/2019/05/slimbook-battery-mode-ubuntu-800x400.jpg)

### Remove Slimbook Battery

If you don’t want to use this application, you can remove it using the following commands:

sudo apt remove slimbookbattery

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

In my opinion, such applications serves a certain purpose and should be encouraged. This tool gives you an easy way to change the power mode and at the same time, it gives you more tweaking options for various performance settings.

Did you use Slimbook Battery? What’s your experience with it?