<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Help with MMM-SleepWake]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/sdetweil" aria-label="Profile: sdetweil">@<bdi>sdetweil</bdi></a> I’m hoping you can help me out with this.  I have installed the Motion package and confirm that it works - I can view the livestream etc and it’s recording mkv files to the motion folder that I’ve defined when motion is detected.</p>
<p dir="auto">I see these entries in motion.log :</p>
<pre><code>[1:ml1] [NTC] [EVT] [Jan 09 01:19:36] event_newfile: File of type 8 saved to: /home/pi/Pictures/motion/01-20210109011936.mkv
[1:ml1] [NTC] [ALL] [Jan 09 01:19:36] motion_detected: Motion detected - starting event 1
[1:ml1] [NTC] [ALL] [Jan 09 01:21:26] mlp_actions: End of event 1
[1:ml1] [NTC] [EVT] [Jan 09 01:21:28] event_newfile: File of type 8 saved to: /home/pi/Pictures/motion/02-20210109012128.mkv
[1:ml1] [NTC] [ALL] [Jan 09 01:21:28] motion_detected: Motion detected - starting event 2
[1:ml1] [NTC] [ALL] [Jan 09 01:24:01] mlp_actions: End of event 2
[1:ml1] [NTC] [EVT] [Jan 09 01:24:18] event_newfile: File of type 8 saved to: /home/pi/Pictures/motion/03-20210109012418.mkv
[1:ml1] [NTC] [ALL] [Jan 09 01:24:18] motion_detected: Motion detected - starting event 3
[1:ml1] [NTC] [ALL] [Jan 09 01:33:05] mlp_actions: End of event 3
</code></pre>
<p dir="auto">Your module did put my display to sleep but it didn’t wake it up.  I tested these commands manually and they work to turn the HDMI on and off :</p>
<pre><code>/opt/vc/bin/tvservice -p &amp;&amp; sudo chvt 6 &amp;&amp; sudo chvt 7
/opt/vc/bin/tvservice -o
</code></pre>
<p dir="auto">I edited the motion.conf file to call your module when motion event starts / ends.</p>
<p dir="auto">I notice this however in the motion log after I added the event calls to your module :</p>
<pre><code>[30500488:motion] [NTC] [ALL] conf_load: Processing thread 0 - config file /home/pi/.motion/motion.conf
[30500488:motion] [NTC] [ALL] motion_startup: Motion 4.1.1 Started
[30500488:motion] [NTC] [ALL] motion_startup: Logging to file (/var/log/motion/motion.log)
 &amp;: 1:  &amp;: value: not found
 &amp;: 1:  &amp;: value: not found -&gt; this keeps repeating until I stop motion
</code></pre>
<p dir="auto">I commented out the motion event calls and these messages stop. So they seem to be related to these two configuration entries :</p>
<pre><code>on_event_start /home/pi/MagicMirror/modules/MMM-SleepWake/external_motion started
on_event_start /home/pi/MagicMirror/modules/MMM-SleepWake/external_motion ended
</code></pre>
<p dir="auto">I noticed you mention that there should be two files in the motion directory under MMM-SleepWake but in my case, I do not see any files in that directory.</p>
<p dir="auto">In my config.js, I just have this :</p>
<pre><code>        {
            module: 'MMM-SleepWake',
            config:{
                delay: 15,               
                mode: 'PI'
            }
        },
</code></pre>
<p dir="auto">Sorry for the long message, I hope you can suggest what I may have done incorrectly.</p>
<p dir="auto">Thanks!</p>
]]></description><link>https://forum.magicmirror.builders/topic/14392/help-with-mmm-sleepwake</link><generator>RSS for Node</generator><lastBuildDate>Mon, 09 Mar 2026 02:45:13 GMT</lastBuildDate><atom:link href="https://forum.magicmirror.builders/topic/14392.rss" rel="self" type="application/rss+xml"/><pubDate>Sat, 09 Jan 2021 09:32:08 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Help with MMM-SleepWake on Sat, 09 Jan 2021 22:48:06 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/sdetweil" aria-label="Profile: sdetweil">@<bdi>sdetweil</bdi></a> said in <a href="/post/86974">Help with MMM-SleepWake</a>:</p>
<blockquote>
<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/chanster" aria-label="Profile: chanster">@<bdi>chanster</bdi></a> ok, my module doc gives u the new lines for motion.conf</p>
</blockquote>
<p dir="auto">Yes, nothing wrong with your docs at all.</p>
]]></description><link>https://forum.magicmirror.builders/post/86987</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/86987</guid><dc:creator><![CDATA[chanster]]></dc:creator><pubDate>Sat, 09 Jan 2021 22:48:06 GMT</pubDate></item><item><title><![CDATA[Reply to Help with MMM-SleepWake on Sat, 09 Jan 2021 21:57:50 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/chanster" aria-label="Profile: chanster">@<bdi>chanster</bdi></a> ok, my module doc gives u the new lines for motion.conf</p>
]]></description><link>https://forum.magicmirror.builders/post/86974</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/86974</guid><dc:creator><![CDATA[sdetweil]]></dc:creator><pubDate>Sat, 09 Jan 2021 21:57:50 GMT</pubDate></item><item><title><![CDATA[Reply to Help with MMM-SleepWake on Sat, 09 Jan 2021 21:28:52 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/sdetweil" aria-label="Profile: sdetweil">@<bdi>sdetweil</bdi></a> It was in the sample config file for Motion.  It’s a rookie mistake that I should have replaced “value” and not merely append to this line :</p>
<pre><code># Command to be executed when an event starts. (default: none)
# An event starts at first motion detected after a period of no motion defined by event_gap
; on_event_start value

# Command to be executed when an event ends after a period of no motion
# (default: none). The period of no motion is defined by option event_gap.
; on_event_end value
</code></pre>
]]></description><link>https://forum.magicmirror.builders/post/86972</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/86972</guid><dc:creator><![CDATA[chanster]]></dc:creator><pubDate>Sat, 09 Jan 2021 21:28:52 GMT</pubDate></item><item><title><![CDATA[Reply to Help with MMM-SleepWake on Sat, 09 Jan 2021 21:12:41 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/chanster" aria-label="Profile: chanster">@<bdi>chanster</bdi></a> glad u got it working.</p>
<p dir="auto">help me fix the doc,  what lead u to use value?</p>
]]></description><link>https://forum.magicmirror.builders/post/86971</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/86971</guid><dc:creator><![CDATA[sdetweil]]></dc:creator><pubDate>Sat, 09 Jan 2021 21:12:41 GMT</pubDate></item><item><title><![CDATA[Reply to Help with MMM-SleepWake on Sat, 09 Jan 2021 20:49:42 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/sdetweil" aria-label="Profile: sdetweil">@<bdi>sdetweil</bdi></a> Thank you !! I’m so stupid.  Removing “value” did the trick ! Thank you for this module.  Works perfectly.</p>
]]></description><link>https://forum.magicmirror.builders/post/86969</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/86969</guid><dc:creator><![CDATA[chanster]]></dc:creator><pubDate>Sat, 09 Jan 2021 20:49:42 GMT</pubDate></item><item><title><![CDATA[Reply to Help with MMM-SleepWake on Sat, 09 Jan 2021 18:08:10 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/chanster" aria-label="Profile: chanster">@<bdi>chanster</bdi></a> u can run the exteral_motion started command from the command line to test getting the commands working.</p>
<p dir="auto">over ssh too. it’s just a command to tell module there was ‘motion’</p>
]]></description><link>https://forum.magicmirror.builders/post/86963</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/86963</guid><dc:creator><![CDATA[sdetweil]]></dc:creator><pubDate>Sat, 09 Jan 2021 18:08:10 GMT</pubDate></item><item><title><![CDATA[Reply to Help with MMM-SleepWake on Sat, 09 Jan 2021 17:58:21 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/chanster" aria-label="Profile: chanster">@<bdi>chanster</bdi></a> motion wakes up. timer puts to sleep</p>
]]></description><link>https://forum.magicmirror.builders/post/86962</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/86962</guid><dc:creator><![CDATA[sdetweil]]></dc:creator><pubDate>Sat, 09 Jan 2021 17:58:21 GMT</pubDate></item><item><title><![CDATA[Reply to Help with MMM-SleepWake on Sat, 09 Jan 2021 17:56:25 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/chanster" aria-label="Profile: chanster">@<bdi>chanster</bdi></a> remove the word value from both lines in motion.conf</p>
]]></description><link>https://forum.magicmirror.builders/post/86961</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/86961</guid><dc:creator><![CDATA[sdetweil]]></dc:creator><pubDate>Sat, 09 Jan 2021 17:56:25 GMT</pubDate></item><item><title><![CDATA[Reply to Help with MMM-SleepWake on Sat, 09 Jan 2021 17:49:58 GMT]]></title><description><![CDATA[<p dir="auto">These are the two lines I updated in motion.conf</p>
<pre><code># Command to be executed when an event starts. (default: none)
# An event starts at first motion detected after a period of no motion defined by event_gap

on_event_start value /home/pi/MagicMirror/modules/MMM-SleepWake/external_motion started

# Command to be executed when an event ends after a period of no motion
# (default: none). The period of no motion is defined by option event_gap.

on_event_end value /home/pi/MagicMirror/modules/MMM-SleepWake/external_motion ended

</code></pre>
<p dir="auto">I noticed something else.  Last night, before I went to bed, I turned motion off (I was just running it from the command line, not as a service).  This morning my display was in power saving mode again (yellow light) and I couldn’t get it to wake up.  I had to manually run this command from the command line to get the screen to turn on again :</p>
<pre><code>/opt/vc/bin/tvservice -p &amp;&amp; sudo chvt 6 &amp;&amp; sudo chvt 7
</code></pre>
<p dir="auto">It’s strange that your module had put my screen to sleep even though there was no motion even to trigger it.</p>
]]></description><link>https://forum.magicmirror.builders/post/86960</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/86960</guid><dc:creator><![CDATA[chanster]]></dc:creator><pubDate>Sat, 09 Jan 2021 17:49:58 GMT</pubDate></item><item><title><![CDATA[Reply to Help with MMM-SleepWake on Sat, 09 Jan 2021 13:26:29 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/chanster" aria-label="Profile: chanster">@<bdi>chanster</bdi></a> can u show me what u added to motion.conf?</p>
]]></description><link>https://forum.magicmirror.builders/post/86952</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/86952</guid><dc:creator><![CDATA[sdetweil]]></dc:creator><pubDate>Sat, 09 Jan 2021 13:26:29 GMT</pubDate></item></channel></rss>