[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Some more console questions.
- To: Oded Arbel <odeda-linux-il(at-nospam)betalfa.org.il>
- Subject: Re: Some more console questions.
- From: Matan Ziv-Av <matan(at-nospam)svgalib.org>
- Date: Tue, 2 Jan 2001 21:04:40 +0200 (IST)
- cc: Linux-IL mailing list <linux-il(at-nospam)cs.huji.ac.il>
- In-Reply-To: <039001c074e6$d3d5d400$2500000a@oded>
- Reply-To: Matan Ziv-Av <matan(at-nospam)svgalib.org>
- Sender: linux-il-bounce(at-nospam)cs.huji.ac.il
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. matan@svgalib.org
=================================================================
To unsubscribe, send mail to linux-il-request@linux.org.il with
the word "unsubscribe" in the message body, e.g., run the command
echo unsubscribe | mail linux-il-request@linux.org.il