“UbuntuHelp:Voodoo3doesnotdo3d”的版本间的差异
来自Ubuntu中文
小 (新页面: {{From|https://help.ubuntu.com/community/Voodoo3doesnotdo3d}} {{Languages|UbuntuHelp:Voodoo3doesnotdo3d}} === Introduction === The Voodoo3 was a good accelerated 3D video card for it's t...) |
小 |
||
(未显示同一用户的6个中间版本) | |||
第1行: | 第1行: | ||
{{From|https://help.ubuntu.com/community/Voodoo3doesnotdo3d}} | {{From|https://help.ubuntu.com/community/Voodoo3doesnotdo3d}} | ||
{{Languages|UbuntuHelp:Voodoo3doesnotdo3d}} | {{Languages|UbuntuHelp:Voodoo3doesnotdo3d}} | ||
− | + | <<Include(Tag/StyleCleanup)>> | |
=== Introduction === | === Introduction === | ||
The Voodoo3 was a good accelerated 3D video card for it's time, but it and all other Voodoo cards are now considered defunct (http://dri.freedesktop.org/wiki/3dfx). However, it can use openGL in 16 bit color at resolutions of 1024x768 and below. Since Ubuntu uses 24 bit color and the maximum resolution available to your monitor, you will need to change a few things. | The Voodoo3 was a good accelerated 3D video card for it's time, but it and all other Voodoo cards are now considered defunct (http://dri.freedesktop.org/wiki/3dfx). However, it can use openGL in 16 bit color at resolutions of 1024x768 and below. Since Ubuntu uses 24 bit color and the maximum resolution available to your monitor, you will need to change a few things. | ||
− | |||
=== Installation === | === Installation === | ||
− | This howto assumes that you already have a working X server configuration. If you don't, or are not sure, FixVideoResolutionHowto will help you set one up. | + | This howto assumes that you already have a working X server configuration. If you don't, or are not sure, [[UbuntuHelp:FixVideoResolutionHowto|FixVideoResolutionHowto]] will help you set one up. |
− | + | ||
==== Summary ==== | ==== Summary ==== | ||
* Install a support library | * Install a support library | ||
* Create an xorg.conf file for using hardware acceleration at 16 bit color | * Create an xorg.conf file for using hardware acceleration at 16 bit color | ||
* Create a helper script that will ease switching between accelerated 3D and the default | * Create a helper script that will ease switching between accelerated 3D and the default | ||
− | |||
==== Install the support library ==== | ==== Install the support library ==== | ||
`libglide3` is a library that links DRI calls to the capabilities of the Voodoo3 | `libglide3` is a library that links DRI calls to the capabilities of the Voodoo3 | ||
第18行: | 第15行: | ||
sudo apt-get install libglide3 | sudo apt-get install libglide3 | ||
</nowiki></pre> | </nowiki></pre> | ||
− | |||
==== Create the new xorg.conf ==== | ==== Create the new xorg.conf ==== | ||
Move to the location of the file `xorg.conf` and make a backup copy. | Move to the location of the file `xorg.conf` and make a backup copy. | ||
第36行: | 第32行: | ||
Search near the bottom of `xorg.conf.accel` for the portion that reads as follows (the `Modes` line in your `xorg.conf.accel` is probably different): | Search near the bottom of `xorg.conf.accel` for the portion that reads as follows (the `Modes` line in your `xorg.conf.accel` is probably different): | ||
<pre><nowiki> | <pre><nowiki> | ||
− | SubSection "Display" | + | SubSection "Display" |
− | Depth 16 | + | Depth 16 |
− | Modes "1600x1200" "1024x768" "800x600" "640x480" | + | Modes "1600x1200" "1024x768" "800x600" "640x480" |
− | EndSubSection | + | EndSubSection |
</nowiki></pre> | </nowiki></pre> | ||
You will see other `SubSection "Display"` definitions, with `Depths` of `1, 4, 8, 15`, and `24`. Be sure you are altering the one with `Depth 16`. Delete any resolutions in the `Modes` line that are higher than `"1024x768"`. For the above example, the changed `SubSection` would read: | You will see other `SubSection "Display"` definitions, with `Depths` of `1, 4, 8, 15`, and `24`. Be sure you are altering the one with `Depth 16`. Delete any resolutions in the `Modes` line that are higher than `"1024x768"`. For the above example, the changed `SubSection` would read: | ||
<pre><nowiki> | <pre><nowiki> | ||
− | SubSection "Display" | + | SubSection "Display" |
− | Depth 16 | + | Depth 16 |
− | Modes "1024x768" "800x600" "640x480" | + | Modes "1024x768" "800x600" "640x480" |
− | EndSubSection | + | EndSubSection |
</nowiki></pre> | </nowiki></pre> | ||
===== Select 16 bit color depth ===== | ===== Select 16 bit color depth ===== | ||
Directly above the `SubSection "Display"` stanzas, there is a `Section "Screen"`. Within that section you will see that the `DefaultDepth` is set to `24`. Change that to `16`. | Directly above the `SubSection "Display"` stanzas, there is a `Section "Screen"`. Within that section you will see that the `DefaultDepth` is set to `24`. Change that to `16`. | ||
<pre><nowiki> | <pre><nowiki> | ||
− | DefaultDepth 16 | + | DefaultDepth 16 |
</nowiki></pre> | </nowiki></pre> | ||
Save your changes, and exit gedit. | Save your changes, and exit gedit. | ||
− | |||
==== Create the helper script ==== | ==== Create the helper script ==== | ||
Run gedit as a normal user from your home directory, and cut and paste the following script into gedit: | Run gedit as a normal user from your home directory, and cut and paste the following script into gedit: | ||
第91行: | 第86行: | ||
sudo cp voodoo /usr/local/bin | sudo cp voodoo /usr/local/bin | ||
</nowiki></pre> | </nowiki></pre> | ||
− | |||
=== Enabling your accelerated configuration === | === Enabling your accelerated configuration === | ||
− | |||
==== Using the Script ==== | ==== Using the Script ==== | ||
To select between the accelerated 3D and normal configurations, simply run `voodoo` and give it your choice. To use the accelerated 3D xorg.conf, type | To select between the accelerated 3D and normal configurations, simply run `voodoo` and give it your choice. To use the accelerated 3D xorg.conf, type | ||
第103行: | 第96行: | ||
sudo voodoo noaccel | sudo voodoo noaccel | ||
</nowiki></pre> | </nowiki></pre> | ||
− | |||
==== Restarting X ==== | ==== Restarting X ==== | ||
X must be restarted to switch between 16 bit and 24 bit color depths. Logging out of your desktop, and and pressing control-alt-backspace at the login screen will ensure that X is restarted. | X must be restarted to switch between 16 bit and 24 bit color depths. Logging out of your desktop, and and pressing control-alt-backspace at the login screen will ensure that X is restarted. | ||
− | |||
==== Testing your accelerated 3D ==== | ==== Testing your accelerated 3D ==== | ||
To see the status of your X server, simply type | To see the status of your X server, simply type | ||
第112行: | 第103行: | ||
voodoo | voodoo | ||
</nowiki></pre> | </nowiki></pre> | ||
− | |||
=== More info === | === More info === | ||
* Glide Open Source Project - [http://glide.sourceforge.net/] | * Glide Open Source Project - [http://glide.sourceforge.net/] | ||
* libglide3 in ubuntu | * libglide3 in ubuntu | ||
− | + | * [http://packages.ubuntu.com/warty/libs/libglide3] | |
− | + | * [http://packages.ubuntu.com/hoary/libs/libglide3] | |
− | + | * [http://packages.ubuntu.com/breezy/libs/libglide3] | |
* Voodoo3 and DRI - [http://dri.freedesktop.org/wiki/3dfx] | * Voodoo3 and DRI - [http://dri.freedesktop.org/wiki/3dfx] | ||
* OpenGL - http://dri.freedesktop.org/wiki/OpenGL] | * OpenGL - http://dri.freedesktop.org/wiki/OpenGL] | ||
− | + | ---- | |
− | [[category: | + | [[category:CategoryHardware]] |
[[category:UbuntuHelp]] | [[category:UbuntuHelp]] |
2010年5月20日 (四) 00:48的最新版本
点击翻译: |
English |
请不要直接编辑翻译本页,本页将定期与来源同步。 |
<<Include(Tag/StyleCleanup)>>
Introduction
The Voodoo3 was a good accelerated 3D video card for it's time, but it and all other Voodoo cards are now considered defunct (http://dri.freedesktop.org/wiki/3dfx). However, it can use openGL in 16 bit color at resolutions of 1024x768 and below. Since Ubuntu uses 24 bit color and the maximum resolution available to your monitor, you will need to change a few things.
Installation
This howto assumes that you already have a working X server configuration. If you don't, or are not sure, FixVideoResolutionHowto will help you set one up.
Summary
- Install a support library
- Create an xorg.conf file for using hardware acceleration at 16 bit color
- Create a helper script that will ease switching between accelerated 3D and the default
Install the support library
`libglide3` is a library that links DRI calls to the capabilities of the Voodoo3
sudo apt-get install libglide3
Create the new xorg.conf
Move to the location of the file `xorg.conf` and make a backup copy.
cd /etc/X11 sudo cp xorg.conf xorg.conf.noaccel
Make a copy you will change.
sudo cp xorg.conf xorg.conf.accel
Create the hardware accelerated configuration
gksudo gedit xorg.conf.accel
Limit the available resolutions
Search near the bottom of `xorg.conf.accel` for the portion that reads as follows (the `Modes` line in your `xorg.conf.accel` is probably different):
SubSection "Display" Depth 16 Modes "1600x1200" "1024x768" "800x600" "640x480" EndSubSection
You will see other `SubSection "Display"` definitions, with `Depths` of `1, 4, 8, 15`, and `24`. Be sure you are altering the one with `Depth 16`. Delete any resolutions in the `Modes` line that are higher than `"1024x768"`. For the above example, the changed `SubSection` would read:
SubSection "Display" Depth 16 Modes "1024x768" "800x600" "640x480" EndSubSection
Select 16 bit color depth
Directly above the `SubSection "Display"` stanzas, there is a `Section "Screen"`. Within that section you will see that the `DefaultDepth` is set to `24`. Change that to `16`.
DefaultDepth 16
Save your changes, and exit gedit.
Create the helper script
Run gedit as a normal user from your home directory, and cut and paste the following script into gedit:
cd $HOME gedit voodoo
This script will simplify switching between accelerated 3D and normal usage.
#! /bin/bash case $1 in accel ) cp /etc/X11/xorg.conf.accel /etc/X11/xorg.conf ;; noaccel ) cp /etc/X11/xorg.conf.noaccel /etc/X11/xorg.conf ;; * ) echo echo "Usage" echo echo " voodoo accel - use accelerated 16 bit color" echo " voodoo noaccel - use normal 24 bit color" echo XORGDEPTH=`grep DefaultDepth /etc/X11/xorg.conf | cut -f3` XDRI=`grep rendering /var/log/Xorg.0.log | cut --delimiter=" " -f5` XDEPTH=`xdpyinfo | grep "depth of root window" | cut --delimiter=" " -f10` echo " You are currently running at $XDEPTH bit color, with direct" echo " rendering $XDRI. When you restart X, it will run" echo " in $XORGDEPTH bit color." ;; esac
Save the file, and exit gedit. Then make `voodoo` executable.
chmod u+x voodoo
`voodoo` must be run as root on this machine, and should be available on your PATH. `/usr/local/bin` is a customary location for scripts in that category.
sudo cp voodoo /usr/local/bin
Enabling your accelerated configuration
Using the Script
To select between the accelerated 3D and normal configurations, simply run `voodoo` and give it your choice. To use the accelerated 3D xorg.conf, type
sudo voodoo accel
and for the normal, 24 bit color, type
sudo voodoo noaccel
Restarting X
X must be restarted to switch between 16 bit and 24 bit color depths. Logging out of your desktop, and and pressing control-alt-backspace at the login screen will ensure that X is restarted.
Testing your accelerated 3D
To see the status of your X server, simply type
voodoo
More info
- Glide Open Source Project - [1]
- libglide3 in ubuntu
- [2]
- [3]
- [4]
- Voodoo3 and DRI - [5]
- OpenGL - http://dri.freedesktop.org/wiki/OpenGL]