Armbian on BananaPi in portait mode and else

Hello everyone,

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:

  1. 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.
  1. 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.

Best regards, Sasha

Which MagicMirror github link is that?

Hi, i used this link: GitHub - MagicMirrorOrg/MagicMirror: MagicMirror² is an open source modular smart mirror platform. With a growing list of installable modules, the MagicMirror² allows you to convert your hallway or bathroom mirror into your personal assistant.