Менеджер питания linux mint

Linux Mint Forums

I have a little hitch but I am pretty sure it won’t last.

As I am working on a laptop, which package should I install, which integrates perfectly with cinnamon and enables the laptop to enter the sleep mode when running out of battery ?

Currently, it is shutting it off, which is *really, really* annoying.

Last edited by LockBot on Wed Dec 28, 2022 7:16 am, edited 1 time in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.

Re: Laptop power management

Post by FDF » Sat Sep 01, 2012 7:42 pm

Which laptop? please give as much details as possible to allow us to find out your equipment…

Re: Laptop power management

Post by Motion » Tue Sep 11, 2012 4:15 pm

When I am running out of batterey, it shuts down instead of sleeping.

I lost my works sometimes, so it is pretty annoying..

Let me know if you need further information !

Re: Laptop power management

Post by jasmineaura » Mon Sep 17, 2012 4:44 am

Check your settings in:
Control Center -> Hardware -> Power management
«On battery power» and «General tab».

By default, pm-utils package is installed and should take care of that.

# dpkg -l pm-utils
ii pm-utils 1.4.1-9 utilities and scripts for power management

# apt-cache show pm-utils
.
Description-en: utilities and scripts for power management
This package provides simple shell command line tools to suspend and
hibernate your computer.
Homepage: http://pm-utils.freedesktop.org/
.

# apt-cache show laptop-mode-tools
.
Description-en: Tools for Power Savings based on battery/AC status
Laptop mode is a Linux kernel feature that allows your laptop to save
considerable power, by allowing the hard drive to spin down for longer
periods of time. This package contains the userland scripts that are
needed to enable laptop mode.
.
It includes support for automatically enabling laptop mode when the
computer is working on batteries. It also supports various other power
management features, such as starting and stopping daemons depending on
power mode, automatically hibernating if battery levels are too low, and
adjusting terminal blanking and X11 screen blanking
.
laptop-mode-tools uses the Linux kernel’s Laptop Mode feature and thus
is also used on Desktops and Servers to conserve power
Homepage: http://www.samwel.tk/laptop_mode/
.

Читайте также:  Ultraiso аналог в linux

Keep in mind that modules (or rather scripts) from laptop-mode-tools can conflict with others from pm-utils. Example: laptop mode wouldn’t disable once AC connected, as it normally should. This can be fixed by disabling scripts with duplicate functionality in pm-utils.
The main cause of this is the «laptop-mode» script located in «/usr/lib/pm-utils/power.d».

To disable a script from /usr/lib/pm-utils/power.d/ simply create an empty file in /etc/pm/power.d/ with the same name and without the execute bit set

Alternatively, the script can be blacklisted by creating a file in /etc/pm/config.d as follows:
$ sudo gedit /etc/pm/config.d/01_blacklist (You can call it whatever else you want)

You can also add any other scripts found in /usr/lib/pm-utils/power.d to this list to disable them.

Basic packages that were auto-installed in my case (maybe except for powertop)

# dpkg -l *power* | grep ^ii
ii gir1.2-upowerglib-1.0 0.9.17-1 GObject introspection data for upower
ii gnome-power-manager 3.4.0-2 power management tool for the GNOME desktop
ii libupower-glib1 0.9.17-1 abstraction for power management — shared library
ii mate-power-manager 1.4.0-1+wheezy power management tool for the MATE desktop
ii mate-power-manager-common 1.4.0-1+wheezy power management tool for the MATE desktop (common files)
ii powermgmt-base 1.31 Common utils and configs for power management
ii powertop 2.0-0.2 Linux tool to find out what is using power on a laptop
ii upower 0.9.17-1 abstraction for power management

# apt-cache search power-manager
mate-power-manager — power management tool for the MATE desktop
mate-power-manager-common — power management tool for the MATE desktop (common files)
mate-power-manager-dbg — power management tool for the MATE desktop (debugging symbols)
gnome-power-manager — power management tool for the GNOME desktop
xfce4-goodies — enhancements for the Xfce4 Desktop Environment
xfce4-power-manager — power manager for Xfce desktop
xfce4-power-manager-data — power manager for Xfce desktop, arch-indep files
xfce4-power-manager-plugins — power manager plugins for Xfce panel

Re: Laptop power management

Post by Motion » Mon Sep 24, 2012 4:41 pm

Many thanks, I missed powertop. We will see if it changes anything !

Every day passing, my love is growing for this distribution.

Re: Laptop power management

Post by jasmineaura » Tue Sep 25, 2012 5:33 am

Powertop doesn’t manage anything. It’s name is akin to «top», a popular command-line tool to monitor top processes based on various usage variables (CPU/MEM/SWAP etc.). So all powertop really does is show you which processes generate «wake-up calls» — what keeps CPU and/or Disks busy, and prevents them from idling to save power, along with educated-guessing of which processes/devices use most power. The more reliable method of using powertop is to run it after you’ve pulled the plug, to see actual battery drain rates, and power usage fluctuations as you use the comptuer, or just let it idle.
Recent versions (2.0) have a tabbed interface with the last tab being «Tunables» where powertop suggests some things to do in order to achieve less power usage. They can be toggled with the press of a key — enter. This can be handy for further tuning power usage, but not all actually make a difference or help (depends on feature, and/or your hardware/software/kernel-version). The changes made via the Tunables tab are not permanent, meaning they’re lost upon reboot. One could get a report of what it suggests (along with all other info) in HTML by running `powertop —html=/home/me/Documents/` (it will automatically create powertop-xxxxx.html file in the location you specify). The generated html report is also tabbed (provided you’re using an HTML5 capable browser), and there you can click the Tunables tab as well and see all the same recommendations it gives, along with the associated commands to reach those ends (which is not shown in the standard command line interface).

Читайте также:  Linux date format time

So, briefly, if your laptop shuts down when on battery, then it must be one of the following:
1. Battery drained completely (no more charge left) and so the system literally lost power; bad shutdown. This could mean power-manager of your Desktop Environment (DE) isn’t running. Ex. mate-power-manager, gnome-power-manager, xfce-power-manager, etc. Check your DE’s «startup applications» (usually under preferences) and make sure one (and only one) of those is checked. If you’re running alternate/custom setup, make sure to pick one you like and add it to your DE’s startup list, or in .xinitrc in your home directory

2. Battery reached critical level, your DE’s power manager got the signal notification from ACPI, and so it immediately decided to shutdown. This is *clean* shutdown, as opposed to *bad* shutdown caused by power-out as in #1. In this case, it is a matter of configuring your DE’s power-manager to choose what happens when battery reaches critical battery level; recommended: hibernate, as opposed to suspend will still draw small amounts of battery power overtime.

3. You, the user, were idle (no keyboard/mouse/touchpad activity) and no programs were running or accessing the disk and the DE’s power manager decided to shutdown the computer. This is unlikely, as defaults of the DE power managers in this case (idle timeout) are either suspend or hibernate.

So , if you’re still having that issue and cannot figure it out, do tell which Desktop environment you’re using when the shutdown happens, and whether it is bad shutdown (Battery drained completely), or clean shutdown (issued by some program). You can tell when you power-on your computer again, during bootup (or via `dmesg` after boot) to see warnings such as «filesystem was not cleanly unmounted on shutdown«.

Читайте также:  Сочетание клавиш команда терминал linux

You can use a tool like «caffeine» to keep the computer active while on battery to drain it down completely, to once again see what happens then — clean shutdown on critical level, or bad shutdown when it runs out.

Источник

gnome-power-manager on Linux Mint 21 «Vanessa»

Please follow the steps below to install gnome-power-manager package:

2. Uninstall / Remove gnome-power-manager package

Please follow the guidelines below to uninstall gnome-power-manager package:

3. Details of gnome-power-manager package

Package: gnome-power-manager
Architecture: amd64
Version: 3.32.0-2build2
Priority: optional
Section: gnome
Origin: Ubuntu
Maintainer: Ubuntu Developers
Original-Maintainer: Debian GNOME Maintainers

Bugs: https://bugs.launchpad.net/ubuntu/+filebug
Installed-Size: 320
Depends: libc6 (>= 2.34), libcairo2 (>= 1.2.4), libglib2.0-0 (>= 2.45.8), libgtk-3-0 (>= 3.4.0), libpango-1.0-0 (>= 1.18.0), libpangocairo-1.0-0 (>= 1.14.0), libupower-glib3 (>= 0.99.8), dconf-gsettings-backend | gsettings-backend, default-dbus-session-bus | dbus-session-bus, gnome-settings-daemon-common, upower (>= 0.99)
Filename: pool/main/g/gnome-power-manager/gnome-power-manager_3.32.0-2build2_amd64.deb
Size: 53370
MD5sum: adc24bf71c4545827b1873a5c1bab55c
SHA1: 3c2f17ca97c3181a89052aad39393cc1618a56f0
SHA256: 8e9d712ccda5c734dd783c8ab471b651e56744a9bbf5cc35cf280e2798965a45
SHA512: 25e82a03878739f7ed865a0f7f3b58a0f24b51000b552a55ccecb576d10ad7d0b23d126ab22f7f993761b9502fa531a02a8d70f1c0daba6369c11274e8af2bf3
Homepage: https://projects.gnome.org/gnome-power-manager/
Description: power management tool for the GNOME desktop
Description-md5: 1ece6a08127f01c856017ac9675775b5
Task: ubuntu-desktop-minimal, ubuntu-desktop, ubuntu-budgie-desktop, ubuntu-budgie-desktop-raspi

4. References on Linux Mint 21 «Vanessa»

5. The same packages on other Linux Distributions

gnome-power-manager (3.26.0-1) Ubuntu 18.04 LTS (Bionic Beaver)

gnome-power-manager (3.18.0-1ubuntu1) Ubuntu 16.04 LTS (Xenial Xerus)

gnome-power-manager (3.32.0-2) Ubuntu 21.04 (Hirsute Hippo)

gnome-power-manager (3.32.0-2) Ubuntu 20.10 (Groovy Gorilla)

gnome-power-manager (3.32.0-2build1) Ubuntu 21.10 (Impish Indri)

gnome-power-manager (3.32.0-1.68) openSUSE Leap

gnome-power-manager (3.32.0+58-1.2) openSuSE Tumbleweed

gnome-power-manager (3.32.0-2build2) Ubuntu 22.04 LTS (Jammy Jellyfish)

gnome-power-manager (3.30.0-2) Debian 10 (Buster)

Источник

gnome-power-manager on Linux Mint 20.3 «Una»

Here is a brief guide to show you how to install gnome-power-manager package:

2. Uninstall / Remove gnome-power-manager package

This is a short guide on how to uninstall gnome-power-manager package:

3. Details of gnome-power-manager package

Package: gnome-power-manager
Architecture: amd64
Version: 3.32.0-2
Priority: optional
Section: gnome
Origin: Ubuntu
Maintainer: Ubuntu Developers
Original-Maintainer: Debian GNOME Maintainers

Bugs: https://bugs.launchpad.net/ubuntu/+filebug
Installed-Size: 324
Depends: libc6 (>= 2.27), libcairo2 (>= 1.2.4), libglib2.0-0 (>= 2.45.8), libgtk-3-0 (>= 3.4.0), libpango-1.0-0 (>= 1.18.0), libpangocairo-1.0-0 (>= 1.14.0), libupower-glib3 (>= 0.99.8), dconf-gsettings-backend | gsettings-backend, default-dbus-session-bus | dbus-session-bus, gnome-settings-daemon-common, upower (>= 0.99)
Filename: pool/main/g/gnome-power-manager/gnome-power-manager_3.32.0-2_amd64.deb
Size: 49452
MD5sum: f6c2384dbc565574952d4140739324b0
SHA1: 7edbf54a64fca327a0c38d495492a53269167ab8
SHA256: b79285663195c3f5d64aa06dd9e890ade66a5f83cacdc8efd476916881dcf597
Homepage: https://projects.gnome.org/gnome-power-manager/
Description: power management tool for the GNOME desktop
Description-md5: 1ece6a08127f01c856017ac9675775b5
Task: ubuntu-desktop-minimal, ubuntu-desktop, ubuntu-budgie-desktop

4. References on Linux Mint 20.3 «Una»

5. The same packages on other Linux Distributions

gnome-power-manager (3.26.0-1) Ubuntu 18.04 LTS (Bionic Beaver)

gnome-power-manager (3.18.0-1ubuntu1) Ubuntu 16.04 LTS (Xenial Xerus)

gnome-power-manager (3.32.0-2) Ubuntu 21.04 (Hirsute Hippo)

gnome-power-manager (3.32.0-2) Ubuntu 20.10 (Groovy Gorilla)

gnome-power-manager (3.32.0-2build1) Ubuntu 21.10 (Impish Indri)

gnome-power-manager (3.32.0-1.68) openSUSE Leap

gnome-power-manager (3.32.0+58-1.2) openSuSE Tumbleweed

gnome-power-manager (3.32.0-2build2) Ubuntu 22.04 LTS (Jammy Jellyfish)

gnome-power-manager (3.30.0-2) Debian 10 (Buster)

Источник

Оцените статью
Adblock
detector