Arch linux battery calibration


  • How to improve Battery Life of Your Linux Laptop
  • NintendoSoup
  • Arch Linux on a Lenovo X280
  • TLP – Quickly Increase and Optimize Linux Laptop Battery Life
  • Simple Tips to Improve your Linux Laptop’s Battery Life
  • How to improve Battery Life of Your Linux Laptop

    Last updated on: April 29, Linux is a name very fondly held by many computer purists and enthusiasts. Often the choice of developers and consumers alike, Linux holds a big fan following due to its open source, practical, free and extensible nature.

    The Linux Operating System family has spread to every sphere of our lives, including our servers, computers, mobiles, TVs and even our fridges and microwave ovens.

    One thing most Linux users have in common is their preference for avoiding proprietary software and having the freedom of choice.

    The Linux kernel holds a multitude of system and kernel mode drivers allowing both enthusiasts and normal consumers to just install the Operating System and get started instantly. However, the open source drivers and generic code lead to one headache. Running on the Windows OS , your laptop might have hours more of battery life, but under Linux, it might be as low as half of that.

    So, what can you do about it? You deserve a truly contemporary and complete Linux computing experience. In most Linux Distributions, the power settings are hidden somewhere inside the main Settings app. It can also be quickly accessed through the battery icon on your taskbar. Some of the key items to configure the power management settings include: When to put the computer to sleep: Keeping your computer awake, especially if you are not using it is a blatant waste of power.

    Setting this to a conservative value will put your laptop to sleep when not needed. This enables you to extract that little bit of critical use time when your laptop hits the low 20s of remaining battery.

    Configuring what happens when the lid is closed: The default action is usually to suspend the laptop when the user closes the lid. However, for the interests of power saving, you can set it to hibernate or shut down when you close the lid. The hardware for these features uses a lot of proprietary drivers when running under Windows, while commonly, the Linux open source drivers are not as optimized.

    In many laptops, the Wi-Fi chips and Bluetooth connections can cause the laptop not to go to sleep or to wake up intermittently. In addition to the issues, the power usage by wireless connections varies a lot on the signal strength. There are two simple solutions to this: Go Wired: Forego the wireless connection route, and plug in directly to Ethernet for internet and USB for peripheral devices.

    While this might not be a possible solution in many cases, if you do have it at hand, it can save you a lot of battery power.

    Proprietary Driver: Laptops when running on Windows behave better in terms of power usage of the wireless components. Even on Linux, many manufacturers like Intel, Broadcom and Realtek provide proprietary drivers for their wireless chipsets. While this method goes against the open source nature of Linux that users love, using these drivers will not only reduce battery use but in many cases, the speed and signal strength are also improved.

    Closed Source Proprietary Graphics Drivers Most modern laptops come with either integrated or dedicated graphics processing units. The performance of these drivers, however, leaves a lot to be desired. Modern laptops can switch between dedicated and inbuilt graphics depending on use case. For example, a heavy game or rendering utility will invoke the dedicated graphics card, while a simple word document or movie watching will be performed on the inbuilt card itself.

    To take benefit of the full performance allowed by the powerful dedicated Graphics cards and the power saving potential that switching technologies like NVIDIA Optimus offers, you have to switch to their closed source graphics drivers. These allow the hardware to be used to their full potential while saving you crucial juice on your laptop as well.

    Reduce Screen Brightness Portable devices like tablets and laptops have high resolution, bright LCD panels capable of rich and vivid colors, and brightness exceeding nits on average. It looks mighty alluring to pump up the screen brightness and watch your apps, games and movies pop to life.

    But consider this, the screen is the largest power sucker in all portable devices. While doing normal tasks like document editing, web browsing, reducing the screen brightness can give you significantly longer runtime.

    Close Unwanted Applications and Uninstall Bloatware Simplest tip of all, over the course of using your computer for all sorts of tasks, be it for work or play, often we end up with a lot of applications, some of which we might not even want anymore.

    Remember that trial game you tried a month back, or the new browser everyone was wowing about. Many of the applications can run in the background even when you have not explicitly opened them. This can be for reasons such as sending notifications, updating themselves and fetching background content. Following a cleanup routine on your laptop, say, once a month, will extend its battery life, its speed, its free storage and overall, make you a happier person. What follows below, is not for the faint of heart.

    These advanced techniques allow a deeper insight and much more significant control over various parameters of your laptop. However, be warned, there are risks associated with them. Any messy configuration could leave your laptop unusable and you might have to format your entire laptop and lose your data in the process. It allows for granular control over various kernel tweaks, processor scheduling, graphics power management and much more. For details on the specific options available, you can run tlp —help in the terminal.

    After installing, you can start the TLP service by typing: sudosystemctl enable tlp Then, simply reboot the system, and you are good to go.

    Powertop allows you to analyze the root cause of the problem, and then, the necessary steps can be taken to resolve it. Powertop automatically scans the services and processes on a Linux based system and tries to improve the battery life.

    Installation is fairly simple. The repository is pre-included in most Linux distributions, so you can directly install the powertop package.

    Type in the following command in the Linux Terminal to install the package. A basic and good power saving profile can be configured automatically by using the autotune feature of powertop. After installation, the procedure to configure powertop for your laptop is: Calibrate Powertop Create Power Saving profile with Auto Tune Start the profile on boot sudopowertop --calibrate During the calibration process, powertop will analyze the running data of your laptop.

    Several things, including your display, wifi and touchpad might temporarily hang up or stop working. Do not fret, this is normal, and after Powertop is done scanning, it will be back to normal.

    This will create a good profile for power saving automatically. Finally, to enable these tweaks on startup, we have to add the profile to systemd. With all the tweaks combined, you are looking at significantly increased runtime on your laptop. Conclusion — Improve Linux Laptop Battery Life Being a computer purist, a developer, a free and open source software FOSS advocate, a Linux lover does not mean that we have to compromise with the user experience we get.

    Using an operating system, as much as the functionality and practicality matters to us, the battery life is of utmost importance too. After all, a laptop is a portable device, and without the battery, the portability goes for a toss. It is not that hard to squeeze out some extra juice, not just a few minutes, but even in hours from your existing Linux laptop.

    All of the above tricks and methods can be done quickly and safely. The results are foolproof and almost immediate.

    With such flexibility and varied usage, coupled with great battery life, is, in essence, giving your laptop a second lease of life. The more seamless your experience is, the happier you are and the result is more productivity.

    NintendoSoup

    How to improve Battery Life of Your Linux Laptop Published on: April 15, by Tarun Bhardwaj You want to try to increase the autonomy of your Linux computer and now looking for advice to be able to do it without losing too much time. We at Teknologya have decided to create a guide in which we explain specifically how to improve battery life on Linux in a very simple way. It is a tool that works in the background and, once installed, automatically analyzes the computer on which it is activated to automatically adjust the use of the battery.

    In general, it is not necessary to make changes with this tool because everything happens automatically. However, you can still change some settings if you wish. For example, if you have Ubuntu, type sudo apt-get install tlp, if you have Arch Linux sudo pacman -S tlp, if you have Fedora sudo dnf install tlp while for OpenSUSE you can do it from the special Web page by pressing the Installbutton directly. If you have a Linux distribution other than those listed above, you can simply open the store of the applications you only use to download and install software on the operating system and type the term tlp.

    Once the TLP program has been successfully installed, you can simply start it through systemd. To start the TLP service immediately, all you have to do is type the command sudo system start tlp inside the terminal while, to load it automatically at system startup, use sudo systemctl enable tlp.

    In Debian especially those running the distro version without systemd , they must start and enable TLP differently. Once the software is installed, it is automatically enabled but will not start immediately without executing the sudo tlp start command. Once TLP is fully activated, it will automatically manage the use of the battery on Linux.

    Even if there is no need to change the settings, you can still do so by opening the terminal and typing the command tlp —help. As a result you will have several options to manage the features. How to improve battery life on Linux with Powertop Another powerful software to improve the autonomy of your Linux computer is called Powertop. Just like TLP, this software automatically scans your Linux laptop and tries to improve battery life. In addition to this, the application has a built-in browser that allows users to easily identify which service consumes the most energy so as to take the right prevention measures.

    To proceed with the installation of Powertop, simply open the terminal and use the commands sudo apt install powertop for Ubuntu, sudo apt-install powertop for Debian, sudo dnf install powertop for Fedora, press the Install button directly on the appropriate page Web for OpenSUSE and pacman -S powertop for Arch Linux.

    In the latter case, on the official website of Arch Linux there is a document that explains specifically how to best use Powertop. As for the other Linux distributions, you can try to search for the program in the application store or build it using the source code available on GitHub. Powertop is definitely a tool you can that can be configured automatically using the autotune function. Now, you need to calibrate Powertop to work properly.

    This can be done using the sudo powertop — calibrate command. During this procedure, the software collects various data on the functioning of the PC. The screen may turn white and the Wi-Fi connection may stop working. Stay calm. At the end of the calibration, start the autotune process using the sudo powertop —auto-tune command. Here are what they are: [Unit].

    Invert Fn toggle state By default you need to hit the Fn key to use e. Install intel microcode updates See dedicated wiki article. Windows 10 dual boot tweaks The included Windows 10 recovery image is so bad that it produces error popups on boot after a factory reset ; installing a clean official Windows 10 before installing Arch is way better and after applying Windows Updates everything works perfectly without any bloatware. If using systemd-bootctl, uncomment the timeout value from loader.

    Be sure to configure Windows 10 clock to use UTC to ensure that both Windows and Arch will stay on the same timezone Windows uses localtime by default.

    Do this by running the following in cmd.

    Arch Linux on a Lenovo X280

    You deserve a truly contemporary and complete Linux computing experience. In most Linux Distributions, the power settings are hidden somewhere inside the main Settings app. It can also be quickly accessed through the battery icon on your taskbar. Some of the key items to configure the power management settings include: When to put the computer to sleep: Keeping your computer awake, especially if you are not using it is a blatant waste of power.

    Setting this to a conservative value will put your laptop to sleep when not needed. This enables you to extract that little bit of critical use time when your laptop hits the low 20s of remaining battery. Configuring what happens when the lid is closed: The default action is usually to suspend the laptop when the user closes the lid.

    However, for the interests of power saving, you can set it to hibernate or shut down when you close the lid. The hardware for these features uses a lot of proprietary drivers when running under Windows, while commonly, the Linux open source drivers are not as optimized. In many laptops, the Wi-Fi chips and Bluetooth connections can cause the laptop not to go to sleep or to wake up intermittently. In addition to the issues, the power usage by wireless connections varies a lot on the signal strength.

    There are two simple solutions to this: Go Wired: Forego the wireless connection route, and plug in directly to Ethernet for internet and USB for peripheral devices.

    TLP – Quickly Increase and Optimize Linux Laptop Battery Life

    While this might not be a possible solution in many cases, if you do have it at hand, it can save you a lot of battery power. Proprietary Driver: Laptops when running on Windows behave better in terms of power usage of the wireless components.

    Even on Linux, many manufacturers like Intel, Broadcom and Realtek provide proprietary drivers for their wireless chipsets. While this method goes against the open source nature of Linux that users love, using these drivers will not only reduce battery use but in many cases, the speed and signal strength are also improved.

    Simple Tips to Improve your Linux Laptop’s Battery Life

    Closed Source Proprietary Graphics Drivers Most modern laptops come with either integrated or dedicated graphics processing units. The performance of these drivers, however, leaves a lot to be desired. Modern laptops can switch between dedicated and inbuilt graphics depending on use case. For example, a heavy game or rendering utility will invoke the dedicated graphics card, while a simple word document or movie watching will be performed on the inbuilt card itself.

    To take benefit of the full performance allowed by the powerful dedicated Graphics cards and the power saving potential that switching technologies like NVIDIA Optimus offers, you have to switch to their closed source graphics drivers.

    These allow the hardware to be used to their full potential while saving you crucial juice on your laptop as well. Reduce Screen Brightness Portable devices like tablets and laptops have high resolution, bright LCD panels capable of rich and vivid colors, and brightness exceeding nits on average. It looks mighty alluring to pump up the screen brightness and watch your apps, games and movies pop to life. But consider this, the screen is the largest power sucker in all portable devices.

    While doing normal tasks like document editing, web browsing, reducing the screen brightness can give you significantly longer runtime. Close Unwanted Applications and Uninstall Bloatware Simplest tip of all, over the course of using your computer for all sorts of tasks, be it for work or play, often we end up with a lot of applications, some of which we might not even want anymore.

    Remember that trial game you tried a month back, or the new browser everyone was wowing about. Many of the applications can run in the background even when you have not explicitly opened them. This can be for reasons such as sending notifications, updating themselves and fetching background content. Following a cleanup routine on your laptop, say, once a month, will extend its battery life, its speed, its free storage and overall, make you a happier person.

    What follows below, is not for the faint of heart. These advanced techniques allow a deeper insight and much more significant control over various parameters of your laptop.


    thoughts on “Arch linux battery calibration

    1. Excuse, that I can not participate now in discussion - it is very occupied. I will be released - I will necessarily express the opinion on this question.

    Leave a Reply

    Your email address will not be published. Required fields are marked *