on_ac_power
common utils for power management
Install
- All systems
-
curl cmd.cat/on_ac_power.sh
- Debian
-
apt-get install powermgmt-base - Ubuntu
-
apt-get install powermgmt-base -
Alpine
-
apk add pm-utils - Kali Linux
-
apt-get install powermgmt-base - CentOS
-
yum install pm-utils - Windows (WSL2)
-
sudo apt-get updatesudo apt-get install powermgmt-base - Raspbian
-
apt-get install powermgmt-base - Docker
-
docker run cmd.cat/on_ac_power on_ac_powerpowered by Commando
powermgmt-base
common utils for power management
This package contains utilities for power management; beside certain mostly obsolete scripts, you'd want this package for "on_ac_power" which lets you determine whether the system is powered from battery or an abundant supply. It's recommended to use this tool over a simple sysfs check, ConditionACPower or other ad-hoc methods which notoriously fail to account for unobvious quirks, both old and new.
openrc
dependency based service manager (runlevel change mechanism)
OpenRC is a dependency based service manager. It provides support for System V init, for booting, changing runlevels, starting and stopping services, and shutting down. Originally written as a Gentoo project, OpenRC aims at being platform-agnostic. It works equally well on Linux, BSD and Hurd. It supports the traditional init system in Debian in addition to many alternatives. OpenRC is implemented in C in a small, simple and efficient way, making it easy to understand, extend and reuse. This package provides the runlevel change mechanism.
pm-utils
utilities and scripts for power management
This package provides simple shell command line tools to suspend and hibernate your computer.