<?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 prevent the power button from putting the device into sleep? in i.MX Processors</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/How-to-prevent-the-power-button-from-putting-the-device-into/m-p/1052562#M154889</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you for this tip. &amp;nbsp;That's exactly what I was looking for.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 13 May 2020 16:05:37 GMT</pubDate>
    <dc:creator>dennis3</dc:creator>
    <dc:date>2020-05-13T16:05:37Z</dc:date>
    <item>
      <title>How to prevent the power button from putting the device into sleep?</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/How-to-prevent-the-power-button-from-putting-the-device-into/m-p/1052560#M154887</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Our device has a power button the user can turn on/off the device like normal. &amp;nbsp;In fsl-imx8mq.dtsi this is defined via the snvs_pwrkey node:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp; snvs_pwrkey: snvs-powerkey {&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;compatible = "fsl,sec-v4.0-pwrkey";&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;regmap = &amp;lt;&amp;amp;snvs&amp;gt;;&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;interrupts = &amp;lt;GIC_SPI 4 IRQ_TYPE_LEVEL_HIGH&amp;gt;;&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;linux,keycode = &amp;lt;KEY_POWER&amp;gt;;&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;wakeup-source;&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;};&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Power functions all work as designed except I have the need to prevent the device from going into a sleep state. &amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Power button long press -&amp;gt; show power menu, user can shutdown or reboot (OK)&lt;/P&gt;&lt;P&gt;Power button long press &amp;gt; 5 seconds -&amp;gt; hard shutdown (OK)&lt;/P&gt;&lt;P&gt;Power button short press -&amp;gt; sleep. (wish to disable this)&lt;/P&gt;&lt;P&gt;Power button short press -&amp;gt; wake&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can someone point me to the right layer in Android or Linux where I might change the handler to ignore the short press sleep state?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 May 2020 19:32:53 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/How-to-prevent-the-power-button-from-putting-the-device-into/m-p/1052560#M154887</guid>
      <dc:creator>dennis3</dc:creator>
      <dc:date>2020-05-06T19:32:53Z</dc:date>
    </item>
    <item>
      <title>Re: How to prevent the power button from putting the device into sleep?</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/How-to-prevent-the-power-button-from-putting-the-device-into/m-p/1052561#M154888</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;SPAN style="color: #51626f; border: 0px; font-weight: bold; font-size: 12.6px;"&gt;&lt;STRONG&gt;&lt;A _jive_internal="true" data-avatarid="-1" data-content-finding="Community" data-userid="319861" data-username="dennis@brooksee.tech" href="https://community.nxp.com/people/dennis@brooksee.tech" style="border: 0px; font-weight: inherit; text-decoration: underline; font-size: 1.1em; padding: 0px 3px 0px 0px;"&gt;Dennis Muhlestein&lt;/A&gt;,&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is not a i.MX specific rather it is Android supported feature.&lt;/P&gt;&lt;P&gt;To disable the&amp;nbsp;&lt;SPAN style="color: #333333; background-color: #ffffff;"&gt;Power button short press sleep functionality, change the value of the variable &lt;STRONG&gt;"config_shortPressOnPowerBehavior"&lt;/STRONG&gt; to &lt;STRONG&gt;0&lt;/STRONG&gt;&amp;nbsp;&lt;STRONG&gt;(zero)&lt;/STRONG&gt; in &lt;STRONG&gt;{AOSP}/frameworks/base/core/res/res/values/config.xml&lt;/STRONG&gt; file.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; background-color: #ffffff;"&gt;Hope this will help you.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; background-color: #ffffff;"&gt;Regards,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; background-color: #ffffff;"&gt;Shivani&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; background-color: #ffffff;"&gt;-----------------------------------------------------------------------------------------------------------------------&lt;BR style="color: #51626f;" /&gt;Note: If this post answers your question, please click the Correct Answer button. Thank you!&lt;BR style="color: #51626f;" /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 May 2020 15:56:33 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/How-to-prevent-the-power-button-from-putting-the-device-into/m-p/1052561#M154888</guid>
      <dc:creator>shivanipatel</dc:creator>
      <dc:date>2020-05-08T15:56:33Z</dc:date>
    </item>
    <item>
      <title>Re: How to prevent the power button from putting the device into sleep?</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/How-to-prevent-the-power-button-from-putting-the-device-into/m-p/1052562#M154889</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you for this tip. &amp;nbsp;That's exactly what I was looking for.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 May 2020 16:05:37 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/How-to-prevent-the-power-button-from-putting-the-device-into/m-p/1052562#M154889</guid>
      <dc:creator>dennis3</dc:creator>
      <dc:date>2020-05-13T16:05:37Z</dc:date>
    </item>
  </channel>
</rss>

