Hello, I recently found out about DietPi by following a GitHub where someone ran MagicMirror on a Pi2W. I got a new Pi2W that I recently bought for this purpose, and due to performance reasons, going with DietPi seems to be the most efficient. Unfortunately, I’ve been having some issues regarding LXDE/Xorg. I’m very new to both Magic Mirror and DietPi stuff, but I believe my issues are related more with DietPi in this case. Essentially, I want to start a Nodejs program (Magic Mirror) via SSH, and then have that display on the local monitor plugged into the Pi (Display 0). As to not diverge from what’s relevant with dietpi, I will attach the text I copied from my SSH session when attempting to run MagicMirror with the command listed on the website. The intended outcome is for the program to display on the local monitor, but it doesn’t. However, not only doesn’t the program display, but the entire video output on the monitor goes blank about a minute after the banner appears on TTY1. This issue started happening after installing LXDE and selecting the autostart for login and LightDM. Basically, the HDMI output works fine while it’s bootloading, and it stays displaying the postboot banner with the line that says “Please hit return to login”. I don’t own a USB OTG cable, so I have no way of checking if it would even enter the desktop if I pressed it. But after ~1 minute, the entire screen goes blank (HDMI keeps outputting fine, but displays a fully). However, the Pi is still on and works fine via SSH and VNC. Infact, I was able to get MagicMirror working perfectly by installing TigerVNC and setting x0vncserver to display 0, that way I was able to access the desktop (albeit the screen on the local monitor stayed blank). I hope that the details are understandable, this is just a very confusing thing to explain - as I don’t understand what’s happening lol.
I will also attach the journalctl log. The exact moment where the screen went black was when “systemd[1]: dev-dri-card0.device: Job dev-dri-card0.device/start timed out.” appeared.
To recreate:
- Download the Raspberry Pi 2 PCB v1.1 Build of Diet Pi
- Flash the ISO onto a Sandisk Ultra SD card with Raspberry Pi Imager
- Insert the SD card into a Pi Zero 2W and wait through the setup process
- When prompted, install LXDE and Chromium from the Dietpi software menu.
- Enter autostart menu and enable Autologin and LightDM Login Mask
- Overclock the CPU to 1.3Ghz as shown on the guide
- Reboot the Pi and run the Magic Mirror curl install script (No PM2 for now)
- Attempt to run Magic Mirror with the “npm start” command
-Additionally, install TigerVNC and access the desktop remotely.
Required Information
-
DietPi version |
G_DIETPI_VERSION_CORE=9
G_DIETPI_VERSION_SUB=9
G_DIETPI_VERSION_RC=0
G_GITBRANCH=‘master’
G_GITOWNER=‘MichaIng’
G_LIVE_PATCH_STATUS[0]=‘applied’
G_LIVE_PATCH_STATUS[1]=‘applied’
G_LIVE_PATCH_STATUS[2]=‘not applicable’
G_LIVE_PATCH_STATUS[3]=‘not applicable’ -
Distro version | bookworm 0
-
Kernel version | Linux MagicMirror 6.1.21-v7+ #1642 SMP Mon Apr 3 17:20:52 BST 2023 armv7l GNU/Linux
-
Architecture | armhf (32 bit OS on an Armv8 SBC)
-
SBC model | Raspberry Pi Zero 2W
-
SD card used | Sandisk Ultra 32 GB
(The blank screen appears with just LXDE installed, it is not related to MagicMirror afaik. No task seems to trigger it, check journalctl)
magicmirrorlog.txt (5.1 KB)
journalctl.txt (57.2 KB)