GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages
SYSPOWER(1) FreeBSD General Commands Manual SYSPOWER(1)

syspower
display the remaining battery charge from the /sys interface

syspower

The syspower utility parses the data in the Linux ACPI /sys/class/power_supply tree and displays the remaining charge of the battery both in the raw format read from the files and as a percentage of the full charge.

Now, why in the world I would need to write this when I seem to have had the acpi(1) tool right under my nose the whole time, is a question left for better men than me to judge :)

The syspower utility exits 0 on success, and >0 if an error occurs.

The syspower utility's operation is currently not directly affected by its environment.

The syspower utility examines the /sys/class/power_supply/BAT* directories and looks for the charge_now and charge_full files in each of them.

Display the current status of all the batteries that ACPI knows about:

syspower

acpi(1)

The syspower utility was written by Peter Pentchev in 2010.

Peter Penchev ⟨roam@ringlet.net⟩
December 26, 2010 FreeBSD 13.1-RELEASE

Search for    or go to Top of page |  Section 1 |  Main Index

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with ManDoc.