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.
- Host: GitHub
- URL: https://github.com/shalomb/laptop-battery-actions
- Owner: shalomb
- License: other
- Created: 2017-08-11T22:02:41.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2017-08-23T21:01:54.000Z (over 7 years ago)
- Last Synced: 2025-01-10T14:52:46.743Z (4 months ago)
- Topics: acpi, acpi-brightness, acpid, battery, battery-level, battery-life, battery-monitor, laptop, laptop-dotfiles, power-saving, xflux
- Language: Shell
- Homepage:
- Size: 12.7 KB
- Stars: 1
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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.