pm-utils, or how to manage power options from the console

Today, most of the personnel own portable computing equipment, such as "notebooks" or "netbooks", and their Achilles heel is the energy management, since allowing the equipment to consume more than necessary, shortens the autonomy of the batteries.

This is a contribution from Javier A. Piendibene, thus becoming one of the winners of our weekly competition: «Share what you know about Linux«. Congratulations Javier!

In graphical environments, there are almost no operating systems, and even more so under GNU / Linux, that do not have a graphical daemon that allows managing the different options that can be presented with a mouse click, such as suspend, hibernate or go to low mode. consumption.

But it is rare that one needs to do it from the console.

Why is this relevant? Well, recently I received as a "lag" a netbook whose owner did not use it anymore because its operating system had become too heavy, making the machine almost unusable. He told me about XP and a number 7, but they are things that I did not understand. 🙂

Well, the gadget is currently running a Debian 7 "wheezy" with an OpenBox screen manager, configured to the minimum expression, but this minimal expression made me investigate how to use the benefits of advanced power management from the console, since in In order to minimize resource consumption, I avoided installing anything that could be done from the console.

And there I came across pm-utils.

pm-utils

pm-utils, as stated on its page http://pm-utils.freedesktop.org, "is a small collection of commands that allow HAL to suspend and resume."

Just in case,
H (High): maximum utilization of the cooling system.
A (Auto): automatic temperature regulation system.
L (Low): minimum use of the cooling system. When it exceeds a certain limit, it goes into automatic mode.

The package installs automatically with any Debian base system, and has the following commands:

/ usr / bin / pm-is-supported- Used to determine which power saving modes are supported by the system.

/ usr / sbin / pm-powersave: activates or deactivates the energy saving mode, changing it to «L»

/ usr / sbin / pm-suspend: suspends operations in memory and puts the system to the lowest possible power.

/ usr / sbin / pm-hibernate- Hibernate the system by downloading all data from memory to the hard disk.

/ usr / sbin / pm-suspend-hybrid- Puts the system into a state equal to hibernation, but in memory. That is, its recovery is similar to sleep, faster than normal hibernation, but if the battery runs out, it remains in hibernate state, without losing data, as would happen with a sleep. It's the best of both schemes, and my favorite.

The utility package has excellent documentation in English, and configuration directories /etc/pm/config.d, /etc/pm/sleep.d and /usr/lib/pm-utils/sleep.d that allow customizing the behavior of the system to suit everyone.


Leave a Comment

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

*

*

  1. Responsible for the data: Miguel Ángel Gatón
  2. Purpose of the data: Control SPAM, comment management.
  3. Legitimation: Your consent
  4. Communication of the data: The data will not be communicated to third parties except by legal obligation.
  5. Data storage: Database hosted by Occentus Networks (EU)
  6. Rights: At any time you can limit, recover and delete your information.

  1.   Eduardo said

    Just the topic I was looking for today.
    I was going to ask you questions and ask for examples, typical of lazy, but you have to read the documentation.
    Thanks for the input.

  2.   Victor alarcon said

    I had already tried it, but did not know about the suspend-hybrid.

    Excellent!