I'm trying to configure my Lenovo on arch linux. The last thing I need to do is get the battery 100% working.
Right now it appears that the main battery's state is unknown:
> acpi -V Battery 0: Unknown, 97% Battery 0: design capacity 5849 mAh, last full capacity 5956 mAh = 100% Battery 1: Charging, 96%, 00:05:50 until charged Battery 1: design capacity 1861 mAh, last full capacity 1536 mAh = 82% Adapter 0: on-line Thermal 0: ok, 43.0 degrees C Thermal 0: trip point 0 switches to mode critical at temperature 200.0 degrees C Cooling 0: x86_pkg_temp no state information available Cooling 1: intel_powerclamp no state information available Cooling 2: Processor 0 of 10 Cooling 3: Processor 0 of 10 Cooling 4: Processor 0 of 10 Cooling 5: Processor 0 of 10
But if I query the battery directly I get a completely different response:
> cat /sys/class/power_supply/BAT0/status Charging > cat /sys/class/power_supply/BAT0/uevent POWER_SUPPLY_NAME=BAT0 POWER_SUPPLY_STATUS=Charging POWER_SUPPLY_PRESENT=1 POWER_SUPPLY_TECHNOLOGY=Li-ion POWER_SUPPLY_CYCLE_COUNT=0 POWER_SUPPLY_VOLTAGE_MIN_DESIGN=11100000 POWER_SUPPLY_VOLTAGE_NOW=12389000 POWER_SUPPLY_POWER_NOW=0 POWER_SUPPLY_ENERGY_FULL_DESIGN=23200000 POWER_SUPPLY_ENERGY_FULL=19150000 POWER_SUPPLY_ENERGY_NOW=19050000 POWER_SUPPLY_CAPACITY=99 POWER_SUPPLY_CAPACITY_LEVEL=Normal POWER_SUPPLY_MODEL_NAME=45N1773 POWER_SUPPLY_MANUFACTURER=SANYO POWER_SUPPLY_SERIAL_NUMBER=16120
I'm at a complete loss as to what to do here. I have a script reporting battery life that runs off of the output of some of these commands and I would like it to be as complete as possible. Clearly the battery is charging, but why would acpi -V say it's unknown? Does anyone know?