• Recent
  • Tags
  • Unsolved
  • Solved
  • MagicMirror² Repository
  • Documentation
  • 3rd-Party-Modules
  • Donate
  • Discord
  • Register
  • Login
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.

How to hide desktop screen when raspberry turned on?

Scheduled Pinned Locked Moved Troubleshooting
11 Posts 4 Posters 4.7k Views 4 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.
  • B Offline
    bretonesf
    last edited by bretonesf Apr 21, 2020, 10:58 AM Apr 21, 2020, 10:51 AM

    Hello everybody,

    I’m currently working on the software part of my first mirror, installed MM 3.11.0 and first modules, everything is going well.

    I rotated the screen by 90° also and reduced my borders to 0px, no problem.

    The thing is, as I’m quite concern about power consumption (and environmental matters), I’m thinking about how to turn on and off the whole mirror (display AND pi3B+) when (not) needed.

    This leads to one aesthetical “problem” for which I haven’t found any solution yet : at startup before I get to MM screen, I see the splash screen, then the 4 raspberries screen, then the desktop screen (I installed full raspbian buster).

    Question is : is there a way to hide all of these, so at startup, the screen s powered, but remains black until the MM screen is displayed?

    Thanks y’all for your help

    1 Reply Last reply Reply Quote 0
    • B Offline
      bhepler Module Developer
      last edited by Apr 21, 2020, 12:12 PM

      Yes, you can. The problem is that as you go closer and closer to the Pi booting, you incur more and more risk. The good news is that you can get most of the way there with no problems.

      First, you can turn off the splash screen in the Pi configuration. Type raspi-config at the terminal or via SSH connection.

      Second, you can remove the desktop background and just have a black field. You’ll still see the menu bar, but most of your mirror will just look like a mirror for a minute or so.

      Third is where it gets tricky. Several people out on the internet have created a silent boot sequence for the Raspberry Pi. You can apparently get the Pi to not display the boot checks that scroll across the screen at the start. You can certainly do the same, but you’re getting into some dangerous areas of modifying your operating system. I don’t believe anyone here has written up a guide for it. If you go this route, please tell us your experiences.

      Lastly, I have my home mirror hooked up to a smart plug and integrated with my Alexa. The mirror is on a schedule so it shuts off after I leave for work and late at night. I can also manually trigger the mirror if I’m working from home. That may solve your power consumption concerns.

      1 Reply Last reply Reply Quote 0
      • B Offline
        bretonesf
        last edited by bretonesf Apr 21, 2020, 2:55 PM Apr 21, 2020, 2:53 PM

        Thanks for the reply.

        Following your advice, I used a black background for the desktop. I also realized that it’s possible to remove the trash bin icon, then put the background of the taskbar in black, reduce its size, use auto-hide and even delete all its component one by one (by right clicking on the taskbar).

        I also found the way to hide all the boot screens :

        Rainbow screen :
        - add disable_splash=1 at the end of the line in the file /boot/config.txt

        4 raspberries logo :
        - add logo.nologo at the end of the line in the file /boot/cmdline.txt

        texts :
        - in file /boot/cmdline.txt, add quiet at the end of the line and change console=tty from 1 to 3

        cursor :
        - add vt.global_cursor_default=0 at the end of the line in the file /boot/cmdline.txt

        Now when the raspberry boots up, The screen remains fully black until MM starts and all the modules are loaded, except one white flashing screen at the startup of MM, I don’t know why.

        Also, from turning on the raspberry until full loading of the MM and modules, it takes 49-50s. Is this normal?

        About your comment on the power consumption, mine will be installed in the bathroom, so I intend to turn it on when I switch the light on, as per local electrical regulations, there can’t be no power inside a bathroom when it’s not switched on in purpose.

        S 1 Reply Last reply Apr 21, 2020, 3:00 PM Reply Quote 1
        • S Offline
          sdetweil @bretonesf
          last edited by Apr 21, 2020, 3:00 PM

          @bretonesf said in How to hide desktop screen when raspberry turned on?:

          Now when the raspberry boots up, The screen remains fully black until MM starts and all the modules are loaded, except one white flashing screen at the startup of MM, I don’t know why.

          its a bug in Electron browser, long talked about but not solved. MM sets its background to black before opening the page

          Sam

          How to add modules

          learning how to use browser developers window for css changes

          1 Reply Last reply Reply Quote 0
          • B Offline
            bretonesf
            last edited by Apr 21, 2020, 3:36 PM

            @sdetweil good to know, thanks for the tip.

            According to you, the 50s I’m talking about is ok or long?

            B 1 Reply Last reply Apr 21, 2020, 3:40 PM Reply Quote 0
            • B Offline
              bhepler Module Developer @bretonesf
              last edited by Apr 21, 2020, 3:40 PM

              @bretonesf - That’s about right for a RPi 3B+.

              1 Reply Last reply Reply Quote 0
              • B Offline
                bretonesf
                last edited by Apr 21, 2020, 3:50 PM

                @bhepler - Nice, thank you.

                1 Reply Last reply Reply Quote 0
                • B Offline
                  BKeyport Module Developer
                  last edited by Apr 21, 2020, 7:14 PM

                  FWIW, there’s lots of modules available for turning off/blanking the screen when not needed - that way you can leave the pi running (at minimal power use) and just have the screen turn off and on with a sensor or button…

                  The "E" in "Javascript" stands for "Easy"

                  S 1 Reply Last reply Apr 21, 2020, 7:15 PM Reply Quote 0
                  • S Offline
                    sdetweil @BKeyport
                    last edited by Apr 21, 2020, 7:15 PM

                    @BKeyport or webcam in my case

                    Sam

                    How to add modules

                    learning how to use browser developers window for css changes

                    B 1 Reply Last reply Apr 21, 2020, 9:32 PM Reply Quote 0
                    • B Offline
                      BKeyport Module Developer @sdetweil
                      last edited by Apr 21, 2020, 9:32 PM

                      @sdetweil I’d put that under “sensor” – but how do you do that?

                      The "E" in "Javascript" stands for "Easy"

                      S 1 Reply Last reply Apr 21, 2020, 9:37 PM Reply Quote 0
                      • 1
                      • 2
                      • 1 / 2
                      1 / 2
                      • First post
                        1/11
                        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