nanogui: VT switching questions
Subject:
Re: [nanogui] VT switching questions
From:
"Greg Haerr" ####@####.####
Date:
25 Jul 2002 21:26:06 -0000
Message-Id: <04f001c2341f$8a004820$3aba46a6@xmission.com>
: - VT switching -- the driver clearly has code which supports
: console switching via Alt-FN. i sort of thought VT switching
: was configured via VTSWITCH in the config file, but clearly
: that's not the case. what _is_ the code in vtswitch.c for?
Normally, the kernel handles sending a signal to nano-X
when the console is changed via the Alt-FN function keys.
The receiving code for this is in vtswitch.c. When the
kbd_ttyscan.c raw-mode keyboard driver is used, those
same function keys don't do anything - so there's
some code in kbd_ttyscan.c to start the virtual console
switch, which is handled eventually in vtswitch.c.
:
: - on my system (486 with very old VGA screen -- max resolution
: is 640x480 w/ 16 colors) when i switch VT's (i'm using the
: framebuffer driver), the switch works fine, but i get
: garbage when i return. where should i start looking for
: this? i assume restoration of video modes is a kernel
: function? but what graphics mode does it restore? anything
: set by the application?
This is the second time I've heard this. It sounds like there might
be a problem with the kernel redrawing the graphics area on
return from a VT switch. If this is the case, then a call
to GsRedrawScreen() might be necessary from the vtswitch
code to case nano-X to tell all applications to redraw their screens.
(this will only work for Nano-X, win32 will require a
MwRedrawScreen()).
Regards,
Greg