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.

    Strip Down Guide for BenQ 28" VA Monitor GC2870H

    Scheduled Pinned Locked Moved Hardware
    61 Posts 10 Posters 68.3k Views 10 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.
    • Y Offline
      yep_DD @MadScientist
      last edited by yep_DD

      @madscientist you were right, it does not work well behind the mirror. I will keep the sensor anyway as the way it is designed it is easier to affix to my aluminum frame. I am now thinking of getting small black plexiglas casing to attach to the bottom part to control the mirror and make it look nice… let’s see.

      So this could be the plan:

      • Plexiglas with Cutout letters
        0_1536574392126_aa1bc4b3-c3ee-43b0-94b4-4379c7562c39-image.png

      • behind that translucent plexiglas

      • glue together

      • LED Strip on top of translucent glas to illuminate the cutout letters

      • enjoy?

      1 Reply Last reply Reply Quote 0
      • Y Offline
        yep_DD
        last edited by

        I am just going to follow up on that, I found a different solution. I am using a HUE Dimmer Switch that is controlled via FHEM and it controls a python script running on MagicMirror to play my podcast and change the volume:

        (I found that script somewhere on github and modified it a bit)

        #!/usr/bin/python3 -u
        
        host_name = '10.0.1.49' 
        host_port = 8000
        
        import RPi.GPIO as GPIO
        import os
        import subprocess
        import signal
        from subprocess import call
        from time import sleep
        from http.server import BaseHTTPRequestHandler, HTTPServer
        
        
        
        
        class MyServer(BaseHTTPRequestHandler):
        
            def do_HEAD(self):
                self.send_response(200)
                self.send_header('Content-type', 'text/html')
                self.end_headers()
        
            def do_GET(self):
                global proc
                html = '''
                   <html>
                   <body style="width:960px; margin: 20px auto;">
                   <h1>Magic Mirror Control</h1>
                   <p>Current GPU temperature is {}</p>
                   <p>Podcast: <a href="/play">Play</a> <a href="/stop">Stop</a></p>
                   <p>Volume: <a href="/down">down</a> <a href="/up">up</a></p>
                   <p>System: <a href="/shutdown">Shutdown</a> <a href="/restart">Restart</a></p>
                   <div id="podcast-status"></div>
                   <script>
                       document.getElementById("podcast-status").innerHTML="{}";
                   </script>
                   </body>
                   </html>
                '''
                temp = os.popen("/opt/vc/bin/vcgencmd measure_temp").read()
                self.do_HEAD()
                status = ''
                if self.path=='/':
                    status='nothing'
                elif self.path=='/play':
                    proc = subprocess.Popen(["omxplayer", "-o", "alsa:hw:ALSA", "--no-osd", "/tmp/video.mp4"], preexec_fn=os.setsid)
                    status='Playing Podcast'
                elif self.path=='/stop':
                    status='Stopping Podcast'
                    os.killpg(os.getpgid(proc.pid), signal.SIGTERM)
                elif self.path=='/shutdown':
                    status='Shutdown'
                    subprocess.Popen(["sudo", "shutdown", "-h", "now"], preexec_fn=os.setsid)
                elif self.path=='/restart':
                    status='Restart'
                    subprocess.Popen(["sudo", "reboot"], preexec_fn=os.setsid)
                elif self.path=='/down':
                    status='Volume down'
                    subprocess.Popen(["amixer", "set", "Master", "12%-"], preexec_fn=os.setsid)
                elif self.path=='/up':
                    status='Volume up'
                    subprocess.Popen(["amixer", "set", "Master", "12%+"], preexec_fn=os.setsid)
                self.wfile.write(html.format(temp[5:], status).encode("utf-8"))
        
        
        if __name__ == '__main__':
            http_server = HTTPServer((host_name, host_port), MyServer)
            print("Server Starts - %s:%s" % (host_name, host_port))
        
            try:
                http_server.serve_forever()
            except KeyboardInterrupt:
                http_server.server_close()
        
        
        1 Reply Last reply Reply Quote 0
        • A Offline
          Adrien
          last edited by

          Hello,

          Would it be possible to use a relay to power/unpower the screen ? On the sheet you show pin 3/4 power the backlight correct?

          Thanks

          M Y 2 Replies Last reply Reply Quote 0
          • M Offline
            MadScientist @Adrien
            last edited by

            @adrien check out this forum thread. cruunnerr explains different methods on how to turn on/off your screen. He helped me setting up my system which uses a relay and PIR-sensor to power on/off my LCD. I think that’s what you’re looking for.

            1 Reply Last reply Reply Quote 0
            • A Offline
              Adrien
              last edited by

              Well i’m not sure, i don’t use the magic mirror OS but home made application. I use a pir sensor, i would like to have instant poweron/poweroff without any OSD message on screen. So My question was if i cut the pin 3 or 4 on the backlight connector will it work ? To be clear when the PIR detect someone the relay connect the PIN (3 or 4) after few seconds relay disconnect the PIN (3 or 4)

              M 1 Reply Last reply Reply Quote 0
              • M Offline
                MadScientist @Adrien
                last edited by

                @adrien That should still be possible with the script method described in 5.1. Instead of the power lines for the controller board of the LCD you use the cables that lead to your backlight.

                I don’t know what LCD you have. Some have an extra inverter or LED driver board. You can take the cables from there. Some have a 40 pin LVDS cable (instead of 30 pin), so you have to check the datasheet which wires are for the backlight. I’d take the VCC wire for the backlight, snip it and connect both lose ends to the relay. That should work.

                Keep in mind that with this method the LCD is always on, only the backlight is off.

                1 Reply Last reply Reply Quote 0
                • A Offline
                  Adrien
                  last edited by Adrien

                  Thanks for your help. I use the same model :BenQGC2870H. I would like to combine a solution where i have a minimum power consumption and fast without osd message boot.

                  1 Reply Last reply Reply Quote 0
                  • Y Offline
                    yep_DD @Adrien
                    last edited by

                    @adrien Hi Adrien, that was my initial plan but I use the two relays now for my speakers to avoid the initial crack sound when powering on the amplifier und I use one relay for the monitor power supply and one for the amplifier.

                    A 1 Reply Last reply Reply Quote 0
                    • A Offline
                      Adrien @yep_DD
                      last edited by

                      @yep_dd Hello, and thanks for your guide :) Did you try to do it ? do you confirm that could work ? Thanks

                      1 Reply Last reply Reply Quote 0
                      • Y Offline
                        yep_DD
                        last edited by yep_DD

                        @Adrien No problem, I am pretty sure it should work but I have not tried it. I might in the future. I am working on a few other bugifxes as well (amplifier only turns on when sound is played and stuff like that). I also suggest to use the microwave / radar sensor instead of the PIR. it is much cleaner and can go behind the mirror.

                        Regarding the OSD, instead of cutting wires to the backlight this seems like a valuable option. At the moment I can’t try this (I need a friend to help me take down the mirror as it is too heavy), but I will tomorrow: https://www.youtube.com/watch?v=y86AXOZwlgU (TL;DW: press menu button while turning monitor on and disable logo)

                        1 Reply Last reply Reply Quote 0
                        • A Offline
                          Adrien
                          last edited by

                          Interesting solution this is the hidden menu of the display. The problem is the boot time i feel like it takes a long time to boot no ? well i will also try to cut the wire if it doesn’t work properly i will solder them. About the microwave sensor i have a rcwl0516 to test but the problem is the range of detection it detect people from a very large range

                          Y 2 Replies Last reply Reply Quote 0
                          • Y Offline
                            yep_DD @Adrien
                            last edited by

                            @Adrien ah, okay I see… yes that might be a problem in my case it works just fine. I will see about the boot time tomorrow.

                            1 Reply Last reply Reply Quote 0
                            • Y Offline
                              yep_DD @Adrien
                              last edited by

                              @adrien Okay, so it is about 3 seconds boot time I am estimating. No logo anymore. Just the annoying “HDMI1” screen on the lower right. Let’s see if that satisfies me or I will cut the wires as well. Have you tried yet?

                              M A 2 Replies Last reply Reply Quote 0
                              • M Offline
                                MadScientist @yep_DD
                                last edited by

                                @yep_dd You could use relay with a small delay to power your backlight. So the screen will only be visible after the “HDMI1” box disappeared. Personally I wouldn’t bother with it, though.

                                Y 1 Reply Last reply Reply Quote 0
                                • A Offline
                                  Adrien @yep_DD
                                  last edited by

                                  @yep_dd I have not yet try, i will do my test as soon as i receive my mirror, but 3 secs look not too long

                                  1 Reply Last reply Reply Quote 0
                                  • Y Offline
                                    yep_DD @MadScientist
                                    last edited by yep_DD

                                    @madscientist okay, so after a couple of days I am absolutely satisfied. I turn on my monitor with a small httpserver python script whenever someone is at home and -if it is night- any HUE light is on. I am now thinking of changing this to different energy saving modes in my magicmirror:

                                    • Always On
                                    • On when someone is home
                                    • On when someone is home and any light is on (turns off at night)
                                    • Only on when activated by PIR / Radar Sensor

                                    0_1540763201051_Screenshot 2018-10-28 at 22.46.15.png

                                    1 Reply Last reply Reply Quote 0
                                    • A Offline
                                      Adrien
                                      last edited by

                                      Hi,

                                      I have removed the boot logo, but it’s around 5 seconds to start the display and the “hdmi” message is there. I will try to cut the wire in the next days.

                                      1 Reply Last reply Reply Quote 0
                                      • D Offline
                                        Daniel3490
                                        last edited by

                                        @yep_dd
                                        Nice project, I got the same glass but a different monitor.
                                        At my mirror the backlite seems to bright so it’s easy to locate the edge of the monitor.
                                        Could you take some pictures for me to be sure it’s my monitor and not a general problem with the type of glas?
                                        If it’s different to yours I might have to invest in a different monitor. 😅

                                        Y 1 Reply Last reply Reply Quote 0
                                        • Y Offline
                                          yep_DD @Daniel3490
                                          last edited by

                                          @daniel3490 hi Daniel, it is bit hard to take down the mirror by myself, i have to wait until I have a friend over to help me. I don’t really see the edges of my monitor unless it is really really dark.

                                          1 Reply Last reply Reply Quote 0
                                          • B Offline
                                            bachoo786
                                            last edited by

                                            Hi @yep_DD

                                            Fantastic Work !

                                            May I ask how did you connect your rcwl0516 sensor and what module did you use to integrate it with MM? Are there any instructions I can follow?

                                            Thanks.

                                            M Y 2 Replies Last reply Reply Quote 0

                                            Hello! It looks like you're interested in this conversation, but you don't have an account yet.

                                            Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

                                            With your input, this post could be even better 💗

                                            Register Login
                                            • 1
                                            • 2
                                            • 3
                                            • 4
                                            • 3 / 4
                                            • First post
                                              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