Skip to contentSkip to conversation

board with broken vga ...

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

lore
Share & tools
lore
#0 lore raw
Quoted 10 lines · Sven
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 ...

Oops. fbcon_set_origin will call scrolldelta which ... So what about simple origin = screenbuf in visual_init ? It should have no side effects.

Quoted 8 lines

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 ?

Yes.

Quoted 1 line

And i would need to handle resolution changes myself ?

Yes. Or you can copy data just line by line, instead of like one big chunk. Yes, it is duplicating of vc_resize code.
Petr Vandrovec

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

#1 lore raw

Ok, will try this and tell you the result (but tommorow).

Friendly,

Sven Luthe

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

#2 lore raw
In reply to Petr Vandrovec
Quoted 7 lines · Petr Vandrovec
Quoted 5 lines · Sven
Quoted 2 lines

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

mmm, will try.

Quoted 8 lines
Quoted 5 lines

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 ...

Oops. fbcon_set_origin will call scrolldelta which ... So what about simple origin = screenbuf in visual_init ? It should have no side effects.

I gave it another try, checking some stuff as i went.

Latest state is :

I copy the console data by overriding the vgacon save_screen function.

i have tested that in vc_resize, the data is effectively where i want it, but that the origin function is not poiting to it, so i initialized ol with screenbuf and not origin.

The result is the same as when i tried to simply clear the space instead of copying, which seems strange to me. Even filling them with a bogus character doesn't seem to work.

Also, i manage to clear only the top of the screen, the bottom of it, in a distance the size of the logo still contains the the garbage.

The bottom of the 80x25 region of the screen that is.

here are the dumps i made :

SVEN : pm3fb.common_init : l_fb_info->v_fb is c8830000.
SVEN : Saving the console data : ...done
FB@880 has : L 4c 07 00 00 00 00 00 00.
FB@880 has : 0007.
sven@880 has : 074c.
* here is position 880 of the vga console data, the L that starts the
* log.
SVEN : Am using my own function ...
SVEN : sven@880 has : Linux.
SVEN : c->vc_screenbuf is c11223c0.
SVEN : c->vc_screenbuf@880 has : Linux.
SVEN : c->vc_origin is c00bbd40.
* vc_origin is pointing to some bogus place.
SVEN : c->vc_origin@880 has : À^KÄ^KÈ.
* and holds bogus data.
SVEN : vc_resize [0] screenbuf is c11223c0.
SVEN : vc_resize [0] origin is c00bbe80.
* in vc_resize they are the same.
SVEN : vc_resize [0] kmallocated a new screenbuf at c7e42000. SVEN : vc_resize [0] : oll = 25, osr = 160.
SVEN : vc_resize [0] : ol = c11223c0, nl = c7e42000.
* i use screenbuf instead of origin for the copy.
SVEN : vc_resize [0] : oss = 4000, ss = 7400.
SVEN : ol@880 has : Linux.
SVEN : ol@880 has : 074c.
SVEN : nl@880 has : .
* and verify that ol holds the console data (nl is empty still).
Console: switching to colour frame buffer device 100x37

I did not manage to do real tests after the copying was done though. But, i see nothing on the screen.

Friendly,

Sven Luther

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