This is based on the Hoary instructions at: http://ubuntuforums.org/showthread.php?t=39349
but mainly on the info at: http://www.ubuntulinux.se/node/164
I found it needed a few changes to make it work (and the current Breezy VIA drivers don't seem to need the Unichrome project stuff).
It seemed to work fine on my system (which already worked with the VIA drivers), but if any other VIA UNICHROME users would like to try it and report back, I will make any necessary modifications.
Use "glxinfo" and "glxgears -printfps" to test if the hardware acceleration is actually working afterwards!
Modify and save the script under whatever name you like, and 'chown root' & 'chmod 744' it so it will run only under root.
Code:
#!/bin/sh
#
# Unichrome 3d-HOWTO for Ubuntu 5.10 (Breezy)
#
# This script is a modification of the Hoary one at: http://www.ubuntulinux.se/node/164
# The current Breezy kernel and VIA drivers seem to make the latter part of that script redundant.
#
# These instructions are based on the Unichrome 3d-HOWTO posted here: http://sourceforge.net/docman/?group_id=102048
#
# This script must be run as root. Maybe you can "sudo" it but I have a root login and do not use sudo.
#
# Make sure the linux kernel headers for your current kernel are installed!!!!
# You must also have the following packages installed (all of this is best done using Synaptic):
# gcc-3.4 build-essential
#
# Before running this script, download and extract this file into a "install" directory under your Home directory:
#
# The latest via-YYYYMMDD-linux.i386.tar.bz2
# (where YYYYMMDD is the date part of the filename!) can be found here:
# http://dri.freedesktop.org/snapshots/
#
# STEP 1. Set the directory where the install files have been extracted
# (from the file browser I right-clicked on the file and clicked on "extract here")
# (this extracts the files to a subdirectory fileName_FILES)
# *** edit these two lines and then run the script:
#
# Example: dir=/home/dc/install (my user login is "dc")
dir=/home/your-directory-name/install
#
# Edit this with the actual date data of your downloaded file!
# Example: file=20060131
file=YYYYMMDD
#
# This gets your current kernel running version,
# (and you have installed the kernel headers for this exact version, haven't you?.....):
ver=`uname -a | cut -f3 -d" "`
# exit
#
# STEP 2. Create drm.ko and via.ko
#
cd $dir/via-$file-linux.i386/drm/linux-core
make DRM_MODULES="via"
echo "drm.ko and via.ko created"
#
# STEP 3. Copy drm.ko and via.ko to proper directory
#
cd $dir/via-$file-linux.i386/drm/linux-core
cp -f drm.ko via.ko /lib/modules/$ver/kernel/drivers/char/drm/
echo "via.ko and drm.ko copied"
#
# STEP 4. Add via DRM module to the kernel
#
depmod -ae
modprobe via
echo "via DRM module added to kernel"
#
#
# end of script
#
# LAST STEP: edit xorg.conf and reboot
echo "you now need to edit /etc/X11/xorg.conf and then reboot"
#
# change the "Device" section to look something like this:
# Section "Device"
# Identifier "VIA Technologies, Inc. VT8378 S3 UniChrome Integrated Video"
# Driver "via"
# BusID "PCI:1:0:0"
# Option "EnableAGPDMA"
# EndSection"
Bookmarks