libkeymap: Do not dump diacr values if lk_dump_keymap called
[platform/upstream/kbd.git] / doc / kbd.FAQ-16.html
1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
2 <HTML>
3 <HEAD>
4  <META NAME="GENERATOR" CONTENT="SGML-Tools 1.0.9">
5  <TITLE>The Linux keyboard and console HOWTO: Changing the video mode</TITLE>
6  <LINK HREF="kbd.FAQ-17.html" REL=next>
7  <LINK HREF="kbd.FAQ-15.html" REL=previous>
8  <LINK HREF="kbd.FAQ.html#toc16" REL=contents>
9 </HEAD>
10 <BODY>
11 <A HREF="kbd.FAQ-17.html">Next</A>
12 <A HREF="kbd.FAQ-15.html">Previous</A>
13 <A HREF="kbd.FAQ.html#toc16">Contents</A>
14 <HR>
15 <H2><A NAME="s16">16. Changing the video mode</A></H2>
16
17 <P>
18 <!--
19 console!changing video modes
20 -->
21
22 <!--
23 video modes, changing
24 -->
25
26 <!--
27 resolution, changing
28 -->
29 <P>As far as I know there are 6 ways to change resolution:
30 <P>1. At compile time: change the line
31 <BLOCKQUOTE><CODE>
32 <PRE>
33         SVGA_MODE=      -DSVGA_MODE=NORMAL_VGA
34 </PRE>
35 </CODE></BLOCKQUOTE>
36
37 in <CODE>/usr/src/linux/Makefile</CODE>.
38 <P>1A. After compilation: use <CODE>rdev -v</CODE> - a terrible hack, but it exists.
39 <P>2. At boot time: put <CODE>vga=ask</CODE> in the lilo config file, and lilo will
40 ask you what video mode you want. Once you know, put <CODE>vga=</CODE>mypreference.
41 <P>3. At run time:
42 A. Use the <CODE>resizecons</CODE> command. (This is a very primitive wrapper around
43 the VT_RESIZE ioctl.)
44 B. Use the <CODE>SVGATextMode</CODE> command. (This is a less primitive wrapper around
45 the VT_RESIZE ioctl.)
46 <P>4. Not "on the console":
47 Under <CODE>dosemu</CODE>, or with svgalib etc. you can change the hardware video mode
48 without the console driver being aware of it. Sometimes this is useful in
49 getting <CODE>resizecons</CODE> or <CODE>SVGATextMode</CODE> set up: use <CODE>dosemu</CODE> and some
50 DOS program to get into the desired videomode, dump (say from another VT) the
51 contents of all video hardware registers, and use that in the initialization
52 that <CODE>resizecons</CODE> and <CODE>SVGATextMode</CODE> require.
53 In some cases where the video mode has gotten into some unusable state,
54 starting <CODE>dosemu</CODE>, relying on the BIOS to set up the video mode, and then
55 killing <CODE>dosemu</CODE> (with <CODE>kill -9</CODE>), is the easiest way to get into shape
56 again.
57 <P>
58 <H2><A NAME="ss16.1">16.1 Instructions for the use of resizecons</A>
59 </H2>
60
61 <P>
62 <!--
63 resizecons program
64 -->
65 <P>Get svgalib and compile the program <CODE>restoretextmode</CODE>.
66 Boot up your machine in all possible video modes
67 (using <CODE>vga=ask</CODE> in the lilo config file), and write
68 the video hardware register contents to files CxR
69 (C=cols, R=rows), e.g., 80x25, 132x44, etc.
70 Put these files in <CODE>/usr/lib/kbd/videomodes</CODE>.
71 Now <CODE>resizecons 132x44</CODE> will change videomode for you
72 (and send SIGWINCH to all processes that need to know
73 about this, and load another font if necessary).
74 <P>At present, <CODE>resizecons</CODE> only succeeds when there is memory enough
75 for both the old and the new consoles at the same time.
76 <P>
77 <HR>
78 <A HREF="kbd.FAQ-17.html">Next</A>
79 <A HREF="kbd.FAQ-15.html">Previous</A>
80 <A HREF="kbd.FAQ.html#toc16">Contents</A>
81 </BODY>
82 </HTML>