<?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[Using a TV as  a monitor]]></title><description><![CDATA[<p dir="auto">I know this information can be found in other hardware sites but I thought it might be helpful to have it here. I am using a Sanyo TV as the monitor for my Magic Mirror. I setup a cron to turn off the HDMI output of my Raspberry Pi nightly but when I turned it on in the morning the TV had gone into Standby and would not wake. I found that CEC needed to be turned on in the TV Settings. Then I could use CEC to wake the TV.</p>
<p dir="auto">Here are my crontab entries for Debian 13.6 (Trixie).</p>
<pre><code># Turn monitor output on in the morning
0 5 * * * env WAYLAND_DISPLAY=wayland-0 XDG_RUNTIME_DIR=/run/user/1000 /usr/bin/wlr-randr --output HDMI-A-1 --on '*'
# Wake the TV
5 5 * * * echo "on 0" | /usr/bin/cec-client -s -d 1
# Start Magic Mirror
10 5 * * * /home/marksimon/bin/mm start
#####
# Stop Magic Mirror in the Evening
0 20 * * * /home/marksimon/bin/mm stop
# Turn monitor output off in the morning
5 20 * * * env WAYLAND_DISPLAY=wayland-0 XDG_RUNTIME_DIR=/run/user/1000 /usr/bin/wlr-randr --output HDMI-A-1 --off '*'
# Sleep the TV
10 20 * * * echo "off 0" | /usr/bin/cec-client -s -d 1
</code></pre>
]]></description><link>https://forum.magicmirror.builders/topic/20364/using-a-tv-as-a-monitor</link><generator>RSS for Node</generator><lastBuildDate>Sun, 13 Sep 2026 05:16:49 GMT</lastBuildDate><atom:link href="https://forum.magicmirror.builders/topic/20364.rss" rel="self" type="application/rss+xml"/><pubDate>Sat, 12 Sep 2026 18:50:27 GMT</pubDate><ttl>60</ttl></channel></rss>