|
Roadmap |
Site sponsored by
IGEL
|
||
|
|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [directfb-users] Re: Initial image
On Thu, 29 Apr 2004, Denis Oliver Kropp wrote:
>Quoting Jan Ekholm:
>> On Wed, 28 Apr 2004, Denis Oliver Kropp wrote:
>>
>> >Quoting Andreas Kotes:
>> >> Heya,
>> >>
>> >> * Jan Ekholm <chakie@infa.abo.fi> [20040428 08:46]:
>> >> > Is it possible to set some kind of "initial image" that would be set after
>> >> > the framebuffer has been initialized? I always just see garbage, quite
>> >> > often something from before the last reboot. Warm reboots don't seem to
>> >> > clear the framebuffer, and I'd like to have something else there, such as
>> >> > a DirectFB logo or similar.
>> >> >
>> >> > I can of course do it using a custom app or DFBSee, but they have to be
>> >> > left running, as soon as I kill them the image becomes garbage that
>> >> > slightly resembles what the original image was. What I'm looking for is
>> >> > thus an app or "thing" that sets an image to the framebuffer and then
>> >> > exits, leaving the framebuffer free for the main application that will be
>> >> > started once the system is fully up and running.
>> >> >
>> >> > I hope my ramblings make any sense?
>> >>
>> >> sure does. how about pure ignorance:
>> >>
>> >> cat /dev/fb0 > your_file.raw
>> >>
>> >> .. with what you want on screen .. and:
>> >>
>> >> cat your_file.raw > /dev/fb0
>> >>
>> >> .. to show it on boot.
>> >
>> >dd if=/dev/fb0 of=your_file.raw bs=1024k count=2
>> >
>> >and
>> >
>> >dd if=/dev/fb0 of=your_file.raw bs=1024k count=2
>>
>> Seriously, should the image be 33M big? This is for a mode:
>
>No, using the dd command lines above you have 2 MB.
>
>You can adjust the bs and count arguments to match your mode:
>
>dd if=/dev/fb0 of=your_file.raw bs=1620k count=1
I should have tried the dd version first before asking dumb questions.
I just assumed they did exaclty the same thing. This version cuts down the
image to something more realistic, although still a bit too big to be used
in real life (at least in my case). Eventually something like a simple
"single image viewer" can be launched at this point which shows the image
and then exits when it's time to launch the main app. That would make it
possible to have a small splash image.
Thanks to everyone for the patient help. :)
--
You've got a lot of time for abstract thought when you've got your hand
stuck up a dead badger.
-- Terry Pratchett, Johnny and the Bomb
--
Info: To unsubscribe send a mail to ecartis@directfb.org with
"unsubscribe directfb-users" as subject.
|
|
| directfb.org |
|
Development |
|
Old Archives |