The information provided by HAL all looks consistent. When running from battery:
battery.rechargeable.is_charging = false battery.rechargeable.is_discharging = true ac_adapter.present = false
When running from AC:
battery.rechargeable.is_charging = false battery.rechargeable.is_discharging = false ac_adapter.present = true battery.charge_level.percentage = 100
It seems that in your second case, the battery is fully charged. It would be good to see the same set of information with the AC adpater present and the battery charging (ie, charge_level < 100)
The information provided by HAL all looks consistent. When running from battery:
battery. rechargeable. is_charging = false rechargeable. is_discharging = true
battery.
ac_adapter.present = false
When running from AC:
battery. rechargeable. is_charging = false rechargeable. is_discharging = false charge_ level.percentag e = 100
battery.
ac_adapter.present = true
battery.
It seems that in your second case, the battery is fully charged. It would be good to see the same set of information with the AC adpater present and the battery charging (ie, charge_level < 100)