Read the statement by Michael Teeuw here.
4 inch RPi LCD displaying MM not working
-
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 installingLCD-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
-
@aecandroid the lcd is probably not DISPLAY :0… which mm.sh sets.
Boot, open terminal window and dump the env looking for display
-
-
-
@aecandroid look at that /home/pi/chromium_start.sh
-
@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/
-
@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
-
@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 topi@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. -
@aecandroid can’t be lite… needs to be the graphical version…
-
@sdetweil in the immortal words of Homer J. Simpson - Doh! I’ll have to give this a try later this evening. Is there any reason the GUI version will work and the lite won’t with the small LCD?