custmoization of bootlog screen.

Ray Strode halfline at gmail.com
Wed Jun 11 10:25:16 PDT 2014


Hey,

Sorry for the slow reply, I've been selling my house so have been away
from my computer.

> Could you please provide with the hints on the same.
basically, plymouthd exposes a "ply_keyboard_t" object for managing
keyboard input.  That object is passed to the splash plugins via the
set_keyboard vfunc that the splash plugin registers with.  Typically a
splash plugin doesn't do much with the keyboard object, since the
stock keybindings are handled by the plymouthd core, and even the
input side of password input is handled by plymouthd directly.  That
object has a function

ply_keyboard_add_escape_handler() which registers a callback function
that is called when the escape key is pressed.  Your splash plugin
will need to call that function, but as I mentioned earlier, main.c
will also need to stop registering for escape itself.

Once those two changes are made, you then just need to draw the
console output along side (well below) your splash.  The console
output is sent to you via the on_boot_output vfunc that the splash
plugin initially registers with.  You'll want to save that output to a
temporary buffer, and then draw the contents of the buffer from your
on_draw handler at the same time you draw the rest of the splash.

Make sense?

--Ray


More information about the plymouth mailing list