<?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: how to enable serial console during android suspend? in i.MX Processors</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/how-to-enable-serial-console-during-android-suspend/m-p/266159#M27725</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Abraham,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do you want to debug suspend/resume stability in your device? Or any others?&lt;/P&gt;&lt;P&gt;The UART will not workable when device into suspend mode, its because the CPU enter suspend mode too.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you want to suspend Android system only and keep kernel still alive, you can modify /kernel/kernel/power/main.c to block kernel enter suspend.&lt;/P&gt;&lt;P&gt;After above changed, the Android system will suspend (LCD, Touch and Audio also stop working) but kernel still on work, so you can using debug UART on this status.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;static ssize_t state_store(struct kobject *kobj, struct kobj_attribute *attr,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; const char *buf, size_t n)&lt;/P&gt;&lt;P&gt;{&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;#if 0&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;&amp;nbsp; /*&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;&amp;nbsp; * Not enter suspend mode&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;&amp;nbsp; */&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;&amp;nbsp; do {} while (0);&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;&amp;nbsp; return 0;&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;#else&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;#ifdef CONFIG_SUSPEND&lt;/P&gt;&lt;P&gt;....&lt;/P&gt;&lt;P&gt; Exit:&lt;/P&gt;&lt;P&gt;&amp;nbsp; return error ? error : n;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;#endif&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;}&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, 08 Oct 2013 01:41:27 GMT</pubDate>
    <dc:creator>rickchu</dc:creator>
    <dc:date>2013-10-08T01:41:27Z</dc:date>
    <item>
      <title>how to enable serial console during android suspend?</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/how-to-enable-serial-console-during-android-suspend/m-p/266156#M27722</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a custom IMX6D board running android based off the sabresd android JB 4.2.2 release. A lot of our debugging is done over the serial (UART1) console. When android goes into its low-power suspend state, the console becomes un-responsive. Only way to 'wake up' the console is to press the power button, which also brings the entire system (including display) back up.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there any way to have the system enter low power suspend state, but keep the serial console enabled for debug purposes?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've tried adding '&lt;SPAN style="color: #000000; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;no_console_suspend&lt;/SPAN&gt;' to the boot arguments for kernel, but the console still goes dead when the system enters suspend mode.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Stumped,&lt;/P&gt;&lt;P&gt;Abraham V.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Oct 2013 08:34:13 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/how-to-enable-serial-console-during-android-suspend/m-p/266156#M27722</guid>
      <dc:creator>abraham_v</dc:creator>
      <dc:date>2013-10-07T08:34:13Z</dc:date>
    </item>
    <item>
      <title>Re: how to enable serial console during android suspend?</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/how-to-enable-serial-console-during-android-suspend/m-p/266157#M27723</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi abraham,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Have enabled the&lt;STRONG&gt; CONFIG_DISABLE_CONSOLE_SUSPEND&lt;/STRONG&gt; in your defconfig file? can you plz check it out&lt;/P&gt;&lt;H1&gt;&lt;/H1&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;shan&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Oct 2013 10:32:14 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/how-to-enable-serial-console-during-android-suspend/m-p/266157#M27723</guid>
      <dc:creator>shanmugamsundar</dc:creator>
      <dc:date>2013-10-07T10:32:14Z</dc:date>
    </item>
    <item>
      <title>Re: how to enable serial console during android suspend?</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/how-to-enable-serial-console-during-android-suspend/m-p/266158#M27724</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for replying Shan.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Unfortunately, that was among the things I looked into. When I open up "make menuconfig" before building the kernel and try a search, "&lt;STRONG style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;CONFIG_DISABLE_CONSOLE_SUSPEND&lt;/STRONG&gt;" isn't there. :smileysad:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Abraham V.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Oct 2013 11:47:49 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/how-to-enable-serial-console-during-android-suspend/m-p/266158#M27724</guid>
      <dc:creator>abraham_v</dc:creator>
      <dc:date>2013-10-07T11:47:49Z</dc:date>
    </item>
    <item>
      <title>Re: how to enable serial console during android suspend?</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/how-to-enable-serial-console-during-android-suspend/m-p/266159#M27725</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Abraham,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do you want to debug suspend/resume stability in your device? Or any others?&lt;/P&gt;&lt;P&gt;The UART will not workable when device into suspend mode, its because the CPU enter suspend mode too.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you want to suspend Android system only and keep kernel still alive, you can modify /kernel/kernel/power/main.c to block kernel enter suspend.&lt;/P&gt;&lt;P&gt;After above changed, the Android system will suspend (LCD, Touch and Audio also stop working) but kernel still on work, so you can using debug UART on this status.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;static ssize_t state_store(struct kobject *kobj, struct kobj_attribute *attr,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; const char *buf, size_t n)&lt;/P&gt;&lt;P&gt;{&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;#if 0&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;&amp;nbsp; /*&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;&amp;nbsp; * Not enter suspend mode&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;&amp;nbsp; */&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;&amp;nbsp; do {} while (0);&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;&amp;nbsp; return 0;&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;#else&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;#ifdef CONFIG_SUSPEND&lt;/P&gt;&lt;P&gt;....&lt;/P&gt;&lt;P&gt; Exit:&lt;/P&gt;&lt;P&gt;&amp;nbsp; return error ? error : n;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;#endif&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;}&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, 08 Oct 2013 01:41:27 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/how-to-enable-serial-console-during-android-suspend/m-p/266159#M27725</guid>
      <dc:creator>rickchu</dc:creator>
      <dc:date>2013-10-08T01:41:27Z</dc:date>
    </item>
    <item>
      <title>Re: how to enable serial console during android suspend?</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/how-to-enable-serial-console-during-android-suspend/m-p/266160#M27726</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you Rick!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;That was exactly what I was looking for.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Relieved,&lt;/P&gt;&lt;P&gt;Abraham V.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Oct 2013 03:49:36 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/how-to-enable-serial-console-during-android-suspend/m-p/266160#M27726</guid>
      <dc:creator>abraham_v</dc:creator>
      <dc:date>2013-10-08T03:49:36Z</dc:date>
    </item>
  </channel>
</rss>

