<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>
&lt;         /* supply-<wbr>&gt;priv-&gt;<wbr>enable_<wbr>poll = (state != UP_DEVICE_<wbr>STATE_FULLY_<wbr>CHARGED)<wbr>; */<br>
---<br>
<span class="foldable-quoted">
&gt;         supply-<wbr>&gt;priv-&gt;<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>&gt; Date: Fri, 1 Jul 2011 18:59:51 +0100<br>&gt; Subject: Re:<br>&gt; From: hughsient@gmail.com<br>&gt; To: j_m_hjelm@hotmail.com<br>&gt; CC: devkit-devel@lists.freedesktop.org<br>&gt; <br>&gt; On 1 July 2011 16:43, Mikael Hjelm &lt;j_m_hjelm@hotmail.com&gt; wrote:<br>&gt; &gt; I would like to see a change either in setup_poll to reenable the poll<br>&gt; &gt; independent of the enable_poll state, or even resetting it to enabled, or do<br>&gt; &gt; not disable the enable_poll unless the state is<br>&gt; &gt; UP_DEVICE_STATE_FULLY_CHARGED AND AC power is online.<br>&gt; <br>&gt; Sounds okay I guess. Got a patch please?<br>&gt; <br>&gt; Richard.<br>&gt; _______________________________________________<br>&gt; devkit-devel mailing list<br>&gt; devkit-devel@lists.freedesktop.org<br>&gt; http://lists.freedesktop.org/mailman/listinfo/devkit-devel<br></div>                                               </div></body>
</html>