<?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[Issues with MMM-Button]]></title><description><![CDATA[<p dir="auto">Hi all,<br />
After using my mirror for some some, I would like to add some custom features using the <a href="https://github.com/sdetweil/MMM-Buttons" target="_blank" rel="noopener noreferrer nofollow ugc">MMM-Buttons</a> modules, forked / developed by <a class="plugin-mentions-user plugin-mentions-a" href="/user/sdetweil" aria-label="Profile: sdetweil">@<bdi>sdetweil</bdi></a><br />
After downloading and installing the module, pressing a button does not trigger the desired actions.</p>
<p dir="auto">Instead, some “beautiful” logs are coming after restarting my MagicMirror using pm2:</p>
<pre><code>2025-06-08 00:52:32.659] [ERROR] Whoops! There was an uncaught exception... 
[2025-06-08 00:52:32.667] [ERROR] Error: EINVAL: invalid argument, write
    at Object.writeFileSync (node:fs:2426:20)
    at exportGpio (/home/pi/MagicMirror/modules/MMM-Buttons/node_modules/onoff/onoff.js:18:8)
    at new Gpio (/home/pi/MagicMirror/modules/MMM-Buttons/node_modules/onoff/onoff.js:172:36)
    at Class.intializeButton (/home/pi/MagicMirror/modules/MMM-Buttons/node_helper.js:74:19)
    at Class.intializeButtons (/home/pi/MagicMirror/modules/MMM-Buttons/node_helper.js:90:18)
    at Class.socketNotificationReceived (/home/pi/MagicMirror/modules/MMM-Buttons/node_helper.js:26:18)
    at Socket.&lt;anonymous&gt; (/home/pi/MagicMirror/js/node_helper.js:91:10)
    at Socket.onevent (/home/pi/MagicMirror/node_modules/socket.io/dist/socket.js:462:26)
    at Socket._onpacket (/home/pi/MagicMirror/node_modules/socket.io/dist/socket.js:430:22)
    at /home/pi/MagicMirror/node_modules/socket.io/dist/client.js:214:24
    at process.processTicksAndRejections (node:internal/process/task_queues:85:11) {
  errno: -22,
  code: 'EINVAL',
  syscall: 'write'
} 
</code></pre>
<p dir="auto">I’m using the latest MagicMirror release.<br />
Do you have any tips, where I can have a look?</p>
<p dir="auto">Thanks :)</p>
]]></description><link>https://forum.magicmirror.builders/topic/19726/issues-with-mmm-button</link><generator>RSS for Node</generator><lastBuildDate>Sun, 17 May 2026 09:06:54 GMT</lastBuildDate><atom:link href="https://forum.magicmirror.builders/topic/19726.rss" rel="self" type="application/rss+xml"/><pubDate>Sat, 07 Jun 2025 22:58:36 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Issues with MMM-Button on Mon, 09 Jun 2025 21:08:45 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/kristjanesperanto" aria-label="Profile: KristjanESPERANTO">@<bdi>KristjanESPERANTO</bdi></a> I set up a fresh MagicMirror instance and checked the <a href="https://github.com/MarcLandis/MMM-Buttons" target="_blank" rel="noopener noreferrer nofollow ugc">https://github.com/MarcLandis/MMM-Buttons</a> repository. As a result I get the same issue:</p>
<pre><code>[2025-06-09 22:57:35.709] [ERROR] Whoops! There was an uncaught exception... 
[2025-06-09 22:57:35.718] [ERROR] Error: EINVAL: invalid argument, write
    at Object.writeFileSync (node:fs:2426:20)
    at exportGpio (/home/pi/MagicMirror/modules/MMM-Buttons/node_modules/onoff/onoff.js:18:8)
    at new Gpio (/home/pi/MagicMirror/modules/MMM-Buttons/node_modules/onoff/onoff.js:172:36)
    at Class.intializeButton (/home/pi/MagicMirror/modules/MMM-Buttons/node_helper.js:89:19)
    at Class.intializeButtons (/home/pi/MagicMirror/modules/MMM-Buttons/node_helper.js:105:18)
    at Class.socketNotificationReceived (/home/pi/MagicMirror/modules/MMM-Buttons/node_helper.js:28:18)
    at Socket.&lt;anonymous&gt; (/home/pi/MagicMirror/js/node_helper.js:91:10)
    at Socket.onevent (/home/pi/MagicMirror/node_modules/socket.io/dist/socket.js:462:26)
    at Socket._onpacket (/home/pi/MagicMirror/node_modules/socket.io/dist/socket.js:430:22)
    at /home/pi/MagicMirror/node_modules/socket.io/dist/client.js:214:24
    at process.processTicksAndRejections (node:internal/process/task_queues:85:11) {
  errno: -22,
  code: 'EINVAL',
  syscall: 'write'
}
</code></pre>
<p dir="auto">…Yesterday evening I tried to fix the issue of not beingable to control the MagicMirror using some buttons. Digged into the original module, asked help of ChatGPT, debugged some functions and as a result I have a running version for Bookworm.<br />
I’ll try to put this in a Github Repo  - will update this thread as soon as I did :)</p>
<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/sdetweil" aria-label="Profile: sdetweil">@<bdi>sdetweil</bdi></a> You’ve said that I only need to change some settings in the rasp-config. Do you have any additional information what needs to be changed?</p>
]]></description><link>https://forum.magicmirror.builders/post/126924</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/126924</guid><dc:creator><![CDATA[schlomm]]></dc:creator><pubDate>Mon, 09 Jun 2025 21:08:45 GMT</pubDate></item><item><title><![CDATA[Reply to Issues with MMM-Button on Tue, 10 Jun 2025 12:59:55 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/schlomm" aria-label="Profile: schlomm">@<bdi>schlomm</bdi></a> said in <a href="/post/126924">Issues with MMM-Button</a>:</p>
<blockquote>
<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/sdetweil" aria-label="Profile: sdetweil">@<bdi>sdetweil</bdi></a> You’ve said that I only need to change some settings in the rasp-config. Do you have any additional information what needs to be changed?</p>
</blockquote>
<p dir="auto">I updated my post, I was incorrect</p>
]]></description><link>https://forum.magicmirror.builders/post/126931</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/126931</guid><dc:creator><![CDATA[sdetweil]]></dc:creator><pubDate>Tue, 10 Jun 2025 12:59:55 GMT</pubDate></item><item><title><![CDATA[Reply to Issues with MMM-Button on Tue, 10 Jun 2025 10:54:36 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/kristjanesperanto" aria-label="Profile: KristjanESPERANTO">@<bdi>KristjanESPERANTO</bdi></a> Argh…I didn’t see that :-/ Nevermind…at least I’ve learned something about the Module…</p>
]]></description><link>https://forum.magicmirror.builders/post/126930</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/126930</guid><dc:creator><![CDATA[schlomm]]></dc:creator><pubDate>Tue, 10 Jun 2025 10:54:36 GMT</pubDate></item><item><title><![CDATA[Reply to Issues with MMM-Button on Tue, 10 Jun 2025 07:05:18 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/schlomm" aria-label="Profile: schlomm">@<bdi>schlomm</bdi></a> There is a PR that seems to fix the issue: <a href="https://github.com/MarcLandis/MMM-Buttons/pull/11" target="_blank" rel="noopener noreferrer nofollow ugc">https://github.com/MarcLandis/MMM-Buttons/pull/11</a></p>
]]></description><link>https://forum.magicmirror.builders/post/126926</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/126926</guid><dc:creator><![CDATA[KristjanESPERANTO]]></dc:creator><pubDate>Tue, 10 Jun 2025 07:05:18 GMT</pubDate></item><item><title><![CDATA[Reply to Issues with MMM-Button on Mon, 09 Jun 2025 21:08:45 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/kristjanesperanto" aria-label="Profile: KristjanESPERANTO">@<bdi>KristjanESPERANTO</bdi></a> I set up a fresh MagicMirror instance and checked the <a href="https://github.com/MarcLandis/MMM-Buttons" target="_blank" rel="noopener noreferrer nofollow ugc">https://github.com/MarcLandis/MMM-Buttons</a> repository. As a result I get the same issue:</p>
<pre><code>[2025-06-09 22:57:35.709] [ERROR] Whoops! There was an uncaught exception... 
[2025-06-09 22:57:35.718] [ERROR] Error: EINVAL: invalid argument, write
    at Object.writeFileSync (node:fs:2426:20)
    at exportGpio (/home/pi/MagicMirror/modules/MMM-Buttons/node_modules/onoff/onoff.js:18:8)
    at new Gpio (/home/pi/MagicMirror/modules/MMM-Buttons/node_modules/onoff/onoff.js:172:36)
    at Class.intializeButton (/home/pi/MagicMirror/modules/MMM-Buttons/node_helper.js:89:19)
    at Class.intializeButtons (/home/pi/MagicMirror/modules/MMM-Buttons/node_helper.js:105:18)
    at Class.socketNotificationReceived (/home/pi/MagicMirror/modules/MMM-Buttons/node_helper.js:28:18)
    at Socket.&lt;anonymous&gt; (/home/pi/MagicMirror/js/node_helper.js:91:10)
    at Socket.onevent (/home/pi/MagicMirror/node_modules/socket.io/dist/socket.js:462:26)
    at Socket._onpacket (/home/pi/MagicMirror/node_modules/socket.io/dist/socket.js:430:22)
    at /home/pi/MagicMirror/node_modules/socket.io/dist/client.js:214:24
    at process.processTicksAndRejections (node:internal/process/task_queues:85:11) {
  errno: -22,
  code: 'EINVAL',
  syscall: 'write'
}
</code></pre>
<p dir="auto">…Yesterday evening I tried to fix the issue of not beingable to control the MagicMirror using some buttons. Digged into the original module, asked help of ChatGPT, debugged some functions and as a result I have a running version for Bookworm.<br />
I’ll try to put this in a Github Repo  - will update this thread as soon as I did :)</p>
<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/sdetweil" aria-label="Profile: sdetweil">@<bdi>sdetweil</bdi></a> You’ve said that I only need to change some settings in the rasp-config. Do you have any additional information what needs to be changed?</p>
]]></description><link>https://forum.magicmirror.builders/post/126924</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/126924</guid><dc:creator><![CDATA[schlomm]]></dc:creator><pubDate>Mon, 09 Jun 2025 21:08:45 GMT</pubDate></item><item><title><![CDATA[Reply to Issues with MMM-Button on Sun, 08 Jun 2025 07:35:50 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/schlomm" aria-label="Profile: schlomm">@<bdi>schlomm</bdi></a> Did you try the fork on the module list?<br />
<a href="https://github.com/MarcLandis/MMM-Buttons" target="_blank" rel="noopener noreferrer nofollow ugc">https://github.com/MarcLandis/MMM-Buttons</a></p>
]]></description><link>https://forum.magicmirror.builders/post/126904</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/126904</guid><dc:creator><![CDATA[KristjanESPERANTO]]></dc:creator><pubDate>Sun, 08 Jun 2025 07:35:50 GMT</pubDate></item><item><title><![CDATA[Reply to Issues with MMM-Button on Tue, 10 Jun 2025 12:59:30 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/schlomm" aria-label="Profile: schlomm">@<bdi>schlomm</bdi></a> the bookworm os requires some configuration for the gpio pins. I think you can do this w raspi-config<br />
Edit: this is not correct, my mistake (Sam)</p>
<p dir="auto">I am not the author. I just fixed the Postinstall process</p>
]]></description><link>https://forum.magicmirror.builders/post/126902</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/126902</guid><dc:creator><![CDATA[sdetweil]]></dc:creator><pubDate>Tue, 10 Jun 2025 12:59:30 GMT</pubDate></item></channel></rss>