MagicMirror Forum

    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unsolved
    • Solved
    • MagicMirrorΒ² Repository
    • Documentation
    • Donate
    • Discord
    1. Home
    2. BJK
    MagicMirrorΒ² v2.20.0 is available! For more information about this release, check out this topic.
    B
    • Profile
    • Following 0
    • Followers 0
    • Topics 0
    • Posts 6
    • Best 0
    • Controversial 0
    • Groups 0

    BJK

    @BJK

    0
    Reputation
    1
    Profile views
    6
    Posts
    0
    Followers
    0
    Following
    Joined Last Online

    BJK Unfollow Follow

    Latest posts made by BJK

    • RE: Magic Mirror with touchscreen Display/Monitor

      @Snille

      Thank you! 😁
      Now, after your precise suggestions, I did read up on the autostart for Raspberry:
      https://forums.raspberrypi.com/viewtopic.php?t=313191
      https://forums.raspberrypi.com/viewtopic.php?f=66&t=294014

      and using:
      β€œsudo nano /etc/xdg/lxsession/LXDE-pi/autostart”

      I pasted my line at the end of the the autostart:
      @/home/pi/xin.sh
      and then saved the file

      In the xin.sh file, I have:
      line1: #!/bin/bash
      line 2: DISPLAY=:0.0 xinput --set-prop β€œMulti touch Multi touch overlay device” β€œCoordinate Transformation Matrix” 0 -1 1 1 0 0 0 0 1

      So, just two lines and "line1or2: " is not part of the file 😏 (and - as you said - I do have a bit different coordinate compared to you)

      AND now it WORKS! Thank you !

      posted in Hardware
      B
      BJK
    • RE: Magic Mirror with touchscreen Display/Monitor

      @BJK
      and you were logged on as user pi, right?
      Well, instead of user pi, I am user Bo. So my home directory is like home/Bo/MagicMirror/modules…
      But any idea about the xin.sh error? Would it help to let pm2 just run the xin.sh once?
      Best

      posted in Hardware
      B
      BJK
    • RE: Magic Mirror with touchscreen Display/Monitor

      @BJK

      Regarding: β€œwe’re you running as root ( or using sudo ) when u did the pm2 start xin.sh?”

      I just wrote β€œpm2 start xin.sh”,and then β€œpm2 start mm.sh” and then at last β€œpm2 save”

      Should I have used β€œsudo pm2 start xin.sh” ?

      posted in Hardware
      B
      BJK
    • RE: Magic Mirror with touchscreen Display/Monitor

      @sdetweil

      @sdetweil

      Well, I start the xin.sh with PM2 and it works with calibrating the IR-frame:

      xin.sh:
      #!/bin/bash
      DISPLAY=:0.0 xinput --set-prop β€œMulti touch Multi touch overlay device” β€œCoordinate Transformation Matrix” 0 -1 1 1 0 0 0 0 1

      However, after the mm.sh (the MagicMirror) has started, then when I go back to Raspberry disktop the the Calibration is off again. If I then run the xin.sh with β€œpm2 start xin.sh” in a terminal window then the calibration is okay again.

      This is the error that I get from pm2 log file:

      Bo@MMpi:~ $ pm2 list
      β”Œβ”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
      β”‚ id β”‚ name β”‚ mode β”‚ β†Ί β”‚ status β”‚ cpu β”‚ memory β”‚
      β”œβ”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€
      β”‚ 0 β”‚ xin β”‚ fork β”‚ 15 β”‚ errored β”‚ 0% β”‚ 0b β”‚
      β””β”€β”€β”€β”€β”΄β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”΄β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”΄β”€β”€β”€β”€β”€β”€β”΄β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”΄β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”΄β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜
      [PM2][WARN] Current process list is not synchronized with saved list. App led mm differs. Type β€˜pm2 save’ to synchronize.
      Bo@MMpi:~ $ pm2 log
      [TAILING] Tailing last 15 lines for [all] processes (change the value with --lines option)
      /home/Bo/.pm2/pm2.log last 15 lines:
      PM2 | 2022-03-31T20:11:38: PM2 log: App [xin:0] online
      PM2 | 2022-03-31T20:11:38: PM2 log: App [xin:0] exited with code [0] via signal [SIGINT]
      PM2 | 2022-03-31T20:11:38: PM2 log: App [xin:0] starting in -fork mode-
      PM2 | 2022-03-31T20:11:38: PM2 log: App [xin:0] online
      PM2 | 2022-03-31T20:11:38: PM2 log: App [xin:0] exited with code [0] via signal [SIGINT]
      PM2 | 2022-03-31T20:11:38: PM2 log: App [xin:0] starting in -fork mode-
      PM2 | 2022-03-31T20:11:38: PM2 log: App [xin:0] online
      PM2 | 2022-03-31T20:11:38: PM2 log: App [xin:0] exited with code [0] via signal [SIGINT]
      PM2 | 2022-03-31T20:11:38: PM2 log: App [xin:0] starting in -fork mode-
      PM2 | 2022-03-31T20:11:38: PM2 log: App [xin:0] online
      PM2 | 2022-03-31T20:11:38: PM2 log: App [xin:0] exited with code [0] via signal [SIGINT]
      PM2 | 2022-03-31T20:11:38: PM2 log: App [xin:0] starting in -fork mode-
      PM2 | 2022-03-31T20:11:38: PM2 log: App [xin:0] online
      PM2 | 2022-03-31T20:11:38: PM2 log: App [xin:0] exited with code [0] via signal [SIGINT]
      PM2 | 2022-03-31T20:11:38: PM2 log: Script /home/Bo/xin.sh had too many unstable restarts (16). Stopped. β€œerrored”

      /home/Bo/.pm2/logs/xin-out.log last 15 lines:
      /home/Bo/.pm2/logs/xin-error.log last 15 lines:
      0|xin | Invalid MIT-MAGIC-COOKIE-1 keyUnable to connect to X server
      0|xin | Invalid MIT-MAGIC-COOKIE-1 keyUnable to connect to X server
      0|xin | Invalid MIT-MAGIC-COOKIE-1 keyUnable to connect to X server
      0|xin | Invalid MIT-MAGIC-COOKIE-1 keyUnable to connect to X server
      0|xin | Invalid MIT-MAGIC-COOKIE-1 keyUnable to connect to X server
      0|xin | Invalid MIT-MAGIC-COOKIE-1 keyUnable to connect to X server
      0|xin | Unable to connect to X server
      0|xin | Invalid MIT-MAGIC-COOKIE-1 keyInvalid MIT-MAGIC-COOKIE-1 keyUnable to connect to X server
      0|xin | Invalid MIT-MAGIC-COOKIE-1 keyUnable to connect to X server
      0|xin | Unable to connect to X server
      0|xin | Invalid MIT-MAGIC-COOKIE-1 keyInvalid MIT-MAGIC-COOKIE-1 keyUnable to connect to X server
      0|xin | Invalid MIT-MAGIC-COOKIE-1 keyUnable to connect to X server
      0|xin | Unable to connect to X server
      0|xin | Invalid MIT-MAGIC-COOKIE-1 keyUnable to connect to X server
      0|xin | Invalid MIT-MAGIC-COOKIE-1 keyUnable to connect to X server

      Should I do something else with pm2 or run the xin.sh in an other way?

      It would be so nice to have i done automatically 😁

      the mm.sh file:
      cd ~/MagicMirror
      DISPLAY=:0 npm start

      Best Bo

      posted in Hardware
      B
      BJK
    • RE: Magic Mirror with touchscreen Display/Monitor

      @sdetweil

      Well, I start the xin.sh with PM2 and it works with calibrating the IR-frame:

      xin.sh:
      #!/bin/bash
      DISPLAY=:0.0 xinput --set-prop β€œMulti touch Multi touch overlay device” β€œCoordinate Transformation Matrix” 0 -1 1 1 0 0 0 0 1

      However, after the mm.sh (the MagicMirror) has started, then when I go back to Raspberry disktop the the Calibration is off again. If I then run the xin.sh with β€œpm2 start xin.sh” in a terminal window then the calibration is okay again.

      This is the error that I get from pm2 log file:

      Bo@MMpi:~ $ pm2 list
      β”Œβ”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
      β”‚ id β”‚ name β”‚ mode β”‚ β†Ί β”‚ status β”‚ cpu β”‚ memory β”‚
      β”œβ”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€
      β”‚ 0 β”‚ xin β”‚ fork β”‚ 15 β”‚ errored β”‚ 0% β”‚ 0b β”‚
      β””β”€β”€β”€β”€β”΄β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”΄β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”΄β”€β”€β”€β”€β”€β”€β”΄β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”΄β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”΄β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜
      [PM2][WARN] Current process list is not synchronized with saved list. App led mm differs. Type β€˜pm2 save’ to synchronize.
      Bo@MMpi:~ $ pm2 log
      [TAILING] Tailing last 15 lines for [all] processes (change the value with --lines option)
      /home/Bo/.pm2/pm2.log last 15 lines:
      PM2 | 2022-03-31T20:11:38: PM2 log: App [xin:0] online
      PM2 | 2022-03-31T20:11:38: PM2 log: App [xin:0] exited with code [0] via signal [SIGINT]
      PM2 | 2022-03-31T20:11:38: PM2 log: App [xin:0] starting in -fork mode-
      PM2 | 2022-03-31T20:11:38: PM2 log: App [xin:0] online
      PM2 | 2022-03-31T20:11:38: PM2 log: App [xin:0] exited with code [0] via signal [SIGINT]
      PM2 | 2022-03-31T20:11:38: PM2 log: App [xin:0] starting in -fork mode-
      PM2 | 2022-03-31T20:11:38: PM2 log: App [xin:0] online
      PM2 | 2022-03-31T20:11:38: PM2 log: App [xin:0] exited with code [0] via signal [SIGINT]
      PM2 | 2022-03-31T20:11:38: PM2 log: App [xin:0] starting in -fork mode-
      PM2 | 2022-03-31T20:11:38: PM2 log: App [xin:0] online
      PM2 | 2022-03-31T20:11:38: PM2 log: App [xin:0] exited with code [0] via signal [SIGINT]
      PM2 | 2022-03-31T20:11:38: PM2 log: App [xin:0] starting in -fork mode-
      PM2 | 2022-03-31T20:11:38: PM2 log: App [xin:0] online
      PM2 | 2022-03-31T20:11:38: PM2 log: App [xin:0] exited with code [0] via signal [SIGINT]
      PM2 | 2022-03-31T20:11:38: PM2 log: Script /home/Bo/xin.sh had too many unstable restarts (16). Stopped. β€œerrored”

      /home/Bo/.pm2/logs/xin-out.log last 15 lines:
      /home/Bo/.pm2/logs/xin-error.log last 15 lines:
      0|xin | Invalid MIT-MAGIC-COOKIE-1 keyUnable to connect to X server
      0|xin | Invalid MIT-MAGIC-COOKIE-1 keyUnable to connect to X server
      0|xin | Invalid MIT-MAGIC-COOKIE-1 keyUnable to connect to X server
      0|xin | Invalid MIT-MAGIC-COOKIE-1 keyUnable to connect to X server
      0|xin | Invalid MIT-MAGIC-COOKIE-1 keyUnable to connect to X server
      0|xin | Invalid MIT-MAGIC-COOKIE-1 keyUnable to connect to X server
      0|xin | Unable to connect to X server
      0|xin | Invalid MIT-MAGIC-COOKIE-1 keyInvalid MIT-MAGIC-COOKIE-1 keyUnable to connect to X server
      0|xin | Invalid MIT-MAGIC-COOKIE-1 keyUnable to connect to X server
      0|xin | Unable to connect to X server
      0|xin | Invalid MIT-MAGIC-COOKIE-1 keyInvalid MIT-MAGIC-COOKIE-1 keyUnable to connect to X server
      0|xin | Invalid MIT-MAGIC-COOKIE-1 keyUnable to connect to X server
      0|xin | Unable to connect to X server
      0|xin | Invalid MIT-MAGIC-COOKIE-1 keyUnable to connect to X server
      0|xin | Invalid MIT-MAGIC-COOKIE-1 keyUnable to connect to X server

      Should I do something else with pm2 or run the xin.sh in an other way?

      It would be so nice to have i done automatically 😁

      Best Bo

      posted in Hardware
      B
      BJK
    • RE: Magic Mirror with touchscreen Display/Monitor

      @Snille Hi Snille
      I have had greate use of xin.sh file to run at start. It contained the:
      β€œDISPLAY=:0.0 xinput --set-prop β€œMulti touch Multi touch overlay device” β€œCoordinate Transformation Matrix” 0 1 0 -1 0 1 0 0 1”
      However, now using the pm2 start xin.sh for automatic start, I get an error in the pm2 log
      What do you use to correct the ir-frame ?
      Best
      Bo

      posted in Hardware
      B
      BJK