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.

    4 inch RPi LCD displaying MM not working

    Scheduled Pinned Locked Moved Hardware
    23 Posts 3 Posters 5.9k Views 3 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.
    • A Offline
      aecandroid @aecandroid
      last edited by

      @aecandroid @lavolp3 So Just as an update, I tried to run ./LCD-hdmi and then sudo reboot. Plugged into the HDMI, the Pi reboots, LCD in the GPIO goes white, Pi boots to pi@raspberry: and does not start MM. The only change is the install of LCD-show; change driver to LCD4-show; back to LCD-hdmi; and MagicMirror no longer works? I even tried doing npm start in /MagicMirror and got nothing. I also tried sh mm.sh and got nothing. I don’t get what happens in the LCD-show install but it kills MagicMirror. I have a backup image of when its working on HDMI, so that’s my reset point at the moment. Not sure what to do, may just need to go for an HDMI display in the end. Anyway, thanks again for your help and suggestions.

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

        Having been in quarantine, I’ve had a chance to sit down and try to sus out the issue. Everything seems to work 100% fine right up until I install LCD-show. After installing LCD-show and doing a reboot, MM never auto starts. I tried to run ./mmstart.sh and the results are below.

        
        Linux raspberrypi 4.19.58+ #1245 Fri Jul 12 17:20:08 BST 2019 armv6l
        
        The programs included with the Debian GNU/Linux system are free software;
        the exact distribution terms for each program are described in the
        individual files in /usr/share/doc/*/copyright.
        
        Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
        permitted by applicable law.
        Last login: Sat Apr 11 19:25:01 2020
        
        SSH is enabled and the default password for the 'pi' user has not been changed.
        This is a security risk - please login as the 'pi' user and type 'passwd' to set a new password.
        
        pi@raspberrypi:~ $ ls
        chromium_start.sh  mmstart.sh                         package-lock.json
        LCD-show           node-v10.16.0-linux-armv6l
        MagicMirror        node-v10.16.0-linux-armv6l.tar.xz
        pi@raspberrypi:~ $ ./mmstart.sh
        Starting MagicMirror: v2.8.0
        Loading config ...
        Loading module helpers ...
        No helper found for module: alert.
        No helper found for module: clock.
        Initializing new module helper ...
        Module helper loaded: calendar
        No helper found for module: MMM-TFL.
        No helper found for module: currentweather.
        No helper found for module: weatherforecast.
        Initializing new module helper ...
        Module helper loaded: MMM-UKNationalRail
        All module helpers loaded.
        Starting server on port 8080 ... 
        Server started ...
        Connecting socket for: calendar
        Starting node helper for: calendar
        Connecting socket for: MMM-UKNationalRail
        MMM-UKNationalRail helper started ...
        Sockets connected & modules started ...
        
        Ready to go! Please point your browser to: http://localhost:8080
        Whoops! There was an uncaught exception...
        { Error: listen EADDRINUSE: address already in use 127.0.0.1:8080
            at Server.setupListenHandle [as _listen2] (net.js:1279:14)
            at listenInCluster (net.js:1327:12)
            at GetAddrInfoReqWrap.doListen [as callback] (net.js:1460:7)
            at GetAddrInfoReqWrap.onlookup [as oncomplete] (dns.js:61:10)
          code: 'EADDRINUSE',
          errno: 'EADDRINUSE',
          syscall: 'listen',
          address: '127.0.0.1',
          port: 8080 }
        MagicMirror will not quit, but it might be a good idea to check why this happened. Maybe no internet connection?
        If you think this really is an issue, please open an issue on GitHub: https://github.com/MichMich/MagicMirror/issues
        
        
        X.Org X Server 1.20.4
        X Protocol Version 11, Revision 0
        Build Operating System: Linux 4.15.0-48-generic armv8l Raspbian
        Current Operating System: Linux raspberrypi 4.19.58+ #1245 Fri Jul 12 17:20:08 BST 2019 armv6l
        Kernel command line: coherent_pool=1M 8250.nr_uarts=1 bcm2708_fb.fbwidth=480 bcm2708_fb.fbheight=320 bcm2708_fb.fbswap=1 smsc95xx.macaddr=B8:27:EB:B2:0B:D5 vc_mem.mem_base=0x1ec00000 vc_mem.mem_size=0x20000000  dwc_otg.lpm_enable=0 console=ttyS0,115200 console=tty1 root=/dev/mmcblk0p2 rootfstype=ext4 elevator=deadline rootwait fbcon=map:10 fbcon=font:ProFont6x11 logo.nologo
        Build Date: 05 June 2019  12:49:54PM
        xorg-server 2:1.20.4-1+rpt1 (https://www.debian.org/support) 
        Current version of pixman: 0.36.0
                Before reporting problems, check http://wiki.x.org
                to make sure that you have the latest version.
        Markers: (--) probed, (**) from config file, (==) default setting,
                (++) from command line, (!!) notice, (II) informational,
                (WW) warning, (EE) error, (NI) not implemented, (??) unknown.
        (==) Log file: "/var/log/Xorg.0.log", Time: Sat Apr 11 19:27:57 2020
        (==) Using system config directory "/usr/share/X11/xorg.conf.d"
        (EE) 
        Fatal server error:
        (EE) no screens found(EE) 
        (EE) 
        Please consult the The X.Org Foundation support 
                 at http://wiki.x.org
         for help. 
        (EE) Please also check the log file at "/var/log/Xorg.0.log" for additional information.
        (EE) 
        (EE) Server terminated with error (1). Closing log file.
        xinit: giving up
        xinit: unable to connect to X server: Connection refused
        xinit: server error
        pi@raspberrypi:~ $
        
        
        

        I’ve attached copy of the Xorg.0.log. It appears the main issue is there is no screen selection or default monitor. Any help is greatly appreciated.

          GNU nano 3.2                     Xorg.0.log                                
        [  1272.263]
        X.Org X Server 1.20.4
        X Protocol Version 11, Revision 0
        [  1272.264] Build Operating System: Linux 4.15.0-48-generic armv8l Raspbian
        [  1272.264] Current Operating System: Linux raspberrypi 4.19.58+ #1245 Fri $[  1272.264] Kernel command line: coherent_pool=1M 8250.nr_uarts=1 bcm2708_f$[  1272.265] Build Date: 05 June 2019  12:49:54PM
        [  1272.265] xorg-server 2:1.20.4-1+rpt1 (https://www.debian.org/support)
        [  1272.265] Current version of pixman: 0.36.0
        [  1272.265]    Before reporting problems, check http://wiki.x.org
        ��������to make sure that you have the latest version.
        [  1272.265] Markers: (--) probed, (**) from config file, (==) default setti$��������(++) from command line, (!!) notice, (II) informational,
        ��������(WW) warning, (EE) error, (NI) not implemented, (??) unknown.
        [  1272.267] (==) Log file: "/var/log/Xorg.0.log", Time: Sat Apr 11 19:45:42$[  1272.269] (==) Using system config directory "/usr/share/X11/xorg.conf.d"
        [  1272.279] (==) No Layout section.  Using the first Screen section.
        [  1272.283] (==) No screen section available. Using defaults.
        [  1272.284] (**) |-->Screen "Default Screen Section" (0)
        [  1272.284] (**) |   |-->Monitor "<default monitor>"
        [  1272.288] (==) No device specified for screen "Default Screen Section".
        ��������Using the first device section listed.
        [  1272.288] (**) |   |-->Device "Allwinner A10/A13 FBDEV"
        [  1272.288] (==) No monitor specified for screen "Default Screen Section".
        ��������Using a default monitor configuration.
        [  1272.289] (==) Automatically adding devices
        [  1272.289] (==) Automatically enabling devices
        [  1272.289] (==) Automatically adding GPU devices
        [  1272.289] (==) Max clients allowed: 256, resource mask: 0x1fffff
        [  1272.290] (WW) The directory "/usr/share/fonts/X11/cyrillic" does not exi$[  1272.290]    Entry deleted from font path.
        [  1272.290] (WW) The directory "/usr/share/fonts/X11/100dpi/" does not exis$[  1272.290]    Entry deleted from font path.
        [  1272.290] (WW) The directory "/usr/share/fonts/X11/75dpi/" does not exist.[  1272.291]    Entry deleted from font path.
        [  1272.291] (WW) The directory "/usr/share/fonts/X11/Type1" does not exist.
        ������������������������������[ Read 76 lines ]
        ^G Get Help    ^O Write Out   ^W Where Is    ^K Cut Text    ^J Justify
        ^X Exit��������^R Read File   ^\ Replace     ^U Uncut Text  ^T To Spell
        
        
        S 1 Reply Last reply Reply Quote 0
        • S Do not disturb
          sdetweil @aecandroid
          last edited by

          @aecandroid the lcd is probably not DISPLAY :0… which mm.sh sets.

          Boot, open terminal window and dump the env looking for display

          Sam

          How to add modules

          learning how to use browser developers window for css changes

          A 2 Replies Last reply Reply Quote 1
          • A Offline
            aecandroid @sdetweil
            last edited by

            @sdetweil thank you for your help.

            I’ve checked my mm.sh file and it reads as follows. Not sure where to go from here?

            
            cd ~/MagicMirror
            node serveronly &
            sleep 30
            xinit /home/pi/chromium_start.sh
            
            
            S 2 Replies Last reply Reply Quote 0
            • A Offline
              aecandroid @sdetweil
              last edited by

              @sdetweil thank you for your help.

              I’ve checked my mm.sh file and it reads as follows. Not sure where to go from here?

              
              cd ~/MagicMirror
              node serveronly &
              sleep 30
              xinit /home/pi/chromium_start.sh
              
              
              1 Reply Last reply Reply Quote 0
              • S Do not disturb
                sdetweil @aecandroid
                last edited by

                @aecandroid look at that /home/pi/chromium_start.sh

                Sam

                How to add modules

                learning how to use browser developers window for css changes

                A 1 Reply Last reply Reply Quote 0
                • A Offline
                  aecandroid @sdetweil
                  last edited by

                  @sdetweil I did, sorry, should’ve mentioned.

                  This is the code:

                  
                  /bin/sh
                  unclutter &
                  xset -dpms # disable DPMS (Energy Star) features.
                  xset s off # disable screen saver
                  xset s noblank # don’t blank the video device
                  matchbox-window-manager &
                  #midori -e Fullscreen -a http://localhost:8080
                  chromium-browser --incognito --kiosk http://localhost:8080/
                  
                  
                  1 Reply Last reply Reply Quote 0
                  • S Do not disturb
                    sdetweil @aecandroid
                    last edited by

                    @aecandroid what version are you running? none of that is current…

                    use my installer script, it handles piw -4, odroid, jetson nano, any unix variant.

                    see the readme here

                    https://github.com/sdetweil/MagicMirror_scripts

                    it will setup to launch chrome against serveronly exactly as it appears you have done…

                    oh, you need raspian buster… jessie and stretch are too old now

                    Sam

                    How to add modules

                    learning how to use browser developers window for css changes

                    A 1 Reply Last reply Reply Quote 0
                    • A Offline
                      aecandroid @sdetweil
                      last edited by

                      @sdetweil Thanks for the help. I tried to start over from fresh. I’ve installed buster lite and completed a fresh install of MM and followed the bash -c "$(curl -sL… commands listed. I still am not having any luck getting MagicMirror working on the 4 inch display. Everything is fine right up until I do the Waveshare driver install and then do ./LCD4-show. Once I do that, I can see the device reboot, the HDMI no longer works and on the small LCD, I see the command prompt boot to pi@raspberrypi:~ $. From this point, I can no longer get MagicMirror to run, even if I try to run ./LCD-hdmi, MM does not start working again with HDMI. Something with the install of the Waveshare drivers is killing MM. I am genuinely at a loss.

                      S 1 Reply Last reply Reply Quote 0
                      • S Do not disturb
                        sdetweil @aecandroid
                        last edited by

                        @aecandroid can’t be lite… needs to be the graphical version…

                        Sam

                        How to add modules

                        learning how to use browser developers window for css changes

                        A 1 Reply Last reply Reply Quote 0
                        • 1
                        • 2
                        • 3
                        • 2 / 3
                        • 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