<?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 Busy Issue]]></title><description><![CDATA[<p dir="auto">Upon fresh startup, rpm run start:wayland works as intended</p>
<ul>
<li>MagicMirror starts and all modules appear to work as intended</li>
<li>MMM-Pir reads sensor and refreshes countdown timer as desired</li>
</ul>
<p dir="auto">After control-Q to stop the MagicMirror, each successive operation of npm run start:wayland returns error “PIR Error Detected: Error: ‘GPIO busy”</p>
<ul>
<li>Log shows [ERROR] [MMM-Pir] [LIB] [PIR] Error: ‘GPIO Busy’</li>
<li>MagicMirror works, including all other modules except MMM-Pir</li>
</ul>
<p dir="auto">Sensor AMR312 connected to 3v power (Pin 1), Ground (Pin 6), and GPIO21 (Pin 40)</p>
<p dir="auto">Current config.js settings</p>
<p dir="auto">module: ‘MMM-Pir’,<br />
  			position: ‘top_left’,<br />
  			config: {<br />
    			  debug: false,<br />
    			  Display: {<br />
    timeout: 60 * 1000,<br />
      			    animate: true,<br />
     			    style: 1,<br />
      			    colorFrom: “#FF0000”,<br />
      			    colorTo: “#00FF00”,<br />
//     			    mode: 1,<br />
//			    mode: 7,<br />
    mode: 8,<br />
      			    counter: true,<br />
      			    lastPresence: true,<br />
      			    lastPresenceTimeFormat: “LL H:mm”,<br />
    availability: false,<br />
//     			    availability: true,<br />
      			    autoDimmer: false,<br />
     		 	    xrandrForceRotation: “normal”,<br />
     			    wrandrForceRotation: “normal”,<br />
     			    wrandrForceMode: null,<br />
     			    waylandDisplayName: “wayland-0”,<br />
//			    waylandDisplayName: “HDMI-A-1”,<br />
      			    relayGPIOPin: 0,  //&lt;-- default was 0<br />
    ddcutil: {<br />
      powerOnCode: “01”,<br />
      powerOffCode: “04”,<br />
      skipSetVcpCheck: false<br />
    }<br />
    			},<br />
    			Pir: {<br />
  mode: 1,<br />
     			  gpio: 21<br />
//			  gpio: 4 // &lt;–connected to 4<br />
}</p>
]]></description><link>https://forum.magicmirror.builders/topic/19312/mmm-pir-busy-issue</link><generator>RSS for Node</generator><lastBuildDate>Fri, 04 Sep 2026 16:21:14 GMT</lastBuildDate><atom:link href="https://forum.magicmirror.builders/topic/19312.rss" rel="self" type="application/rss+xml"/><pubDate>Thu, 09 Jan 2025 01:27:55 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to MMM-PIR Busy Issue on Thu, 09 Jan 2025 15:11:24 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/redfishbluefish" aria-label="Profile: redfishbluefish">@<bdi>redfishbluefish</bdi></a></p>
<p dir="auto">Thank you.  I will look at ddcutil mode next and update.</p>
]]></description><link>https://forum.magicmirror.builders/post/122811</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/122811</guid><dc:creator><![CDATA[siujd2001]]></dc:creator><pubDate>Thu, 09 Jan 2025 15:11:24 GMT</pubDate></item><item><title><![CDATA[Reply to MMM-PIR Busy Issue on Thu, 09 Jan 2025 13:01:02 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/siujd2001" aria-label="Profile: siujd2001">@<bdi>siujd2001</bdi></a> you hadn’t mentioned anything about screen.</p>
<p dir="auto">I recently switched to using <code>start:wayland</code> also and found that in MMM-Pir, the <code>ddcutil</code> mode worked best. Screen control in general seems to vary on RPi depending on the monitor you have.</p>
]]></description><link>https://forum.magicmirror.builders/post/122807</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/122807</guid><dc:creator><![CDATA[redfishbluefish]]></dc:creator><pubDate>Thu, 09 Jan 2025 13:01:02 GMT</pubDate></item><item><title><![CDATA[Reply to MMM-PIR Busy Issue on Thu, 09 Jan 2025 03:33:20 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/redfishbluefish" aria-label="Profile: redfishbluefish">@<bdi>redfishbluefish</bdi></a></p>
<p dir="auto">Switching to mode:0 does now appear to work, in that there is no gpio error and ctrl-q and restarts don’t throw an error.   So that’s great!  Thank you.</p>
<p dir="auto">Screen blanks but does not turn all the way off, so that’s still an issue.</p>
]]></description><link>https://forum.magicmirror.builders/post/122797</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/122797</guid><dc:creator><![CDATA[siujd2001]]></dc:creator><pubDate>Thu, 09 Jan 2025 03:33:20 GMT</pubDate></item><item><title><![CDATA[Reply to MMM-PIR Busy Issue on Thu, 09 Jan 2025 02:30:51 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/siujd2001" aria-label="Profile: siujd2001">@<bdi>siujd2001</bdi></a> in your config you have:</p>
<pre><code>Pir: {
  mode: 1,
  gpio: 21
//   gpio: 4 // &lt;–connected to 4
}
</code></pre>
<p dir="auto">Did you try with <code>mode: 0</code> ?</p>
<p dir="auto">Mode 1 uses an external python script and since that’s an external executable, there’s always a chance that the script has locked up the GPIO so when you start MMM-Pir again, it tries to start a new version of the script.</p>
]]></description><link>https://forum.magicmirror.builders/post/122795</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/122795</guid><dc:creator><![CDATA[redfishbluefish]]></dc:creator><pubDate>Thu, 09 Jan 2025 02:30:51 GMT</pubDate></item><item><title><![CDATA[Reply to MMM-PIR Busy Issue on Thu, 09 Jan 2025 02:27:31 GMT]]></title><description><![CDATA[<p dir="auto">on boot, gpioinfo shows “GPIO21” unused input active-high.  first start of npm run start:wayland works as intended.</p>
<p dir="auto">After CTRL-Q, gpioinfo shows “GPIO21” “lg” input active-high [used pull-down].  Successive npm run start:wayland shows GPIO Busy error.</p>
]]></description><link>https://forum.magicmirror.builders/post/122796</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/122796</guid><dc:creator><![CDATA[siujd2001]]></dc:creator><pubDate>Thu, 09 Jan 2025 02:27:31 GMT</pubDate></item></channel></rss>