An open API service indexing awesome lists of open source software.

https://github.com/shalomb/laptop-battery-actions

ACPId actions to better manage battery life.
https://github.com/shalomb/laptop-battery-actions

acpi acpi-brightness acpid battery battery-level battery-life battery-monitor laptop laptop-dotfiles power-saving xflux

Last synced: about 2 months ago
JSON representation

ACPId actions to better manage battery life.

Awesome Lists containing this project

README

        

# laptop-battery-actions

A script that reacts to `acpid` events and does the following

* Set backlight brightness to the battery level - decreasing brightness is a
good battery-level indicator and a really dim screen means you ought to plug
in sometime soon.
* Invokes `tlp` and `pm-powersave` powersave configurations when battery is
discharging or to optimized otherwise.
* Hibernates the laptop on a critically low battery level.

## Installation

sudo -E ./INIT

## Configuration

See `/etc/default/laptop-battery-actions` for options.

After changes to the defaults file, make sure to reload the `acpid` service.

service acpid restart

## TODO

* React to lid events and suspend to disk (as opposed to RAM) if under some
threshold.