Direct Rendering Infrastructure DRI on VIA\S3 Savage
Linux - HardwareThis forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Introduction to Linux - A Hands on Guide
This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter.
For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own.
Click Here to receive this Complete Guide absolutely free.
This thread is such a wonderful resource for the people stuck with S3 graphics card for enabling DRI in Linux. Thanks to /bin/bash for starting this thread.
Since the time I read this thread the very first time, to the present, I had to enable DRI for S3 Savage graphics card many a times (sometimes because of new installation and sometimes because of kernel compilation).
I have learned few lessons during the process. I have put this knowledge in a post in my blog .
Has anyone heard of DRI working when loading X with the startx command but NOT working when loading with the kdm command? This also means that it doesn't work if I load up in run level 5, but it will work if I load in run level 3 and then type in startx.
I'm using Mandriva LE 2005 (10.2). I have a compaq presario 721 with a Savage Twister K.
Any ideas what the difference between the kdm and startx commands could be that would totally foobar up dri?
I'll let you know if things work out in a few days. I started updating my computer and there was an update to Xorg that messed up dri. I'll have to finish updating (to make sure that I finish messing things up before starting to fix them) and then set up dri again. Then I'll check on whether libGL hell is my problem. Thanks.
"Glad to hear you got it working. Just to give you something to compare to. While running KDE in 24bit 1280 x 1024 resolution I get ~ 450FPS. In XFCE I can get >480FPS. Also have 2G P4 w/512M ram if that matters?"
Wow, thats amazing, in KDE with 24 bit, 1024x768, I get 250fps, my system is Athlon XP 1800 with 512M DDRram. Wonder why yours is so much faster?
Well, something in the update that I did seems to have fixed MOST of the issues that I had with DRI. I can now boot into run level 5 with dri support for my card working. I'm not going to complain about the few issues left (I have to restart the X server once each time I start my computer because after a certain amount of time, I have a small graphical glitch and my keyboard stops working. Restarting X fixes it and the problem doesn't happen until the next time I boot my computer.
BTW, my issues were pretty weird. It actually sounds like it might not have been libGL hell. In glxinfo, dri was always listed as enabled. There was some bug that caused any application that used it to simply error out. Glxinfo gave some of the information, but most of the way through it gave a segment fault. Glxgears gave a segment fault immediately. Most of the 3D games I tried froze the entire system and needed a hard reset.
I looked at what "top" command showed, and nothing was sucking that much cpu/mem besides Xorg. I am also running the latest dri snapshot, as well as the most up to date x.org packages. Could it just be that your cpu is that much better? BTW, my card is an onboard prosavageddr... the one thats part of the M7VIG Biostar http://www.biostar-usa.com/mbdetails.asp?model=m7vig
And Im running kernel 126.96.36.199. I know it seems picky, but its killing me and not to mention the jealousy, that your're getting such incredible faster frame rates on what seem to be such similarly equiped boxes. Any more ideas to boost my fps would be great!
I have the VIA P4MA Pro Mainboard in this computer.
- Intel® Pentium® 4 Processor (478pin)
- 400MHz Front Side Bus
- VIA ProSavageDDR™ P4M266 North Bridge Featuring integrated S3 ProSavage8™ AGP engine
- VT8235 South Bridge
- 2 DDR266 DIMM Sockets
- Up to 2GB
- 1 AGP 4X slot (1.5V Support)
- 3 PCI Slots
- 1 CNR Slot
On Board IDE
- 2 x ATA133/100 Connectors
On Board FDD
- 1 x FDD Connector
- VIA VT1616 6 Channel AC’97 CODEC
- VIA VT6103 10/100 ETHERNET PHY
Back Panel I/O
- 1 PS2 mouse Port
- 1 PS2 keyboard Port
- 1 RJ 45 100/10Mb LAN Port
- 1 VGA Port
- 2 USB 2.0/1.1 Ports
- 1 Serial Ports
- 1 Parallel Port
- 3 Audio Jacks: line-out, line-in and mic-in
Smart5.1™ Front L/R, Rear L/R, Center/Subwoofer
- 1 Game/MIDI Port
- Award BIOS
- 2/4Mbit Flash Memory
- VIA FliteDeck™ System Management UtilityMissionControl-H/W Monitoring, Remote SNMP ManagementJetStream-Overclocking Optimized UtilityFlashPort-Live BIOS FlashSysProbe-Live DMI Browser
- 100MHz up to 200MHz adjustment by 1MHz Increments
- Tunable Vcore/Vdimm/Vagp
- BIOS Overclocking Auto-Recovery
System Monitoring & Management
- CPU Temperature Monitoring
- CPU Voltage Monitoring
- Wake-on-LAN, Wake-on-Ring, Keyboard-Power-on, Timer-Power-on
- System Power Management
- AC Power Failure Recovery
- Micro ATX (4 Layers)
- 24.5cm x 20.5cm
Aside from the different processors there isn't that much difference that I could be getting nearly 2X the FPS. I am running 188.8.131.52 kernel. Did you build your kernel and if so did you optimize for the AMD processor?
It could be the front side bus speed; 266 vs. 400.
Awesome guide ! I was successful getting DRI working in my Asus A1300 laptop with a S3 twister chip Glxgears gives me about 350fps which is OK, but I wouldn't mind getting a higher value! I have tried running Quake III Arena and it works at least, but I'm getting some weird graphic glitches which are really annoying me (Any ideas ?)
And, for those of you who are stuck with the "Cannot find a kernel config file" problem, I also had this problem in my Ubuntu Hoary distribution, but was able to solve this by using the kernel-headers package instead of linux-source.
I realize that this thread is kind of old but I really want DRI to work on my laptop (twister_k chipset)...
I am using SUSE 10 with Xorg 6.8.2 on Kernel 2.6.13-15.8
I tried different savage and common packages and get similar error outputs... This is one of them >>>
make DRM_MODULES=savage.o modules
make: Entering directory `/home/trademarka/bin/temp/dripkg/drm/linux-core'
make -C /lib/modules/2.6.13-15.8-default/source SUBDIRS=`pwd` DRMSRCDIR=`pwd` modules
make: Entering directory `/usr/src/linux-2.6.13-15.8'
WARNING: Symbol version dump /usr/src/linux-2.6.13-15.8/Module.symvers
is missing; modules will have no dependencies and modversions.
CC [M] /home/trademarka/bin/temp/dripkg/drm/linux-core/drm_auth.o
/bin/sh: scripts/basic/fixdep: No such file or directory
make: *** [/home/trademarka/bin/temp/dripkg/drm/linux-core/drm_auth.o] Error
make: *** [_module_/home/trademarka/bin/temp/dripkg/drm/linux-core] Error 2
make: Leaving directory `/usr/src/linux-2.6.13-15.8'
make: *** [modules] Error 2
make: Leaving directory `/home/trademarka/bin/temp/dripkg/drm/linux-core'
make: *** [savage.o] Error 2
BTW... /usr/src/linux-2.6.13-15.8/ originally did not have .config file, so I copied it from /boot ... I heared people saying that some link has to be removed there after copying maybe that's the problem...
Thanks in advance
Last edited by trademarka; 02-17-2006 at 10:07 AM.
Try going into /usr/src/linux-2.6.13-15.8 and run make menuconfig or make xconfig and make sure that your kernel has DRI turned on. I believe it is in Drivers -> Char section just below agpgart. If your config does not have DRI enabled then you need to enable it and build a new kernel. If it is already enabled then try running make all and then try building the DRI module again after that finishes. You should also start with a new dripkg directory (remove the old and reinstall fresh.)
Thanks for reply,
building the new kernel now...
by the way, I am about to update to SuSE 10.1 and it has 2.6.16 rc1 kernel...
So, will that solve the problems or will I still have to do the above steps?