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