in the function
up_device_supply_refresh_battery
in the file up-device-supply.c
there is a suspicious line
/* only disable the polling if the kernel tells us we're fully charged,
not if we've guessed the state to be fully charged */
supply->priv->enable_poll = (state != UP_DEVICE_STATE_FULLY_CHARGED);
I feel that this disables the polling of the battery, this together with the delayed report that the battery is discharging could lead to the error we see but i do not know the code so i cannot be sure.
I also do not know how to build my own upowerd so that i can test this.
in the function supply_ refresh_ battery >priv-> enable_ poll = (state != UP_DEVICE_ STATE_FULLY_ CHARGED) ;
up_device_
in the file up-device-supply.c
there is a suspicious line
/* only disable the polling if the kernel tells us we're fully charged,
not if we've guessed the state to be fully charged */
supply-
I feel that this disables the polling of the battery, this together with the delayed report that the battery is discharging could lead to the error we see but i do not know the code so i cannot be sure.
I also do not know how to build my own upowerd so that i can test this.