Hi!!
Finally, I found a way to make my All In Wonder 9600XT work under K/Ubuntu Dapper Drake 6.06 (and Gentoo 2006.1)!!
After a lot of trial, here's how I did it!
The All In Wonder 9600XT is based on ATI's Theatre 200 video capture and encoding chip ... check here and here
to know more about this multimedia card!!
First, download (with Synaptic or Adept) everything in relation with xserver-xorg-...., X11-..., X11proto...etc and particularly xserver-xorg-ATI.
Go into your motherboard BIOS ("Advanced Menu" "Chip Configuration") and set those following options this way::
AGP Performance Control Enabled (optional)
AGP Disk Write Control Enabled
Video Memory Cache Mode [USWC] (optional)(Activating this option causes fuzzy horizontal lines on my screen! Check if your Graphic Card support it!)
The most important option to enable is AGP Disk Write Control ..... otherwise your screen will freeze when you'll start AVView!
More about these options here and here
And now here's the most important part to make TV Capture work!
Your All In Wonder must be already installed under Windows!
Go to your Windows partition and copy this file " ativmc20.cod"
(this module will necessary to capture TV Channels)... (and it still doen't exist under Linux)
It should be located here :::
C:\WINDOWS\system32\drivers\ativmc20.cod
copy it to your K/Ubuntu partition in
/usr/lib/xorg/modules/multimedia/
and rename it rt2_pmem.bin
$ cd /usr/lib/xorg/modules/multimedia
$ sudo mv ativmc20.cod rt2_pmem.bin
$ dir /
$ dir /usr/lib/xorg/modules/multimedia
bt829_drv.so rt2_pmem.bin tda9885_drv.so theatre_drv.so
fi1236_drv.so tda8425_drv.so theatre200_drv.so uda1380_drv.so
msp3430_drv.so tda9850_drv.so theatre_detect_drv.so
Your graphic card driver must be Radeon ATI (Xorg modular 7.0 or 7.1) and not ATI fglrx!!
Now edit your /etc/X11/xorg.conf file and add the following option "AGPFastWrite" in the Section "Device"
$ sudo cp /etc/X11/xorg.conf /etc/X11/xorg.conf_backup_dateoftheday
$ sudo nano -w /etc/X11/xorg.conf
Section "Device.............
......
....
Option "AGPFastWrite" "1"
......
......
EndSection
For exemple, here's my copy of xorg.conf file::
# /etc/X11/xorg.conf (xorg X Window System server configuration file)
#
# This file was generated by dexconf, the Debian X Configuration tool, using
# values from the debconf database.
#
# Edit this file with caution, and see the /etc/X11/xorg.conf manual page.
# (Type "man /etc/X11/xorg.conf" at the shell prompt.)
#
# This file is automatically updated on xserver-xorg package upgrades *only*
# if it has not been modified since the last upgrade of the xserver-xorg
# package.
#
# If you have edited this file but would like it to be automatically updated
# again, run the following command:
# sudo dpkg-reconfigure -phigh xserver-xorg
Section "Files"
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"
# path to defoma fonts
FontPath "/var/lib/defoma/x-ttcidfont-conf.d/dirs/TrueType"
EndSection
Section "Module"
Load "bitmap"
Load "ddc"
Load "dri"
Load "extmod"
Load "freetype"
Load "glx"
Load "int10"
Load "type1"
Load "vbe"
EndSection
Section "InputDevice"
Identifier "Generic Keyboard"
Driver "kbd"
Option "CoreKeyboard"
Option "XkbRules" "xorg"
Option "XkbModel" "pc105"
Option "XkbLayout" "es"
Option "XkbVariant" "es"
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"
Driver "wacom"
Identifier "stylus"
Option "Device" "/dev/wacom" # Change to
# /dev/input/event
# for USB
Option "Type" "stylus"
Option "ForceDevice" "ISDV4" # Tablet PC ONLY
EndSection
Section "InputDevice"
Driver "wacom"
Identifier "eraser"
Option "Device" "/dev/wacom" # Change to
# /dev/input/event
# for USB
Option "Type" "eraser"
Option "ForceDevice" "ISDV4" # Tablet PC ONLY
EndSection
Section "InputDevice"
Driver "wacom"
Identifier "cursor"
Option "Device" "/dev/wacom" # Change to
# /dev/input/event
# for USB
Option "Type" "cursor"
Option "ForceDevice" "ISDV4" # Tablet PC ONLY
EndSection
Section "Device"
#Option "VideoKey" # <i>
#Option "RageTheatreCrystal" # <i>
#Option "RageTheatreTunerPort" # <i>
#Option "RageTheatreCompositePort" # <i>
#Option "RageTheatreSVideoPort" # <i>
#Option "TunerType" # <i>
#Option "RageTheatreMicrocPath" # <str>
#Option "RageTheatreMicrocType" # <str>
#Option "RenderAccel" # [<bool>]
Option "AGPFastWrite" "1"
Identifier "ATI Technologies, Inc. RV350 AR [Radeon 9600 XT]"
Driver "ati"
BusID "PCI:1:0:0"
Option "UseFBDev" "true"
EndSection
Section "Monitor"
Identifier "S/M 950p"
Option "DPMS"
HorizSync 30-96
VertRefresh 50-160
EndSection
Section "Screen"
Identifier "Default Screen"
Device "ATI Technologies, Inc. RV350 AR [Radeon 9600 XT]"
Monitor "S/M 950p"
DefaultDepth 24
SubSection "Display"
Depth 1
Modes "1280x1024" "640x480"
EndSubSection
SubSection "Display"
Depth 4
Modes "1280x1024" "640x480"
EndSubSection
SubSection "Display"
Depth 8
Modes "1280x1024" "640x480"
EndSubSection
SubSection "Display"
Depth 15
Modes "1280x1024" "640x480"
EndSubSection
SubSection "Display"
Depth 16
Modes "1280x1024" "640x480"
EndSubSection
SubSection "Display"
Depth 24
Modes "1280x1024" "640x480"
EndSubSection
EndSection
Section "ServerLayout"
Identifier "Default Layout"
Screen "Default Screen"
InputDevice "Generic Keyboard"
InputDevice "Configured Mouse"
InputDevice "stylus" "SendCoreEvents"
InputDevice "cursor" "SendCoreEvents"
InputDevice "eraser" "SendCoreEvents"
EndSection
Section "DRI"
Mode 0666
EndSection
Reboot your system!
and check if everything loaded fine!
check if any errors appears:$ cat /var/log/Xorg.0.log
.........
........
.......
(II) RADEON(0): Tuner is on port 0
(II) RADEON(0): Composite connector is port 2
(II) RADEON(0): SVideo connector is port 6
(II) RADEON(0): Rage Theatre: Connectors (detected): tuner=0, composite=2, svideo=6
(II) RADEON(0): RageTheatre: Connectors (using): tuner=0, composite=2, svideo=6
(II) RADEON(0): video decoder type used: 0x0006
(II) RADEON(0): Going to load the corresponding theatre module
(II) Loading sub module "theatre200"
(II) LoadModule: "theatre200"
(II) Loading /usr/lib/xorg/modules/multimedia/theatre200_drv.so
(II) Module theatre200: vendor="X.Org Foundation"
compiled for 7.0.0, module version = 1.0.0
ABI class: X.Org Video Driver, version 0.8
(II) RADEON(0): Microcode: Use default microcode path: /usr/lib/xorg/modules/multimedia/rt2_pmem.bin
(II) RADEON(0): Microcode: Use default microcode type: BINARY
(II) RADEON(0): Microcode: device_id: 4d4a
(II) RADEON(0): Microcode: vendor_id: 1002
(II) RADEON(0): Microcode: rev_id: 1b
(II) RADEON(0): Microcode: num_seg: 4
(II) RADEON(0): Microcode: dsp_init OK
(II) RADEON(0): Microcode: dsp_download OK
(II) RADEON(0): VIP_GPIO_CNTL: 600001
(II) RADEON(0): VIP_GPIO_INOUT: 600000
(II) RADEON(0): VIP_GPIO_CNTL: 600011
(II) RADEON(0): VIP_GPIO_INOUT: 710010
(II) RADEON(0): Rage Theatre setting standard 0x0000
(II) RADEON(0): Microcode: Use microcode path: /usr/lib/xorg/modules/multimedia/rt2_pmem.bin
(II) RADEON(0): Microcode: Use microcode type: BINARY
(II) RADEON(0): Microcode: device_id: 4d4a
(II) RADEON(0): Microcode: vendor_id: 1002
(II) RADEON(0): Microcode: rev_id: 1b
(II) RADEON(0): Microcode: num_seg: 4
(II) RADEON(0): Microcode: dsp_init OK
(II) RADEON(0): Microcode: dsp_download OK
(**) RADEON(0): RADEONScreenInit finished
........
.........
......
$ cat /var/log/Xorg.0.log | grep EE
Now download and compile AVView and ffmpeg! (it is not necessary to install it)
Download ffmeg-0.4.8 :
$ cd $HOME
$ mkdir Downloads
$ cd Downloads
Download ffmpeg-0.4.8 from http://www.escomposlinux.org/lfs-es/...ia/ffmpeg.html
$ wget http://switch.dl.sourceforge.net/sou...g-0.4.8.tar.gz
$ tar -zxvf ffmpeg-0.4.8.tar.gz
$ cd ffmpeg-0.4.8
ffmpeg is tricky to configure! you will have to adjust the make and cflags options according to your own hardware (CPU)!
I have an AMD Athlon XP 1800+
Also I have not figured out how to configure mingw32 and faad options (just don't include them)
Check here ::: http://gentoo-wiki.com/CFLAGS and http://gentoo-wiki.com/Safe_Cflags
(I tested ffmpeg under Gentoo ... but it also compile fine under K/Ubuntu) (Take note that ffmpeg doesn't compile with gcc-4.0... so use gcc-3.4)
$ ./configure --cc=gcc-3.4 --cpu=athlon-xp --extra-cflags=-O2 -march=athlon-xp -pipe --enable-mp3lame --enable-vorbis --enable-a52 --enable-pp --enable-shared-pp --enable-shared
or more safely
./configure --cc=gcc-3.4 --cpu=athlon-xp --extra-cflags=-O2 -march=athlon-xp -pipe --enable-mp3lame --enable-vorbis
$ make
Download AVView here http://sourceforge.net/project/showf...group_id=12629
$ cd $HOME/Downloads
$ wget http://switch.dl.sourceforge.net/sou...-0.80.7.tar.gz
$ tar -zxvf avview-0.80.7.tar.gz
$ cd avview-0.80.7
the --cc= option doesn't exist in avview so I will use gcc-3.4 this way:::
$ export CC=/usr/bin/gcc-3.4
$ ./configure --with-ffmpeg=$HOME/Downloads/ffmpeg-0.4.8
$ makeuser@user-desktop:~/Downloads/avview-0.80.7$ ./configure --with-ffmpeg=$HOME/Downloads/ffmpeg-0.4.8
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether to enable maintainer-specific portions of Makefiles... no
checking for gcc... /usr/bin/gcc-3.4
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether /usr/bin/gcc-3.4 accepts -g... yes
checking for /usr/bin/gcc-3.4 option to accept ANSI C... none needed
checking for style of include used by make... GNU
checking dependency style of /usr/bin/gcc-3.4... gcc3
checking for special C compiler options needed for large files... no
checking for _FILE_OFFSET_BITS value needed for large files... 64
checking for _LARGE_FILES value needed for large files... no
checking whether byte ordering is bigendian... no
checking how to run the C preprocessor... /usr/bin/gcc-3.4 -E
checking for X... libraries /usr/X11R6/lib, headers in standard search path
checking for gethostbyname... yes
checking for connect... yes
checking for remove... yes
checking for shmat... yes
checking for IceConnectionNumber in -lICE... yes
checking for egrep... grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking fcntl.h usability... yes
checking fcntl.h presence... yes
checking for fcntl.h... yes
checking for stdlib.h... (cached) yes
checking for string.h... (cached) yes
checking sys/ioctl.h usability... yes
checking sys/ioctl.h presence... yes
checking for sys/ioctl.h... yes
checking sys/time.h usability... yes
checking sys/time.h presence... yes
checking for sys/time.h... yes
checking for unistd.h... (cached) yes
checking for an ANSI C-conforming const... yes
checking for size_t... yes
checking whether time.h and sys/time.h may both be included... yes
checking for working alloca.h... yes
checking for alloca... yes
checking whether /usr/bin/gcc-3.4 needs -traditional... no
checking sys/select.h usability... yes
checking sys/select.h presence... yes
checking for sys/select.h... yes
checking sys/socket.h usability... yes
checking sys/socket.h presence... yes
checking for sys/socket.h... yes
checking types of arguments for select... int,fd_set *,struct timeval *
checking for gettimeofday... yes
checking for memmove... yes
checking for memset... yes
checking for rint... no
checking for select... yes
checking for strcasecmp... yes
checking for strdup... yes
checking for strerror... yes
checking for dlopen in -ldl... yes
checking for uncompress in -lz... yes
checking for sin in -lm... yes
checking for pthread_create in -lpthread... yes
checking for vbi_capture_v4l_new in -lzvbi... yes
checking for snd_card_get_name in -lasound... yes
checking for lirc_init in -llirc_client... yes
The libraries mp3lame, ogg, vorbis and vorbisenc might be required by ffmpeg
checking for lame_encode_buffer in -lmp3lame... yes
checking for oggpack_write in -logg... yes
checking for vorbis_book_init_encode in -lvorbis... yes
checking for vorbis_encode_init in -lvorbisenc... yes
checking linux/videodev.h usability... yes
checking linux/videodev.h presence... yes
checking for linux/videodev.h... yes
checking libzvbi.h usability... yes
checking libzvbi.h presence... yes
checking for libzvbi.h... yes
checking for X11/extensions/Xinerama.h... yes
checking for XCreateSimpleWindow in -lX11... yes
checking for XInitExtension in -lXext... yes
checking for XvPutVideo in -lXv... yes
checking for XineramaIsActive in -lXinerama... yes
checking for Tcl configuration... found /usr/lib/tcl8.4/tclConfig.sh
checking for Tk configuration... found /usr/lib/tk8.4/tkConfig.sh
checking for existence of /usr/lib/tcl8.4/tclConfig.sh... loading
checking for existence of /usr/lib/tk8.4/tkConfig.sh... loading
checking ffmpeg version... ok
checking for ANSI C header files... (cached) yes
checking errno.h usability... yes
checking errno.h presence... yes
checking for errno.h... yes
checking for fcntl.h... (cached) yes
checking for stdlib.h... (cached) yes
checking for string.h... (cached) yes
checking for sys/ioctl.h... (cached) yes
checking for unistd.h... (cached) yes
checking for an ANSI C-conforming const... (cached) yes
checking whether /usr/bin/gcc-3.4 needs -traditional... (cached) no
checking for memset... (cached) yes
checking for strdup... (cached) yes
checking for strerror... (cached) yes
configure: creating ./config.status
config.status: creating Makefile
config.status: creating start_avview.no_install
config.status: creating config.h
config.status: executing depfiles commands
------------------- Configuration -------------------
X11 libraries -L/usr/X11R6/lib
X11 cflags
TCL location /usr
TCL version 8.4.12
TK location /usr
TCL version 8.4.12
ALSA support yes
Movie recording enabled
Path to compiled ffmeg source /home/user_name/Downloads/ffmpeg-0.4.8
Binaries will be installed in ${exec_prefix}/bin
Script files will be installed in ${prefix}/share/AVview
./start_avview.no_install
(under Gentoo I have to start it twice before it works)
---------------------------------------------------------
(optional)
If you want to install it
just do: (you must be root)
$ sudo make install
and to uninstall
$ sudo make uninstall
---------------------------------------------------------
To start it from your desktop just add this command with an icon!
The AVView window will appear
Select Control Window in the menu
Encoding must read NTSC-tuner (for local capture)(with an antenna)
Select Alsa Mixer and choose your sound card ... do the adjustment
Sound will be located in LINE
Now my television work fine ....but I can't record anything!!! ..... yet!!!
When I'am clicking on RECORD it tells me::::
"Looking for km device that corresponds to PCI:01:00.0"
The program search for KM module (GATOS)!! (which we are not using)
and I just don't know where is located my tuner in /dev ?
Someone have any idea about it?????
Also I still have not figured out how to make the FM tuner work! (I don't know where is my tuner in /dev)
Bookmarks