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.6k 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

      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
                                • B Offline
                                  bobbythemoh
                                  last edited by bobbythemoh

                                  pi@MagicMirror:~ $ pm2 log MagicMirror
                                  [TAILING] Tailing last 15 lines for [MagicMirror] process (change the value with --lines option)
                                  /home/pi/.pm2/logs/MagicMirror-error-0.log last 15 lines:
                                  0|MagicMir | [865:0515/052002.614227:FATAL:bus.cc(1197)] D-Bus connection was disconnected. Aborting.
                                  0|MagicMir | #0 0x0000007fd980 <unknown>
                                  0|MagicMir | #1 0x000000841db2 <unknown>
                                  0|MagicMir | #2 0x0000012700d2 <unknown>
                                  0|MagicMir |
                                  0|MagicMir | npm ERR! code ELIFECYCLE
                                  0|MagicMir | npm ERR! errno 1
                                  0|MagicMir | npm ERR! magicmirror@2.3.1 start: `sh run-start.sh`
                                  0|MagicMir | npm ERR! Exit status 1
                                  0|MagicMir | npm ERR!
                                  0|MagicMir | npm ERR! Failed at the magicmirror@2.3.1 start script.
                                  0|MagicMir | npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
                                  0|MagicMir |
                                  0|MagicMir | npm ERR! A complete log of this run can be found in:
                                  0|MagicMir | npm ERR!     /home/pi/.npm/_logs/2018-05-15T05_31_52_606Z-debug.log
                                  
                                  /home/pi/.pm2/logs/MagicMirror-out-0.log last 15 lines:
                                  0|MagicMir | MMM-Loxone Search LightControls and LightV2Controls in room
                                  0|MagicMir | MMM-Loxone Found LightControl (Lichtsteuerung) in room OG Bad
                                  0|MagicMir | MMM-Loxone NotificationUuid: 0ea3ebd1-008d-029d-ffff390cde3b9b45
                                  0|MagicMir | MMM-Loxone Enabling statusupdates
                                  0|MagicMir | MMM-Loxone Successfully executed 'dev/sps/enablebinstatusupdate' with code 200 and value 1
                                  0|MagicMir | MMM-Loxone Got lightMood change [1]
                                  0|MagicMir | MMM-Loxone Got room temperature: 21.8
                                  0|MagicMir | MMM-Loxone Got lightMood change [777]
                                  0|MagicMir | MMM-Loxone Got lightMood change [778]
                                  0|MagicMir | MMM-Loxone Got lightMood change [1]
                                  0|MagicMir | MMM-Loxone Got lightMood change [777]
                                  0|MagicMir | MMM-Loxone Got lightMood change [1]
                                  0|MagicMir | MMM-Loxone Got lightMood change [777]
                                  0|MagicMir | MMM-Loxone Got lightMood change [778]
                                  0|MagicMir | MMM-Loxone Got lightMood change [1]
                                  
                                  
                                  
                                  idoodlerI 1 Reply Last reply Reply Quote 0
                                  • idoodlerI Offline
                                    idoodler Module Developer @bobbythemoh
                                    last edited by

                                    @bobbythemoh Ok, thanks. No unhandled rejections.

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

                                      @idoodler , did “vcgencmd” solve the issue?

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

                                        @bobbythemoh No. I think there is an issue within the communication module for the Miniserver. If the module crashes when the screen is turned off the screen will never be turned on again and vice versa.

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

                                          @idoodler , i dont think so. Let me explain the behaviour of the Module:

                                          Light in the Room Switched ON, Booting the Mirror gives me the Mirror as it should be
                                          Switching the Light off, switches the Monitor off.
                                          Switchint the Light on again activates the Background light of the Monitor but does not give content
                                          Entering the command “xset -display :0 -dpms” while the light is switched ON brings back the content

                                          in my opinion this is not a miniserver issue since I can observe an reaction (Backlight of the monitor comes alive), this is an issue with the “tvservice”

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

                                            @bobbythemoh You misunderstoodme. I think the issue is in my code with the communication layer crashing resulting in not receiving any state changes, hence the mirror doesn’t know to enable the display again.

                                            I just found an issue and testing it over the night.

                                            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