View unanswered posts    View active topics

All times are UTC - 6 hours





Post new topic Reply to topic  [ 7 posts ] 
Print view Previous topic   Next topic  
Author Message
Search for:
 Post subject: ATI TV out R5E50
PostPosted: Sun Jan 14, 2007 7:59 am 
Offline
Joined: Sun Jan 01, 2006 3:26 pm
Posts: 46
Location: Raleigh, NC
I have two systems with ATI video cards, one my MBE and the other a FE.
Cards are the X800 and X300. Installing R5E50 was wonderful with Xorg. I didn't even have to connect a monitor on the FE system that in normal operation only has a TV! Thank all for the wonderful work on KnoppMyth.

That said I was unable to get the built in Xorg driver to give the performance required to playback HD content on my FE. Specs:

FE:
Intel 2.8GHz CPU
ATI X300 (AGP) 128MB
1GB RAM

I reverted back to contaminating the system with the drivers from ATI that worked on R5D7.

Before I get into the how, maybe now is a good time to write down the ATI driver history that resides in my swiss cheese memory. It's fairly simple.

8.32.5 Latest driver (as I write this). Overlay problem, effect is that the overlay is stretched 2x tall (maybe wide also) and you can only see a fraction of the played back content on the TV. TV image adjustment does work.
.
.
8.27.10 Newest driver with a working overlay. TV image adjust does not work, entries in xorg.conf are ignored. This is what I use as the default image position is OK on my TV.
.
.
8.0.20 Last reported version that had a overlay and TV image adjustment features working. I did not try to get this working on R5E50.


I have also tried many versions in between the above and the two major features I track fail/work at various points in between the 3 versions I have identified.

Sorry for the diversion, on to the how. This is a sober monkey set of instructions as I have left out things like ‘su’ (do all this as root), how to get the files needed to your KM system and how to edit files.

1) Get the driver from ATI. I won't bother to post a link, the ATI/AMD site is 'being defined'. It is there, poke around and you'll find it and all the other versions. File name:
ati-driver-installer-8.27.10-x86.run

2) Unfortunately 8.27.10 doesn't have a pre-prepared driver for the version of Xorg in R5E50. Get the kernel sources. The way I did it compiled from several previous posts:

Code:

wget ftp://knoppmyth.net/R5/linux-source-2.6.18-chw-13_2.6.18-chw-13-10.00.Custom_all.deb
dpkg -i linux-source-2.6.18-chw-13_2.6.18-chw-13-10.00.Custom_all.deb
cd /usr/src
tar xjvf linux-source-2.6.18-chw-13.tar.bz2
cd /usr/src/linux-source-2.6.18-chw-13
cd $cp /boot/config-2.6.18-chw-13 .config
make  # takes a long time
cd /usr/src
rm linux
ln -s linux-source-2.6.18-chw-13 linux
cd /lib/modules/2.6.18-chw-13  # I had do to this for something else
rm build
ln -s /usr/src/linux build
ln -s /usr/src/linux source



3) The ATI installer needs a library from gcc-3.3. I am sure there is an elegant way to do this, but here's what worked for me:

Code:

wget http://http.us.debian.org/debian/pool/main/g/gcc-3.3/libstdc++5_3.3.5-13_i386.deb
dpkg -i libstdc++5_3.3.5-13_i386.deb
apt-get update  # had to ctrl-c and run again two or three times
apt-get -f install



4) No that's still not enough to make it work. You’ll never guess...there are bugs in the ATI 8.27.10 package. Here's how to fix them:

Code:

./ati-driver-installer-8.27.10-x86.run --keep
# Answer yes to defaults and agree to all
# Note the error at the end.  The install didn’t work, but --keep left the build files behind

cd /lib/modules/2.6.18-chw-13/build/include/linux/
ln -s utsrelease.h version-ati.h



I just manually edited /lib/modules/fglrx/build_mod/firegl_public.c to add the '+' items at the appropriate places.

Code:

--- firegl_public.c~2.6.18-fix 2006-08-06 14:08:48.000000000 +0200
+++ firegl_public.c 2006-08-06 14:08:48.000000000 +0200
@@ -23,6 +23,9 @@

// ================================================== ==========
#include <linux/version.h>
+#ifndef UTS_RELEASE
+#include <linux/utsrelease.h>
+#endif
#ifdef MODVERSIONS
#if LINUX_VERSION_CODE < KERNEL_VERSION(2,5,71)
#include <linux/modversions.h>
@@ -208,6 +211,10 @@ _syscall3( int, modify_ldt, int, func, v
#define preempt_enable()
#endif

+#ifndef VM_SHM
+#define VM_SHM (0)
+#endif
+
// ================================================== ==========
/* globals */



5) We’re getting closer, time to build and install.

Code:

cd /lib/modules/fglrx/build_mod
./make.sh
cd ..
./make_install.sh



6) Time to update xorg.conf – ONLY FOR TV OUT (disconnect all other monitors before reboot), and very specifically a 4:3 TV if you need something different, you’ll need to do some research and use appropriate settings. You could do this with aticonfig, however I prefer not to as you are then left with two different sets of ‘screen’ definitions in xorg.conf. This can be maddening when you are making minor tweaks and accidentally make the chages to the non-active ‘screen’. Edit /etc/X11/xorg.conf

Under ‘Section “Monitor”’ change the following lines to:
Code:
HorizSync    28.0 - 31.5
VertRefresh  60.0 - 60.0


Under ‘Section “Device”’ make it look like this:
Code:
#       Driver      "ati"
#       VendorName  "All"
#       BoardName   "All"
#       BusID       "PCI:1:0:0"
        Identifier  "Card0"
        Driver      "fglrx"
        VendorName  "ATI"
        BoardName   "X300/X500"
        Option      "sw_cursor"
        #Option     "hw_cursor"
        #Option     "NoAccel"
        #Option     "ShowCache"
        #Option     "ShadowFB"
        #Option     "UseFBDev"
        #Option     "Rotate"
        Option      "VideoOverlay" "on"
        Option      "OpenGLOverlay" "off"


Under ‘Section “Screen”’
Code:
.
.
       DefaultDepth     24
.
.
        SubSection "Display"
                Depth     24
                Modes    "1024x768" "800x600" "640x480"
        EndSubSection
.
.


7) Reboot. If no X, check /var/log/Xorg.0.log and see what’s not working

Hope this helps someone, GOOD LUCK!!!

***********************************************************

Well, wasn’t that fun. Why do I keep these ATI cards around instead of ending the pain and getting an Nvida 5200 or like? Not sure at this point.


Top
 Profile  
 
PostPosted: Sun Feb 11, 2007 6:27 am 
Offline
Joined: Fri Apr 28, 2006 10:19 am
Posts: 3
Hi,

I followed the above instructions and this did successfully get the ATI (fglrx) driver to display the GUI on my TV, however this is giving me the 2x tall overlay issue.

I did try some other suggestions first ie. using apt-get to install fglrx drivers, however I did remove these packages before running through this process.

Xorg log with relevant info is below:

(II) fglrx(0): [drm] DRM interface version 1.0
(II) fglrx(0): [drm] created "fglrx" driver at busid "PCI:1:0:0"
(II) fglrx(0): [drm] added 8192 byte SAREA at 0x8000
(II) fglrx(0): [drm] mapped SAREA 0x8000 to 0xb76f1000
(II) fglrx(0): [drm] framebuffer handle = 0x9000
(II) fglrx(0): [drm] added 1 reserved context for kernel
(II) fglrx(0): DRIScreenInit done
(II) fglrx(0): Kernel Module Version Information:
(II) fglrx(0): Name: fglrx
(II) fglrx(0): Version: 8.27.10
(II) fglrx(0): Date: Jul 27 2006
(II) fglrx(0): Desc: ATI FireGL DRM kernel module
(II) fglrx(0): Kernel Module version matches driver.
(II) fglrx(0): Kernel Module Build Time Information:
(II) fglrx(0): Build-Kernel UTS_RELEASE: 2.6.18-chw-13
(II) fglrx(0): Build-Kernel MODVERSIONS: no
(II) fglrx(0): Build-Kernel __SMP__: yes
(II) fglrx(0): Build-Kernel PAGE_SIZE: 0x1000
(II) fglrx(0): [drm] register handle = 0x0000a000
(EE) fglrx(0): [agp] unable to acquire AGP, error "xf86_ENODEV"
(EE) fglrx(0): cannot init AGP
(II) fglrx(0): [drm] removed 1 reserved context for kernel
(II) fglrx(0): [drm] unmapping 8192 bytes of SAREA 0x8000 at 0xb76f1000
(WW) fglrx(0): ***********************************************
(WW) fglrx(0): * DRI initialization failed! *
(WW) fglrx(0): * (maybe driver kernel module missing or bad) *
(WW) fglrx(0): * 2D acceleraton available (MMIO) *
(WW) fglrx(0): * no 3D acceleration available *
(WW) fglrx(0): ********************************************* *
(II) fglrx(0): FBADPhys: 0xe8000000 FBMappedSize: 0x08000000
(==) fglrx(0): Write-combining range (0xe8000000,0x8000000)
(II) fglrx(0): FBMM initialized for area (0,0)-(832,8191)
(II) fglrx(0): FBMM auto alloc for area (0,0)-(832,600) (front color buffer - assumption)
(==) fglrx(0): Backing store disabled
(==) fglrx(0): Silken mouse enabled
(**) fglrx(0): DPMS enabled
(II) fglrx(0): Using XFree86 Acceleration Architecture (XAA)
Screen to screen bit blits
Solid filled rectangles
Solid Horizontal and Vertical Lines
Offscreen Pixmaps
Setting up tile and stipple cache:
32 128x128 slots
28 256x256 slots
13 512x512 slots
(II) fglrx(0): Acceleration enabled
(II) fglrx(0): Direct rendering disabled
(**) fglrx(0): Using software cursor
(II) fglrx(0): Largest offscreen area available: 832 x 7591
(II) Loading extension FGLRXEXTENSION
(II) Loading extension ATITVOUT
(==) RandR enabled

Any help on this would be greatly appreciated.

BTW I have a Radeon 9600.

Regards,


Richard


Top
 Profile  
 
 Post subject:
PostPosted: Wed Feb 14, 2007 8:07 pm 
Offline
Joined: Sun Jan 01, 2006 3:26 pm
Posts: 46
Location: Raleigh, NC
Keep in mind I have not done this myself on with a Radeon older than the X300. The 2x ovlay is the exact symptom I get with drivers newer than 8.27.10.

The same section from my Xorg log:
Code:
(II) fglrx(0): [drm] DRM interface version 1.0
(II) fglrx(0): [drm] created "fglrx" driver at busid "PCI:1:0:0"
(II) fglrx(0): [drm] added 8192 byte SAREA at 0x2000
(II) fglrx(0): [drm] mapped SAREA 0x2000 to 0xb7784000
(II) fglrx(0): [drm] framebuffer handle = 0x3000
(II) fglrx(0): [drm] added 1 reserved context for kernel
(II) fglrx(0): DRIScreenInit done
(II) fglrx(0): Kernel Module Version Information:
(II) fglrx(0):     Name: fglrx
(II) fglrx(0):     Version: 8.27.10
(II) fglrx(0):     Date: Jul 27 2006
(II) fglrx(0):     Desc: ATI FireGL DRM kernel module
(II) fglrx(0): Kernel Module version matches driver.
(II) fglrx(0): Kernel Module Build Time Information:
(II) fglrx(0):     Build-Kernel UTS_RELEASE:        2.6.18-chw-13
(II) fglrx(0):     Build-Kernel MODVERSIONS:        no
(II) fglrx(0):     Build-Kernel __SMP__:            yes
(II) fglrx(0):     Build-Kernel PAGE_SIZE:          0x1000
(II) fglrx(0): [drm] register handle = 0x00004000
(II) fglrx(0): [agp] Mode=0x1f000217 bridge: 0x8086/0x1a30
(II) fglrx(0): [agp] AGP v1/2 disable mask 0x00000000
(II) fglrx(0): [agp] AGP v3 disable mask   0x00000000
(II) fglrx(0): [agp] enabling AGP with mode=0x1f000314
(II) fglrx(0): [agp] Remapping MC AGP space (new MCAGPBase = 0xe8000000)
(II) fglrx(0): [agp] AGP protocol is enabled for graphics board. (cmd=0x1f00031$
(II) fglrx(0): [agp] graphics chipset has AGP v2.0
(II) fglrx(0): [drm] ringbuffer size = 0x00100000 bytes
(II) fglrx(0): [drm] DRM buffer queue setup: nbufs = 100 bufsize = 65536
(II) fglrx(0): [drm] texture shared area handle = 0x00008000
(II) fglrx(0): shared FSAAScale=1
(II) fglrx(0): DRI initialization successfull!
.
.
.
(II) fglrx(0): Acceleration enabled
(II) fglrx(0): X context handle = 0x1
(II) fglrx(0): [DRI] installation complete
(II) fglrx(0): Direct rendering enabled
(**) fglrx(0): Using software cursor
(II) fglrx(0): Largest offscreen area available: 1024 x 513
(II) Loading extension FGLRXEXTENSION
(II) Loading extension ATITVOUT
(II) fglrx(0): Interrupt handler installed at IRQ 18.
(II) fglrx(0): Exposed events to the /proc interface
(==) RandR enabled



Note I don't have the AGP and DRI errors you do.

A quick search of my favorite place to get help with ATI drivers:
http://www.rage3d.com
Yields a simple, yet unhelpful:
Quote:
You dont have your agp-gart kernel module loaded, or so it seems.

Direct link:
http://www.rage3d.com/board/showthread.php?t=33863030

Also more helpful:
http://www.rage3d.com/board/showthread.php?t=33868998
And:
http://www.rage3d.com/board/showthread.php?t=33850077

Not sure how to help you out with the agp-gart kernel module. What chipset (NB/SB) does your system have?


Top
 Profile  
 
 Post subject: Radeon 9800 Pro
PostPosted: Fri Feb 16, 2007 6:47 pm 
Offline
Joined: Fri Apr 28, 2006 10:19 am
Posts: 3
Hi,

Thanks fors the follow up I read those links and did notice that I didn't have the UseInternalAGPGART option set to no.

I've done this and it has slightly altered Xorg logs, but AGP init and DRI still fails.

My Chipset is an Intel 875P. Had a quick look but can't see if its North or South Bridge. I bought the board some 3.5 years ago :(

agpgart module is loaded and depends on both fglrx and intel_agp nodules...which are both loaded. till 2x height in overlay though. At least the occasional error with X not able to load due to graphics error seems to have dissappeared though.

Really need XV for myth as using GLoverlay chews way too much CPU and barely delivers watchable video. This did use to work when I ran Myth 0.18 under Debian Sarge build.....not sure what fglrx driver I used back then though.

This problem has been around at least a year from what I can see from Bugzilla info. Not sure why its taken so long for a fix, very unusual in Linux world. I think I may have to buy $50 NVIDIA TV-out card......I've spent way too much time on getting this working already :(

Hope I can find an AGP card still these days.

BTW found out card is actually 9800 Pro not 9600 as I first thought.....driver wise I think this matters very little.

Would be nice if I could get this working again though, if anyone else has some ideas.

Regards,


Richard


Top
 Profile  
 
 Post subject:
PostPosted: Sun Feb 18, 2007 4:07 pm 
Offline
Joined: Sun Jan 01, 2006 3:26 pm
Posts: 46
Location: Raleigh, NC
Well did look at some Intel 875P posts. Your are correct, there seems to be a bug with agpgart and the Intel 875P. Does look like there are bugfixes out there and agree it is strange the fixes are not already in the kernel as the patches are for older kernels than what R5E50 uses. Before investing in an NVidia card it is probably worth the research time to make sure the 875P apggart bug doesn't affect NVidia AGP cards also. In my simplistic world view agpgart is video card agnostic.


Top
 Profile  
 
 Post subject:
PostPosted: Tue Feb 27, 2007 1:06 am 
Offline
Joined: Thu Dec 30, 2004 2:12 am
Posts: 108
Try version 8.20.8. That's the last version that I got working with a 9 series card, but it was on R5D1.

I've been too busy to play with the latest KnoppMyth release.


Last edited by tjimenez87 on Tue Feb 27, 2007 1:20 am, edited 1 time in total.


Top
 Profile  
 
 Post subject:
PostPosted: Tue Feb 27, 2007 1:20 am 
Offline
Joined: Thu Dec 30, 2004 2:12 am
Posts: 108
Oh, did you test if the Xorg drivers worked before going through all that trouble recompiling? Just curious, because I have done similar things, only to find later, that the precompiled versions would have worked just fine due to backward compatibility.

These steps aren't tested with R5E50, but I'll include them here since this is how I got it to work with Xfree86. This is modified for Xorg:

Code:
1. wget https://a248.e.akamai.net/f/674/9206/0/www2.ati.com/drivers/linux/fglrx_6_8_0-8.20.8-1.i386.rpm
--no-check-certificate
2. alien -d fglrx_6_8_0-8.20.8-1.i386.rpm
3. dpkg -i --force-overwrite fglrx-6-8-0_8.20.8-2_i386.deb
4. aticonfig --initial --overlay-type=Xv
Optional:
5. aticonfig --resolution=800x600


Top
 Profile  
 

Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 7 posts ] 


All times are UTC - 6 hours




Who is online

Users browsing this forum: No registered users and 4 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
cron
Powered by phpBB® Forum Software © phpBB Group

Theme Created By ceyhansuyu