<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: need help with android fuel gauge in i.MX Processors</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/need-help-with-android-fuel-gauge/m-p/380814#M54931</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;anyone? please help. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 13 Oct 2014 15:16:09 GMT</pubDate>
    <dc:creator>kobusgoosen</dc:creator>
    <dc:date>2014-10-13T15:16:09Z</dc:date>
    <item>
      <title>need help with android fuel gauge</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/need-help-with-android-fuel-gauge/m-p/380813#M54930</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a IMX6 system built around a CPU module. the module's original base board was powered, and thus had emulated battery support. my system is like a tablet, so I added a ds2786 fuel gauge IC, and added it to my board config in the kernel.&lt;/P&gt;&lt;P&gt;I also removed the battery emulation in my android init.rc file.&lt;/P&gt;&lt;P&gt;The IC seems to work. in android I get a battery icon with a believable percentage value, but it never changes.&lt;/P&gt;&lt;P&gt;I added some kernel printk() statements to the fuel gauge code, and the battery capacity seems to be read, but only twice; once around where the device is probed, and then once more once android starts up. After that its never updated. I havent added a power button yet, so i'm not sure if this would be checked again when exiting suspend, but I feel there is some sort of power monitor process thats not being called. I dont know if this is in the android side or the kernel side.&lt;/P&gt;&lt;P&gt;Does anyone have any ideas?&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Oct 2014 21:54:00 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/need-help-with-android-fuel-gauge/m-p/380813#M54930</guid>
      <dc:creator>kobusgoosen</dc:creator>
      <dc:date>2014-10-09T21:54:00Z</dc:date>
    </item>
    <item>
      <title>Re: need help with android fuel gauge</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/need-help-with-android-fuel-gauge/m-p/380814#M54931</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;anyone? please help. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Oct 2014 15:16:09 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/need-help-with-android-fuel-gauge/m-p/380814#M54931</guid>
      <dc:creator>kobusgoosen</dc:creator>
      <dc:date>2014-10-13T15:16:09Z</dc:date>
    </item>
    <item>
      <title>Re: need help with android fuel gauge</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/need-help-with-android-fuel-gauge/m-p/380815#M54932</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can reference with kernel_imx/drivers/power/bq27x00_battery.c, to know how to update battery percentage information by using schedule_delayed_work().&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;git tag: jb4.2.2_1.1.0-ga&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rick&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Oct 2014 02:06:38 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/need-help-with-android-fuel-gauge/m-p/380815#M54932</guid>
      <dc:creator>rickchu</dc:creator>
      <dc:date>2014-10-14T02:06:38Z</dc:date>
    </item>
    <item>
      <title>Re: need help with android fuel gauge</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/need-help-with-android-fuel-gauge/m-p/380816#M54933</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ah, thanks. I thought it might be something like that. I noticed the battery used in the sabre design used an interrupt to signal the CPU, so I gues it makes sense that this driver should have some sort of work handler. &lt;/P&gt;&lt;P&gt;It seems like a rather important piece to leave out of this device's driver though... I had a look at the driver for ds2782_battery.c, and it does actually have a work handler, but only in kernel 3.10 and up. I'll have a go at working this into my kernel soon.&amp;nbsp; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Oct 2014 05:37:54 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/need-help-with-android-fuel-gauge/m-p/380816#M54933</guid>
      <dc:creator>kobusgoosen</dc:creator>
      <dc:date>2014-10-14T05:37:54Z</dc:date>
    </item>
    <item>
      <title>Re: need help with android fuel gauge</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/need-help-with-android-fuel-gauge/m-p/380817#M54934</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you Rick for your answer!.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Kobus, let us know of any other question you may have.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Oct 2014 14:37:05 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/need-help-with-android-fuel-gauge/m-p/380817#M54934</guid>
      <dc:creator>SergioSolis</dc:creator>
      <dc:date>2014-10-14T14:37:05Z</dc:date>
    </item>
  </channel>
</rss>

