• Recent
  • Tags
  • Unsolved
  • Solved
  • MagicMirror² Repository
  • Documentation
  • 3rd-Party-Modules
  • Donate
  • Discord
  • Register
  • Login
MagicMirror Forum
  • Recent
  • Tags
  • Unsolved
  • Solved
  • MagicMirror² Repository
  • Documentation
  • 3rd-Party-Modules
  • Donate
  • Discord
  • Register
  • Login
A New Chapter for MagicMirror: The Community Takes the Lead
Read the statement by Michael Teeuw here.

Send on/off to the screen via IR

Scheduled Pinned Locked Moved Hardware
screennoobinfra-redno power savingcycle onoff
6 Posts 4 Posters 4.4k Views 2 Watching
Loading More Posts
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • T Offline
    thestubear
    last edited by Oct 8, 2017, 10:35 PM

    Hi Guys,

    Self confessed n00b here. My screen doesnt have power saving…and thus gives me an ethereal glow even if the hdmi is sending no signal.

    Short of the relay option (which I’m not sure will work anyway due to cycling power and it not automatically turning on), is there a module and recommended hardware to allow the pi to send the same command as the remote to the screen?

    TIA

    1 Reply Last reply Reply Quote 0
    • N Offline
      nowis
      last edited by Oct 9, 2017, 7:17 PM

      Have you seen the MMM-PIR module?

      1 Reply Last reply Reply Quote 0
      • T Offline
        thestubear
        last edited by Oct 9, 2017, 9:47 PM

        Hi Nowis,

        Yeah, i saw that. But switching off hdmi doesnt turn off the tv, which just displays an on, black screen which will result in an ethereal glow and isnt ideal.

        The alternative of using a relay wont actually switch the tv back on as it will go to standby.

        What I’m looking for is to send the tv to standby by sending the on/off command via IR, or something to achieve that effect.

        1 Reply Last reply Reply Quote 0
        • B Offline
          broberg Project Sponsor
          last edited by Oct 10, 2017, 2:53 PM

          okey, so I’m guessing you are using a TV and not a monitor (a monitor wouldn’t have these issues, maybe switch it? unless your mirror is over 27" I would probably suggest that first). but anyway, you should be able to make a ir transmitter and mount infront of the ir reciever of the tv.

          maybe something like this could work? http://www.raspberry-pi-geek.com/Archive/2015/10/Raspberry-Pi-IR-remote

          1 Reply Last reply Reply Quote 1
          • J Offline
            j.e.f.f Project Sponsor Module Developer
            last edited by Oct 10, 2017, 11:04 PM

            You have a couple of options here:

            You can install libCEC which you’ll be able to use to send standard CEC protocol commands over the HDMI connection. Support varies from one vendor to another, but the ability to turn on, turn off, and set the input are pretty universal.

            If you have a USB IR blaster, you can use LIRC to send IR commands to your TV’s IR port.

            Of the two I would try libCEC first, as it seems to be more reliable. I’m using both – libCEC to handle TV power, and LIRC to cancel the Input overlay OSD that my TV puts on screen for a few seconds after power up. The CEC commands work all the time, however the LIRC blasts seem to work whenever it feels like it. Maybe it’s my IR blaster… not sure… but libCEC has been rock solid. Also, you won;t need any extra gear – you’re likely already connecting your Pi to your TV using HDMI.

            A word of warning… Once you have libCEC installed, it takes a bit of a learning curve. This site is helpful once you get the hang of how to compose a CEC command, but if all you care about are TV on and off, these should work as-is:

            TV On:

            echo "on 0" | cec-client -s -d 1
            

            TV Off:

            echo "standby 0" | cec-client -s -d 1
            

            I hope this helps!

            1 Reply Last reply Reply Quote 1
            • T Offline
              thestubear
              last edited by Oct 13, 2017, 10:44 AM

              Thank you guys, this has been most helpful! I’ll give these a go over the next few weeks as and when I get time!

              1 Reply Last reply Reply Quote 0
              • 1 / 1
              1 / 1
              • First post
                4/6
                Last post
              Enjoying MagicMirror? Please consider a donation!
              MagicMirror created by Michael Teeuw.
              Forum managed by Sam, technical setup by Karsten.
              This forum is using NodeBB as its core | Contributors
              Contact | Privacy Policy