Comment 30 for bug 467825

Revision history for this message
Mikael Hjelm (j-m-hjelm) wrote :

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.