On Tue, 2 Jan 2001, Oded Arbel wrote:
> I botched my lilo config and forgot to setup vga=788 when I upgraded my
> kernel.now I'm stuck in 25x80, and I really don't want to reboot again. I
> tried probing the man pages for a way to change my console to the extended
> vga mode, but to no avail. can you give me some pointers please ?
If your card is supported by SVGATextMode, then simply install this and
use it. Otherwise you can use the program mode3 from a recent svgalib
distribution to set the mode (run mode3 788). You will still need to
somehow tell the kernel (and maybe user space) that the console size is
different. I use the following kernel module: (a kernel module is a must
if you want to have different sized consoles. This functionality exists,
but is not visible to user space).
/* compile with
gcc -O2 -D__KERNEL__ -DMODULE -I/usr/src/linux/include -c vc_resize.c
*/
#include <linux/module.h>
#include <linux/tty.h>
#include <linux/vt_kern.h>
int lines=25;
int cols=80;
int vc_first=13;
int vc_last=13;
MODULE_PARM(lines,"i");
MODULE_PARM(cols,"i");
MODULE_PARM(vc_first,"i");
MODULE_PARM(vc_last,"i");
int init_module(void)
{
vc_resize(lines,cols,vc_first,vc_last);
return -1;
}
void cleanup_module(void)
{
}
--
Matan Ziv-Av. [EMAIL PROTECTED]
=================================================================
To unsubscribe, send mail to [EMAIL PROTECTED] with
the word "unsubscribe" in the message body, e.g., run the command
echo unsubscribe | mail [EMAIL PROTECTED]