From: "Petr Vandrovec" <VANDROVE@vc.cvut.cz>
To: Sven Luther <luther@lambda.u-strasbg.fr>
Cc: linux-fbdev-devel@lists.sourceforge.net
Subject: Re: board with broken vga ...
Date: Thu, 18 Jul 2002 11:42:57 +0200 [thread overview]
Message-ID: <B3CC4836A3C@vcnet.vc.cvut.cz> (raw)
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
next reply other threads:[~2002-07-18 9:43 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-07-18 9:42 Petr Vandrovec [this message]
2002-07-18 11:36 ` board with broken vga 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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=B3CC4836A3C@vcnet.vc.cvut.cz \
--to=vandrove@vc.cvut.cz \
--cc=linux-fbdev-devel@lists.sourceforge.net \
--cc=luther@lambda.u-strasbg.fr \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).