1N/A/*************************************************************************** 1N/A * acpi.c : Main routines for setting battery, AC adapter, and lid properties 1N/A * Copyright (c) 2006, 2011, Oracle and/or its affiliates. All rights reserved. 1N/A * This file is licensed under either the Academic Free License 1N/A * version 2.1 or The GNU General Public License version 2. 1N/A **************************************************************************/ 1N/A "Generic Backlight Device");
1N/A "battery.rechargeable.is_discharging", &
error);
1N/A "battery.rechargeable.is_charging", &
error);
1N/A "battery.reporting.granularity_2", &
error);
1N/A "battery.reporting.granularity_1", &
error);
1N/A /* No need to continue if battery is essentially idle. */ 1N/A /* get all the data we know */ 1N/A * Convert mAh to mWh since util_compute_time_remaining() works 1N/A * If the present_voltage is inaccurate, set it to the 1N/A /* Make sure the current charge does not exceed the full charge */ 1N/A * Some batteries give bad remaining_time estimates relative to 1N/A * remaining_percentage is more accurate so we handle cases 1N/A * where the remaining_time cannot be correct. 1N/A "battery.reporting.unit",
"mAh");
1N/A "battery.reporting.unit",
"mWh");
1N/A /* convert to mWh */