<?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[MMM-PIR-Sensor not working with latest release - display does not turn off]]></title><description><![CDATA[<p dir="auto">Dear all,</p>
<p dir="auto">I’ve been using MM for over 1,5 years now. Unfortunately my SD card died yesterday so I took the opportunity to start from scratch.</p>
<p dir="auto">I installed the latest release 2.7.1 on my RBPi 3. using the “Full KMS” OpenGl driver. Unfortunately my PIR Sensor does not work anymore as my display stays on all the time. Interestingly I’m able to turn the display on an off manually via SSH using</p>
<pre><code>vcgencmd display_power 0
</code></pre>
<pre><code>vcgencmd display_power 1
</code></pre>
<p dir="auto">I already checked the wiring (which I actually did not change from my setup which was working for a long time) and I also checked the signal line of the PIR Sensor. Both are ok.</p>
<p dir="auto">My configuration looks like this:</p>
<pre><code>		{
			module: 'MMM-PIR-Sensor',
			config: {
				sensorPIN: 23,
				powerSavingDelay: 15
			}
		},
</code></pre>
<p dir="auto">It would be great if someone could help me out as I’m clearly missing something…</p>
]]></description><link>https://forum.magicmirror.builders/topic/10206/mmm-pir-sensor-not-working-with-latest-release-display-does-not-turn-off</link><generator>RSS for Node</generator><lastBuildDate>Sat, 16 May 2026 11:33:46 GMT</lastBuildDate><atom:link href="https://forum.magicmirror.builders/topic/10206.rss" rel="self" type="application/rss+xml"/><pubDate>Thu, 04 Apr 2019 06:03:48 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to MMM-PIR-Sensor not working with latest release - display does not turn off on Fri, 12 Apr 2019 20:37:53 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/shgmongohh" aria-label="Profile: shgmongohh">@<bdi>shgmongohh</bdi></a> too many pir modules</p>
<p dir="auto"><a href="https://github.com/cowboysdude/Pir-Sensor" target="_blank" rel="noopener noreferrer nofollow ugc">https://github.com/cowboysdude/Pir-Sensor</a> has one<br />
<a href="https://github.com/mboskamp/MMM-PIR" target="_blank" rel="noopener noreferrer nofollow ugc">https://github.com/mboskamp/MMM-PIR</a> has one, in callbackscripts folder</p>
]]></description><link>https://forum.magicmirror.builders/post/55822</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/55822</guid><dc:creator><![CDATA[sdetweil]]></dc:creator><pubDate>Fri, 12 Apr 2019 20:37:53 GMT</pubDate></item><item><title><![CDATA[Reply to MMM-PIR-Sensor not working with latest release - display does not turn off on Fri, 12 Apr 2019 20:25:26 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></p>
<p dir="auto">In which folder ?<br />
<img src="/assets/uploads/files/1555100722651-unbenannt.png" alt="0_1555100722499_Unbenannt.PNG" class=" img-fluid img-markdown" /></p>
]]></description><link>https://forum.magicmirror.builders/post/55821</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/55821</guid><dc:creator><![CDATA[shgmongohh]]></dc:creator><pubDate>Fri, 12 Apr 2019 20:25:26 GMT</pubDate></item><item><title><![CDATA[Reply to MMM-PIR-Sensor not working with latest release - display does not turn off on Fri, 12 Apr 2019 20:01:37 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/shgmongohh" aria-label="Profile: shgmongohh">@<bdi>shgmongohh</bdi></a>  in the module folder</p>
]]></description><link>https://forum.magicmirror.builders/post/55820</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/55820</guid><dc:creator><![CDATA[sdetweil]]></dc:creator><pubDate>Fri, 12 Apr 2019 20:01:37 GMT</pubDate></item><item><title><![CDATA[Reply to MMM-PIR-Sensor not working with latest release - display does not turn off on Fri, 12 Apr 2019 19:52:01 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/kugelfang" aria-label="Profile: Kugelfang">@<bdi>Kugelfang</bdi></a></p>
<p dir="auto">Where did you change the <a href="http://displaOff.sh" target="_blank" rel="noopener noreferrer nofollow ugc">displaOff.sh</a>? Where can I find this?</p>
<p dir="auto">Sebastain</p>
]]></description><link>https://forum.magicmirror.builders/post/55819</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/55819</guid><dc:creator><![CDATA[shgmongohh]]></dc:creator><pubDate>Fri, 12 Apr 2019 19:52:01 GMT</pubDate></item><item><title><![CDATA[Reply to MMM-PIR-Sensor not working with latest release - display does not turn off on Fri, 05 Apr 2019 05:27:11 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/55407">MMM-PIR-Sensor not working with latest release - display does not turn off</a>:</p>
<blockquote>
<p dir="auto">node_modules/.bin/electron-rebuild</p>
</blockquote>
<p dir="auto">Holy SHIT that worked. I’m now using the MMM-PIR instead of the MMM-PIR-Sensor</p>
<p dir="auto">thanks you so much!!!</p>
<p dir="auto">EDIT:</p>
<p dir="auto">for the record: there are two PIR modules avaliable: Initially I intended to go with <strong>MMM-PIR-Sensors</strong> as I’ve been using this in the past. Unfortunately I couldn’t get it to work with the newly installed setup. Hence I choose <strong>MMM-PIR</strong>.</p>
<p dir="auto">Besides the suggestion from <a class="plugin-mentions-user plugin-mentions-a" href="/user/sdetweil" aria-label="Profile: sdetweil">@<bdi>sdetweil</bdi></a> I also modified the <a href="http://displayOff.sh" target="_blank" rel="noopener noreferrer nofollow ugc">displayOff.sh</a> and <a href="http://displayON.sh" target="_blank" rel="noopener noreferrer nofollow ugc">displayON.sh</a> from</p>
<pre><code>tvservice -o
</code></pre>
<p dir="auto">to</p>
<pre><code>vcgencmd display_power 0
</code></pre>
<p dir="auto">so the module works with the full KMS OpenGL driver.</p>
]]></description><link>https://forum.magicmirror.builders/post/55408</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/55408</guid><dc:creator><![CDATA[Kugelfang]]></dc:creator><pubDate>Fri, 05 Apr 2019 05:27:11 GMT</pubDate></item><item><title><![CDATA[Reply to MMM-PIR-Sensor not working with latest release - display does not turn off on Thu, 04 Apr 2019 16:53:06 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/kugelfang" aria-label="Profile: Kugelfang">@<bdi>Kugelfang</bdi></a> yes, you will need to install electron-rebuild in that module</p>
<p dir="auto">from the MMM-PIR folder</p>
<pre><code>npm install electron-rebuild
</code></pre>
<p dir="auto">then run it to force the epoll rebuild</p>
<pre><code>node_modules/.bin/electron-rebuild
</code></pre>
]]></description><link>https://forum.magicmirror.builders/post/55407</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/55407</guid><dc:creator><![CDATA[sdetweil]]></dc:creator><pubDate>Thu, 04 Apr 2019 16:53:06 GMT</pubDate></item><item><title><![CDATA[Reply to MMM-PIR-Sensor not working with latest release - display does not turn off on Thu, 04 Apr 2019 16:35:35 GMT]]></title><description><![CDATA[<p dir="auto">actually I checked the pm2 logs and found loots of this messages:</p>
<pre><code>npm ERR! A complete log of this run can be found in:
npm ERR!     /home/pi/.npm/_logs/2019-04-03T22_01_36_315Z-debug.log
/home/pi/MagicMirror/node_modules/electron/dist/electron js/electron.js: symbol lookup error: /home/pi/MagicMirror/modules/MMM-PIR/node_modules/epoll/build/Release/epoll.node: undefined symbol: _ZN2v816FunctionTemplate3NewEPNS_7IsolateEPFvRKNS_20FunctionCallbackInfoINS_5ValueEEEENS_5LocalIS4_EENSA_INS_9SignatureEEEiNS_19ConstructorBehaviorENS_14SideEffectTypeE
npm ERR! file sh
npm ERR! code ELIFECYCLE
npm ERR! errno ENOENT
npm ERR! syscall spawn
npm ERR! magicmirror@2.7.1 start: `sh run-start.sh`
npm ERR! spawn ENOENT
npm ERR! 
npm ERR! Failed at the magicmirror@2.7.1 start script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
</code></pre>
<p dir="auto">does anybody know how to fix this?</p>
]]></description><link>https://forum.magicmirror.builders/post/55405</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/55405</guid><dc:creator><![CDATA[Kugelfang]]></dc:creator><pubDate>Thu, 04 Apr 2019 16:35:35 GMT</pubDate></item><item><title><![CDATA[Reply to MMM-PIR-Sensor not working with latest release - display does not turn off on Thu, 04 Apr 2019 15:56:59 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/kugelfang" aria-label="Profile: Kugelfang">@<bdi>Kugelfang</bdi></a><br />
I am really no expert at all but here is another tipp of mine:<br />
I also use these modules to turn off my monitor:<br />
MMM-ModuleScheduler + MMM-Remote-Control (at a certain time)<br />
and MMM-NetworkScanner (when my phone is not connected to my WLAN)</p>
]]></description><link>https://forum.magicmirror.builders/post/55403</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/55403</guid><dc:creator><![CDATA[thedoorsfanatic]]></dc:creator><pubDate>Thu, 04 Apr 2019 15:56:59 GMT</pubDate></item><item><title><![CDATA[Reply to MMM-PIR-Sensor not working with latest release - display does not turn off on Thu, 04 Apr 2019 15:42:35 GMT]]></title><description><![CDATA[<p dir="auto">Yes, I did. to my best knowledge the tcservice does not work with the KMS driver.</p>
<p dir="auto">Also looking into the details at GitHub I thought that MMM-PIR-Sensor actually uses the vcgencmd</p>
]]></description><link>https://forum.magicmirror.builders/post/55402</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/55402</guid><dc:creator><![CDATA[Kugelfang]]></dc:creator><pubDate>Thu, 04 Apr 2019 15:42:35 GMT</pubDate></item><item><title><![CDATA[Reply to MMM-PIR-Sensor not working with latest release - display does not turn off on Thu, 04 Apr 2019 06:50:31 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/kugelfang" aria-label="Profile: Kugelfang">@<bdi>Kugelfang</bdi></a><br />
Hi, I updated to 2.7.1 yesterday and also installed MMM-PIR-Sensor which works fine for me (<a href="https://youtu.be/5Cs3pCZamuM" target="_blank" rel="noopener noreferrer nofollow ugc">https://youtu.be/5Cs3pCZamuM</a>)<br />
I am not using the Full KMS driver though<br />
Did you follow these steps also:<br />
Execute npm install to install the node dependencies.<br />
Add your user (pi?) to the gpio group by executing sudo usermod -a -G gpio pi.<br />
Execute sudo chmod u+s /opt/vc/bin/tvservice &amp;&amp; sudo chmod u+s /bin/chvt to allow turning on/off the hdmi output.<br />
Reboot your Pi.</p>
]]></description><link>https://forum.magicmirror.builders/post/55395</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/55395</guid><dc:creator><![CDATA[thedoorsfanatic]]></dc:creator><pubDate>Thu, 04 Apr 2019 06:50:31 GMT</pubDate></item></channel></rss>