On Mon, 3 Oct 2016 14:24:05 +0200
Mattias Schlenker <[email protected]> wrote:

> Am 01.10.2016 um 13:26 schrieb Mattias Schlenker:
> >
> > Hi everyone,
> >
> > I maintain a few (commercial) live distributions and have to fulfil 
> > the need of a few customers for a nice graphical boot splash. 
> > Unfortunately busybox' fbsplash was too unflexible, so I added a
> > bit more configurability:
> >
> >   * Specify a background color which is used to flood the whole
> > screen before drawing the image and the progress bar
> >   * Specify an x and y offset of the ppm image
> >   * Specify an x or y offset larger than the respective screen size
> > to move the image to the right or bottom edge of the screen (or
> >     bottom right corner)
> >
> > The attached patch just re-uses functions already in fbsplash.c and 
> > introduces five more config options, this should result in the same 
> > size of the busybox binary. Even if these config options are not
> > set, the screen is blanked all black before painting the splash,
> > which might be desired in most cases (and usually is done by using 
> > fullscreen images).
> >
> > With the patch I am able to calculate the position of logo and 
> > progress bar by a script before invoking fbsplash and do not have
> > to add a splash for each and every screen resolution. Initially I
> > was thinking about adding more options: color of progess bar and
> > the posibility to specify a gradient, but this might have enlarged
> > the binary which is not desirable.  
> 
> I just updated the patch: The calculation for cropping the image was 
> wrong, the parameter name "IMAGE_WIDTH" proved too long on 32 bit 
> systems and I added a "NOFILL=1" option. This option allows drawing
> an arbitary image to an arbitary position without completely wiping
> the framebuffer first. Take a look at the demo script (run with the
> path to your busybox binary) as first parameter: The scripts reads
> the framebuffer dimensions, creates two config files, paints an image
> on a plain background, progress bar and changing icon beneath the
> progress bar.

Alpine Linux carries the following related patches, which may be of
interest (or not):
http://git.alpinelinux.org/cgit/aports/tree/main/busybox/0005-fbsplash-support-console-switching.patch
http://git.alpinelinux.org/cgit/aports/tree/main/busybox/0006-fbsplash-support-image-and-bar-alignment-and-positio.patch

But yes, agreed, fbsplash could use some additional features.

Cheers,
Timo
_______________________________________________
busybox mailing list
[email protected]
http://lists.busybox.net/mailman/listinfo/busybox

Reply via email to