Silent boot...Any trick to hide the default system console ?

Discussion and questions about programming with Ultibo.
asmodyne
Posts: 2
Joined: Sun Jul 07, 2019 10:47 pm

Silent boot...Any trick to hide the default system console ?

Postby asmodyne » Mon Jul 08, 2019 2:28 am

Hello everyone !
Good things short : I'm planning to implement an HDMI microscope with Ultibo, a Pi Zero and its CSI camera. :idea:


Has anyone managed to start a simple application without the console/shell/watchamacallit showing ? ( The lime window with white frame & release details on the BeetRoot release. It was orange in release used in the official Youtube videos ).
(I'll call it system console from here.

Somehow, I can manage to "clear" the framebuffer in the early stage of my code, with this simple and obvious line as the very first :

Code: Select all

FramebufferConsoleClear( ConsoleDeviceGetDefault, COLOR_BLACK );


But the system console still glitches through (some milliseconds), just before the frame buffer is filled with black. *sigh*

I've hoped to find a way to "mute" it by changing some environment variables, but I wager those, related to the console :

Code: Select all

CONSOLE_REGISTER_LOGGING
CONSOLE_LOGGING_DEFAULT
CONSOLE_LOGGING_POSITION

...won't offer me any solution... right ?

Must I modify a copy of the RTL and rebuild it ?

Any help would be appreciated.
Gavinmc42
Posts: 1625
Joined: Sun Jun 05, 2016 12:38 pm
Location: Brisbane, Australia

Re: Silent boot...Any trick to hide the default system console ?

Postby Gavinmc42 » Mon Jul 08, 2019 8:21 am

User avatar
Ultibo
Site Admin
Posts: 2257
Joined: Sat Dec 19, 2015 3:49 am
Location: Australia

Re: Silent boot...Any trick to hide the default system console ?

Postby Ultibo » Mon Jul 08, 2019 11:02 am

asmodyne wrote:Has anyone managed to start a simple application without the console/shell/watchamacallit showing ?

Hello asmodyne, welcome to Ultibo.

The post pointed to by Gavinmc42 gives the correct answer but it shows two things and depending on what you want to achieve you can use either one or both of them.

If you just want to have access to the framebuffer device and create your own code to draw on the screen then you only need the ProgramInit part of the referenced post, on the other hand if you want to make use of the console API and have a full screen console window that doesn't have a border etc then follow the second part of the post as well that describes how to initialise a full screen window.

It's also worth noting that since that post was written we have added a new CONSOLE_POSITION_FULLSCREEN option that automatically does away with the border and title etc so you can simplify the example by a couple of lines.

Hope that helps, feel free to ask if you have any more questions.
Ultibo.org | Make something amazing
https://ultibo.org
asmodyne
Posts: 2
Joined: Sun Jul 07, 2019 10:47 pm

Re: Silent boot...Any trick to hide the default system console ?

Postby asmodyne » Mon Jul 08, 2019 3:38 pm

Oooh ! Such quick answers to my conundrum. :o

Many thanks Gavin and Admin ! ^_^ ( bows respecfully )
I'll look into those options in further details before the weekend.

Again, thanks a bunch !

Return to “General”

Who is online

Users browsing this forum: No registered users and 0 guests