<?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[face recognizes display ON&#x2F;OFF]]></title><description><![CDATA[<p dir="auto">hi I have been looking now for a few hours for a guide on how to get my face recognizes to turn my magic mirror display on when it recognizes my face can it be done and how thanks.</p>
]]></description><link>https://forum.magicmirror.builders/topic/15288/face-recognizes-display-on-off</link><generator>RSS for Node</generator><lastBuildDate>Fri, 10 Apr 2026 12:08:11 GMT</lastBuildDate><atom:link href="https://forum.magicmirror.builders/topic/15288.rss" rel="self" type="application/rss+xml"/><pubDate>Sat, 17 Jul 2021 10:19:29 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to face recognizes display ON&#x2F;OFF on Thu, 12 Aug 2021 00:45:31 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/cowboysdude" aria-label="Profile: cowboysdude">@<bdi>cowboysdude</bdi></a> cool. what monitor is that with?</p>
]]></description><link>https://forum.magicmirror.builders/post/93600</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/93600</guid><dc:creator><![CDATA[sdetweil]]></dc:creator><pubDate>Thu, 12 Aug 2021 00:45:31 GMT</pubDate></item><item><title><![CDATA[Reply to face recognizes display ON&#x2F;OFF on Wed, 11 Aug 2021 23:44:18 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> on the PI3… I just got mine working again this is the commands that work:</p>
<p dir="auto">ON:<br />
#! /bin/bash<br />
sudo vcgencmd display_power 1</p>
<p dir="auto">OFF:<br />
#! /bin/bash<br />
sudo vcgencmd display_power 0</p>
]]></description><link>https://forum.magicmirror.builders/post/93597</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/93597</guid><dc:creator><![CDATA[cowboysdude]]></dc:creator><pubDate>Wed, 11 Aug 2021 23:44:18 GMT</pubDate></item><item><title><![CDATA[Reply to face recognizes display ON&#x2F;OFF on Tue, 10 Aug 2021 16:33:59 GMT]]></title><description><![CDATA[<p dir="auto">as I said before, look at the GA code that does this… its the same 4 commands as always</p>
<p dir="auto"><a href="https://github.com/bugsounet/screen/blob/master/index.js" target="_blank" rel="noopener noreferrer nofollow ugc">https://github.com/bugsounet/screen/blob/master/index.js</a></p>
<p dir="auto">and</p>
<pre><code> async setPowerDisplay (set) {
    log("Display " + (set ? "ON." : "OFF."))
    this.screen.power = set
    this.SendScreenPowerState()
    if (this.screen.awaitBeforeTurnOff &amp;&amp; !set) await this.sleep(this.screen.awaitBeforeTurnOffTime)
    // and finally apply rules !
    switch (this.config.mode) {
      case 1:
        if (set) exec("/usr/bin/vcgencmd display_power 1")
        else exec("/usr/bin/vcgencmd display_power 0")
        break
      case 2:
        if (set) exec("DISPLAY=:0 xset dpms force on")
        else exec("DISPLAY=:0 xset dpms force off")
        break
      case 3:
        if (set) exec("tvservice -p &amp;&amp; sudo chvt 6 &amp;&amp; sudo chvt 7")
        else exec("tvservice -o")
        break
      case 4:
        if (set) exec("echo 'on 0' | cec-client -s")
        else exec("echo 'standby 0' | cec-client -s")
        break
      case 5:
        if (set) exec("xset dpms force on")
        else exec("xset dpms force off")
        break
    }
  }
</code></pre>
<p dir="auto">you should try  each command to see what the results are<br />
do this from and ssh connection to your pi, so you don’t have to fight getting the screen back on to work…</p>
<p dir="auto">note that most of these turn off the HDMI port, and NOT the actual monitor.<br />
many newer displays (since 2016) are energy star compliant and will display an upgly no input signal when the hdmi port is turned off…   no way to override that</p>
<p dir="auto">(and these displays will NOT turn back on when the hdmi port is turned back on)</p>
<p dir="auto">ps… none of my displays will work with any of these commands</p>
]]></description><link>https://forum.magicmirror.builders/post/93524</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/93524</guid><dc:creator><![CDATA[sdetweil]]></dc:creator><pubDate>Tue, 10 Aug 2021 16:33:59 GMT</pubDate></item><item><title><![CDATA[Reply to face recognizes display ON&#x2F;OFF on Tue, 10 Aug 2021 16:25:42 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/suvan" aria-label="Profile: suvan">@<bdi>suvan</bdi></a> looking for what?</p>
]]></description><link>https://forum.magicmirror.builders/post/93523</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/93523</guid><dc:creator><![CDATA[sdetweil]]></dc:creator><pubDate>Tue, 10 Aug 2021 16:25:42 GMT</pubDate></item><item><title><![CDATA[Reply to face recognizes display ON&#x2F;OFF on Tue, 10 Aug 2021 15:49:09 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/djboob66" aria-label="Profile: djboob66">@<bdi>djboob66</bdi></a> Hey, have you found any code yet? I’m looking for the same thing as well. Really need help with this.</p>
]]></description><link>https://forum.magicmirror.builders/post/93521</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/93521</guid><dc:creator><![CDATA[suvan]]></dc:creator><pubDate>Tue, 10 Aug 2021 15:49:09 GMT</pubDate></item><item><title><![CDATA[Reply to face recognizes display ON&#x2F;OFF on Sat, 17 Jul 2021 23:07:21 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/djboob66" aria-label="Profile: djboob66">@<bdi>djboob66</bdi></a> look at his code, he uses the same commands</p>
]]></description><link>https://forum.magicmirror.builders/post/92929</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/92929</guid><dc:creator><![CDATA[sdetweil]]></dc:creator><pubDate>Sat, 17 Jul 2021 23:07:21 GMT</pubDate></item><item><title><![CDATA[Reply to face recognizes display ON&#x2F;OFF on Sat, 17 Jul 2021 21:08:19 GMT]]></title><description><![CDATA[<p dir="auto">I want a more securer way so My work Calander is not visible for other users this is why I’m going down the Face recognition .<br />
GAv3 can turn the screen ON OFF but anyone how to know the command can do so.</p>
]]></description><link>https://forum.magicmirror.builders/post/92928</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/92928</guid><dc:creator><![CDATA[DJBOOB66]]></dc:creator><pubDate>Sat, 17 Jul 2021 21:08:19 GMT</pubDate></item><item><title><![CDATA[Reply to face recognizes display ON&#x2F;OFF on Sat, 17 Jul 2021 20:45:15 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/djboob66" aria-label="Profile: djboob66">@<bdi>djboob66</bdi></a> look at the Pir modules</p>
<p dir="auto">there are 4 different commands</p>
<p dir="auto">tvservice - pi only turn off/on hdmi<br />
vcgencmd - turn off/on hdmi<br />
dpms  - turn off/on hdmi<br />
cec-client - turn off/on monitor</p>
<p dir="auto">the 1st 3 will leave monitor on, and monitor may show a big ‘no signal/input’ screen for up to 15 minutes before powering off, this is  energy star compliance</p>
<p dir="auto">none of the commands that turn off hdmi can turn on the monitor after it powers off</p>
<p dir="auto">I have two cec tvs, but one will turn off, but not back on, and other will turn on, but not off</p>
<p dir="auto">soooooo. I use a hide/show all modules process</p>
]]></description><link>https://forum.magicmirror.builders/post/92922</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/92922</guid><dc:creator><![CDATA[sdetweil]]></dc:creator><pubDate>Sat, 17 Jul 2021 20:45:15 GMT</pubDate></item></channel></rss>