LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   LinuxQuestions.org Member Success Stories (https://www.linuxquestions.org/questions/linuxquestions-org-member-success-stories-23/)
-   -   "Cut the Gordian Knot" of ATI (https://www.linuxquestions.org/questions/linuxquestions-org-member-success-stories-23/cut-the-gordian-knot-of-ati-271581/)

SlackerLX 12-29-2004 01:08 PM

"Cut the Gordian Knot" of ATI
 
I must share this experience with forum!
Today my son, who's M$ user for the first time asked me to help him with Slackware installation. I also noticed that he already had SuSE 9.1 installed and he didn't mind it to be removed. I don't know what struck me but I backed up XF86Config from SuSE on diskette. After installing Slackware 10 I tested that everything worked an suddenly I saw the displeased face of kiddo because of 3D rendering.
Everybody, who has ATI, knows that it works miracles under Windoze, but on Slack this issue is really pain in the a##!:mad:
I definitely didn't want to look idiotic before my son, so I told him to go for a walk and come back in half an hour. (He knows I've been using *nix systems for 4 years now.):scratch:
THE SOLUTION PRESENTED ITSELF!!!
1. I removed xorg.conf from /etc/X11 and replaced it with XF86Config from SuSE 9.1
2. Renamed XF86Config to xorg.conf
3. Edited newly "created" xorg.conf for the mouse settings, changing Option "explorerps/2" to "IMPS/2" and editing "Device" "/dev/input/mice" to "/dev/mouse"
I saved my handywork and Miracle!; it loaded up after reboot WITH ATI 3D acceleration enabled!!!:confused: :D
I checked glxinfo and saw that direct renderind is enabled.
I simply could not believe my eyes. Test on small window gives
66348 frames in 5.0 seconds = 13269.600 FPS
65022 frames in 5.0 seconds = 13004.400 FPS

Test on fullscreen gives
2449 frames in 5.0 seconds = 889.800 FPS
Here is the shot as proof:p because I had some people making comments about the credibility of this post:
http://eo.yifan.net/users/t/wdesborough/Screenshot.png
Test on Tuxracer gives roughly 1000 FPS
http://eo.yifan.net/users/t/wdesborough/tuxshot.ppm
I felt like jackass:scratch:
This means that all these years I simply didn't know how to properly edit X server. It appears that Slack comes with already installed excellent ATI drivers with 3D support.:scratch: And there is only matter of proper editing and the ant in screensaver "Antspotlight" doesn't crawl, it runs like crazy:D
Here is the lesson for the master. Solution sometimes can be really simple and taken from history books. You CAN "Cut the Gordian Knot" as did once Alexander The Great!!!

P.S. And again I must emphasize my point here. I posted that report of mine not to be judged for credibility but to share my experience.

stef52 12-29-2004 03:02 PM

So you're using DRI. I must say those framerates seem unreal. Did you run QuakeIII, how many FPS on 1024x768 (full detail and quality options)??? What HW configuration do you have?? I'm using R9700Pro on 2.6.9 kernel with fglrx 3.14.6 and I'm very satisfied with performance but it is not close to what you have.

SlackerLX 12-29-2004 03:12 PM

Usually I do not use Slack as Gamestation, But I could give a try. How do you want me to try my configuration? Now, after all that, I'm willing to take any shot:p

egag 12-29-2004 04:37 PM

hi there,

can you post the " device -section " of that x-config-file ?

egag

SlackerLX 12-29-2004 04:43 PM

Here
Code:

# /.../
# SaX generated XFree86 config file
# Created on: 2004-12-29T06:06:34+0200.
#
# Version: 4.8
# Contact: Marcus Schaefer <sax@suse.de>, 2002
#
# Automatically generated by [ISaX] (4.8)
# PLEASE DO NOT EDIT THIS FILE!
#

Section "Files"
  FontPath    "/usr/X11R6/lib/X11/fonts/misc:unscaled"
  FontPath    "/usr/X11R6/lib/X11/fonts/local"
  FontPath    "/usr/X11R6/lib/X11/fonts/75dpi:unscaled"
  FontPath    "/usr/X11R6/lib/X11/fonts/100dpi:unscaled"
  FontPath    "/usr/X11R6/lib/X11/fonts/Type1"
  FontPath    "/usr/X11R6/lib/X11/fonts/URW"
  FontPath    "/usr/X11R6/lib/X11/fonts/Speedo"
  FontPath    "/usr/X11R6/lib/X11/fonts/PEX"
  FontPath    "/usr/X11R6/lib/X11/fonts/cyrillic"
  FontPath    "/usr/X11R6/lib/X11/fonts/latin2/misc:unscaled"
  FontPath    "/usr/X11R6/lib/X11/fonts/latin2/75dpi:unscaled"
  FontPath    "/usr/X11R6/lib/X11/fonts/latin2/100dpi:unscaled"
  FontPath    "/usr/X11R6/lib/X11/fonts/latin2/Type1"
  FontPath    "/usr/X11R6/lib/X11/fonts/latin7/75dpi:unscaled"
  FontPath    "/usr/X11R6/lib/X11/fonts/baekmuk:unscaled"
  FontPath    "/usr/X11R6/lib/X11/fonts/japanese:unscaled"
  FontPath    "/usr/X11R6/lib/X11/fonts/kwintv"
  FontPath    "/usr/X11R6/lib/X11/fonts/truetype"
  FontPath    "/usr/X11R6/lib/X11/fonts/uni:unscaled"
  FontPath    "/usr/X11R6/lib/X11/fonts/CID"
  FontPath    "/usr/X11R6/lib/X11/fonts/ucs/misc:unscaled"
  FontPath    "/usr/X11R6/lib/X11/fonts/ucs/75dpi:unscaled"
  FontPath    "/usr/X11R6/lib/X11/fonts/ucs/100dpi:unscaled"
  FontPath    "/usr/X11R6/lib/X11/fonts/hellas/misc:unscaled"
  FontPath    "/usr/X11R6/lib/X11/fonts/hellas/75dpi:unscaled"
  FontPath    "/usr/X11R6/lib/X11/fonts/hellas/100dpi:unscaled"
  FontPath    "/usr/X11R6/lib/X11/fonts/hellas/Type1"
  FontPath    "/usr/X11R6/lib/X11/fonts/misc/sgi:unscaled"
  FontPath    "/usr/X11R6/lib/X11/fonts/xtest"
  FontPath    "/opt/kde3/share/fonts"
  InputDevices "/dev/ttyS0"
  InputDevices "/dev/ttyS1"
  InputDevices "/dev/ttyS2"
  InputDevices "/dev/ttyS3"
  InputDevices "/dev/ttyS4"
  InputDevices "/dev/ttyS5"
  InputDevices "/dev/ttyS6"
  InputDevices "/dev/ttyS7"
  InputDevices "/dev/ttyS8"
  InputDevices "/dev/psaux"
  InputDevices "/dev/logibm"
  InputDevices "/dev/sunmouse"
  InputDevices "/dev/atibm"
  InputDevices "/dev/amigamouse"
  InputDevices "/dev/atarimouse"
  InputDevices "/dev/inportbm"
  InputDevices "/dev/gpmdata"
  InputDevices "/dev/mouse"
  InputDevices "/dev/usbmouse"
  InputDevices "/dev/adbmouse"
  InputDevices "/dev/input/mice"
  InputDevices "/dev/input/event0"
  InputDevices "/dev/pointer0"
  InputDevices "/dev/pointer1"
  InputDevices "/dev/pointer2"
  InputDevices "/dev/pointer3"
EndSection

Section "ServerFlags"
  Option      "AllowMouseOpenFail"
  Option      "RandR" "on"
EndSection

Section "Module"
  Load        "v4l"
  Load        "extmod"
  Load        "type1"
  Load        "freetype"
  Load        "dbe"
  Load        "dri"
  Load        "speedo"
  Load        "glx"
EndSection

Section "InputDevice"
  Driver      "Keyboard"
  Identifier  "Keyboard[0]"
  Option      "Protocol" "Standard"
  Option      "XkbLayout" "us"
  Option      "XkbModel" "pc104"
  Option      "XkbRules" "xfree86"
EndSection


Section "InputDevice"
  Driver      "mouse"
  Identifier  "Mouse[1]"
  Option      "Buttons" "5"
  Option      "Device" "/dev/mouse"
#  Option      "Name" "Autodetection"
  Option      "Protocol" "IMPS/2"
#  Option      "Vendor" "Sysp"
  Option      "ZAxisMapping" "4 5"
EndSection


Section "Monitor"
  Option      "CalcAlgorithm" "CheckDesktopGeometry"
  HorizSync    28-71
  Identifier  "Monitor[0]"
  ModelName    "SYNCMASTER 793DF/793MB"
  VendorName  "SAMSUNG"
  VertRefresh  50-160
  UseModes    "Modes[0]"
EndSection


Section "Modes"
  Identifier  "Modes[0]"
  Modeline        "1024x768" 95.50 1024 1072 1184 1376 768 769 772 807
  Modeline        "800x600" 36.88 800 832 912 1024 600 601 604 621
  Modeline        "800x600" 44.13 800 840 920 1040 600 601 604 624
  Modeline        "800x600" 51.73 800 840 928 1056 600 601 604 628
  Modeline        "800x600" 58.73 800 840 928 1056 600 601 604 632
  Modeline        "800x600" 66.71 800 848 936 1072 600 601 604 635
  Modeline        "800x600" 73.98 800 848 936 1072 600 601 604 639
  Modeline        "800x600" 74.67 800 848 936 1072 600 601 604 639
  Modeline        "640x480" 23.06 640 656 720 800 480 481 484 497
  Modeline        "640x480" 27.74 640 664 728 816 480 481 484 500
  Modeline        "640x480" 32.64 640 672 736 832 480 481 484 503
  Modeline        "640x480" 36.97 640 672 736 832 480 481 484 505
  Modeline        "640x480" 42.22 640 680 744 848 480 481 484 508
  Modeline        "640x480" 46.80 640 680 744 848 480 481 484 511
  Modeline        "640x480" 51.43 640 680 744 848 480 481 484 514
  Modeline        "640x480" 57.18 640 680 752 864 480 481 484 517
  Modeline        "640x480" 60.09 640 680 752 864 480 481 484 519
EndSection


Section "Screen"
  DefaultDepth 24
  SubSection "Display"
    Depth      15
    Modes      "1024x768"
  EndSubSection
  SubSection "Display"
    Depth      16
    Modes      "1024x768"
  EndSubSection
  SubSection "Display"
    Depth      24
    Modes      "1024x768" "800x600" "640x480"
  EndSubSection
  SubSection "Display"
    Depth      32
    Modes      "1024x768"
  EndSubSection
  SubSection "Display"
    Depth      8
    Modes      "1024x768"
  EndSubSection
  Device      "Device[0]"
  Identifier  "Screen[0]"
  Monitor      "Monitor[0]"
EndSection


Section "Device"
  BoardName    "RV250 If"
  BusID        "3:0:0"
  Driver      "radeon"
  Identifier  "Device[0]"
  Screen      0
  Option      "Rotate" "off"
  VendorName  "ATI"
EndSection


Section "ServerLayout"
  Identifier  "Layout[all]"
  InputDevice  "Keyboard[0]" "CoreKeyboard"
  InputDevice  "Mouse[1]" "CorePointer"
  Option      "Clone" "off"
  Option      "Xinerama" "off"
  Screen      "Screen[0]"
EndSection

Section "DRI"
    Group      "video"
    Mode      0660
EndSection


stef52 12-29-2004 05:12 PM

@SlackerLX

Use Qake3. You need Windows Quake III installation disc, and downlod linux binaries from id ftp (1.32b version). Start script and after it is done copy required files from disc. Run it in console as "quake3". You can set it up in "System" and "Game options" menues. Use 1024x768 and maximum quality options (you'll figure it out). Run console (QuakeIII console) by AltGR+ 1 (on alphanumeric part of the keyboard). Put in these lines:
\com_hunkMegs 256 (half of the ram usually)
\com_maxfps 500
\cg_drawFPS 1
\cg_fov 118 (this is an example and is not required if you're not used to fov)

Restart game and run few maps. Pay attention to the average FPS in upper right corner of the screen.

Run the timedemo:
\timedemo 1
\demo four

After it is done run the console and read the average FPS in the last row of the output.

BTW, thanks for the conf file.

SlackerLX 12-29-2004 05:17 PM

So. first idea is to get Quake III Installation disk:(
That can prove to be challenge. Because I do not usually play, Last game I played was Fallout 2. It was long ago, right;)

speedbump 12-29-2004 11:12 PM

The section of your xorg.conf file you posted says your using a radeon 9000 (that's the BoardName "RV250 If" in the Section "DEVICE") which can make use of the FOSS radeon driver that's included in XORG/XFREE. Anything better than a Radeon 9200 (The Rv300, R300 or better) *may* work with the FOSS driver, but acceleration won't.

I find 13,000 fps to be fantastic. If you're getting that kind of framerate out of a Radeon 9000, I want to see what my 9600XT will do.... I currently get (what I thought was) a respectable 1924FPS using ATI's driver w/int agpgart, 1280x1024x24 resolution, 2.8HT Pentium, 1GBDDR400.

3D rendering can be affected by *ALOT* of factors, some of which are screen size, colour depth, processor speed, memory, agpgart used on MB or video card?

So, question time:
1. What are your system specs? (nothing in-depth, processor & memory?)
2. Screen resolution & colour depth at the time of your test
3. Which Radeon are you running?
4. How stable is your system?

anything else you can think of?

I have to take this with a grain of salt untill it can be independantly verified....

SlackerLX 12-29-2004 11:21 PM

Nothing fancy actually:

Asus A7N8X - Deluxe
AMD Athlon XP 2400+ Overclocked to 2600+
512MB RAM of Corsair
ATI Saphire Radeon Atlantis 9000 Pro
SB Live! 5.1
60GB ATA
80GB SATA

I do not remember when I shut my system last time.
Something funny actually happens when I run Tuxracer for testing. It shows infinite framerate
http://eo.yifan.net/users/t/wdesborough/tuxshot.ppm

speedbump 12-29-2004 11:39 PM

Well. I got some time on friday for some experimentation...

I'll "ghost" my box, install SUSE 9.1 with an radeon 9000 I've got laying around, then install slack 10-current.

I *want* to see this!

SlackerLX 12-29-2004 11:42 PM

Good Luck!
I'm just so happy i have it now!

SlackerLX 12-29-2004 11:44 PM

And almost forgot! I run kernel 2.4 on Slackware so no dropline for me

veritas 12-30-2004 12:17 AM

I wonder if this will work with a 9200SE PCI card...

SlackerLX 12-30-2004 12:24 AM

According to this thread which we had with egag it must
http://www.linuxquestions.org/questi...63#post1376563

slackMeUp 12-30-2004 12:46 AM

Hey there,

Good to hear... As a proud owner of an ATi card (9000Pro) I know how it can be a bitch to setup... so after a few installs I just backed up my config file and stored it on my external drive...

I use the fglrx drivers (provided by ATi, not the ones that come with slackware) so the config file does not change much between distros...

In fact, I backup almost all my config files... just for reference -- comes in handy every now and then.

So yah, good to hear that you are in 3D bliss.


All times are GMT -5. The time now is 03:55 PM.