I’m a complete beginner and have very little programming knowledge. However, I decided to build a MagicMirror as a project.
For this, I got a BananaPi M2 Berry and installed what I believe is an Armbian operating system on it. Then I downloaded the corresponding packages for the MagicMirror from GitHub.
Everything worked so far—though it was quite challenging—and I even managed to personalize each module. But now I have two problems:
I want the MagicMirror to stay in portrait mode permanently. However, after a while (about 30 minutes), the screen automatically switches back to landscape mode and opens a new window of the “Display” application every time.
I tried adjusting the “xrandr” code to define the orientation (it keeps portrait mode when starting up at least).
In the “Display” application, I selected “Do nothing” under the detection of a new display.
I searched through Armbian’s default codes to see if there’s a line or file that forces rotation, but I couldn’t find anything.I reinstalled Armbian without MagicMirror but had the same problem, so I can at least rule out that it’s caused by the MagicMirror package.
I would like Armbian or the MagicMirror to switch off (or be off) between 11 p.m. and 6 a.m., so the light doesn’t bother me at night.
I added this to the code for the various modules in the config/config.js file.
I tested different time settings like “23 0 * * *” and “0 23 * * *”.
However, the show/hide function didn’t work.
The second issue is only of secondary importance, but I’d still appreciate any ideas. The first issue really bothers me, and I hope there’s a genius out there who knows this problem or how to fix it. If someone can only resolve it with direct instructions, I’m also open to exchanging contacts.
I’m grateful for any help I can get. Thank you all very much in advance.
I am doing the same project. I couldn’t find an Armbian image that had a desktop GUI so I took my lite version and upgraded it with Diet-pi. I really like the dietpi configuration options.
My mistake was running the setup in root, now I can’t get it to run at all. I’m going to start the whole process over tomorrow and it should solve it.
To your point about the display, there are a few places where upon start up or based on default can conflict. I found this out the hard way on a pi zero 2w pihole backup and motion camera project. What was happening was when I started the software manually it was pulling from one config file and then when it was automatically running it was pulling from another. One in the user folder and the other in the library. I ended up cutting and pasting both to be identical when I found it.
Anyway, if you have tips on the magic mirror set up I would definitely appreciate it and good luck to you on this project
You can build Armbian with any desktop you need - it takes no time. Runtime desktop installation is best to use plain Debian. We are reworking desktop install on top of CLI image as it was not done well.
Armbian provides fast and secure (!) way of installing software:
with very little footprint.
Dietpi is, on the other hand, a giant unmaintainable bash script made by one person that doesn’t contribute anything to common problems related to hardware. Its a significant technical downgrade sold as advantage.
Thank you for this. Thank you for taking the time to provide links and an explanation. I am getting a late start (40’s) into single board computers and all that they can do. I have spent decades hardware hacking and have a knack for being able to make things work.
Thanks to you, I am now able to add some features that I was about to give up on for this project.
I have spent the last 2 days trying to figure out how to get an overlay, or something to use hardware enabled PWM so that I can run a cooling fan and i2c for a apds9960 module.
I am coming across the same issue. I am seeing nothing for resources. If what I have found so far is correct, the m2 berry is not capable of running PWM through a NPN transistor for a PWM fan. Which I can buy another quieter fan and just let it run all the time, but without the motion sensor I have to scrap the whole project and buy another board entirely