<?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 problem]]></title><description><![CDATA[<p dir="auto">I am trying to add a PIR sensor to the MM</p>
<p dir="auto">i have wired it to a raspberry pi but having a problem executing the funciton control the lcd</p>
<p dir="auto">getting an error, an idea</p>
<p dir="auto">sudo chmod u+s /opt/vc/bin/tvservice &amp;&amp; sudo chmod u+s /bin/chvt<br />
chmod: cannot access ‘/opt/vc/bin/tvservice’: No such file or directory</p>
]]></description><link>https://forum.magicmirror.builders/topic/16070/pir-sensor-problem</link><generator>RSS for Node</generator><lastBuildDate>Mon, 15 Jun 2026 07:42:45 GMT</lastBuildDate><atom:link href="https://forum.magicmirror.builders/topic/16070.rss" rel="self" type="application/rss+xml"/><pubDate>Thu, 23 Dec 2021 07:24:07 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to PIR sensor problem on Thu, 06 Jan 2022 15:43:30 GMT]]></title><description><![CDATA[<p dir="auto">@sultan-y<br />
To get the PIR sensor working with MM on the currently latest Raspberry PI OS Bullseye you can use <code>/usr/bin/vcgencmd display_power 0/1</code> instead of using the tvservice command (I run it in a script started by crontab at reboot).</p>
<p dir="auto">I also</p>
<ul>
<li>added <code>/usr/bin/xrandr -display :0.0 --auto</code> before the vcgencmd command</li>
<li>added user Pi to the gpio group: <code>sudo usermod -a -G gpio pi</code>, and I</li>
<li>added <code>XAUTHORITY=/home/pi/.Xauthority</code> here: <code>sudo vi /etc/environment</code></li>
</ul>
<p dir="auto">My mirror uses a DVI to HMI output, but using <code>xrandr</code> and <code>XAUTHORITY</code> as above solved the issues I had.</p>
<p dir="auto">Btw, I use</p>
<pre><code>/usr/bin/chvt 6
/usr/bin/chvt 7
</code></pre>
<p dir="auto">after the <code>/usr/bin/vcgencmd display_power 1</code> command, but that was used prior to using Bullseye as well.</p>
]]></description><link>https://forum.magicmirror.builders/post/98182</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/98182</guid><dc:creator><![CDATA[gandalf20000]]></dc:creator><pubDate>Thu, 06 Jan 2022 15:43:30 GMT</pubDate></item><item><title><![CDATA[Reply to PIR sensor problem on Fri, 24 Dec 2021 15:55:20 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/97768">PIR sensor problem</a>:</p>
<blockquote>
<p dir="auto">some of the newer pir modules support multiple ways</p>
</blockquote>
<p dir="auto">I love this style ;)</p>
]]></description><link>https://forum.magicmirror.builders/post/97770</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/97770</guid><dc:creator><![CDATA[bugsounet]]></dc:creator><pubDate>Fri, 24 Dec 2021 15:55:20 GMT</pubDate></item><item><title><![CDATA[Reply to PIR sensor problem on Fri, 24 Dec 2021 13:06:41 GMT]]></title><description><![CDATA[<p dir="auto">@sultan-y there are other approaches to turn off monitor</p>
<p dir="auto">some of the newer pie modules support multiple ways</p>
]]></description><link>https://forum.magicmirror.builders/post/97768</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/97768</guid><dc:creator><![CDATA[sdetweil]]></dc:creator><pubDate>Fri, 24 Dec 2021 13:06:41 GMT</pubDate></item><item><title><![CDATA[Reply to PIR sensor problem on Fri, 24 Dec 2021 04:37:23 GMT]]></title><description><![CDATA[<p dir="auto">is there a workaround?</p>
]]></description><link>https://forum.magicmirror.builders/post/97760</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/97760</guid><dc:creator><![CDATA[sultan.y]]></dc:creator><pubDate>Fri, 24 Dec 2021 04:37:23 GMT</pubDate></item><item><title><![CDATA[Reply to PIR sensor problem on Thu, 23 Dec 2021 12:44:36 GMT]]></title><description><![CDATA[<p dir="auto">@sultan-y in raspios latest , bullseye, that function, tvservice,  is no longer provided.,</p>
]]></description><link>https://forum.magicmirror.builders/post/97748</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/97748</guid><dc:creator><![CDATA[sdetweil]]></dc:creator><pubDate>Thu, 23 Dec 2021 12:44:36 GMT</pubDate></item></channel></rss>