Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mikkun/battery-auto-suspend
Auto Suspend on Low Battery
https://github.com/mikkun/battery-auto-suspend
Last synced: about 6 hours ago
JSON representation
Auto Suspend on Low Battery
- Host: GitHub
- URL: https://github.com/mikkun/battery-auto-suspend
- Owner: mikkun
- License: gpl-3.0
- Created: 2014-08-18T08:55:01.000Z (about 10 years ago)
- Default Branch: master
- Last Pushed: 2014-08-26T03:05:04.000Z (about 10 years ago)
- Last Synced: 2023-04-07T22:48:28.276Z (over 1 year ago)
- Language: Shell
- Size: 137 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
battery-auto-suspend - Auto Suspend on Low Battery
==================================================Introduction
------------The **battery-auto-suspend** is a simple bash systemd service to auto suspend on low battery.
Installation
------------### To Install ###
Execute the following commands after extracting the downloaded archive:
# cd /path/to/battery-auto-suspend
# make install### To Uninstall ###
# cd /path/to/battery-auto-suspend
# make uninstallConfiguration
-------------You can change the following settings in the */etc/battery-auto-suspend.conf*:
* **ACTION** - Must be "suspend", "hibernate" or "hybrid-sleep".
* **BATTERY_LOW** - Must be an integer between 1 and 99.
* **INTERVAL_SEC** - Must be an integer greater than or equal to 1.If you edit the */etc/battery-auto-suspend.conf*, the **battery-auto-suspend** service must be restarted.
# systemctl restart battery-auto-suspend
License
-------Copyright (C) 2014 [KUSANAGI Mitsuhisa](https://github.com/mikkun)
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.You should have received a copy of the GNU General Public License
along with this program. If not, see .