[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Usermode splash screen/boot. what's the best approach?

Hello to all.
For now the main under developing project of bootsplash in userspace is 
usplash or ubuntusplash or miscrosplash. here is the main page: 

As you can see the main idea is:
The rough idea is to leave console messages on tty1, but switch to another 
Virtual Terminal (tty8) and then write directly to the framebuffer 
(/dev/fb0). On failure/exit, chvt is called to return the active terminal to 
tty1 and the user may switch at any time by pressing Alt+F1. X11 is started 
in the background on tty7, but not switched to. When GDM has loaded a chvt 
(change virtual terminal) to tty7 is made. In addition to avoiding this 
startup delay, the startup video mode is changed to match the mode X is 
running in, no Grub/boot loader screen is used; and smooth fades through 
black are used to cover mode changes. 

Second me, this kind of approach is not the better because there is no any 
support after bootsplash, tty[1-6] are still in black and white.
So i say, why not do an X-like server (got from xorg) that is started by init 
at first time (S01x-like-server) and paints animations and background images 
on tty1 that reads from /dev/console to write outputs and hold compatibility 
with console programs?

With this kind of approach the system should start as:
1) power up the system
2)lilo/grubs runs without any special argument
5 seconds have passed after power up
3)Init is called and a script (like S01bootsplash) is executed, the scripts 
start the minimal X-like server at tty1. The X-like 
server paints images and bars.
At the end of the boot the X-like server starts on tty[2-6] and gets output of 
programs directed to /dev/console (that can be a symlink to a fifo or whatever 
we need) and do 
outputs of the programs to the tty[0-6] with graphical support.

ps: in future a scrollbar and mouse support can be added.

So, what is the best approach that people that writes on this mailing list 

Attachment: pgpJLz7XE6hYp.pgp
Description: PGP signature

Reply to: