<?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>i.MX ProcessorsのトピックHow to make sensor wakeup Android?</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/How-to-make-sensor-wakeup-Android/m-p/403936#M59883</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have accelerometer driver lis3dh and I want to wakeup Android from deep sleep when device is moved.&lt;/P&gt;&lt;P&gt;My current implementation has additional driver registered as input device that sends power key code to Android. I call this drivers function from lis3dh and that is how I wake up Android.&lt;/P&gt;&lt;P&gt;I figure there has to be another way to properly wake up Android by sensor driver but couldn't find anything on google.. Anyone has experience with this?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 13 Jul 2015 10:55:04 GMT</pubDate>
    <dc:creator>petarbajic</dc:creator>
    <dc:date>2015-07-13T10:55:04Z</dc:date>
    <item>
      <title>How to make sensor wakeup Android?</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/How-to-make-sensor-wakeup-Android/m-p/403936#M59883</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have accelerometer driver lis3dh and I want to wakeup Android from deep sleep when device is moved.&lt;/P&gt;&lt;P&gt;My current implementation has additional driver registered as input device that sends power key code to Android. I call this drivers function from lis3dh and that is how I wake up Android.&lt;/P&gt;&lt;P&gt;I figure there has to be another way to properly wake up Android by sensor driver but couldn't find anything on google.. Anyone has experience with this?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Jul 2015 10:55:04 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/How-to-make-sensor-wakeup-Android/m-p/403936#M59883</guid>
      <dc:creator>petarbajic</dc:creator>
      <dc:date>2015-07-13T10:55:04Z</dc:date>
    </item>
    <item>
      <title>Re: How to make sensor wakeup Android?</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/How-to-make-sensor-wakeup-Android/m-p/403937#M59884</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can just acquire a timeout wakelock in your sensor driver once its irq triggered.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Jul 2015 07:47:23 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/How-to-make-sensor-wakeup-Android/m-p/403937#M59884</guid>
      <dc:creator>chenguoyin</dc:creator>
      <dc:date>2015-07-14T07:47:23Z</dc:date>
    </item>
    <item>
      <title>Re: How to make sensor wakeup Android?</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/How-to-make-sensor-wakeup-Android/m-p/403938#M59885</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I see drivers/rtc/alarm.c calls this function when it should wake up the system:&lt;/P&gt;&lt;P&gt;wake_lock_timeout(&amp;amp;alarm_rtc_wake_lock, 1 * HZ);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but when I add something like this to my irq interrupt, the screen is not turned on.&lt;/P&gt;&lt;P&gt;(I have log showing that function is called)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I initialize wakelock in driver probe like this:&lt;/P&gt;&lt;P&gt;wake_lock_init(&amp;amp;lis3dh_wake_lock, WAKE_LOCK_SUSPEND, "lis3dh_wakeup");&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Jul 2015 16:18:35 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/How-to-make-sensor-wakeup-Android/m-p/403938#M59885</guid>
      <dc:creator>petarbajic</dc:creator>
      <dc:date>2015-07-14T16:18:35Z</dc:date>
    </item>
    <item>
      <title>Re: How to make sensor wakeup Android?</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/How-to-make-sensor-wakeup-Android/m-p/403939#M59886</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;the wakelock only help you to keep system alive but not screen. If you need screen, you need your android application to catch the sensor event and hold the screen on.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But why you need your screen on with sensor event.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jul 2015 03:24:31 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/How-to-make-sensor-wakeup-Android/m-p/403939#M59886</guid>
      <dc:creator>chenguoyin</dc:creator>
      <dc:date>2015-07-15T03:24:31Z</dc:date>
    </item>
  </channel>
</rss>

