MagicMirror Forum
    • Recent
    • Tags
    • Unsolved
    • Solved
    • MagicMirror² Repository
    • Documentation
    • 3rd-Party-Modules
    • Donate
    • Discord
    • Register
    • Login
    1. Home
    2. ebolisa
    3. Posts
    A New Chapter for MagicMirror: The Community Takes the Lead
    Read the statement by Michael Teeuw here.
    Offline
    • Profile
    • Following 0
    • Followers 0
    • Topics 3
    • Posts 21
    • Groups 0

    Posts

    Recent Best Controversial
    • RE: Installing on a Pi Zero

      @sdetweil ok. Done the following with no avail.

      Removed MagicMirror folder

      Ran the install script. No errors. It did an autoreboot but no go.

      Reviewed the install_log… no errors.

      Did notice, however, the script created 3 folders:
      MagicMirror
      magic-mirror
      magic-mirror-app

      At reboot, the X server intent to start but incounters some errors and shuts down with the message: Server terminated successfully (0). Closing log file.

      Where do I go from here?
      TIA

      EDIT:
      Here’s the Xorg log:

      [    64.036]
      X.Org X Server 1.20.4
      X Protocol Version 11, Revision 0
      [    64.101] Build Operating System: Linux 5.4.0-54-generic armv8l Raspbian
      [    64.123] Current Operating System: Linux magicmirror 5.10.11+ #1399 Thu Jan                                                                                                                                    28 12:02:28 GMT 2021 armv6l
      [    64.123] Kernel command line: coherent_pool=1M 8250.nr_uarts=0 snd_bcm2835.e                                                                                                                                   nable_compat_alsa=0 snd_bcm2835.enable_hdmi=1 bcm2708_fb.fbwidth=1280 bcm2708_fb                                                                                                                                   .fbheight=1024 bcm2708_fb.fbswap=1 smsc95xx.macaddr=B8:27:EB:7C:38:09 vc_mem.mem                                                                                                                                   _base=0x1ec00000 vc_mem.mem_size=0x20000000  console=ttyS0,115200 console=tty1 r                                                                                                                                   oot=PARTUUID=a27be534-02 rootfstype=ext4 elevator=deadline fsck.repair=yes rootw                                                                                                                                   ait
      [    64.220] Build Date: 15 January 2021  02:03:57PM
      [    64.243] xorg-server 2:1.20.4-1+rpt2+deb10u3 (https://www.debian.org/support                                                                                                                                   )
      [    64.265] Current version of pixman: 0.36.0
      [    64.311]    Before reporting problems, check http://wiki.x.org
              to make sure that you have the latest version.
      [    64.314] Markers: (--) probed, (**) from config file, (==) default setting,
              (++) from command line, (!!) notice, (II) informational,
              (WW) warning, (EE) error, (NI) not implemented, (??) unknown.
      [    64.415] (==) Log file: "/var/log/Xorg.0.log", Time: Mon Feb 15 18:44:41 202                                                                                                                                   1
      [    64.455] (==) Using system config directory "/usr/share/X11/xorg.conf.d"
      [    64.471] (==) No Layout section.  Using the first Screen section.
      [    64.471] (==) No screen section available. Using defaults.
      [    64.471] (**) |-->Screen "Default Screen Section" (0)
      [    64.471] (**) |   |-->Monitor "<default monitor>"
      [    64.494] (==) No monitor specified for screen "Default Screen Section".
              Using a default monitor configuration.
      [    64.495] (==) Automatically adding devices
      [    64.496] (==) Automatically enabling devices
      [    64.496] (==) Automatically adding GPU devices
      [    64.503] (==) Max clients allowed: 256, resource mask: 0x1fffff
      [    64.517] (WW) The directory "/usr/share/fonts/X11/cyrillic" does not exist.
      [    64.517]    Entry deleted from font path.
      [    64.517] (WW) The directory "/usr/share/fonts/X11/100dpi/" does not exist.
      [    64.517]    Entry deleted from font path.
      [    64.518] (WW) The directory "/usr/share/fonts/X11/75dpi/" does not exist.
      [    64.518]    Entry deleted from font path.
      [    64.518] (WW) The directory "/usr/share/fonts/X11/Type1" does not exist.
      [    64.518]    Entry deleted from font path.
      [    64.518] (WW) The directory "/usr/share/fonts/X11/100dpi" does not exist.
      [    64.518]    Entry deleted from font path.
      [    64.518] (WW) The directory "/usr/share/fonts/X11/75dpi" does not exist.
      [    64.519]    Entry deleted from font path.
      [    64.519] (==) FontPath set to:
              /usr/share/fonts/X11/misc,
              built-ins
      [    64.519] (==) ModulePath set to "/usr/lib/xorg/modules"
      [    64.519] (II) The server relies on udev to provide the list of input devices                                                                                                                                   .
              If no devices become available, reconfigure udev or disable AutoAddDevic                                                                                                                                   es.
      [    64.519] (II) Loader magic: 0x1fdf80
      [    64.519] (II) Module ABI versions:
      [    64.519]    X.Org ANSI C Emulation: 0.4
      [    64.519]    X.Org Video Driver: 24.0
      [    64.522]    X.Org XInput driver : 24.1
      [    64.522]    X.Org Server Extension : 10.0
      [    64.538] (--) using VT number 2
      
      [    64.538] (II) systemd-logind: logind integration requires -keeptty and -keep                                                                                                                                   tty was not provided, disabling logind integration
      [    64.542] (II) no primary bus or device found
      [    64.545] (II) LoadModule: "glx"
      [    64.556] (II) Loading /usr/lib/xorg/modules/extensions/libglx.so
      [    64.656] (II) Module glx: vendor="X.Org Foundation"
      [    64.657]    compiled for 1.20.4, module version = 1.0.0
      [    64.657]    ABI class: X.Org Server Extension, version 10.0
      [    64.657] (==) Matched modesetting as autoconfigured driver 0
      [    64.657] (==) Matched fbdev as autoconfigured driver 1
      [    64.657] (==) Assigned the driver to the xf86ConfigLayout
      [    64.657] (II) LoadModule: "modesetting"
      [    64.664] (II) Loading /usr/lib/xorg/modules/drivers/modesetting_drv.so
      [    64.674] (II) Module modesetting: vendor="X.Org Foundation"
      [    64.675]    compiled for 1.20.4, module version = 1.20.4
      [    64.675]    Module class: X.Org Video Driver
      [    64.675]    ABI class: X.Org Video Driver, version 24.0
      [    64.675] (II) LoadModule: "fbdev"
      [    64.682] (II) Loading /usr/lib/xorg/modules/drivers/fbdev_drv.so
      [    64.689] (II) Module fbdev: vendor="X.Org Foundation"
      [    64.690]    compiled for 1.20.3, module version = 0.5.0
      [    64.690]    Module class: X.Org Video Driver
      [    64.690]    ABI class: X.Org Video Driver, version 24.0
      [    64.693] (II) modesetting: Driver for Modesetting Kernel Drivers: kms
      [    64.693] (II) FBDEV: driver for framebuffer: fbdev
      [    64.719] (WW) Falling back to old probe method for modesetting
      [    64.719] (EE) open /dev/dri/card0: No such file or directory
      [    64.720] (WW) Falling back to old probe method for fbdev
      [    64.720] (II) Loading sub module "fbdevhw"
      [    64.720] (II) LoadModule: "fbdevhw"
      [    64.721] (II) Loading /usr/lib/xorg/modules/libfbdevhw.so
      [    64.729] (II) Module fbdevhw: vendor="X.Org Foundation"
      [    64.729]    compiled for 1.20.4, module version = 0.0.2
      [    64.730]    ABI class: X.Org Video Driver, version 24.0
      [    64.734] (II) FBDEV(0): using default device
      [    64.734] (WW) VGA arbiter: cannot open kernel arbiter, no multi-card support
      [    64.739] (II) FBDEV(0): Creating default Display subsection in Screen sectio                                                                                                                                   n
              "Default Screen Section" for depth/fbbpp 24/32
      [    64.739] (==) FBDEV(0): Depth 24, (==) framebuffer bpp 32
      [    64.739] (==) FBDEV(0): RGB weight 888
      [    64.743] (==) FBDEV(0): Default visual is TrueColor
      [    64.762] (==) FBDEV(0): Using gamma correction (1.0, 1.0, 1.0)
      [    64.763] (II) FBDEV(0): hardware: BCM2708 FB (video memory: 5120kB)
      [    64.763] (DB) xf86MergeOutputClassOptions unsupported bus type 0
      [    64.763] (II) FBDEV(0): checking modes against framebuffer device...
      [    64.763] (II) FBDEV(0): checking modes against monitor...
      [    64.764] (II) FBDEV(0): Virtual size is 1280x1024 (pitch 1280)
      [    64.764] (**) FBDEV(0):  Built-in mode "current"
      [    64.764] (==) FBDEV(0): DPI set to (96, 96)
      [    64.764] (II) Loading sub module "fb"
      [    64.764] (II) LoadModule: "fb"
      [    64.765] (II) Loading /usr/lib/xorg/modules/libfb.so
      [    64.787] (II) Module fb: vendor="X.Org Foundation"
      [    64.787]    compiled for 1.20.4, module version = 1.0.0
      [    64.787]    ABI class: X.Org ANSI C Emulation, version 0.4
      [    64.787] (**) FBDEV(0): using shadow framebuffer
      [    64.787] (II) Loading sub module "shadow"
      [    64.787] (II) LoadModule: "shadow"
      [    64.788] (II) Loading /usr/lib/xorg/modules/libshadow.so
      [    64.796] (II) Module shadow: vendor="X.Org Foundation"
      [    64.796]    compiled for 1.20.4, module version = 1.1.0
      [    64.801]    ABI class: X.Org ANSI C Emulation, version 0.4
      [    64.801] (II) UnloadModule: "modesetting"
      [    64.801] (II) Unloading modesetting
      [    64.838] (==) FBDEV(0): Backing store enabled
      [    64.845] (==) FBDEV(0): DPMS enabled
      [    64.847] (II) Initializing extension Generic Event Extension
      [    64.852] (II) Initializing extension SHAPE
      [    64.865] (II) Initializing extension MIT-SHM
      [    64.877] (II) Initializing extension XInputExtension
      [    64.888] (II) Initializing extension XTEST
      [    64.897] (II) Initializing extension BIG-REQUESTS
      [    64.905] (II) Initializing extension SYNC
      [    64.913] (II) Initializing extension XKEYBOARD
      [    64.921] (II) Initializing extension XC-MISC
      [    64.930] (II) Initializing extension SECURITY
      [    64.937] (II) Initializing extension XFIXES
      [    64.947] (II) Initializing extension RENDER
      [    64.955] (II) Initializing extension RANDR
      [    64.974] (II) Initializing extension COMPOSITE
      [    64.981] (II) Initializing extension DAMAGE
      [    64.992] (II) Initializing extension MIT-SCREEN-SAVER
      [    65.000] (II) Initializing extension DOUBLE-BUFFER
      [    65.007] (II) Initializing extension RECORD
      [    65.016] (II) Initializing extension DPMS
      [    65.025] (II) Initializing extension Present
      [    65.032] (II) Initializing extension DRI3
      [    65.035] (II) Initializing extension X-Resource
      [    65.042] (II) Initializing extension XVideo
      [    65.053] (II) Initializing extension XVideo-MotionCompensation
      [    65.054] (II) Initializing extension SELinux
      [    65.054] (II) SELinux: Disabled on system
      [    65.058] (II) Initializing extension GLX
      [    65.065] (II) AIGLX: Screen 0 is not DRI2 capable
      [    68.618] (II) IGLX: Loaded and initialized swrast
      [    68.620] (II) GLX: Initialized DRISWRAST GL provider for screen 0
      [    68.621] (II) Initializing extension XFree86-VidModeExtension
      [    68.628] (II) Initializing extension XFree86-DGA
      [    68.637] (II) Initializing extension XFree86-DRI
      [    68.641] (II) Initializing extension DRI2
      [   118.828] (II) Server terminated successfully (0). Closing log file.
      
      posted in Troubleshooting
      ebolisaE
      ebolisa
    • RE: Installing on a Pi Zero

      @sdetweil but which one exacly? I had MM running on P4 but the heat produced by the processor, the screen and its electronics, has pushed me to try out MM on a P0. With that, I should resolve the heat issue.

      So, after reading several outdated procedures and after investing hours (as you know, P0 is as slow as hell) I’m back to square one.

      Which steps should I take from scratch?
      Which SO should I start with?
      Which install batch should I install?

      @stanvv’s procedure worked till I had to reboot, then the X server stopped responding :angry_face:

      posted in Troubleshooting
      ebolisaE
      ebolisa
    • RE: Installing on a Pi Zero

      @stanvv hi, that install was done on a P0, right?

      posted in Troubleshooting
      ebolisaE
      ebolisa
    • RE: EADDRINUSE: address already in use

      @sdetweil thank you. That explains my error shown in the first post.
      I’m using npm and a service because I used this procedure to install MM https://docs.magicmirror.builders/getting-started/installation.html#manual-installation

      posted in Troubleshooting
      ebolisaE
      ebolisa
    • RE: EADDRINUSE: address already in use

      @sdetweil Thanks, I’m probably looking into a non existing problem. Will check.

      posted in Troubleshooting
      ebolisaE
      ebolisa
    • RE: EADDRINUSE: address already in use

      @sdetweil Not sure I’m following you. The MM boot is done via the service and it works. Meaning, MM app is booting and the display looks as designed.
      What I showed in my last post is the content of the last log file. There’s an error but I don’t know how to interpret it.

      posted in Troubleshooting
      ebolisaE
      ebolisa
    • RE: EADDRINUSE: address already in use

      @sdetweil actually, I use npm trhrough service to autostart it.
      This’ what I get in the log. I know the app is talking to me, but I just cannot interpret it :confused_face:

      0 info it worked if it ends with ok
      1 verbose cli [ '/usr/bin/node', '/usr/bin/npm', 'stop' ]
      2 info using npm@6.14.11
      3 info using node@v10.23.3
      4 verbose stack Error: missing script: stop
      4 verbose stack     at run (/usr/lib/node_modules/npm/lib/run-script.js:155:19)
      4 verbose stack     at /usr/lib/node_modules/npm/lib/run-script.js:63:5
      4 verbose stack     at /usr/lib/node_modules/npm/node_modules/read-package-json/read-json.js:116:5
      4 verbose stack     at /usr/lib/node_modules/npm/node_modules/read-package-json/read-json.js:436:5
      4 verbose stack     at checkBinReferences_ (/usr/lib/node_modules/npm/node_modules/read-package-json/read-json.js:391:45)
      4 verbose stack     at final (/usr/lib/node_modules/npm/node_modules/read-package-json/read-json.js:434:3)
      4 verbose stack     at then (/usr/lib/node_modules/npm/node_modules/read-package-json/read-json.js:161:5)
      4 verbose stack     at /usr/lib/node_modules/npm/node_modules/read-package-json/read-json.js:382:12
      4 verbose stack     at /usr/lib/node_modules/npm/node_modules/graceful-fs/graceful-fs.js:123:16
      4 verbose stack     at FSReqWrap.readFileAfterClose [as oncomplete] (internal/fs/read_file_context.js:53:3)
      5 verbose cwd /home/pi/MagicMirror
      6 verbose Linux 5.10.11-v7l+
      7 verbose argv "/usr/bin/node" "/usr/bin/npm" "stop"
      8 verbose node v10.23.3
      9 verbose npm  v6.14.11
      10 error missing script: stop
      11 verbose exit [ 1, true ]
      
      posted in Troubleshooting
      ebolisaE
      ebolisa
    • EADDRINUSE: address already in use

      Hi,

      No matter what addr/port I use, I get the msg below.

      Any help is appreciated.
      TIA

      pi@magicmirror:~/MagicMirror $ npm run restart
      
      > magicmirror@2.14.0 start /home/pi/MagicMirror
      > DISPLAY="${DISPLAY:=:0}" ./node_modules/.bin/electron js/electron.js
      
      [13.02.2021 16:42.34.745] [LOG]   Starting MagicMirror: v2.14.0
      [13.02.2021 16:42.34.754] [LOG]   Loading config ...
      [13.02.2021 16:42.34.762] [LOG]   Loading module helpers ...
      [13.02.2021 16:42.34.765] [LOG]   No helper found for module: alert.
      [13.02.2021 16:42.34.931] [LOG]   Initializing new module helper ...
      [13.02.2021 16:42.34.932] [LOG]   Module helper loaded: updatenotification
      [13.02.2021 16:42.34.933] [LOG]   No helper found for module: clock.
      [13.02.2021 16:42.34.935] [LOG]   No helper found for module: currentweather.
      [13.02.2021 16:42.34.936] [LOG]   No helper found for module: weatherforecast.
      [13.02.2021 16:42.35.134] [LOG]   Initializing new module helper ...
      [13.02.2021 16:42.35.135] [LOG]   Module helper loaded: MMM-Remote-Control
      [13.02.2021 16:42.35.431] [LOG]   Initializing new module helper ...
      [13.02.2021 16:42.35.432] [LOG]   Module helper loaded: newsfeed
      [13.02.2021 16:42.35.434] [LOG]   Initializing new module helper ...
      [13.02.2021 16:42.35.435] [LOG]   Module helper loaded: MMM-MoonPhase
      [13.02.2021 16:42.35.438] [LOG]   Initializing new module helper ...
      [13.02.2021 16:42.35.438] [LOG]   Module helper loaded: MMM-PiTemp
      [13.02.2021 16:42.35.730] [LOG]   Initializing new module helper ...
      [13.02.2021 16:42.35.731] [LOG]   Module helper loaded: MMM-iFrame-Ping
      [13.02.2021 16:42.35.732] [LOG]   All module helpers loaded.
      [13.02.2021 16:42.35.825] [LOG]   Starting server on port 8181 ...
      [13.02.2021 16:42.35.832] [WARN]  You're using a full whitelist configuration to allow for all IPs
      [13.02.2021 16:42.35.841] [LOG]   Server started ...
      [13.02.2021 16:42.35.842] [LOG]   Connecting socket for: updatenotification
      [13.02.2021 16:42.35.843] [LOG]   Connecting socket for: MMM-Remote-Control
      [13.02.2021 16:42.35.845] [LOG]   Starting node helper for: MMM-Remote-Control
      [13.02.2021 16:42.35.868] [LOG]   Connecting socket for: newsfeed
      [13.02.2021 16:42.35.869] [LOG]   Starting node helper for: newsfeed
      [13.02.2021 16:42.35.870] [LOG]   Connecting socket for: MMM-MoonPhase
      [13.02.2021 16:42.35.871] [LOG]   Starting module helper: MMM-MoonPhase
      [13.02.2021 16:42.35.872] [LOG]   Connecting socket for: MMM-PiTemp
      [13.02.2021 16:42.35.873] [LOG]   Starting module helper: MMM-PiTemp
      [13.02.2021 16:42.35.873] [LOG]   Connecting socket for: MMM-iFrame-Ping
      [13.02.2021 16:42.35.874] [LOG]   MMM-iFrame-Ping helper started ...
      [13.02.2021 16:42.35.875] [LOG]   Sockets connected & modules started ...
      [13.02.2021 16:42.35.883] [ERROR] Whoops! There was an uncaught exception...
      [13.02.2021 16:42.35.888] [ERROR] Error: listen EADDRINUSE: address already in use 0.0.0.0:8181
          at Server.setupListenHandle [as _listen2] (net.js:1300:14)
          at listenInCluster (net.js:1348:12)
          at doListen (net.js:1487:7)
          at processTicksAndRejections (internal/process/task_queues.js:81:21) {
        code: 'EADDRINUSE',
        errno: 'EADDRINUSE',
        syscall: 'listen',
        address: '0.0.0.0',
        port: 8181
      }
      [13.02.2021 16:42.35.890] [ERROR] MagicMirror will not quit, but it might be a good idea to check why this happened. Maybe no internet connection?
      [13.02.2021 16:42.35.891] [ERROR] If you think this really is an issue, please open an issue on GitHub: https://github.com/MichMich/MagicMirror/issues
      [13.02.2021 16:42.36.145] [LOG]   Launching application.
      [13.02.2021 16:42.36.173] [WARN]  (electron) The default value of app.allowRendererProcessReuse is deprecated, it is currently "false".  It will change to be "true" in Electron 9.  For more information please check https://github.com/electron/electron/issues/18397
      
      posted in Troubleshooting
      ebolisaE
      ebolisa
    • RE: Enable/Disable video output

      Solved by issuing a npm restart.

      posted in Troubleshooting
      ebolisaE
      ebolisa
    • Enable/Disable video output

      Hi,

      My MM is connected 24 hrs showing some data and streaming a web with video and music content.

      Because of that, I’m using a script to turn HDMI off at night and turn it back on in the morning.

      When the monitor turns back on, it doesn’t show video, just sound. Checking the web page, everything is displayed fine, sound included.

      I’m using the following cmds to turn on/off the monitor and they work but, as I said, there’s a wake-up issue:

      vcgencmd display_power 0 > /dev/null
      

      or

      /opt/vc/bin/tvservice -o
      

      Is there a way to refresh the video output through MM or, better yet, enable/desable it via a schedule?
      TIA

      posted in Troubleshooting
      ebolisaE
      ebolisa
    • 1
    • 2
    • 3
    • 2 / 3