<div class="gmail_quote">On Wed, Apr 1, 2009 at 8:48 AM, Filip Onkelinx <span dir="ltr">&lt;<a href="mailto:filip@linux4.be">filip@linux4.be</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hi,<br>
<br>
attached is a patch to use uevent to get kernel notifications for &#39;usb-cable-changed&#39; in QtExtended on recent kernels (&gt;=2.6.28).<br>
On &#39;older&#39; kernels (&lt;2.6.28), this information was comming in trough /dev/input/event4 but this is no longer working (there is a ticket for this at <a href="https://docs.openmoko.org/trac/ticket/2254" target="_blank">https://docs.openmoko.org/trac/ticket/2254</a> ).<br>

With this patch my FR switches correctly from battery power savings scheme to online pwoer scheme, and usb networking goes up/down as expected.<br>
Same mechanism could be used to re-implement an event based neobattery.<br>
</blockquote><div> <br>Filip,<br><br>does this mean the 2.6.28 based system detects usb cable changed, just for networking? Or does the battery start charging as well?<br><br>Franky<br></div></div>