Return-Path: omnibook-admin@zurich.ai.mit.edu Delivery-Date: Thu Aug 1 12:02:00 2002 Return-Path: Delivered-To: grundler@localhost Received: from localhost (localhost [127.0.0.1]) by debian.cup.hp.com (Postfix) with ESMTP id 3152612CEB for ; Thu, 1 Aug 2002 12:02:00 -0700 (PDT) Received: from esalpha2.cup.hp.com [15.0.68.231] by localhost with POP3 (fetchmail-5.9.11) for grundler@localhost (single-drop); Thu, 01 Aug 2002 12:02:00 -0700 (PDT) Received: from hpuxmail.cup.hp.com (root@hpuxmail.cup.hp.com [15.13.189.207]) by psalpha0.cup.hp.com (8.9.3/8.8.6) with ESMTP id MAA24230 for ; Thu, 1 Aug 2002 12:01:22 -0700 (PDT) Received: from hpda.cup.hp.com (hpda.cup.hp.com [15.75.208.53]) by hpuxmail.cup.hp.com (8.9.3/8.8.6) with ESMTP id MAA03306 for ; Thu, 1 Aug 2002 12:01:20 -0700 (PDT) Received: from cuprel1.hp.com (cupona1.hp.com [15.13.176.10]) by hpda.cup.hp.com (Postfix) with ESMTP id 2060EC724 for ; Thu, 1 Aug 2002 12:01:20 -0700 (PDT) Received: from zurich.ai.mit.edu (zurich.ai.mit.edu [18.43.0.244]) by cuprel1.hp.com (Postfix) with ESMTP id C08521DE9 for ; Thu, 1 Aug 2002 12:01:18 -0700 (PDT) Received: from zurich.ai.mit.edu (localhost [127.0.0.1]) by zurich.ai.mit.edu (8.9.3/8.9.3/Debian 8.9.3-21) with ESMTP id OAA08231; Thu, 1 Aug 2002 14:49:38 -0400 Received: from joehill (mail@[155.33.204.84]) by zurich.ai.mit.edu (8.9.3/8.9.3/Debian 8.9.3-21) with ESMTP id OAA08206 for ; Thu, 1 Aug 2002 14:49:36 -0400 X-Authentication-Warning: zurich.ai.mit.edu: Host mail@[155.33.204.84] claimed to be joehill Received: from adam by joehill with local (Exim 3.35 #1 (Debian)) id 17aKzy-0000CT-00 for ; Thu, 01 Aug 2002 14:48:34 -0400 Date: Thu, 1 Aug 2002 14:48:34 -0400 From: Adam Kessel To: Omnibook Mailing List Message-ID: <20020801184834.GA759@joehill.neu.edu> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.4i Subject: [OmniBook] XVideo/DRI Acceleration on OB500 Sender: omnibook-admin@zurich.ai.mit.edu Errors-To: omnibook-admin@zurich.ai.mit.edu X-Mailman-Version: 1.1 Precedence: bulk List-Id: Hewlett-Packard OmniBook Users X-BeenThere: omnibook@zurich.ai.mit.edu X-UIDL: c0b7945842ef90d78b092c789c8461ee I've got both the xvideo and the dri 3d acceleration working on my OB500 running Debian unstable. This means: 1) You can watch movies with mplayer or avifile-player without taking up all your CPU cycles (even on the slower OB500/600 MHz). 2) You can play OpenGL games or use 3d rendering applications, again at full speed without using up your CPU. (a lot of OpenGL stuff is essentially useless without 3d acceleration enabled). Since most people don't seem to be using these features, I thought it would be useful to publicize. Both xvideo and dri make a huge difference in the utility of your graphics card. Perhaps eventually experimental Debian packages could be made available that provide a kernel and xserver that have this functionality built in. Unfortunately, it doesn't appear possible to have *both* xvideo and dri enabled simultaneously with the current state of the drivers. Here's how to do it, under Debian: Upgrade your xserver to 4.2.0. This is only available from an experimental archive, currently. Add the following line to your /etc/apt/sources.list and then apt-get upgrade: deb ftp://ftp.cs.umn.edu/pub/debian-misc/branden/ sid/i386/ Download ATI-4.2.0-12.i386.tar.gz from gatos.sourceforge.net (or a more recent version, if it is available): http://unc.dl.sourceforge.net/sourceforge/gatos/ATI-4.2.0-12.i386.tar.gz Download mach64-20020801-linux.i386.tar.bz2 from dri.sourceforge.net (or more recent version). http://dri.sourceforge.net/snapshots/bleeding-edge/r200-20020801-linux.i386.tar.bz2 To install xvideo drivers, unpack the ATI-4.2.0 file (tar xfz ATI-...), then copy the contents of X11R6/lib into /usr/X11R6/lib (you probably ought to back-up the original directory first). Restart the xserver. To see if it works, try 'xvinfo'. You should get something other than "no adaptors present". --- To install the dri 3d acceleration drivers, you'll need to have the source code for your current kernel. You should create a symbolic link as follows: ln -s {directory where your kernel source is} /usr/src/linux Also, make sure your kernel is compiled with all the AGP options set to Y, (CONFIG_AGP, etc..), and also with CONFIG_DRM_* set to 'y'. Furthermore, make sure you've running the kernel which you have compiled in that directory (otherwise you're likely to get a problem with 'modversions'h.) Then run install.sh in the directory where you unpacked mach64-20020710-linux.i386.tar.bz2 (tar xfj mach64-...). You'll need to modprobe mach64 before starting the xserver to get 3d acceleration to work. Alternatively, add mach64 to /etc/modules so it is loaded automatically. To see if it works, try 'glxinfo'. Where it says direct rendering: it should say 'Yes'. You can try adding Option "agpmode" "2" in the "device" section of your XF86Config-4; this may make the 3d acceleration faster. --- I've made simple little shell scripts to switch back and forth between xvideo extension and dri extension. I hope this information is helpful to someone. Please let me know if it doesn't work for you. I think it significantly enhances the utility of the OB500, so this information should be better disseminated. --- Adam Kessel (adam@bostoncoop.net) _______________________________________________ OmniBook mailing list OmniBook@zurich.ai.mit.edu http://zurich.ai.mit.edu/mailman/listinfo/omnibook