syspower man page on DragonFly

Man page or keyword search:  
man Server   44335 pages
apropos Keyword Search (all sections)
Output format
DragonFly logo
[printable version]

SYSPOWER(1)		  BSD General Commands Manual		   SYSPOWER(1)

NAME
     syspower — display the remaining battery charge from the /sys interface

SYNOPSIS
     syspower

DESCRIPTION
     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 :)

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

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

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

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

	   syspower

SEE ALSO
     acpi(1)

HISTORY
     The syspower utility was written by Peter Pentchev in 2010.

AUTHORS
     Peter Penchev ⟨roam@ringlet.net⟩

BSD			       December 26, 2010			   BSD
[top]

List of man pages available for DragonFly

Copyright (c) for man pages and the logo by the respective OS vendor.

For those who want to learn more, the polarhome community provides shell access and support.

[legal] [privacy] [GNU] [policy] [cookies] [netiquette] [sponsors] [FAQ]
Tweet
Polarhome, production since 1999.
Member of Polarhome portal.
Based on Fawad Halim's script.
....................................................................
Vote for polarhome
Free Shell Accounts :: the biggest list on the net