View previous topic :: View next topic |
Author |
Message |
dmvianna l33t
Joined: 22 Mar 2004 Posts: 742 Location: Down Underland
|
Posted: Thu Feb 23, 2006 12:24 pm Post subject: Modular X, dri and the savage driver [solved] |
|
|
Just installed xorg-x11-7.0-r1! First off, it wouldn't compile the savage driver. Then with USE="-savage vesa" it did the trick. Then later I compiled xf86-video-savage-2.0.2.3 and xorg-x11 with USE="savage vesa", and voilà! Savage works. But no dri.
/var/log/Xorg.1.log:
Code: | drmOpenDevice: node name is /dev/dri/card0
drmOpenDevice: openresult is -1 (no such devide or address)
drmOpenDevice: Open failed. |
Ideas? _________________ Proprietary is theft. Pierre-Joseph Proudhon, if he had a chance
Powered by a MacBook Pro
Last edited by dmvianna on Thu Feb 23, 2006 5:15 pm; edited 1 time in total |
|
Back to top |
|
|
dmvianna l33t
Joined: 22 Mar 2004 Posts: 742 Location: Down Underland
|
Posted: Thu Feb 23, 2006 5:15 pm Post subject: |
|
|
I'm running 2.6.15-suspend2-r6, and installed http://dri.freedesktop.org/snapshots/common-20060206-linux.i386.tar.bz2 and http://dri.freedesktop.org/snapshots/savage-20060206-linux.i386.tar.bz2. Then did
and now I have dri enabled.
[edit] but no 3D app worked. Instead of the snapshots, you should check the new kernel options (>=2.6.15):
Code: | Device Drivers ->
Character Devices ->
<M> /dev/agpgart
<M> Intel chipset Support
<M> Direct Rendering Manager
<M> Savage video cards
|
THEN it will work. _________________ Proprietary is theft. Pierre-Joseph Proudhon, if he had a chance
Powered by a MacBook Pro
Last edited by dmvianna on Fri Feb 24, 2006 5:31 pm; edited 2 times in total |
|
Back to top |
|
|
gabkdlly n00b
Joined: 04 Jul 2004 Posts: 34 Location: Berlin, Germany
|
Posted: Fri Feb 24, 2006 2:43 pm Post subject: |
|
|
I got my DRI to work by compiling the savage module that came with the 2.6.15-gentoo-r5 kernel.
Code: | Device Drivers --->
Character devices --->
<M> /dev/agpgart (AGP Support)
<M> VIA chipset support
<M> Direct Rendering Manager (XFree86 4.1.0 and higher DRI support)
<M> Savage video cards |
Of course, those modules also need to get loaded, so the following entry in /etc/modules.autoload.d/kernel-2.6 was necessary:
The savage use flag worked for me, with xorg-x11-7.0-r1 that is. xorg-x11-7.0 had problems.
Also, I don't know if this is a savage issue, but migrating to modular X turned my cursor into a one inch inverted box. That is to say, a box of the inverted color of whatever is behind the cursor. Interesting, but also strange, and a little annoying. Plus, the cursor jumps around a little bit sometimes, particularly when touching the boarders of windows. Anybody else seeing this behavior?
Cheers |
|
Back to top |
|
|
dmvianna l33t
Joined: 22 Mar 2004 Posts: 742 Location: Down Underland
|
Posted: Fri Feb 24, 2006 2:51 pm Post subject: |
|
|
gabkdlly: everything works like a charm here. But instead of autoloading
I followed the old xorg tips and autoloaded
Code: | apgpart
intel-agp (my AGP bridge, according to lspci) |
in that order. Savage is loaded by xorg at start time. _________________ Proprietary is theft. Pierre-Joseph Proudhon, if he had a chance
Powered by a MacBook Pro |
|
Back to top |
|
|
dark.elixir n00b
Joined: 03 Jan 2005 Posts: 13
|
Posted: Sun Apr 02, 2006 9:48 pm Post subject: |
|
|
I had the same problem. I managed to install Modular Xorg with the "dri" flag enabled. The "savage" driver was compiled with dri support and a "savage.ko" kernel module was loaded everytime I started Xorg. But this module wasn't compiled from the KERNEL and I'm pretty sure of that, since I know the Savage Kernel Module that comes with the Kernel source is PRETTY old.
But since I reinstalled my kernel, the module is gone. I know I can install the module that comes with the kernel source, but it is PRETTY OLD!! and I want to install the module that came with the new Modular Xorg. Any ideas?
https://forums.gentoo.org/viewtopic-t-449718.html |
|
Back to top |
|
|
dmvianna l33t
Joined: 22 Mar 2004 Posts: 742 Location: Down Underland
|
Posted: Sun Apr 02, 2006 10:14 pm Post subject: |
|
|
Well, you can either use the Kernel driver or the dri.freedesktop.org snapshots, as I mentioned before. I reckon xorg-x11 won't have everything you need. Correct me if I'm wrong. _________________ Proprietary is theft. Pierre-Joseph Proudhon, if he had a chance
Powered by a MacBook Pro |
|
Back to top |
|
|
dark.elixir n00b
Joined: 03 Jan 2005 Posts: 13
|
Posted: Sun Apr 02, 2006 10:27 pm Post subject: |
|
|
Yo know what? I think you're right, Since the last kernel is still installed I found out that both modules dri.ko and savage.ko where inside /lib/modules/2.6.15-gentoo.elixir/x11-drm. Which is the directory used by the DRI snapshot which I installed some months ago.
But what shold I do?
1. Should I use the Kernel Module available in the Kernel Source? (2.6.16-r1)
2. Should I download a DRI snapshot which is already compiled and will also overwrite the Xorg drivers? (I mean /usr/lib/xorg/modules/dri/savage_dri.so and /usr/lib/xorg/modules/drivers/savage_drv.so)
Thanks for the help. |
|
Back to top |
|
|
dmvianna l33t
Joined: 22 Mar 2004 Posts: 742 Location: Down Underland
|
Posted: Sun Apr 02, 2006 10:54 pm Post subject: |
|
|
It depends of how much hassle can you stand. Snapshots rarely did work for me in the 6.8.x days, and they're obviously not as stable as the kernel source drivers. In order to know which snapshot version does work in your system, you might have to test many. I used to do that before the xorg-6.9/7.0 driver came to be that perfection. So no more adventures for me.
And of course, it might do good to check what xorg modules versions the folks at dri.freedesktop.org are using, or you might end up testing uncompatible stuff. Given that now xorg has many building blocks which have independent versioning, this will give you an extra level of difficulty.
Short answer: use the kernel driver. _________________ Proprietary is theft. Pierre-Joseph Proudhon, if he had a chance
Powered by a MacBook Pro |
|
Back to top |
|
|
dark.elixir n00b
Joined: 03 Jan 2005 Posts: 13
|
Posted: Sun Apr 02, 2006 11:20 pm Post subject: |
|
|
Well, I've just installed the latest snapshot "savage-20060330-linux.i386.tar.bz2" and it worked pretty well. If I find any problem I'll use the module provided by the kernel anyway.
By the way:
Code: |
brownhawk elixir # cat /var/log/Xorg.0.log | grep DMA
(**) SAVAGE(0): Using AGP DMA
(WW) SAVAGE(0): DMA is not supported on SuperSavages.
(**) SAVAGE(0): DMA disabled
|
DMA is not supported on SuperSavages?!!!!! (S3 Inc. SuperSavage IX/C SDR to be more specific ) What does it mean? (isn't the driver finished yet?) |
|
Back to top |
|
|
dmvianna l33t
Joined: 22 Mar 2004 Posts: 742 Location: Down Underland
|
Posted: Sun Apr 02, 2006 11:49 pm Post subject: |
|
|
Glad it worked for you. Since the stable stuff works for me, I became more conservative. _________________ Proprietary is theft. Pierre-Joseph Proudhon, if he had a chance
Powered by a MacBook Pro |
|
Back to top |
|
|
hoyanf Tux's lil' helper
Joined: 27 Aug 2005 Posts: 80 Location: Malaysia
|
Posted: Sun Apr 09, 2006 6:51 pm Post subject: |
|
|
Got mine working here too...
my glxinfo :-
name of display: :0.0
display: :0 screen: 0
direct rendering: Yes
server glx vendor string: SGI
server glx version string: 1.2
my glxgears:-
1035 frames in 5.0 seconds = 206.990 FPS
1020 frames in 5.0 seconds = 203.927 FPS
1019 frames in 5.0 seconds = 203.534 FPS
1018 frames in 5.0 seconds = 203.449 FPS
1016 frames in 5.0 seconds = 203.020 FPS
my xorg.conf :-
Option "BusType" "AGP"
Option "HWCursor" "True"
# Option "NoAccel" "False"
# Option "LCDClock" "14.318mhz"
Option "UseBIOS" "False"
Option "AGPMode" "4"
Option "AGPSize" "16"
Option "DmaMode" "Any"
Option "DmaType" "AGP"
Identifier "Card0"
Driver "savage"
VendorName "S3 Inc."
BoardName "VT8375 [ProSavage8 KM266/KL266]"
BusID "PCI:1:0:0"
Laptop : -
Twinhead efio! 125A
Athlon-M 1400+
512MB DDR _________________ WorkPC -> Xeon x3440 | Gigabyte P55-UD6 | 16GB DDR3 | HDD1 - 600GB | HDD2 - 500 GB | HDD3 - 1TB
HomePC -> Xeon x3320 | Gigabyte GA-EP45-UD3P | 8GB DDR2 | HDD1 - 500GB | HDD2 - 1TB |
|
Back to top |
|
|
vitamin n00b
Joined: 05 May 2006 Posts: 37
|
Posted: Mon May 15, 2006 11:16 am Post subject: |
|
|
I'm sorry that I post a new reply to this topic when it's solved already but there's one thing I don't get it. I got Savage IX (IBM ThinkPad T22) and I'm running xorg 7.0 and no-sources-2.6.17-rc3-no2 (I got dri module compiled as a kernel module - I've never tried these snapshots from dri.freedesktop.org). And the problem is that I can't get this Savage card to run as AGP card - I mean these options in xorg.conf file. When I set e.g:
Option "DmaMode" "None"
Option "DmaType" "AGP"
then glxgears won't even run - I got only a message 'killed' and that's all. And glxinfo is saying me that dri is enabled but can't find neither .drirc nor /etc/drirc
But when I set this card as a PCI card (by adding BusID "PCI:1:0:0" and commenting the above options) then everything is fine - glxgears gives me some lousy 240FPS
Can anyone help me with setting this card as a AGP card and make glxgears rolling fast as hell.
I'll be grateful for any help. |
|
Back to top |
|
|
Kimmo_S n00b
Joined: 10 Apr 2004 Posts: 45
|
Posted: Wed May 31, 2006 2:30 pm Post subject: |
|
|
Please give me step by step instructions here. How do I get Savage and DRI working at all with Thinkpad T22?
The card is Savage/IX-MV, not any super or any other savage.
1. Should I enable or disable DRM in kernel 2.6.16 config?
2. Should I enable or disable Savage DRM driver in kernel config?
3. Should I use x11-drm or not? The newest version seems to be 20051223
4. Should I use dri.freedesktop.org snapshots?
5. Which date / version of the Freedesktop snapshots?
6. Btw. has the development stopped, since 20060403 is the newest set of snapshots?
7. I should configure it to use the card via PCI, am I correct?
8. What else should I take into account?
This far all I've got is either no acceleration, lockups on X startup, lockups on running a program, or software rendering. |
|
Back to top |
|
|
bjd Tux's lil' helper
Joined: 10 Aug 2005 Posts: 127 Location: Loughborough, UK
|
Posted: Wed May 31, 2006 2:43 pm Post subject: |
|
|
Kimmo_S wrote: | Please give me step by step instructions here. How do I get Savage and DRI working at all with Thinkpad T22?
The card is Savage/IX-MV, not any super or any other savage.
|
I have the same card in my Toshiba 4200, managed to get it working a couple of weeks ago
Quote: |
1. Should I enable or disable DRM in kernel 2.6.16 config?
2. Should I enable or disable Savage DRM driver in kernel config?
3. Should I use x11-drm or not? The newest version seems to be 20051223
|
Im pretty sure I disabled all the DRM stuff in the kernel and used x11-drm. I will check this when i get back later.
Quote: |
4. Should I use dri.freedesktop.org snapshots?
5. Which date / version of the Freedesktop snapshots?
6. Btw. has the development stopped, since 20060403 is the newest set of snapshots?
|
Didn't try the snapshots
Quote: |
7. I should configure it to use the card via PCI, am I correct?
8. What else should I take into account?
|
I had to force it into PCI mode in xorg.conf, going for AGP broke everything. Ill post the relevant parts of my conf later.
Glxinfo says dri is enabled, glxgears give me ~300fps and, most importantly, I can play tuxracer. _________________ Top Tips in life, #7
"Olympic athletes. Disguise the fact that you've taken steroids by running a bit slower." |
|
Back to top |
|
|
Kimmo_S n00b
Joined: 10 Apr 2004 Posts: 45
|
Posted: Wed May 31, 2006 4:34 pm Post subject: |
|
|
Amaziwonderfantafulltasticing, I got it working and have some 390fps in glxgears.
No DRM in kernel, x11-drm version 20051223, Device section below. Not sure which lines are necessary. First problem if I change anything is that glxgears will hard-lock the whole machine.
Section "Device"
Identifier "Savaagi"
Driver "savage"
BusID "PCI:1:0:0"
VideoRam 8192
Option "DmaMode" "None"
Option "ForcePCImode"
Option "BusType" "PCI"
Option "sw cursor" "on"
EndSection |
|
Back to top |
|
|
bjd Tux's lil' helper
Joined: 10 Aug 2005 Posts: 127 Location: Loughborough, UK
|
Posted: Wed May 31, 2006 7:07 pm Post subject: |
|
|
Just checked, I too have the 20051223 version of x11-drm, no DRM in the kernel, and a similar xorg.conf. In case it helps anyone else heres mine:
Code: |
Section "Device"
Identifier "**S3 Savage (generic)"
Driver "savage"
Option "AGPSize" "16"
Option "AGPMode" "4"
Option "DmaType" "AGP"
Option "DmaMode" "None"
Option "BusType" "PCI"
EndSection
|
I also needed this at the end to allow user access:
Code: |
Section "DRI"
Mode 0666
EndSection
|
_________________ Top Tips in life, #7
"Olympic athletes. Disguise the fact that you've taken steroids by running a bit slower." |
|
Back to top |
|
|
lunchlady55 n00b
Joined: 03 Oct 2005 Posts: 12
|
Posted: Tue Aug 01, 2006 8:15 pm Post subject: |
|
|
I'm using an IBM Thinkpad T20, with an 8MB Savage/IX.
Even with the DRI successfully loaded, I get the following error:
Code: |
forrester ~ # glxinfo
name of display: :0.0
libGL warning: 3D driver claims to not support visual 0x42
display: :0 screen: 0
direct rendering: Yes
server glx vendor string: SGI
server glx version string: 1.2
server glx extensions:
...
visual x bf lv rg d st colorbuffer ax dp st accumbuffer ms cav
id dep cl sp sz l ci b ro r g b a bf th cl r g b a ns b eat
----------------------------------------------------------------------
0x22 16 tc 0 16 0 r y . 5 6 5 0 0 16 0 0 0 0 0 0 0 None
0x23 16 tc 0 16 0 r . . 5 6 5 0 0 16 0 0 0 0 0 0 0 None
0x24 16 tc 0 16 0 r y . 5 6 5 0 0 16 8 0 0 0 0 0 0 Slow
0x25 16 tc 0 16 0 r . . 5 6 5 0 0 16 8 0 0 0 0 0 0 Slow
0x26 16 tc 0 16 0 r y . 5 6 5 0 0 16 0 16 16 16 0 0 0 Slow
0x27 16 tc 0 16 0 r . . 5 6 5 0 0 16 0 16 16 16 0 0 0 Slow
0x28 16 tc 0 16 0 r y . 5 6 5 0 0 16 8 16 16 16 0 0 0 Slow
0x29 16 tc 0 16 0 r . . 5 6 5 0 0 16 8 16 16 16 0 0 0 Slow
0x42 32 tc 0 32 0 r . . 8 8 8 8 0 0 0 0 0 0 0 0 0 Ncon
|
Anyone know what's going on? Glxgears opens a window, but there's no gears in it!
: (
I'm using 2.6.16 savage & dri kernel modules, and Xorg 7.1 |
|
Back to top |
|
|
|