Thread (22 messages) 22 messages, 5 authors, 2002-12-06

Re: [Linux-fbdev-devel] [PATCH] FBDev: vga16fb port

From: Antonino Daplas <hidden>
Date: 2002-12-03 17:48:34
Also in: lkml

On Tue, 2002-12-03 at 01:31, James Simmons wrote:
James,
  2) The ability to go back to vga text mode on close of /dev/fb. 
     Yes fbdev/fbcon supports that now. 
 
Here's a preliminary and highly unpolished patch for saving and
restoring the initial vga state.  The module allows saving/restoring of
specific hardware states (vga fonts/character maps, color map, and/or
video mode) by specifying different flags. Most hardware probably will
just need restoring of the initial video mode though.  Hopefully, it
should be generic enough to complement device specific state save and
restore routines. 

For testing purposes, I also patched vga16fb.c to use the module during
fb_open and fb_release.  Try loading vga16fb, and when opened, the video
mode will change.  On close, the state of vgacon should be restored. I
have tested this with two different VGA cards, and both seems to work
quite well. However, color map and character map state restores are still untested.  

Note that the module still makes assumptions that may not be necessarily
correct for all hardware (ie vga base is at 0xa0000). Secondly, there's
no check if the card is in VGA mode, EGA mode, or graphics mode. Please
review.

Tony

Attachments

Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help