|
Packit Service |
50ad14 |
|
|
Packit Service |
50ad14 |
<HTML>
|
|
Packit Service |
50ad14 |
<HEAD>
|
|
Packit Service |
50ad14 |
<META NAME="GENERATOR" CONTENT="SGML-Tools 1.0.9">
|
|
Packit Service |
50ad14 |
<TITLE>The Linux keyboard and console HOWTO: Changing the video mode</TITLE>
|
|
Packit Service |
50ad14 |
<LINK HREF="kbd.FAQ-17.html" REL=next>
|
|
Packit Service |
50ad14 |
<LINK HREF="kbd.FAQ-15.html" REL=previous>
|
|
Packit Service |
50ad14 |
<LINK HREF="kbd.FAQ.html#toc16" REL=contents>
|
|
Packit Service |
50ad14 |
</HEAD>
|
|
Packit Service |
50ad14 |
<BODY>
|
|
Packit Service |
50ad14 |
Next
|
|
Packit Service |
50ad14 |
Previous
|
|
Packit Service |
50ad14 |
Contents
|
|
Packit Service |
50ad14 |
|
|
Packit Service |
50ad14 |
|
|
Packit Service |
50ad14 |
|
|
Packit Service |
50ad14 |
|
|
Packit Service |
50ad14 |
|
|
Packit Service |
50ad14 |
console!changing video modes
|
|
Packit Service |
50ad14 |
-->
|
|
Packit Service |
50ad14 |
|
|
Packit Service |
50ad14 |
|
|
Packit Service |
50ad14 |
video modes, changing
|
|
Packit Service |
50ad14 |
-->
|
|
Packit Service |
50ad14 |
|
|
Packit Service |
50ad14 |
|
|
Packit Service |
50ad14 |
resolution, changing
|
|
Packit Service |
50ad14 |
-->
|
|
Packit Service |
50ad14 |
As far as I know there are 6 ways to change resolution:
|
|
Packit Service |
50ad14 |
1. At compile time: change the line
|
|
Packit Service |
50ad14 |
|
|
Packit Service |
50ad14 |
|
|
Packit Service |
50ad14 |
SVGA_MODE= -DSVGA_MODE=NORMAL_VGA
|
|
Packit Service |
50ad14 |
|
|
Packit Service |
50ad14 |
|
|
Packit Service |
50ad14 |
|
|
Packit Service |
50ad14 |
in /usr/src/linux/Makefile .
|
|
Packit Service |
50ad14 |
1A. After compilation: use rdev -v - a terrible hack, but it exists.
|
|
Packit Service |
50ad14 |
2. At boot time: put vga=ask in the lilo config file, and lilo will
|
|
Packit Service |
50ad14 |
ask you what video mode you want. Once you know, put vga= mypreference.
|
|
Packit Service |
50ad14 |
3. At run time:
|
|
Packit Service |
50ad14 |
A. Use the resizecons command. (This is a very primitive wrapper around
|
|
Packit Service |
50ad14 |
the VT_RESIZE ioctl.)
|
|
Packit Service |
50ad14 |
B. Use the SVGATextMode command. (This is a less primitive wrapper around
|
|
Packit Service |
50ad14 |
the VT_RESIZE ioctl.)
|
|
Packit Service |
50ad14 |
4. Not "on the console":
|
|
Packit Service |
50ad14 |
Under dosemu , or with svgalib etc. you can change the hardware video mode
|
|
Packit Service |
50ad14 |
without the console driver being aware of it. Sometimes this is useful in
|
|
Packit Service |
50ad14 |
getting resizecons or SVGATextMode set up: use dosemu and some
|
|
Packit Service |
50ad14 |
DOS program to get into the desired videomode, dump (say from another VT) the
|
|
Packit Service |
50ad14 |
contents of all video hardware registers, and use that in the initialization
|
|
Packit Service |
50ad14 |
that resizecons and SVGATextMode require.
|
|
Packit Service |
50ad14 |
In some cases where the video mode has gotten into some unusable state,
|
|
Packit Service |
50ad14 |
starting dosemu , relying on the BIOS to set up the video mode, and then
|
|
Packit Service |
50ad14 |
killing dosemu (with kill -9 ), is the easiest way to get into shape
|
|
Packit Service |
50ad14 |
again.
|
|
Packit Service |
50ad14 |
|
|
Packit Service |
50ad14 |
|
|
Packit Service |
50ad14 |
|
|
Packit Service |
50ad14 |
|
|
Packit Service |
50ad14 |
|
|
Packit Service |
50ad14 |
|
|
Packit Service |
50ad14 |
resizecons program
|
|
Packit Service |
50ad14 |
-->
|
|
Packit Service |
50ad14 |
Get svgalib and compile the program restoretextmode .
|
|
Packit Service |
50ad14 |
Boot up your machine in all possible video modes
|
|
Packit Service |
50ad14 |
(using vga=ask in the lilo config file), and write
|
|
Packit Service |
50ad14 |
the video hardware register contents to files CxR
|
|
Packit Service |
50ad14 |
(C=cols, R=rows), e.g., 80x25, 132x44, etc.
|
|
Packit Service |
50ad14 |
Put these files in /usr/lib/kbd/videomodes .
|
|
Packit Service |
50ad14 |
Now resizecons 132x44 will change videomode for you
|
|
Packit Service |
50ad14 |
(and send SIGWINCH to all processes that need to know
|
|
Packit Service |
50ad14 |
about this, and load another font if necessary).
|
|
Packit Service |
50ad14 |
At present, resizecons only succeeds when there is memory enough
|
|
Packit Service |
50ad14 |
for both the old and the new consoles at the same time.
|
|
Packit Service |
50ad14 |
|
|
Packit Service |
50ad14 |
|
|
Packit Service |
50ad14 |
Next
|
|
Packit Service |
50ad14 |
Previous
|
|
Packit Service |
50ad14 |
Contents
|
|
Packit Service |
50ad14 |
</BODY>
|
|
Packit Service |
50ad14 |
</HTML>
|