linux-fbdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Re: board with broken vga ...
@ 2002-07-18  9:42 Petr Vandrovec
  2002-07-18 11:36 ` Sven Luther
  0 siblings, 1 reply; 5+ messages in thread
From: Petr Vandrovec @ 2002-07-18  9:42 UTC (permalink / raw)
  To: Sven Luther; +Cc: linux-fbdev-devel

On 18 Jul 02 at 9:51, Sven Luther wrote:
> 
> Ok, that said, i suppose ours are the only boards with such problems,
> but since there is so much taken out of the drivers in your new setup
> and put in a common place, would it not solve this problem if there were
> an additional function which driver could provide (or fill in NULL if
> there was no proble), for retrieving this data, which fbcon can write
> back later on ?

Unfortunately there is no such hook. Fortunately call sequence is:

your drivers's init
   --> look and init devices
       --> call register_framebuffer
           --> VGACON reads contents of VGA buffer
           --> call to fbdev setvar
           --> upper layer restores screen
...
With matroxfb I moved all initialization which changes framebuffer layout
to the setvar call, and so VGACON finds hardware in VGA, and not MMIO,
state.

You can look at drivers/char/console.c: take_over_console calls
save_screen, which in turn calls con_save_screen method of vgacon.
So you can try directly overwritting vgacon's savescreen procedure

extern struct consw vga_con;
vga_con.con_save_screen = myOwnSaveScreen;

if you find that your fbdev is primary VGA device. Of course it is
not tested, and I cannot recommend doing that...
                                                    Petr
                                                    


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

^ permalink raw reply	[flat|nested] 5+ messages in thread
* Re: board with broken vga ...
@ 2002-07-22 17:23 Sven LUTHER
  0 siblings, 0 replies; 5+ messages in thread
From: Sven LUTHER @ 2002-07-22 17:23 UTC (permalink / raw)
  To: linux-fbdev-devel

Petr wrote :
> your drivers's init
>    --> look and init devices
>        --> call register_framebuffer
>            --> VGACON reads contents of VGA buffer
>            --> call to fbdev setvar
>            --> upper layer restores screen
> ...

Mmm, i did manage to override the vga save_screen function, and copy the
good values into vc_sceenbuf, but to no avail.

What frustrates me is that i cannot find any reference to some piece of
code using the data in vc_sceenbuf to write to the screen again.

How exactly does the upper layer restore the screen ?

Friendly,

Sven Luther


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

^ permalink raw reply	[flat|nested] 5+ messages in thread
* board with broken vga ...
@ 2002-07-18  7:51 Sven Luther
  0 siblings, 0 replies; 5+ messages in thread
From: Sven Luther @ 2002-07-18  7:51 UTC (permalink / raw)
  To: linux-fbdev-devel

Hello, ...

i am looking again at pm3fb (still old style one though).

Permedia3 (and probably permedia2 also) has a problem with accessing vga
stuff in mmio mode, which makes it not work correctly when the text from
the vga console mode is copied over to the fbcon at the switch.

I have the understanding that you moved this stuff over to some other
place and not the pm3fb driver itself (but where ?)

I now know how to get this data by looking at the framebuffer directly
(it is found starting at framebuffer addr + 0 in 8 byte steps.), but
need to know how i can hook it in, to write it back.

Also, the size of this text is somewhat of a mistery for me still.

Ok, that said, i suppose ours are the only boards with such problems,
but since there is so much taken out of the drivers in your new setup
and put in a common place, would it not solve this problem if there were
an additional function which driver could provide (or fill in NULL if
there was no proble), for retrieving this data, which fbcon can write
back later on ?

Friendly,

Sven Luther


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

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2002-07-22 17:19 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-07-18  9:42 board with broken vga Petr Vandrovec
2002-07-18 11:36 ` Sven Luther
2002-07-18 16:16   ` Sven Luther
  -- strict thread matches above, loose matches on Subject: below --
2002-07-22 17:23 Sven LUTHER
2002-07-18  7:51 Sven Luther

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).