Hi Martin, Amazing, five emails to this mailing list and i have failed the formatting on all of them one way or another.
Attached the patch. > Date: Mon, 11 Jul 2011 06:45:24 +0200 > From: martin.p...@ubuntu.com > To: j_m_hj...@hotmail.com > Subject: Re: [PATCH] Patch to solve issues with some hardware that causes > battery to never update > CC: devkit-devel@lists.freedesktop.org > > Hello Mikael, > > Mikael Hjelm [2011-07-10 22:24 +0200]: > > /upower$ git diff diff [...] > > Can you please attach the patch? In both cases the copy&paste result > got demolished by your MUA. > > Martin > -- > Martin Pitt | http://www.piware.de > Ubuntu Developer (www.ubuntu.com) | Debian Developer (www.debian.org) > _______________________________________________ > devkit-devel mailing list > devkit-devel@lists.freedesktop.org > http://lists.freedesktop.org/mailman/listinfo/devkit-devel
diff --git a/src/linux/up-device-supply.c b/src/linux/up-device-supply.c index 600fc27..402b538 100644 --- a/src/linux/up-device-supply.c +++ b/src/linux/up-device-supply.c @@ -544,8 +544,13 @@ up_device_supply_refresh_battery (UpDeviceSupply *supply) } /* only disable the polling if the kernel tells us we're fully charged, - not if we've guessed the state to be fully charged */ + not if we've guessed the state to be fully charged. This function + has been disabled since some battery hardware/drivers are very + late to report discharging and does not interrupt on state change + */ + /* supply->priv->enable_poll = (state != UP_DEVICE_STATE_FULLY_CHARGED); + */ /* reset unknown counter */ if (state != UP_DEVICE_STATE_UNKNOWN) {
_______________________________________________ devkit-devel mailing list devkit-devel@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/devkit-devel