<?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[PIR Sensor for Raspbian 11]]></title><description><![CDATA[<p dir="auto">I’ve been searching for a solution to my issue for a few days now, but I can’t seem to find one.  I am trying to implement a PIR sensor with my Magic Mirror.  I’ve had my Magic Mirror since 2021, and it’s been working fine…  until now.  I recently upgraded to Raspbian 11 Bullseye, and I have since determined that it no longer supports ‘tvservice’ or ‘vcgencmd’.  I learned that it uses ‘xrandr’ now, which resulted in a problem with the previous module I was using (EXT-Pir and EXT-Screen from <a href="https://github.com/bugsounet?tab=repositories" target="_blank" rel="noopener noreferrer nofollow ugc">https://github.com/bugsounet?tab=repositories</a>).  In an attempt to upgrade my previous modules, I have discovered that it would require implementing a couple of additional modules which I didn’t really require.  I would need to install MMM-GoogleAssistant and Gateway in order to continue using these modules.  Basically, I have a very simple requirement so I would prefer to use less code to accomplish this.</p>
<p dir="auto">I found a couple of modules that used ‘xrandr’.  I first installed the MMM-PIR-Sensor-Lite module (<a href="https://github.com/grenagit/MMM-PIR-Sensor-Lite" target="_blank" rel="noopener noreferrer nofollow ugc">https://github.com/grenagit/MMM-PIR-Sensor-Lite</a>), which appeared to work but, I soon discovered that it did not appear to support HDMI CEC mode.  When it turned off the HDMI, I would get a “No Signal” message from my monitor.  Further, if it remained in this state long enough, I would have to intervene with button pushing on the monitor in order to restore my screens.  I could verify that the Magic Mirror was running by using VNC Viewer to see what was going on (ie. my monitor remained black, while VNC showed me that the Magic Mirror application was running).</p>
<p dir="auto">So, I attempted to look for another PIR module that supports HDMI CEC but I haven’t been able to find one.  I also tried Tom Hirshberger’s MMM-GPIO-Notifications, and MMM-Screen-Powersave-Notification, but that yielded the same results.</p>
<p dir="auto">One observation that I’ve made is that I am seeing an error message on starting the Magic Mirror:<br />
MESA-LOADER: failed to retrieve device information</p>
<p dir="auto">But, from what I’ve read, this may be expected as it is a reference to loading some video files related to the older drivers (I assume tvservice or vcgencmd?).  Here are my version numbers:</p>
<p dir="auto">Magic Mirror: 2.23.0<br />
node: 17.9.0<br />
OS: Raspbian 11 (bullseye arm)<br />
npm: 8.5.5<br />
Raspberry Pi 4B</p>
<p dir="auto">Here is a log from the start for my Magic Mirror:</p>
<blockquote>
<p dir="auto">magicmirror@2.23.0 start<br />
DISPLAY=“${DISPLAY:=:0}” ./node_modules/.bin/electron js/electron.js</p>
</blockquote>
<p dir="auto">[25.05.2023 13:13.46.897] [LOG]   Starting MagicMirror: v2.23.0<br />
[25.05.2023 13:13.46.904] [LOG]   Loading config …<br />
[25.05.2023 13:13.46.908] [DEBUG] config template file not exists, no envsubst<br />
[25.05.2023 13:13.46.914] [LOG]   Loading module helpers …<br />
[25.05.2023 13:13.46.916] [LOG]   No helper found for module: alert.<br />
[25.05.2023 13:13.46.934] [LOG]   Initializing new module helper …<br />
[25.05.2023 13:13.46.935] [LOG]   Module helper loaded: updatenotification<br />
[25.05.2023 13:13.46.936] [LOG]   No helper found for module: clock.<br />
[25.05.2023 13:13.47.185] [LOG]   Initializing new module helper …<br />
[25.05.2023 13:13.47.186] [LOG]   Module helper loaded: calendar<br />
[25.05.2023 13:13.47.187] [LOG]   No helper found for module: calendar_monthly.<br />
[25.05.2023 13:13.47.190] [LOG]   Initializing new module helper …<br />
[25.05.2023 13:13.47.191] [LOG]   Module helper loaded: MMM-PIR-Sensor-Lite<br />
[25.05.2023 13:13.47.206] [LOG]   Initializing new module helper …<br />
[25.05.2023 13:13.47.207] [LOG]   Module helper loaded: MMM-Weather<br />
[25.05.2023 13:13.47.297] [LOG]   Initializing new module helper …<br />
[25.05.2023 13:13.47.297] [LOG]   Module helper loaded: MMM-Tools<br />
[25.05.2023 13:13.47.318] [LOG]   Initializing new module helper …<br />
[25.05.2023 13:13.47.318] [LOG]   Module helper loaded: newsfeed<br />
[25.05.2023 13:13.47.319] [LOG]   All module helpers loaded.<br />
[25.05.2023 13:13.47.337] [LOG]   Starting server on port 8080 …<br />
[25.05.2023 13:13.47.598] [LOG]   Server started …<br />
[25.05.2023 13:13.47.600] [LOG]   Connecting socket for: updatenotification<br />
[25.05.2023 13:13.47.601] [LOG]   Starting module helper: updatenotification<br />
[25.05.2023 13:13.47.601] [LOG]   Connecting socket for: calendar<br />
[25.05.2023 13:13.47.602] [LOG]   Starting node helper for: calendar<br />
[25.05.2023 13:13.47.603] [LOG]   Connecting socket for: MMM-PIR-Sensor-Lite<br />
[25.05.2023 13:13.47.603] [LOG]   Connecting socket for: MMM-Weather<br />
[25.05.2023 13:13.47.605] [LOG]   Connecting socket for: MMM-Tools<br />
[25.05.2023 13:13.47.609] [LOG]   [Tools] MMM-Tools Version: 2.1.7<br />
[25.05.2023 13:13.47.611] [LOG]   Connecting socket for: newsfeed<br />
[25.05.2023 13:13.47.612] [LOG]   Starting node helper for: newsfeed<br />
[25.05.2023 13:13.47.613] [LOG]   Sockets connected &amp; modules started …<br />
[25.05.2023 13:13.47.648] [LOG]   Launching application.<br />
MESA-LOADER: failed to retrieve device information<br />
MESA-LOADER: failed to retrieve device information<br />
MESA-LOADER: failed to retrieve device information<br />
MESA-LOADER: failed to open kms_swrast: /usr/lib/dri/kms_swrast_dri.so: cannot open shared object file: Permission denied (search paths /usr/lib/arm-linux-gnueabihf/dri:$${ORIGIN}/dri:/usr/lib/dri)<br />
failed to load driver: kms_swrast<br />
MESA-LOADER: failed to open swrast: /usr/lib/dri/swrast_dri.so: cannot open shared object file: Permission denied (search paths /usr/lib/arm-linux-gnueabihf/dri:$${ORIGIN}/dri:/usr/lib/dri)<br />
failed to load swrast driver<br />
[25.05.2023 13:13.51.006] [LOG]   Create new calendarfetcher for url: <a href="http://www.calendarlabs.com/ical-calendar/ics/39/Canada_Holidays.ics" target="_blank" rel="noopener noreferrer nofollow ugc">http://www.calendarlabs.com/ical-calendar/ics/39/Canada_Holidays.ics</a> - Interval: 30000<br />
[25.05.2023 13:13.51.164] [LOG]   Create new newsfetcher for url: <a href="https://rss.cbc.ca/lineup/canada.xml" target="_blank" rel="noopener noreferrer nofollow ugc">https://rss.cbc.ca/lineup/canada.xml</a> - Interval: 300000<br />
[25.05.2023 13:13.51.172] [LOG]   Create new newsfetcher for url: <a href="https://rss.cbc.ca/lineup/canada-toronto.xml" target="_blank" rel="noopener noreferrer nofollow ugc">https://rss.cbc.ca/lineup/canada-toronto.xml</a> - Interval: 300000<br />
[25.05.2023 13:13.51.180] [LOG]   Create new newsfetcher for url: <a href="https://rss.cbc.ca/lineup/sports-nhl.xml" target="_blank" rel="noopener noreferrer nofollow ugc">https://rss.cbc.ca/lineup/sports-nhl.xml</a> - Interval: 300000<br />
[25.05.2023 13:13.51.186] [LOG]   [WEATHER] MMM-WEATHER Version: 1.0.6<br />
[25.05.2023 13:13.51.194] [INFO]  Checking git for module: calendar_monthly<br />
[25.05.2023 13:13.51.256] [INFO]  Checking git for module: MMM-PIR-Sensor-Lite<br />
[25.05.2023 13:13.51.298] [INFO]  Checking git for module: MMM-Weather<br />
[25.05.2023 13:13.51.393] [INFO]  Checking git for module: MMM-Tools<br />
[25.05.2023 13:13.51.475] [INFO]  Checking git for module: MagicMirror<br />
[25.05.2023 13:13.52.967] [INFO]  Calendar-Fetcher: Broadcasting 119 events.<br />
[25.05.2023 13:13.53.297] [INFO]  Newsfeed-Fetcher: Broadcasting 20 items.<br />
[25.05.2023 13:13.53.549] [INFO]  Calendar-Fetcher: Broadcasting 8 events.<br />
[25.05.2023 13:13.59.798] [INFO]  Newsfeed-Fetcher: Broadcasting 20 items.<br />
[25.05.2023 13:13.59.904] [INFO]  Newsfeed-Fetcher: Broadcasting 30 items.</p>
<p dir="auto">Most of the solutions that I’ve found were created years ago and they will not work with the latest version of the OS.  And the newer ones don’t seem to provide a solution for HDMI CEC control.</p>
<p dir="auto">So my question is, “Is there a PIR sensor module that works with Raspbian 11 and supports HDMI CEC?”.  Thanks in advance.</p>
]]></description><link>https://forum.magicmirror.builders/topic/17810/pir-sensor-for-raspbian-11</link><generator>RSS for Node</generator><lastBuildDate>Sun, 12 Jul 2026 09:08:17 GMT</lastBuildDate><atom:link href="https://forum.magicmirror.builders/topic/17810.rss" rel="self" type="application/rss+xml"/><pubDate>Thu, 25 May 2023 18:11:06 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to PIR Sensor for Raspbian 11 on Mon, 29 May 2023 20:51:35 GMT]]></title><description><![CDATA[<p dir="auto">solution posted here:</p>
<p dir="auto"><a href="https://forum.magicmirror.builders/topic/17813/mmm-pir-sensor-lite-modification/22">https://forum.magicmirror.builders/topic/17813/mmm-pir-sensor-lite-modification/22</a></p>
]]></description><link>https://forum.magicmirror.builders/post/109569</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/109569</guid><dc:creator><![CDATA[Freddy_boy]]></dc:creator><pubDate>Mon, 29 May 2023 20:51:35 GMT</pubDate></item><item><title><![CDATA[Reply to PIR Sensor for Raspbian 11 on Fri, 26 May 2023 01:23:44 GMT]]></title><description><![CDATA[<p dir="auto">Yes, I saw that suggestion to disable the GPU driver, and I have implemented it in my shell script (/home/pi/mm.sh).  I was just wondering if it was ok, or am I just masking a real problem…</p>
<p dir="auto">I also have installed the HDMI CEC client previously.  However, when I attempt to run the command to identify the device, I don’t get any results.</p>
<p dir="auto">pi@raspberrypi:~/MagicMirror $ echo ‘scan’ | cec-client -s -d 1<br />
opening a connection to the CEC adapter…<br />
ERROR:   [             656]     CLinuxCECAdapterCommunication::Write - ioctl CEC_TRANSMIT failed - tx_status=00 errno=64<br />
ERROR:   [             656]     CLinuxCECAdapterCommunication::Write - ioctl CEC_TRANSMIT failed - tx_status=00 errno=64<br />
ERROR:   [             942]     CLinuxCECAdapterCommunication::Write - ioctl CEC_TRANSMIT failed - tx_status=00 errno=64<br />
ERROR:   [             942]     CLinuxCECAdapterCommunication::Write - ioctl CEC_TRANSMIT failed - tx_status=00 errno=64<br />
requesting CEC bus information …<br />
ERROR:   [            1800]     CLinuxCECAdapterCommunication::Write - ioctl CEC_TRANSMIT failed - tx_status=00 errno=64<br />
ERROR:   [            1800]     CLinuxCECAdapterCommunication::Write - ioctl CEC_TRANSMIT failed - tx_status=00 errno=64<br />
ERROR:   [            1800]     CLinuxCECAdapterCommunication::Write - ioctl CEC_TRANSMIT failed - tx_status=00 errno=64<br />
ERROR:   [            1800]     CLinuxCECAdapterCommunication::Write - ioctl CEC_TRANSMIT failed - tx_status=00 errno=64<br />
ERROR:   [            1801]     CLinuxCECAdapterCommunication::Write - ioctl CEC_TRANSMIT failed - tx_status=00 errno=64<br />
ERROR:   [            1801]     CLinuxCECAdapterCommunication::Write - ioctl CEC_TRANSMIT failed - tx_status=00 errno=64<br />
ERROR:   [            1801]     CLinuxCECAdapterCommunication::Write - ioctl CEC_TRANSMIT failed - tx_status=00 errno=64<br />
ERROR:   [            1801]     CLinuxCECAdapterCommunication::Write - ioctl CEC_TRANSMIT failed - tx_status=00 errno=64<br />
ERROR:   [            1801]     CLinuxCECAdapterCommunication::Write - ioctl CEC_TRANSMIT failed - tx_status=00 errno=64<br />
ERROR:   [            1801]     CLinuxCECAdapterCommunication::Write - ioctl CEC_TRANSMIT failed - tx_status=00 errno=64<br />
ERROR:   [            1801]     CLinuxCECAdapterCommunication::Write - ioctl CEC_TRANSMIT failed - tx_status=00 errno=64<br />
ERROR:   [            1801]     CLinuxCECAdapterCommunication::Write - ioctl CEC_TRANSMIT failed - tx_status=00 errno=64<br />
CEC bus information</p>
<p dir="auto">===================<br />
device #1: Recorder 1<br />
address:       1.0.0.0<br />
active source: no<br />
vendor:        Pulse Eight<br />
osd string:    CECTester<br />
CEC version:   1.4<br />
power status:  on<br />
language:      eng</p>
<p dir="auto">currently active source: unknown (-1)<br />
ERROR:   [            1801]     CLinuxCECAdapterCommunication::Write - ioctl CEC_TRANSMIT failed - tx_status=00 errno=64<br />
ERROR:   [            1801]     CLinuxCECAdapterCommunication::Write - ioctl CEC_TRANSMIT failed - tx_status=00 errno=64<br />
ERROR:   [            1801]     CLinuxCECAdapterCommunication::Write - ioctl CEC_TRANSMIT failed - tx_status=00 errno=64<br />
ERROR:   [            1801]     CLinuxCECAdapterCommunication::Write - ioctl CEC_TRANSMIT failed - tx_status=00 errno=64<br />
ERROR:   [            1801]     CLinuxCECAdapterCommunication::Write - ioctl CEC_TRANSMIT failed - tx_status=00 errno=64<br />
ERROR:   [            1801]     CLinuxCECAdapterCommunication::Write - ioctl CEC_TRANSMIT failed - tx_status=00 errno=64<br />
ERROR:   [            1801]     CLinuxCECAdapterCommunication::Write - ioctl CEC_TRANSMIT failed - tx_status=00 errno=64<br />
ERROR:   [            1801]     CLinuxCECAdapterCommunication::Write - ioctl CEC_TRANSMIT failed - tx_status=00 errno=64<br />
ERROR:   [            1801]     CLinuxCECAdapterCommunication::Write - ioctl CEC_TRANSMIT failed - tx_status=00 errno=64<br />
ERROR:   [            1801]     CLinuxCECAdapterCommunication::Write - ioctl CEC_TRANSMIT failed - tx_status=00 errno=64<br />
ERROR:   [            1801]     CLinuxCECAdapterCommunication::Write - ioctl CEC_TRANSMIT failed - tx_status=00 errno=64<br />
ERROR:   [            1801]     CLinuxCECAdapterCommunication::Write - ioctl CEC_TRANSMIT failed - tx_status=00 errno=64<br />
ERROR:   [            1801]     CLinuxCECAdapterCommunication::Write - ioctl CEC_TRANSMIT failed - tx_status=00 errno=64<br />
ERROR:   [            1801]     CLinuxCECAdapterCommunication::Write - ioctl CEC_TRANSMIT failed - tx_status=00 errno=64<br />
ERROR:   [            1802]     CLinuxCECAdapterCommunication::Write - ioctl CEC_TRANSMIT failed - tx_status=00 errno=64<br />
ERROR:   [            1802]     CLinuxCECAdapterCommunication::Write - ioctl CEC_TRANSMIT failed - tx_status=00 errno=64<br />
ERROR:   [            1802]     CLinuxCECAdapterCommunication::Write - ioctl CEC_TRANSMIT failed - tx_status=00 errno=64<br />
ERROR:   [            1802]     CLinuxCECAdapterCommunication::Write - ioctl CEC_TRANSMIT failed - tx_status=00 errno=64<br />
pi@raspberrypi:~/MagicMirror $</p>
]]></description><link>https://forum.magicmirror.builders/post/109494</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/109494</guid><dc:creator><![CDATA[Freddy_boy]]></dc:creator><pubDate>Fri, 26 May 2023 01:23:44 GMT</pubDate></item><item><title><![CDATA[Reply to PIR Sensor for Raspbian 11 on Thu, 25 May 2023 18:56:10 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/freddy_boy" aria-label="Profile: Freddy_boy">@<bdi>Freddy_boy</bdi></a> you have to manually install the cecclient</p>
<p dir="auto"><a href="https://pimylifeup.com/raspberrypi-hdmi-cec/" target="_blank" rel="noopener noreferrer nofollow ugc">https://pimylifeup.com/raspberrypi-hdmi-cec/</a></p>
]]></description><link>https://forum.magicmirror.builders/post/109491</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/109491</guid><dc:creator><![CDATA[sdetweil]]></dc:creator><pubDate>Thu, 25 May 2023 18:56:10 GMT</pubDate></item><item><title><![CDATA[Reply to PIR Sensor for Raspbian 11 on Thu, 25 May 2023 18:54:43 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/freddy_boy" aria-label="Profile: Freddy_boy">@<bdi>Freddy_boy</bdi></a> said in <a href="/post/109489">PIR Sensor for Raspbian 11</a>:</p>
<blockquote>
<p dir="auto">MESA-LOADER: failed to retrieve device information</p>
</blockquote>
<p dir="auto">that is a  gpu driver  problem,</p>
<p dir="auto">in the script that starts MM add</p>
<pre><code>export ELECTRION_DISABLE_GPU=1
</code></pre>
<p dir="auto">before the line that does npm start</p>
]]></description><link>https://forum.magicmirror.builders/post/109490</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/109490</guid><dc:creator><![CDATA[sdetweil]]></dc:creator><pubDate>Thu, 25 May 2023 18:54:43 GMT</pubDate></item></channel></rss>