Skip to contentSkip to conversation

board with broken vga ...

DISCUSSION Petr Vandrovec 2 participants 2 messages Jul 22, 2002 Framebuffer layer

lore
Share & tools
lore
#0 lore raw
Quoted 4 lines · Sven

What would solve my problem in the easiest way would be to have some framebuffer restore hook or something in the fbdev driver, which would get called in take_over_screen or something such, after the screen has been resized ?

Just put it into vc_screenbuf after register_framebuffer() returns, and force redraw...

Quoted 4 lines

Or Maybe simply tell vc_resize that we use a special way of reading the framebuffer.

Or i should implement the trick you use for setting the card in graphic mode later on in the setvar stuff ?

If you'll override save_screen, and you'll put set_origin() into visual_init, I believe that it will work:

(1) in take_over_console, copy data to screenbuf using your own save_screen.
(2) now vc_resize (with prior set_origin) will copy data from old screenbuf to reallocated screenbuf (instead of from videoram to reallocated screenbuf).
(3) and update_screen() will just paint data which are already on screen if resolution changed. If resolutions matched, it will put data on the screen.

Petr

-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf

#1 lore raw
Quoted 2 lines

Just put it into vc_screenbuf after register_framebuffer() returns, and force redraw...

mmm, will try.

BTW, how can i force a redraw from pm3fb ?

Quoted 1 line

If you'll override save_screen, and you'll put set_origin() into visual_init,

NO, just tried, i got no more display, and the box hanged ...

How i do it :

i copy the data in pm3fb just after i first map the framebuffer. i hold it in a special array in pm3fb (for now).

But then, maybe i should see if the location of the set_origin should be changed, maybe i could do it in vc_resize for now.

BTW, in the first case, i will see the screen flashing shortly with the garbage i see now, and then work ok, isn't it ? And i would need to handle resolution changes myself ?

Friendly,

Sven Luther:q

-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf