<?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-Universal-PIR - ‘GPIOcommand exited with error!&#x27;]]></title><description><![CDATA[<p dir="auto">Hi</p>
<p dir="auto">With no warning (I haven’t carried out any updates) <code>MMM-Universal-Pir</code> is now failing.  It shows under the ‘PIR SENSOR’ heading on the MM screen ‘<code>gpioCommand exited with error!</code>’</p>
<p dir="auto">Config is:</p>
<pre><code>                    module: "MMM-Universal-Pir",
                        position: "bottom_right",
                        config: {
                            gpioCommand: "gpiomon -r -b gpiochip0 23",
                            onCommand: "wlr-randr --output HDMI-A-1 --on --transform 90",
                            offCommand: "wlr-randr --output HDMI-A-1 --off",
                            deactivateDelay: 120 * 1000,
                            }
</code></pre>
<p dir="auto">and  in a terminal <code>gpiomon -r -b gpiochip0 23</code> shows events when the PIR is triggered and</p>
<p dir="auto"><code>wlr-randr --output HDMI-A-1 --on --transform 90</code> and <code>wlr-randr --output HDMI-A-1 --off</code> still control the screen.</p>
<p dir="auto"><code>gpiomon</code> is <code>v1.6.3</code></p>
<p dir="auto">What can have changed?</p>
<p dir="auto">Steve</p>
]]></description><link>https://forum.magicmirror.builders/topic/20106/mmm-universal-pir-gpiocommand-exited-with-error</link><generator>RSS for Node</generator><lastBuildDate>Wed, 17 Jun 2026 16:48:46 GMT</lastBuildDate><atom:link href="https://forum.magicmirror.builders/topic/20106.rss" rel="self" type="application/rss+xml"/><pubDate>Sun, 08 Feb 2026 14:48:52 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to MMM-Universal-PIR - ‘GPIOcommand exited with error!&#x27; on Tue, 10 Feb 2026 18:56:43 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/smegbadger" aria-label="Profile: smegbadger">@<bdi>smegbadger</bdi></a></p>
<p dir="auto">I had no idea about that, but now that you’re using Docker:</p>
<p dir="auto">The <code>gpiomon</code> command is called inside the container (doesn’t work) and you call it for testing on the host (does work).</p>
<p dir="auto">So I assume you have the newer version of gpiomon running in the container. So update the command in <code>config.js</code> to the new syntax described in the module README and try again (the new command will fail on the host but should work from inside the container).</p>
]]></description><link>https://forum.magicmirror.builders/post/129995</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/129995</guid><dc:creator><![CDATA[karsten13]]></dc:creator><pubDate>Tue, 10 Feb 2026 18:56:43 GMT</pubDate></item><item><title><![CDATA[Reply to MMM-Universal-PIR - ‘GPIOcommand exited with error!&#x27; on Wed, 11 Feb 2026 18:08:44 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/smegbadger" aria-label="Profile: smegbadger">@<bdi>smegbadger</bdi></a> said in <a href="/post/130001">MMM-Universal-PIR - ‘GPIOcommand exited with error!'</a>:</p>
<blockquote>
<p dir="auto">It never occurred to me the container would update things unannounced!</p>
</blockquote>
<p dir="auto">the container does not update things on your host, but the container itself is running debian and (if you are using <code>karsten13/magicmirror:latest</code>) the debian version of the container image switched from bookworm to trixie …</p>
]]></description><link>https://forum.magicmirror.builders/post/130003</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/130003</guid><dc:creator><![CDATA[karsten13]]></dc:creator><pubDate>Wed, 11 Feb 2026 18:08:44 GMT</pubDate></item><item><title><![CDATA[Reply to MMM-Universal-PIR - ‘GPIOcommand exited with error!&#x27; on Wed, 11 Feb 2026 11:00:29 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/karsten13" aria-label="Profile: karsten13">@<bdi>karsten13</bdi></a> perfect, thank you.  The Docker container has <code>gpiomon</code> at <code>v2.2.1</code>.  It never occurred to me the container would update things unannounced!</p>
<p dir="auto">Many thanks for your help</p>
<p dir="auto">Steve</p>
]]></description><link>https://forum.magicmirror.builders/post/130001</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/130001</guid><dc:creator><![CDATA[smegbadger]]></dc:creator><pubDate>Wed, 11 Feb 2026 11:00:29 GMT</pubDate></item><item><title><![CDATA[Reply to MMM-Universal-PIR - ‘GPIOcommand exited with error!&#x27; on Tue, 10 Feb 2026 18:56:43 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/smegbadger" aria-label="Profile: smegbadger">@<bdi>smegbadger</bdi></a></p>
<p dir="auto">I had no idea about that, but now that you’re using Docker:</p>
<p dir="auto">The <code>gpiomon</code> command is called inside the container (doesn’t work) and you call it for testing on the host (does work).</p>
<p dir="auto">So I assume you have the newer version of gpiomon running in the container. So update the command in <code>config.js</code> to the new syntax described in the module README and try again (the new command will fail on the host but should work from inside the container).</p>
]]></description><link>https://forum.magicmirror.builders/post/129995</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/129995</guid><dc:creator><![CDATA[karsten13]]></dc:creator><pubDate>Tue, 10 Feb 2026 18:56:43 GMT</pubDate></item><item><title><![CDATA[Reply to MMM-Universal-PIR - ‘GPIOcommand exited with error!&#x27; on Tue, 10 Feb 2026 15:15:44 GMT]]></title><description><![CDATA[<pre><code>magicm@magicmirror:/opt/mm/mounts/config $ gpiomon --help
Usage: gpiomon [OPTIONS] &lt;chip name/number&gt; &lt;offset 1&gt; &lt;offset 2&gt; ...

Wait for events on GPIO lines and print them to standard output

Options:
  -h, --help:           display this message and exit
  -v, --version:        display the version and exit
  -l, --active-low:     set the line active state to low
  -B, --bias=[as-is|disable|pull-down|pull-up] (defaults to 'as-is'):
                set the line bias
  -n, --num-events=NUM: exit after processing NUM events
  -s, --silent:         don't print event info
  -r, --rising-edge:    only process rising edge events
  -f, --falling-edge:   only process falling edge events
  -b, --line-buffered:  set standard output as line buffered
  -F, --format=FMT      specify custom output format

Biases:
  as-is:        leave bias unchanged
  disable:      disable bias
  pull-up:      enable pull-up
  pull-down:    enable pull-down

Format specifiers:
  %o:  GPIO line offset
  %e:  event type (0 - falling edge, 1 rising edge)
  %s:  seconds part of the event timestamp
  %n:  nanoseconds part of the event timestamp
magicm@magicmirror:/opt/mm/mounts/config $ gpiomon -v
gpiomon (libgpiod) v1.6.3
Copyright (C) 2017-2018 Bartosz Golaszewski
License: LGPLv2.1
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
</code></pre>
<p dir="auto"><code>-r</code> is listed in the library help for <code>v1.6.3</code></p>
]]></description><link>https://forum.magicmirror.builders/post/129993</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/129993</guid><dc:creator><![CDATA[smegbadger]]></dc:creator><pubDate>Tue, 10 Feb 2026 15:15:44 GMT</pubDate></item><item><title><![CDATA[Reply to MMM-Universal-PIR - ‘GPIOcommand exited with error!&#x27; on Tue, 10 Feb 2026 11:42:30 GMT]]></title><description><![CDATA[<p dir="auto">The Docker log shows<br />
<code>[2026-02-10 11:30:10.955] [ERROR] [MMM-Universal-Pir] stderr: gpiomon: invalid option -- 'r' gpiomon: try gpiomon --help</code></p>
<p dir="auto">but <code>gpiomon -r -b gpiochip0 23</code> works in a terminal when pasted from the <code>config.js</code> file,  very strange</p>
<p dir="auto">It’s just stopped working!</p>
<p dir="auto">Steve</p>
]]></description><link>https://forum.magicmirror.builders/post/129989</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/129989</guid><dc:creator><![CDATA[smegbadger]]></dc:creator><pubDate>Tue, 10 Feb 2026 11:42:30 GMT</pubDate></item><item><title><![CDATA[Reply to MMM-Universal-PIR - ‘GPIOcommand exited with error!&#x27; on Sun, 08 Feb 2026 14:50:03 GMT]]></title><description><![CDATA[<p dir="auto"><img src="/assets/uploads/files/1770562198945-snag_1ee4e5ea.png" alt="Snag_1ee4e5ea.png" class=" img-fluid img-markdown" /></p>
]]></description><link>https://forum.magicmirror.builders/post/129972</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/129972</guid><dc:creator><![CDATA[smegbadger]]></dc:creator><pubDate>Sun, 08 Feb 2026 14:50:03 GMT</pubDate></item></channel></rss>