What's needed in a driver to start a console on a framebuffer

From: Rick L. Vinyard, Jr.
Date: Wed Nov 25 2009 - 14:36:32 EST


I'm still playing around with the G13 driver and have everything worked
out except how I want to handle graphics and console.

In the driver I have a framebuffer device as well (it can't be a separate
device due to the way the messages are handled). This portion of the
driver is based on fbdefio.

Where I'm stuck is testing a console on the framebuffer. Everything I've
looked at assumes that a console is started at boot time or when the
driver is loaded.

I've thought about modifying the fbcon map, but I'd like this to happen
when the G13 is plugged in rather than at boot.

I noticed that fbcon watches for FB_EVENT_SET_CONSOLE_MAP and I could use
that to remap a console.

Any suggestions on how to approach this?

Thanks,

Rick

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/