<?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>Power Management</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/54530/power-management</link><description>Hi, 
 I am started working on nRF9160 Power Management. I want to power down all devices(sleep mode) expect motion sensor, Wake if motion is detected. I went through System power On and system power off modes, many are suggesting to use System power On</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 14 May 2020 13:16:43 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/54530/power-management" /><item><title>RE: Power Management</title><link>https://devzone.nordicsemi.com/thread/249970?ContentTypeID=1</link><pubDate>Thu, 14 May 2020 13:16:43 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:cd055142-8394-4e18-8a08-0b8615be95be</guid><dc:creator>praveenpalaparthi</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I am also working on power management in nRF9160 and was referring to the document&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/zephyr/reference/power_management/index.html#system-power-management"&gt;https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/zephyr/reference/power_management/index.html#system-power-management&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;I have my own example where i initialized two threads- one thread will wait for data to receive from UART peripheral and pass to the other thread. Which means two threads are in waiting mode and waiting for events&lt;/p&gt;
&lt;p&gt;As per the above information if no thread is running and&amp;nbsp;If &amp;nbsp;&lt;a title="(in Kconfig reference v&amp;amp;nbsp;)" href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/kconfig/CONFIG_SYS_POWER_MANAGEMENT.html#cmdoption-arg-config-sys-power-management"&gt;CONFIG_SYS_POWER_MANAGEMENT&lt;/a&gt;&amp;nbsp;Kconfig option is enabled then the Power Management Subsystem will put into idle mode.&lt;/p&gt;
&lt;p&gt;So I have enabled&amp;nbsp;&lt;a title="(in Kconfig reference v&amp;amp;nbsp;)" href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/kconfig/CONFIG_SYS_POWER_MANAGEMENT.html#cmdoption-arg-config-sys-power-management"&gt;CONFIG_SYS_POWER_MANAGEMENT&lt;/a&gt;, CONFIG_DEVICE_POWER_MANAGEMENT and CONFIG_NRFX_POWER options from menu config.&lt;/p&gt;
&lt;p&gt;After running the program in debug mode I found that it is directly going to sys_power_save_idle() function in idle.c file without executing my two threads.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Power Management</title><link>https://devzone.nordicsemi.com/thread/220849?ContentTypeID=1</link><pubDate>Tue, 19 Nov 2019 13:00:36 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2da90587-da5d-49e2-923d-aae525fdaf45</guid><dc:creator>H&amp;#229;kon Alseth</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
[quote user=""]&amp;nbsp; I want to power down all devices(sleep mode) expect motion sensor, Wake if motion is detected.&lt;br /&gt;&amp;nbsp; I went through System power On and system power off modes, many are suggesting to use System power On mode.[/quote]
&lt;p&gt;&amp;nbsp;To enter idle, you can force this using k_cpu_idle(), which is the systemon idle mode.&lt;/p&gt;
&lt;p&gt;Other modes, like k_sleep(ms) also do the same, and wakes you up after the &amp;quot;ms&amp;quot; has expired.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;/p&gt;
&lt;p&gt;Håkon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>