<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Tahoma
}
--></style>
</head>
<body class='hmmessage'><div dir='ltr'>
Afraid not, the only patch i have is to disable the disabling of the poll in <br><br>diff src/linux/<wbr>up-device-<wbr>supply.<wbr>c src/linux/<wbr>up-device-<wbr>supply.<wbr>c~<br>
549c549<br>
<         /* supply-<wbr>>priv-><wbr>enable_<wbr>poll = (state != UP_DEVICE_<wbr>STATE_FULLY_<wbr>CHARGED)<wbr>; */<br>
---<br>
<span class="foldable-quoted">
>         supply-<wbr>>priv-><wbr>enable_<wbr>poll = (state != UP_DEVICE_<wbr>STATE_FULLY_<wbr>CHARGED)<wbr>;
</span><br><br>In this function you have no knowledge of the AC power state, which is the problem in the first place. <br>This function only knows the battery properties and they are too slow to react. <br><br>Is this ok or do you think it should be in the setup_poll function to reenable the poll or is there some way that the battery can know if any AC supply is connected?<br>If you want a more formal patch i need to talk to some friends of mine who can create a patch from the git tree. <br><br>BTW sorry for the no subject thing i forgot the subject when i copied the old email.<br><br>BR <br>Mikael Hjelm<br><br><br><br><div>> Date: Fri, 1 Jul 2011 18:59:51 +0100<br>> Subject: Re:<br>> From: hughsient@gmail.com<br>> To: j_m_hjelm@hotmail.com<br>> CC: devkit-devel@lists.freedesktop.org<br>> <br>> On 1 July 2011 16:43, Mikael Hjelm <j_m_hjelm@hotmail.com> wrote:<br>> > I would like to see a change either in setup_poll to reenable the poll<br>> > independent of the enable_poll state, or even resetting it to enabled, or do<br>> > not disable the enable_poll unless the state is<br>> > UP_DEVICE_STATE_FULLY_CHARGED AND AC power is online.<br>> <br>> Sounds okay I guess. Got a patch please?<br>> <br>> Richard.<br>> _______________________________________________<br>> devkit-devel mailing list<br>> devkit-devel@lists.freedesktop.org<br>> http://lists.freedesktop.org/mailman/listinfo/devkit-devel<br></div>                                            </div></body>
</html>