Acpi::Battery - A class to get informations about your battery.


Acpi documentation  | view source Contained in the Acpi distribution.

Index


NAME

Top

Acpi::Battery - A class to get informations about your battery.

SYNOPSIS

Top

use Acpi::Battery;

$battery = Acpi::Battery->new;

if($battery->batteryOnLine == 0){

	print "Battery online\n";

	print $battery->getCharge."\n"; 

	print "Time remaining ".$batteyr->getHoursLeft.":".$battery->getMinutesLeft."\n";

}

else{

print "Battery offline\n";

}

DESCRIPTION

Top

Acpi::Battery is used to have information about your battery.It's specific for GNU/Linux

METHOD DESCRIPTIONS

Top

This sections contains only the methods in Battery.pm itself.

AUTHORS

Top


Acpi documentation  | view source Contained in the Acpi distribution.