<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://devzone.nordicsemi.com/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Undesired wakeup from System OFF with a button release event</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/71170/undesired-wakeup-from-system-off-with-a-button-release-event</link><description>Hello, 
 I&amp;#39;m attempting to enter System OFF mode via sleep_mode_enter() using a long press. However, I want to wake up from System OFF using that same button. The problem is that the release event from the long press is making it wake up. When the long</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 01 Feb 2021 15:11:09 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/71170/undesired-wakeup-from-system-off-with-a-button-release-event" /><item><title>RE: Undesired wakeup from System OFF with a button release event</title><link>https://devzone.nordicsemi.com/thread/292300?ContentTypeID=1</link><pubDate>Mon, 01 Feb 2021 15:11:09 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:118e6cfc-ded2-401a-85bb-b978a44fad50</guid><dc:creator>Ricky A. Rosa</dc:creator><description>&lt;p&gt;I see. Thanks!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Undesired wakeup from System OFF with a button release event</title><link>https://devzone.nordicsemi.com/thread/292299?ContentTypeID=1</link><pubDate>Mon, 01 Feb 2021 15:09:15 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1e011ee8-1433-4bd9-850e-d85ea29ec827</guid><dc:creator>m.wagner</dc:creator><description>&lt;p&gt;The solution here is to defer going to System OFF mode until the button is released. You can prepare everything for going to sleep as soon as you register the long press, including any possible UI-feedback - but only actually enter System OFF upon the button being released.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>