From: Petr V. <VAN...@vc...> - 2001-06-19 15:55:29
|
On 19 Jun 01 at 16:48, Sven LUTHER wrote: > > BTW, any idea about the 'initial garbage when using pm3fb' problem ? And this is what? Do you mean that vgacon -> pm3fb switch during bootup does not preserve contents of screen? Make sure that on enter to register_framebuffer() pm3fb is in VGA mode, memory is mapped at 0xB8000 and SEQ/GDC/CRTC are set for VGA text mode. During register_framebuffer() vgacon reads VGA videoram, then _set_var (I believe that implicitly through your console_switch) of your framebuffer is invoked, and screen is repainted using putcs... So you should have some currcon variable in your fbinfo: fbinfo.currcon = -1; register_framebuffer(&fbinfo); if (fbinfo.currcon == -1) { /* we are second head... */ yourfb_set_var(.....); } and your fbinfo_select_console should do: fbinfo.currcon = new_console; yourfb_set_var(.....); and all code which changes memory layout and enables/disables VGA emulation should be executed only from inside yourfb_set_var and not before call to register_framebuffer. Best regards, Petr Vandrovec van...@vc... |