tpacpi-bat - ThinkPad ACPI Battery Util
Exposes ACPI interface for battery controls.
-force discharge
-inhibit charge
-start charge threshold
-stop charge threshold
This project is licensed under the GPLv3. See COPYING for details.
Copyright 2011,2013 Elliot Wolk
Usage:
Show this message:
tpacpi-bat [-h|--help]
Get charge thresholds / inhibit charge / force discharge:
tpacpi-bat [-v] -g ST <bat{1,2}>
tpacpi-bat [-v] -g SP <bat{1,2}>
tpacpi-bat [-v] -g IC <bat{1,2,0}>
tpacpi-bat [-v] -g FD <bat{1,2}>
Set charge thresholds / inhibit charge / force discharge:
tpacpi-bat [-v] -s ST <bat{1,2,0}> <percent{0,1-99}>
tpacpi-bat [-v] -s SP <bat{1,2,0}> <percent{0,1-99}>
tpacpi-bat [-v] -s IC <bat{1,2,0}> <inhibit{1,0}> [<min{0,1-720,65535}>]
tpacpi-bat [-v] -s FD <bat{1,2}> <discharge{1,0}> [<acbreak{1,0}>]
Set peak shift state, which is mysterious and inhibits charge:
tpacpi-bat [-v] -s PS <inhibit{1,0}> [<min{0,1-1440,65535}>]
Synonyms:
ST -> --st|--startThreshold|--start|st|startThreshold|start
SP -> --sp|--stopThreshold|--stop|sp|stopThreshold|stop
IC -> --ic|--inhibitCharge|--inhibit|ic|inhibitCharge|inhibit
FD -> --fd|--forceDischarge|fd|forceDischarge
PS -> --ps|--peakShiftState|ps|peakShiftState
Options:
-v show ASL call and response
<bat> 1 for main, 2 for secondary, 0 for either/both
<min> number of minutes, or 0 for never, or 65535 for forever
<percent> 0 for default, 1-99 for percentage
<inhibit> 1 for inhibit charge, 0 for stop inhibiting charge
<discharge> 1 for force discharge, 0 for stop forcing discharge
<acbreak> 1 for stop forcing when AC is detached, 0 for do not
[] means optional: sets value to 0
forked from teleshoes/tpacpi-bat
zakame/tpacpi-bat
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
slacktrack
Could not load branches
Nothing to show
Could not load tags
Nothing to show
{{ refName }}
default
Name already in use
A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code
-
Clone
Use Git or checkout with SVN using the web URL.
Work fast with our official CLI. Learn more about the CLI.
- Open with GitHub Desktop
- Download ZIP
Sign In Required
Please sign in to use Codespaces.
Launching GitHub Desktop
If nothing happens, download GitHub Desktop and try again.
Launching GitHub Desktop
If nothing happens, download GitHub Desktop and try again.
Launching Xcode
If nothing happens, download Xcode and try again.
Launching Visual Studio Code
Your codespace will open once ready.
There was a problem preparing your codespace, please try again.
This branch is 1 commit ahead, 22 commits behind teleshoes:master.
Latest commit
Git stats
Files
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
About
ThinkPad ACPI Battery Util
Resources
License
Stars
Watchers
Forks
Packages 0
No packages published
Languages
- Perl 100.0%