Wednesday, June 27, 2007

Fedora: Frontech TV Tuner Card Installation

13/06/07- I cannot install my TV tuner card in fedora (this problem is irrelevant to my project, but i want it to be solved)
I am unable to use my frontech TV tuner card model number jil-0606. Fedora cannot recognize this card.
Its a cheap card and manufacture didn't provide the sufficient information on its EEPROM. So fedora cannot recognize it automatically and hence driver is not loaded.

Solutions tried:

1. From internet and using the commands dmesg and Lspci -v, i was able to figure out that it is saa7130 chip based card. The thing to do here is to figure out the card type and tuner number by yourself and load the modules .
2. But in fedora there are 108 cards with different tuner number number. The last tuner number I tried was 71 and the list was more than 71 I think. So I sticked to card number 3 and tried different variations of tuner number from 1 to 71. I used modprobe saa7134 card=3 tuner=x command where x is the tuner number.
I used dmesg after each modprobe to see what system the tuner belongs. I used TvTime to check whether these settings are working. After checking each module, i had to unload them by rmmod saa7134 command, so that the next module can be loaded.
3. I got the TV signals on tuner number 6,22,24,35,42,49 and 60. When i reached 71 it hanged.
4. The TV broadcasting system in India uses PAL B standard. But unfortunately there was not any standard in the tuner like that it was PAL or PAL_BG. Unfortunately the tuners on which I got the TV signal was of varying standards. They were:
6 - Temic NTSC
22 - Temic PAL/SECAM multi
24 - Philips PAL/SECAM multi
35 - Temic PAL_DK/SECAM_2
42 - Philips 1236D ATSC/NTSC Dual
49 - Microtune 4042 FI5 ATSC/NTSC Dual in
60 - Thomson DTT 761X(ATSC/NTSC)
One thing to note here is PAL_DK is as much as different to PAL as PAL to NTSC. In all the cases i was able to get only picture but no sound from my card. Also I was not able to scan the channels because there was a message 'No Frequency' in TvTime. So i guess the card number is not correct as well as the tuner number.
So in last 'm again where i started from. The main problem is the card itself. It doesn't specify sufficient about it in its EEPROM.
Problem solved on 27/06/07
Actually the problem was tvtime software, which just couldn't recognize my card for my thousands of attempts. It's really thousand attempts, I wasted too much time for trying different cards and tuners. I installed kdetv that comes with fedora 7. First i tried different cards from my chosen 37 cards ( I identified the cards that have the same input as my Frontech card ) and tuner number 5. In first attempt I got only one channel that can be barely seen. Then i tried the card=17 tuner=37 and I got four channels with good picture. Then from channel configuration of kdetv I chose manual channel selection, didn't touch the maximum and minimum frequency and set the interval for searching 1MHz and I got all the channels.

But now I was not getting any sound. I again searched the internet and found the answer. I changed the card
number to 3 and everything get solved. I added the line options saa7134 card=3 tuner=37 in /etc/modprobe.conf so that the module will be automatically loaded at the boot time.

Linux: Internet Sharing

12/06/07- Unable to share the internet connection between fedora and Windows xp systems
1. Unable to connect from windows xp laptop to internet through fedora desktop system. The gateway for windows xp was set rightly it was That is the ip address of fedora system.
problem solved on 12/06/07
1. I did the following changes:
i went to /etc/sysconfig/network-scripts/ifcfg-eth0
it was something like:
# Realtek Semiconductor Co., Ltd. RTL-8139/8139C/8139C+
I added one line there to form a LAN
It enabled fedora system to listen to all the systems in LAN.
2. I went to /etc/rc.d/rc.local
and added the following lines in the file
/sbin/iptables --flush
/sbin/iptables --table nat --flush
/sbin/iptables --delete-chain
/sbin/iptables --table nat --delete-chain
/sbin/iptables --table nat --append POSTROUTING --out-interface ppp0 -j MASQUERADE
/sbin/iptables --append FORWARD --in-interface eth0 -j ACCEPT
echo 1 > /proc/sys/net/ipv4/ip_forward
3. I opened windows system and changes the DNS Server address to those of my ISP TATA VSNL. Of course i didnt change the gateway address.
and its done my dear friend.
I'm very happy to solve this problem because the way i used to form a LAN i didnt found that help on net. there was a command /sbin/ifconfig eth0 netmask broadcast but you have to run it every time you boot or add it in /etc/rc.d/rc.local file. But i chose my own alternate option.
Second thing was we have to run the iptables command manually every time system boots. so i added them in /etc/rc.d/rc.local file. And it was also not easy u have to find the absolute path for the iptables command. Luckily fedora has all its commands in /sbin directory. So I finally set it up. And god I spent my six hours on it. Trying and failing trying and failing. But in last I succeeded.