Ubuntu Forums ubuntu.com - launchpad.net - ubuntu help  

Go Back   Ubuntu Forums > The Ubuntu Forum Community > Forum Archive > Main Support Categories > Multimedia & Video
Register Reset Password Forum Help Forum Council Search Today's Posts Mark Forums Read

Hello, Unregistered You are browsing a READ only archive of the main support categories pre 4/21/2008. You will not be able to post or reply any threads in this section.

Multimedia & Video
Have multimedia question? ATI, Nvidia, Sound cards. Just ask here.

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Old June 22nd, 2006   #1
oleoleole
5 Cups of Ubuntu
 
oleoleole's Avatar
 
Join Date: Jan 2006
Location: Norway, Asker
Beans: 43
Kubuntu 7.10 Gutsy Gibbon
Send a message via ICQ to oleoleole Send a message via MSN to oleoleole Send a message via Skype™ to oleoleole
HowTo: ATi Radeon with TV-Out and 3D-gfx, fglrx drivers.

This is only tested on ATi Radeon 9550 AGP but it may be usefull for other Radeons as well. Else, sorry my english

After fixing the fglrx problem that came with *ubuntu, I start figure out how to get TV-Out AND 3D-gfx to work. And for now I maybe have a weak Xorg-config, but it works. 3D and TV is maybe some slow, not so bad on TV-part, but 3D is some slow, fgl_glxgears gives around 170-200 FPS on this computer (P4 2,6GHz, 1GB ram, 128MB videoram). But I guess the reason for the slow 3D is because it's running with TV-out on all the time. This config also need an external file that starts the "thing" (ex. VLC) to run in other X screen to show the movie etc. in fullscreen. Anyway, this document is only here to help you on the way, maybe it works, maybe not. But this config does the job for me, only thing I would have been better is 3D acceleration (I guess that wourd be fixed if I could be able to turn off TV-out in normal session).

I'm not going thru the config part from part, because I really don't know why it works, and what the thing inside it means. Well lots of it is logic, but it some weirdoes there I don't understand why they do things when not do do them and such

To start about how i fixed the fglrx to work again with Kubuntu Dapper 6.06 LTS, I installed all fglrx modules for xorg and the latest linux kernel, after that I also got the kernel-source, kernel-headers and downloaded drivers from ATI (the official drivers). When downloaded and unpacked the kernel-source and headers, I ran the ATI driver-install. Just followed the steps and it compiled and all without "installing" the driver. But I copy the fglrx-module manually into kernel-modules-dir and it worked. Just be sure you have enabled agpgart and the chipset too. What I did to copy a working fglrx-moduleinto the kernel-modules-dir was:
cp /lib/modules/fglrx/fglrx.2.6.15-25-686.ko /lib/modules/2.6.15-25-686/volatile/fglrx.ko (replace 2.6.15-25-686 with your kernel-version, "uname -r" shows you)
After that I stopped kdm: sudo /etc/init.d/kdm stop (press Alt+F1 to get to TTY showing console and login as root, or use sudo if it's unable (I'm using a very modified kubuntu, most of them are config-files from debian so I don't remember what is working in kubuntu or not))
And now you can load your fglrx drives with ex. modconf under the "directory" volatile, I don't remember what to write directly in console
If it success, you can start kdm again: sudo /etc/init.d/kdm start (and you should see the login-screen)
If it fails, try to load other chipset drivers, or more of them And if it's not specified in /etc/modules, then add fglrx, agpgart, and your chipset drivers.

Here is my xorg.conf file:
NB! Use this to compare it to your own config, and make a backup. This file I think you wont use, unless if you're a dvorak-user and live in Norway or other countries using "PAL-G" (PAL-B may alse be able to use in Norway, but it failed here).
Code:
Section "DRI"
        Mode         0666
EndSection

Section "ServerFlags"
        Option      "Xinerama" "false"
EndSection

Section "Module"
        Load  "dbe"     # Double buffer extension
        SubSection "extmod"
                Option      "omit xorg-dga"   # don't initialise the DGA extension
        EndSubSection
        Load  "type1"
        Load  "freetype"
        Load  "glx"   # libglx.a
        Load  "dri"   # libdri.a
EndSection

Section "ServerLayout"
        Identifier     "crt"
        Screen         "Default Screen" 0 0
        InputDevice    "Generic Keyboard"
        InputDevice    "Configured Mouse"
        InputDevice    "stylus" "SendCoreEvents"
        InputDevice    "cursor" "SendCoreEvents"
        InputDevice    "eraser" "SendCoreEvents"
EndSection

Section "ServerLayout"
        Identifier     "tv"
        Screen         "TV Screen" 0 0
        InputDevice    "Generic Keyboard"
        InputDevice    "Configured Mouse"
EndSection

Section "Files"

        # path to defoma fonts
        FontPath     "/usr/share/X11/fonts/misc"
        FontPath     "/usr/share/X11/fonts/cyrillic"
        FontPath     "/usr/share/X11/fonts/100dpi/:unscaled"
        FontPath     "/usr/share/X11/fonts/75dpi/:unscaled"
        FontPath     "/usr/share/X11/fonts/Type1"
        FontPath     "/usr/share/X11/fonts/100dpi"
        FontPath     "/usr/share/X11/fonts/75dpi"
        FontPath     "/var/lib/defoma/x-ttcidfont-conf.d/dirs/TrueType"
EndSection

Section "InputDevice"
        Identifier  "Generic Keyboard"
        Driver      "kbd"
        Option      "CoreKeyboard"
        Option      "XkbRules" "xorg"
        Option      "XkbModel" "pc105"
        Option      "XkbLayout" "no"
        Option      "XkbVariant" "dvorak"
EndSection

Section "InputDevice"
        Identifier  "Configured Mouse"
        Driver      "mouse"
        Option      "CorePointer"
        Option      "Device" "/dev/input/mice"
        Option      "Protocol" "ExplorerPS/2"
        Option      "ZAxisMapping" "4 5"
EndSection

Section "InputDevice"

                                                      # /dev/input/event
                                                      # for USB
        Identifier  "stylus"
        Driver      "wacom"
        Option      "Device" "/dev/wacom"          # Change to
        Option      "Type" "stylus"
        Option      "ForceDevice" "ISDV4"               # Tablet PC ONLY
EndSection

Section "InputDevice"

                                                      # /dev/input/event
                                                      # for USB
        Identifier  "eraser"
        Driver      "wacom"
        Option      "Device" "/dev/wacom"          # Change to
        Option      "Type" "eraser"
        Option      "ForceDevice" "ISDV4"               # Tablet PC ONLY
EndSection

Section "InputDevice"

                                                      # /dev/input/event
                                                      # for USB
        Identifier  "cursor"
        Driver      "wacom"
        Option      "Device" "/dev/wacom"          # Change to
        Option      "Type" "cursor"
        Option      "ForceDevice" "ISDV4"               # Tablet PC ONLY
EndSection

Section "Monitor"
        Identifier   "COMPAQ MV920"
        HorizSync    30.0 - 96.0
        VertRefresh  50.0 - 160.0
        Option      "DPMS"
EndSection

Section "Monitor"
        Identifier   "TV"
        HorizSync    30.0 - 50.0
        VertRefresh  60.0 - 60.0
EndSection

Section "Device"

#    Option "VideoOverlay"               "on"
# === OpenGL Overlay ===
# Note: When OpenGL Overlay is enabled, Video Overlay
#       will be disabled automaticaloly
        Identifier  "ATI Technologies, Inc. RV350 AS [Radeon 9550]"
        Driver      "fglrx"
        Option      "UseFBDev" "true"
        Option      "UseInternalAGPGART" "no"
        Option      "UseFastTLS" "0"
        Option      "BlockSignalsOnLock" "on"
        Option      "ForceGenericCPU" "no"
        Option      "MonitorLayout" "CRT, NONE"
# === disable/enable XAA/DRI ===
        Option      "no_accel" "no"
        Option      "no_dri" "no"
# === TV-out Management ===
        Option      "NoTV" "yes"
# === OpenGL specific profiles/settings ===
        Option      "Capabilities" "0x00000000"
        Option      "VideoOverlay" "on"
        Option      "OpenGLOverlay" "off"
        Option      "TVStandard" "VIDEO"
        Option      "TVFormat" "PAL-G"
        BusID       "PCI:1:0:0"
EndSection

Section "Device"

#    Option "VideoOverlay"               "on"
# === OpenGL Overlay ===
# Note: When OpenGL Overlay is enabled, Video Overlay
#       will be disabled automatically
        Identifier  "ATI Technologies, Inc. RV350 AS [Radeon 9550] TV-Out"
        Driver      "fglrx"
        Option      "UseFBDev" "true"
        Option      "UseInternalAGPGART" "no"
        Option      "UseFastTLS" "0"
        Option      "BlockSignalsOnLock" "on"
        Option      "ForceGenericCPU" "no"
        Option      "MonitorLayout" "CRT, NONE"
# === disable/enable XAA/DRI ===
        Option      "no_accel" "no"
        Option      "no_dri" "no"
# === TV-out Management ===
        Option      "NoTV" "no"
# === OpenGL specific profiles/settings ===
        Option      "Capabilities" "0x00000000"
# === Video Overlay for the Xv extension ===
#        Option      "VideoOverlay" "on"
#        Option      "OpenGLOverlay" "off"
        Option      "TVStandard" "VIDEO"
        Option      "TVFormat" "PAL-G"
        BusID       "PCI:1:0:0"
EndSection

Section "Screen"
        Identifier "Default Screen"
        Device     "ATI Technologies, Inc. RV350 AS [Radeon 9550]"
        Monitor    "COMPAQ MV920"
        DefaultDepth     24
        SubSection "Display"
                Depth     1
                Modes    "1600x1200" "1280x1024" "1152x864" "1024x768" "800x600" "640x480"
        EndSubSection
        SubSection "Display"
                Depth     4
                Modes    "1600x1200" "1280x1024" "1152x864" "1024x768" "800x600" "640x480"
        EndSubSection
        SubSection "Display"
                Depth     8
                Modes    "1600x1200" "1280x1024" "1152x864" "1024x768" "800x600" "640x480"
        EndSubSection
        SubSection "Display"
                Depth     15
                Modes    "1600x1200" "1280x1024" "1152x864" "1024x768" "800x600" "640x480"
        EndSubSection
        SubSection "Display"
                Depth     16
                Modes    "1600x1200" "1280x1024" "1152x864" "1024x768" "800x600" "640x480"
        EndSubSection
        SubSection "Display"
                Depth     24
                Modes    "1600x1200" "1280x1024" "1152x864" "1024x768" "800x600" "640x480"
        EndSubSection
EndSection

Section "Screen"
        Identifier "TV Screen"
        Device     "ATI Technologies, Inc. RV350 AS [Radeon 9550] TV-Out"
        Monitor    "TV"
        DefaultDepth     24
        SubSection "Display"
                Depth     24
                Modes    "1024x768" "800x600"
        EndSubSection
EndSection
And this is not enough to make the thing work with TV-out, because it needs an extra file that starts f.eks. VLC in other X screen. Anyway, it's an easy proces to make this just run in TV-out mode, but sometimes (it hasn't happend here yet) the overlay for the video/media-application wont work. So I did this to make a fullscreen on TV-out.

This is the file, I call it "vlc.tvout" and it's in /usr/local/bin/ path:
Code:
#!/bin/sh
xauth add "$(/bin/hostname)/unix:1" MIT-MAGIC-COOKIE-1 $( xauth list | egrep "$(/bin/hostname)/unix:0" | awk '{print $3}' )
exec /usr/bin/xinit /usr/bin/aterm -ut -e /usr/bin/vlc --fullscreen --loop -vo sdl "$*" -- /usr/X11R6/bin/X :1 -layout tv
EDIT: To use this file you need to add this in "the right click on a file" in your file-browser. Else it wont work.
By that I mean you open the movie-clip with "vlc.tvout"

Some of this have been taken from a site that helped me once with TV-out for nVIDIA, but I'm tired of the poor 2D graphic nvidia gives generally. My opinion though. But I don't have the URL for that site right now, sorry.

I don't take the responsibility if something went wrong, but please ask me about things if you don't understand what i meant with something in this document. And yes, this is a very poor "HowTo", maybe not classified as it either.

Last edited by oleoleole; June 22nd, 2006 at 09:43 PM..
oleoleole is offline   Reply With Quote
 

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 04:47 PM.


vBulletin ©2000 - 2009, Jelsoft Enterprises Ltd. Ubuntu Logo, Ubuntu and Canonical © Canonical Ltd. Tango Icons © Tango Desktop Project. bilberry