[52d29f7] | 1 | <?xml version="1.0" encoding="ISO-8859-1"?>
|
---|
| 2 | <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.3//EN"
|
---|
| 3 | "http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd" [
|
---|
| 4 | <!ENTITY % general-entities SYSTEM "../../general.ent">
|
---|
| 5 | %general-entities;
|
---|
| 6 |
|
---|
| 7 | <!ENTITY SVGAlib-download-http "http://www.svgalib.org/svgalib-&SVGAlib-version;.tar.gz">
|
---|
| 8 | <!ENTITY SVGAlib-download-ftp " ">
|
---|
| 9 | <!ENTITY SVGAlib-size "827 KB">
|
---|
| 10 | <!ENTITY SVGAlib-buildsize "9.7 MB">
|
---|
| 11 | <!ENTITY SVGAlib-time "0.20 SBU">
|
---|
| 12 |
|
---|
| 13 | ]>
|
---|
| 14 |
|
---|
[67b459c] | 15 | <sect1 id="SVGAlib" xreflabel="SVGAlib-&SVGAlib-version;">
|
---|
[a0f03b0] | 16 | <sect1info>
|
---|
[5cd0959d] | 17 | <othername>$LastChangedBy$</othername>
|
---|
| 18 | <date>$Date$</date>
|
---|
[a0f03b0] | 19 | </sect1info>
|
---|
[7f72cbf] | 20 | <?dbhtml filename="SVGAlib.html"?>
|
---|
[67b459c] | 21 | <title>SVGAlib-&SVGAlib-version;</title>
|
---|
| 22 |
|
---|
[52d29f7] | 23 | <sect2>
|
---|
| 24 | <title>Introduction to <application>SVGAlib</application></title>
|
---|
[4f6275fd] | 25 |
|
---|
[52d29f7] | 26 | <para><application>SVGAlib</application> is a low-level graphics library
|
---|
| 27 | that provides <acronym>VGA</acronym> and <acronym>SVGA</acronym>
|
---|
| 28 | modes in a console. This is useful for programs running on a console
|
---|
| 29 | that require graphics capabilities.</para>
|
---|
[4f6275fd] | 30 |
|
---|
[52d29f7] | 31 | <sect3><title>Package information</title>
|
---|
| 32 | <itemizedlist spacing='compact'>
|
---|
| 33 | <listitem><para>Download (HTTP): <ulink url="&SVGAlib-download-http;"/></para></listitem>
|
---|
| 34 | <listitem><para>Download (FTP): <ulink url="&SVGAlib-download-ftp;"/></para></listitem>
|
---|
| 35 | <listitem><para>Download size: &SVGAlib-size;</para></listitem>
|
---|
| 36 | <listitem><para>Estimated Disk space required: &SVGAlib-buildsize;</para></listitem>
|
---|
| 37 | <listitem><para>Estimated build time: &SVGAlib-time;</para></listitem></itemizedlist>
|
---|
| 38 | </sect3>
|
---|
[4f6275fd] | 39 |
|
---|
[52d29f7] | 40 | <sect3><title>Additional downloads</title>
|
---|
| 41 | <itemizedlist spacing='compact'>
|
---|
[4f6275fd] | 42 | <listitem><para>Required Patch: <ulink
|
---|
| 43 | url="&patch-root;/svgalib-&SVGAlib-version;-gcc3-1.patch"/></para></listitem>
|
---|
[52d29f7] | 44 | </itemizedlist></sect3>
|
---|
[4f6275fd] | 45 |
|
---|
[52d29f7] | 46 | </sect2>
|
---|
| 47 |
|
---|
| 48 | <sect2>
|
---|
| 49 | <title>Installation of <application>SVGAlib</application></title>
|
---|
[4f6275fd] | 50 |
|
---|
[52d29f7] | 51 | <note><para>You must compile and install as root. If you don't, certain tools
|
---|
| 52 | won't be able to become <acronym>SUID</acronym> root which is required for
|
---|
| 53 | proper operation. However, this raises a risk of exposing your system to any
|
---|
| 54 | holes in those tools that might be used to gain root access, so use with
|
---|
| 55 | caution.</para></note>
|
---|
[4f6275fd] | 56 |
|
---|
| 57 | <para>Install <application>SVGAlib</application> by running the following
|
---|
| 58 | commands:</para>
|
---|
| 59 |
|
---|
| 60 | <screen><userinput><command>patch -Np1 -i ../svgalib-&SVGAlib-version;-gcc3-1.patch &&
|
---|
[52d29f7] | 61 | make prefix=/usr install &&
|
---|
| 62 | cd doc &&
|
---|
| 63 | for dir in man?; do for file in $dir/*; do \
|
---|
| 64 | gunzip /usr/share/man/$file; done; done</command></userinput></screen>
|
---|
[4f6275fd] | 65 |
|
---|
[52d29f7] | 66 | </sect2>
|
---|
| 67 |
|
---|
| 68 | <sect2>
|
---|
| 69 | <title>Command explanations</title>
|
---|
[4f6275fd] | 70 |
|
---|
[52d29f7] | 71 | <para><command>cd doc && for dir in man?; do for file in $dir/*; do
|
---|
| 72 | gunzip /usr/share/man/$file; done; done</command>:
|
---|
| 73 | <application>SVGAlib</application> installs its man pages in compressed format
|
---|
| 74 | so we uncompress them.</para>
|
---|
[4f6275fd] | 75 |
|
---|
[52d29f7] | 76 | </sect2>
|
---|
| 77 |
|
---|
| 78 | <sect2>
|
---|
| 79 | <title>Configuring SVGAlib</title>
|
---|
[4f6275fd] | 80 |
|
---|
[52d29f7] | 81 | <sect3><title>Config files</title>
|
---|
[4f6275fd] | 82 |
|
---|
| 83 | <para><filename>/etc/vga/libvga.config</filename>,
|
---|
| 84 | <filename>~/.svgalibrc</filename></para>
|
---|
[52d29f7] | 85 | </sect3>
|
---|
[4f6275fd] | 86 |
|
---|
[52d29f7] | 87 | <sect3><title>Configuration information</title>
|
---|
[4f6275fd] | 88 |
|
---|
[52d29f7] | 89 | <para>You must edit the config file to set the monitor and mouse type.
|
---|
| 90 | Depending on your hardware, other setup might be required.</para>
|
---|
[4f6275fd] | 91 |
|
---|
| 92 | <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="../../lib-config.xml"/>
|
---|
| 93 |
|
---|
[52d29f7] | 94 | </sect3>
|
---|
[4f6275fd] | 95 |
|
---|
[52d29f7] | 96 | </sect2>
|
---|
| 97 |
|
---|
| 98 | <sect2>
|
---|
| 99 | <title>Contents</title>
|
---|
[4f6275fd] | 100 |
|
---|
[52d29f7] | 101 | <para>The SVGAlib package contains <filename class="libraryfile">libvga</filename>
|
---|
| 102 | and <filename class="libraryfile">libvgagl</filename> libraries,
|
---|
| 103 | <command>dumpreg</command>, <command>mode3</command>, <command>restorefont</command>,
|
---|
| 104 | <command>restorepalette</command>, <command>restoretextmode</command>,
|
---|
| 105 | <command>savetextmode</command>, <command>textmode</command> and
|
---|
| 106 | <command>svgakeymap</command>.</para>
|
---|
[4f6275fd] | 107 |
|
---|
[52d29f7] | 108 | </sect2>
|
---|
[4f6275fd] | 109 |
|
---|
[52d29f7] | 110 | <sect2><title>Description</title>
|
---|
[4f6275fd] | 111 |
|
---|
[52d29f7] | 112 | <sect3><title>libvga library</title>
|
---|
| 113 | <para><filename class="libraryfile">libvga</filename> is a low-level
|
---|
| 114 | graphics library.</para></sect3>
|
---|
[4f6275fd] | 115 |
|
---|
[52d29f7] | 116 | <sect3><title>libvgagl library</title>
|
---|
| 117 | <para><filename class="libraryfile">libvgagl</filename> is a fast
|
---|
| 118 | frame buffer level graphics library based on libvga.</para></sect3>
|
---|
[4f6275fd] | 119 |
|
---|
[52d29f7] | 120 | <sect3><title>dumpreg</title>
|
---|
| 121 | <para><command>dumpreg</command> dumps the state of the card as the
|
---|
| 122 | svgalib chipset driver sees it.</para></sect3>
|
---|
[4f6275fd] | 123 |
|
---|
[52d29f7] | 124 | <sect3><title>mode3</title>
|
---|
| 125 | <para><command>mode3</command> sets a <acronym>VESA</acronym> mode.</para></sect3>
|
---|
[4f6275fd] | 126 |
|
---|
[52d29f7] | 127 | <sect3><title>restorefont</title>
|
---|
| 128 | <para><command>restorefont</command> saves or restores the
|
---|
| 129 | <acronym>SVGA</acronym> font for textmode.</para></sect3>
|
---|
[4f6275fd] | 130 |
|
---|
[52d29f7] | 131 | <sect3><title>restorepalette</title>
|
---|
| 132 | <para><command>restorepalette</command> sets the color palette for
|
---|
| 133 | textmode.</para></sect3>
|
---|
[4f6275fd] | 134 |
|
---|
[52d29f7] | 135 | <sect3><title>restoretextmode</title>
|
---|
| 136 | <para><command>restoretextmode</command> saves or restores the
|
---|
| 137 | <acronym>SVGA</acronym> registers for textmode.</para></sect3>
|
---|
[4f6275fd] | 138 |
|
---|
[52d29f7] | 139 | <sect3><title>savetextmode, textmode</title>
|
---|
| 140 | <para><command>savetextmode</command> and <command>textmode</command> save or
|
---|
| 141 | restore the complete <acronym>SVGA</acronym> status for textmode.</para></sect3>
|
---|
[4f6275fd] | 142 |
|
---|
[52d29f7] | 143 | <sect3><title>svgakeymap</title>
|
---|
| 144 | <para><command>svgakeymap</command> generates keymaps for svgalib.</para></sect3>
|
---|
[4f6275fd] | 145 |
|
---|
[52d29f7] | 146 | </sect2>
|
---|
[67b459c] | 147 |
|
---|
| 148 | </sect1>
|
---|