|
From: James S. <jsi...@li...> - 2001-03-21 17:59:29
|
>> This will be fixed for 2.5.X. I'm working on a solution now. IMNSHO the
>> kernel should manage switching from VGA text mode to some graphical
>> mode and visa versa. Same for fbcon. Opening /dev/fb should manage
>> shutdown the console system itself.
>Should it? What happens if I run fbset to change the text resolution?
>When fbset opens /dev/fb, should the console really be shutdown?
Believe it not the functional allready exist in the tty layer to change
a video mode for a specific tty. It just has never been implemented in
linux. I have implemented it for my own kernel tree.
TIOCGWINSZ
TIOCSWINSZ
struct winsize {
unsigned short ws_row;
unsigned short ws_col;
unsigned short ws_xpixel;
unsigned short ws_ypixel;
};
The only thing is you can't change the depth using this approach. So what
do we do? FB_ACTIVATE_NXTOPEN :-) This signals to fbdev to preserve the
color depth for the console system. Once take_over_console is called it
will reinitalize the color palette for us. As for setting all the VCs we
have good old VT_RESIZE.
MS: (n) 1. A debilitating and surprisingly widespread affliction that
renders the sufferer barely able to perform the simplest task. 2. A disease.
James Simmons [jsi...@li...] ____/|
fbdev/console/gfx developer \ o.O|
http://www.linux-fbdev.org =(_)=
http://linuxgfx.sourceforge.net U
http://linuxconsole.sourceforge.net
|