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.

    MMM-Loxone

    Scheduled Pinned Locked Moved Utilities
    loxonesmart home
    94 Posts 11 Posters 93.9k Views 14 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.
    • B Offline
      bobbythemoh
      last edited by bobbythemoh

      Thank you very much for the help, its really nice what you created with this module.

      I skipped the GUI as you suggested, RoomID is set, LightcontrollerV2 is in use, Presence is TRUE.

      What i changed on RPI config was :

      /boot/config.txt

      #hdmi_force_hotplug=1
      hdmi_group=2
      hdmi_mode=68
      hdmi_blanking_1
      

      I am using VGA Monitor with HDMI to VGA adapter.

      Setting “presence” to true gives me a black screen after loading MM. Swtiching on the light in the room switches on the backlight of the monitor but does not show the content. The good thing is, with this configuration there is no power consumption of the lcd any more.

      Using VNC i can see the magic mirror, so i think its a “screensaver” issue.

      next thing i am trying is

      sudo apt-get install xscreensaver
      

      There was a hint that it is possible to disable the screensaver with this tool.

      thanks for the help

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

        OK it seems that it is not a screensaver issue. I fully disabled it and the content of the magic mirror is not coming back. its just the backlight of the LCD that is getting switched on and off. any Idea?

        idoodlerI 1 Reply Last reply Reply Quote 0
        • idoodlerI Offline
          idoodler Module Developer @bobbythemoh
          last edited by

          @bobbythemoh This sounds like you use some kind of other „screensaver“ which just displays a black screen instead of switching off the HDMI Port. I think you somehow enabled „screen blanking“.

          1 Reply Last reply Reply Quote 0
          • idoodlerI Offline
            idoodler Module Developer @bobbythemoh
            last edited by

            @bobbythemoh btw. Just blacking out the screen is not realy saving much power if the backlight is still on… You just have to install MMM-Loxone, it will switch off the HDMI signal everytime the lights go out, your monitor will handle the rest (you might check your monitors Power saving setting).

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

              @idoodler
              Here is what i have observed:
              XScreensaver is installed, Screensaver is disabled.
              Rebooting the magic mirror with presence ON and light in the room on gives the magic mirror as it should be.
              Leaving the magic mirror in this state (and also the light in the room) does not lead to screensaver, the picture stays as it is.
              Switching off the light in the room also blacks out the monitor, power consumption goes down to 5W also without “#hdmi_blanking_1” but here is the issue:
              Switching on the light in the room after blacked out monitor brings the monitor backlight and the power consumption back but not the UI.

              With VNC i can see the UI, moving the mouse does not bring the UI back on the direct connected monitor.

              Any idea?

              idoodlerI 1 Reply Last reply Reply Quote 0
              • idoodlerI Offline
                idoodler Module Developer @bobbythemoh
                last edited by idoodler

                @bobbythemoh I guess you have some sort of other “power saving” feature activated I am not familiar with. MMM-Loxone directly toggles the HDMI output on or off. It isn’t displaying a black view on top of the screen.

                Please verify your /boot/config.txt!
                In one ofyour posts you wrote hdmi_blanking_1 but it should be hdmi_blanking=1.

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

                  OK you were right, i changed it but there is no change in the behaviour. The Monitor remains without video signal just with backlight if i switch the light in the room on. Do you have any hint for me what i can check?

                  idoodlerI 2 Replies Last reply Reply Quote 0
                  • idoodlerI Offline
                    idoodler Module Developer @bobbythemoh
                    last edited by

                    @bobbythemoh Did you reboot after correcting the option?

                    1 Reply Last reply Reply Quote 0
                    • idoodlerI Offline
                      idoodler Module Developer @bobbythemoh
                      last edited by

                      @bobbythemoh You may also try to uninstall xscreensaver

                      1 Reply Last reply Reply Quote 0
                      • E Offline
                        E3V3A
                        last edited by

                        There is indeed some very weird issue going on with the HDMI and screen saver/blanking as I reported here. It started after I updated my kernel (from 4.9.80) & what else came with it. Out of curiosity, what is your OS version?

                        "Everything I do (here) is for free – altruism is the way!"
                        MMM-FlightsAbove, MMM-Tabulator, MMM-Assistant (co-maintainer)

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

                          @idoodler yes i did reboot. and i just uninstalled xscreensaver (after that i did a reboot) but no change in the behaviour.

                          @E3V3A I used “uname -a”:
                          Linux MagicMirror 4.14.34-v7+ #1110 SMP Mon Apr 16 15:18:51 BST 2018 armv7l GNU/Linux

                          S 1 Reply Last reply Reply Quote 0
                          • S Offline
                            SuperSchenk @bobbythemoh
                            last edited by

                            @bobbythemoh said in MMM-Loxone:

                            @idoodler yes i did reboot. and i just uninstalled xscreensaver (after that i did a reboot) but no change in the behaviour.

                            @E3V3A I used “uname -a”:
                            Linux MagicMirror 4.14.34-v7+ #1110 SMP Mon Apr 16 15:18:51 BST 2018 armv7l GNU/Linux

                            Bobby do you have a solution for this? I’m having the exact same problem since updating my pi to the latest version of rasbian

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

                              no, solution yet unforunately.

                              1 Reply Last reply Reply Quote 0
                              • idoodlerI Offline
                                idoodler Module Developer
                                last edited by

                                I just experienced a similar issue, but It appears not to be caused by MMM-Loxone. I am Invastigating it…

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

                                  @idoodler
                                  I found this passage in your code:

                                      _togglePresence: function _togglePresence(isPresent) {
                                          if (isPresent) {
                                              // Check if hdmi output is already on
                                              exec("/opt/vc/bin/tvservice -s").stdout.on('data', function(data) {
                                                  if (data.indexOf("0x120002") !== -1)
                                                      exec("/opt/vc/bin/tvservice --preferred && chvt 6 && chvt 7", null);
                                              });
                                          } else {
                                              exec("/opt/vc/bin/tvservice -o", null);
                                          }
                                      }
                                  

                                  So you are using “tvserice -o” which seems not to work for me.
                                  would this be an alternative? Link

                                  Executing the commands vom @E3V3A here Link brings the Monitor Signal back, but only 1 time.

                                  Any idea?

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

                                    Hi, using this command brings back the Monitor signal:

                                    xset -display :0 -dpms
                                    
                                    1 Reply Last reply Reply Quote 0
                                    • idoodlerI Offline
                                      idoodler Module Developer
                                      last edited by

                                      I just implemented vcgencmd it looks like it is a bit quicker. I will check it out the next few days and will push it if everything works.

                                      E 1 Reply Last reply Reply Quote 0
                                      • E Offline
                                        E3V3A @idoodler
                                        last edited by

                                        @idoodler said in MMM-Loxone:

                                        I just implemented vcgencmd it looks like it is a bit quicker. I will check it out the next few days and will push it if everything works.

                                        Yeah, but that only work with Rapsberry Piss , so if you want it to work on other devices, you need to use xset, and if you want to use xset on the Pi, you now also need to tell it that the blank screen should be black, with xsetroot -display :0 -solid black.

                                        "Everything I do (here) is for free – altruism is the way!"
                                        MMM-FlightsAbove, MMM-Tabulator, MMM-Assistant (co-maintainer)

                                        idoodlerI 1 Reply Last reply Reply Quote 0
                                        • idoodlerI Offline
                                          idoodler Module Developer @E3V3A
                                          last edited by

                                          @e3v3a I think xset just blanks the screen without powering off the HDMI signal?

                                          1 Reply Last reply Reply Quote 0
                                          • idoodlerI Offline
                                            idoodler Module Developer
                                            last edited by

                                            @bobbythemoh Can you please post your pm2 log. You can optain it by executing pm2 log MagicMirror if you are using pm2.

                                            I just detected some unhandled rejections which may cause the black screen.

                                            1 Reply 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
                                            • 5
                                            • 2 / 5
                                            • 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