<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>James Emmrich &#187; Scripts</title>
	<atom:link href="http://www.lwp.ca/james/tag/scripts/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.lwp.ca/james</link>
	<description>Just another motorcycle linux geek</description>
	<lastBuildDate>Sat, 19 Jun 2010 03:25:24 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>Linux and the Mercury EZ View TV Tuner Card</title>
		<link>http://www.lwp.ca/james/2010/05/linux-and-the-mercury-ez-view-tv-tuner-card/</link>
		<comments>http://www.lwp.ca/james/2010/05/linux-and-the-mercury-ez-view-tv-tuner-card/#comments</comments>
		<pubDate>Wed, 26 May 2010 00:16:57 +0000</pubDate>
		<dc:creator>James</dc:creator>
				<category><![CDATA[Entertainment Centre]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Miscellaneous]]></category>
		<category><![CDATA[Gnome]]></category>
		<category><![CDATA[Operating System]]></category>
		<category><![CDATA[Scripts]]></category>
		<category><![CDATA[Ubuntu]]></category>

		<guid isPermaLink="false">http://www.lwp.ca/james/?p=539</guid>
		<description><![CDATA[I am not one to watch much TV, but when I do, I prefer to do so by PVR with commercials cut, and live pausing. I also like to set recording schedules in advance and do it from my cellphone if need be. I bought this little card originally for my parents PVR that I [...]]]></description>
			<content:encoded><![CDATA[<p>I am not one to watch much TV, but when I do, I prefer to do so by PVR with commercials cut, and live pausing. I also like to set recording schedules in advance and do it from my cellphone if need be.</p>
<p>I bought this little card originally for my parents PVR that I built them, unfortunately I could not get it to work. I believe I paid a little less than $100.00 for it. After a lot of messing with it, I put it back in the box and left it.</p>
<p>Four years later, I attempted again ha.</p>
<p>This is how to get your Mercury EZ View PCI Card to work in Ubuntu 10.04 LTS.</p>
<h2>The Mercury EZ View PCI Card</h2>
<div id="attachment_544" class="wp-caption alignleft" style="width: 460px"><a href="http://www.lwp.ca/james/wp-content/uploads/2010/05/pr_tvtunercard_ezview_b.jpg"><img class="size-full wp-image-544   " title="mercury_ezview1" src="http://www.lwp.ca/james/wp-content/uploads/2010/05/pr_tvtunercard_ezview_b.jpg" alt="" width="450" height="350" /></a><p class="wp-caption-text">Product Image</p></div>
<p><strong>FM Radio Reception</strong></p>
<ul>
<li> Auto Scan FM channels</li>
</ul>
<p><strong>TV / Video Display</strong></p>
<ul>
<li> Full motion display @ 30fps</li>
<li>Resizable video window from free size to full screen</li>
<li>Full screen display: Max resolution up to 720 x 576</li>
<li>Supports overlay mode to get the best quality</li>
</ul>
<p><strong>TV / Video Capture</strong></p>
<ul>
<li> Full motion video capture up to 30 fps</li>
<li>Video capture format: AVI, MPEG-1/2/4, DVD, VCD, MP3</li>
<li>Still image snapshot format BMP</li>
<li>Video capture size up to 352 x 288 (AVI), 325 x 240 (VCD NTSC) and 322 x 288 (VCD PAL)</li>
</ul>
<p><strong>Digital Video Capture</strong></p>
<ul>
<li>Capture and display video from Digital Video (DV) camcorder</li>
<li>Record DV video into MPEG-I or MPEG-II and AVI files</li>
<li>Camera control via GUI</li>
</ul>
<p><strong>System Requirements </strong></p>
<ul>
<li> Outdoor antenna or cable TV connection</li>
<li> Pentium III 700MHz or higher processor</li>
<li> 128MB of system memory recommended</li>
<li> Microsoft Windows 98 SE/ME/2000/XP with DirectX 8.1 installed</li>
<li> DirectX 8.1 compatible VGA card</li>
</ul>
<p><strong>Hardware</strong></p>
<ul>
<li> Conexant CX 23881 chipset, 10bits high quality ADC</li>
<li> Multiple tuner receptions (NTSC, PAL system)</li>
<li> PCI 2.1 compatible Interface</li>
<li> 4 layer PCB</li>
<li> Remote power on</li>
<li> Full IR remote control function</li>
</ul>
<h2>Installing the Card</h2>
<div id="attachment_547" class="wp-caption alignright" style="width: 310px"><a href="http://www.lwp.ca/james/wp-content/uploads/2010/05/photo.jpg"><img class="size-medium wp-image-547" title="mercury_cables" src="http://www.lwp.ca/james/wp-content/uploads/2010/05/photo-300x225.jpg" alt="" width="300" height="225" /></a><p class="wp-caption-text">Jumper cables provided</p></div>
<p>Duh, just like any card. But on the serious side, it came with a bunch of jumper cables as shown on the left. The back of the card has a cable coaxial input, a IR input port for the remote, and an &#8220;S-Video&#8221; like connector. The jumper cables provided, allow you to split this into the following connections:</p>
<ul>
<li>Splitter cable:
<ul>
<li>Audio Out &#8211; 3.5mm female</li>
<li>Audio In &#8211; 3.5mm female</li>
<li>Video Composite Out &#8211; male</li>
<li>S-Video Out &#8211; female</li>
</ul>
</li>
<li>3.5mm headphone cable jumper &#8211; male/male</li>
</ul>
<p>It seems to be a funky way of doing things, but in any case&#8230;</p>
<p>Upon system reboot, the card is not detected, the syslog shows the following:</p>
<ol>
<li>
<div>May 24 19:38:20 lonewolf kernel: [    13.296313] Linux video capture interface: v2.00</div>
</li>
<li>
<div>May 24 19:38:20 lonewolf kernel: [    13.766829] Console: switching to colour frame buffer device 80&#215;30</div>
</li>
<li>
<div>May 24 19:38:21 lonewolf kernel: [    14.010115] cx88/0: cx2388x v4l2 driver version 0.0.7 loaded</div>
</li>
<li>
<div>May 24 19:38:21 lonewolf kernel: [    14.010171] cx8800 0000:02:0a.0: PCI INT A -&gt; GSI 22 (level, low)  -&gt; IRQ 22</div>
</li>
<li>
<div>May 24 19:38:21 lonewolf kernel: [    14.010469] cx88[0]: Your board has no valid PCI Subsystem ID and thus  can&#8217;t</div>
</li>
<li>
<div>May 24 19:38:21 lonewolf kernel: [    14.010471] cx88[0]: be autodetected.  Please pass card=&lt;n&gt; insmod  option to</div>
</li>
<li>
<div>May 24 19:38:21 lonewolf kernel: [    14.010473] cx88[0]: workaround that.  Redirect complaints to the vendor  of</div>
</li>
<li>
<div>May 24 19:38:21 lonewolf kernel: [    14.010474] cx88[0]: the TV card.  Best regards,</div>
</li>
<li>
<div>May 24 19:38:21 lonewolf kernel: [    14.010475] cx88[0]:         &#8212; tux</div>
</li>
<li>
<div>May 24 19:38:21 lonewolf kernel: [    14.012313] cx88[0]: Here is a list of valid choices for the  card=&lt;n&gt; insmod option:</div>
</li>
<li>
<div>May 24 19:38:21 lonewolf kernel: [    14.012815] cx88[0]:    card=0 -&gt; UNKNOWN/GENERIC</div>
</li>
<li>
<div>May 24 19:38:21 lonewolf kernel: [    14.013152] cx88[0]:    card=1 -&gt; Hauppauge WinTV 34xxx models</div>
</li>
<li>
<div>May 24 19:38:21 lonewolf kernel: [    14.013521] cx88[0]:    card=2 -&gt; GDI Black Gold</div>
</li>
<li>
<div>May 24 19:38:21 lonewolf kernel: [    14.013841] cx88[0]:    card=3 -&gt; PixelView</div>
</li>
<li>
<div>May 24 19:38:21 lonewolf kernel: [    14.014143] cx88[0]:    card=4 -&gt; ATI TV Wonder Pro</div>
</li>
<li>
<div>May 24 19:38:21 lonewolf kernel: [    14.014468] cx88[0]:    card=5 -&gt; Leadtek Winfast 2000XP Expert</div>
</li>
<li>
<div>May 24 19:38:21 lonewolf kernel: [    14.014832] cx88[0]:    card=6 -&gt; AverTV Studio 303 (M126)</div>
</li>
<li>
<div>May 24 19:38:21 lonewolf kernel: [    14.015178] cx88[0]:    card=7 -&gt; MSI TV-@nywhere Master</div>
</li>
<li>
<div>May 24 19:38:21 lonewolf kernel: [    14.015518] cx88[0]:    card=8 -&gt; Leadtek Winfast DV2000</div>
</li>
<li>
<div>May 24 19:38:21 lonewolf kernel: [    14.015858] cx88[0]:    card=9 -&gt; Leadtek PVR 2000</div>
</li>
<li>
<div>May 24 19:38:21 lonewolf kernel: [    14.016214] cx88[0]:    card=10 -&gt; IODATA GV-VCP3/PCI</div>
</li>
<li>
<div>May 24 19:38:21 lonewolf kernel: [    14.016554] cx88[0]:    card=11 -&gt; Prolink PlayTV PVR</div>
</li>
<li>
<div>May 24 19:38:21 lonewolf kernel: [    14.016893] cx88[0]:    card=12 -&gt; ASUS PVR-416</div>
</li>
<li>
<div>May 24 19:38:21 lonewolf kernel: [    14.017208] cx88[0]:    card=13 -&gt; MSI TV-@nywhere</div>
</li>
<li>
<div>May 24 19:38:21 lonewolf kernel: [    14.017532] cx88[0]:    card=14 -&gt; KWorld/VStream XPert DVB-T</div>
</li>
<li>
<div>May 24 19:38:21 lonewolf kernel: [    14.017900] cx88[0]:    card=15 -&gt; DViCO FusionHDTV DVB-T1</div>
</li>
<li>
<div>May 24 19:38:21 lonewolf kernel: [    14.018252] cx88[0]:    card=16 -&gt; KWorld LTV883RF</div>
</li>
<li>
<div>May 24 19:38:21 lonewolf kernel: [    14.018570] cx88[0]:    card=17 -&gt; DViCO FusionHDTV 3 Gold-Q</div>
</li>
<li>
<div>May 24 19:38:21 lonewolf kernel: [    14.018925] cx88[0]:    card=18 -&gt; Hauppauge Nova-T DVB-T</div>
</li>
<li>
<div>May 24 19:38:21 lonewolf kernel: [    14.019270] cx88[0]:    card=19 -&gt; Conexant DVB-T reference design</div>
</li>
<li>
<div>May 24 19:38:21 lonewolf kernel: [    14.019644] cx88[0]:    card=20 -&gt; Provideo PV259</div>
</li>
<li>
<div>May 24 19:38:21 lonewolf kernel: [    14.019960] cx88[0]:    card=21 -&gt; DViCO FusionHDTV DVB-T Plus</div>
</li>
<li>
<div>May 24 19:38:21 lonewolf kernel: [    14.020356] cx88[0]:    card=22 -&gt; pcHDTV HD3000 HDTV</div>
</li>
<li>
<div>May 24 19:38:21 lonewolf kernel: [    14.030618] cx88[0]:    card=23 -&gt; digitalnow DNTV Live! DVB-T</div>
</li>
<li>
<div>May 24 19:38:21 lonewolf kernel: [    14.040737] cx88[0]:    card=24 -&gt; Hauppauge WinTV 28xxx (Roslyn)  models</div>
</li>
<li>
<div>May 24 19:38:21 lonewolf kernel: [    14.051028] cx88[0]:    card=25 -&gt; Digital-Logic MICROSPACE  Entertainment Center (MEC)</div>
</li>
<li>
<div>May 24 19:38:21 lonewolf kernel: [    14.071494] cx88[0]:    card=26 -&gt; IODATA GV/BCTV7E</div>
</li>
<li>
<div>May 24 19:38:21 lonewolf kernel: [    14.081762] cx88[0]:    card=27 -&gt; PixelView PlayTV Ultra Pro (Stereo)</div>
</li>
<li>
<div>May 24 19:38:21 lonewolf kernel: [    14.091783] cx88[0]:    card=28 -&gt; DViCO FusionHDTV 3 Gold-T</div>
</li>
<li>
<div>May 24 19:38:21 lonewolf kernel: [    14.101925] cx88[0]:    card=29 -&gt; ADS Tech Instant TV DVB-T PCI</div>
</li>
<li>
<div>May 24 19:38:21 lonewolf kernel: [    14.111947] cx88[0]:    card=30 -&gt; TerraTec Cinergy 1400 DVB-T</div>
</li>
<li>
<div>May 24 19:38:21 lonewolf kernel: [    14.122069] cx88[0]:    card=31 -&gt; DViCO FusionHDTV 5 Gold</div>
</li>
<li>
<div>May 24 19:38:21 lonewolf kernel: [    14.132337] cx88[0]:    card=32 -&gt; AverMedia UltraTV Media Center PCI  550</div>
</li>
<li>
<div>May 24 19:38:21 lonewolf kernel: [    14.142650] cx88[0]:    card=33 -&gt; Kworld V-Stream Xpert DVD</div>
</li>
<li>
<div>May 24 19:38:21 lonewolf kernel: [    14.152954] cx88[0]:    card=34 -&gt; ATI HDTV Wonder</div>
</li>
<li>
<div>May 24 19:38:21 lonewolf kernel: [    14.163478] cx88[0]:    card=35 -&gt; WinFast DTV1000-T</div>
</li>
<li>
<div>May 24 19:38:21 lonewolf kernel: [    14.174010] cx88[0]:    card=36 -&gt; AVerTV 303 (M126)</div>
</li>
<li>
<div>May 24 19:38:21 lonewolf kernel: [    14.184401] cx88[0]:    card=37 -&gt; Hauppauge Nova-S-Plus DVB-S</div>
</li>
<li>
<div>May 24 19:38:21 lonewolf kernel: [    14.194992] cx88[0]:    card=38 -&gt; Hauppauge Nova-SE2 DVB-S</div>
</li>
<li>
<div>May 24 19:38:21 lonewolf kernel: [    14.205465] cx88[0]:    card=39 -&gt; KWorld DVB-S 100</div>
</li>
<li>
<div>May 24 19:38:21 lonewolf kernel: [    14.215970] cx88[0]:    card=40 -&gt; Hauppauge WinTV-HVR1100  DVB-T/Hybrid</div>
</li>
<li>
<div>May 24 19:38:21 lonewolf kernel: [    14.226649] cx88[0]:    card=41 -&gt; Hauppauge WinTV-HVR1100  DVB-T/Hybrid (Low Profile)</div>
</li>
<li>
<div>May 24 19:38:21 lonewolf kernel: [    14.247883] cx88[0]:    card=42 -&gt; digitalnow DNTV Live! DVB-T Pro</div>
</li>
<li>
<div>May 24 19:38:21 lonewolf kernel: [    14.259172] cx88[0]:    card=43 -&gt; KWorld/VStream XPert DVB-T with  cx22702</div>
</li>
<li>
<div>May 24 19:38:21 lonewolf kernel: [    14.270560] cx88[0]:    card=44 -&gt; DViCO FusionHDTV DVB-T Dual Digital</div>
</li>
<li>
<div>May 24 19:38:21 lonewolf kernel: [    14.282025] cx88[0]:    card=45 -&gt; KWorld HardwareMpegTV XPert</div>
</li>
<li>
<div>May 24 19:38:21 lonewolf kernel: [    14.293396] cx88[0]:    card=46 -&gt; DViCO FusionHDTV DVB-T Hybrid</div>
</li>
<li>
<div>May 24 19:38:21 lonewolf kernel: [    14.304702] cx88[0]:    card=47 -&gt; pcHDTV HD5500 HDTV</div>
</li>
<li>
<div>May 24 19:38:21 lonewolf kernel: [    14.315830] cx88[0]:    card=48 -&gt; Kworld MCE 200 Deluxe</div>
</li>
<li>
<div>May 24 19:38:21 lonewolf kernel: [    14.327030] cx88[0]:    card=49 -&gt; PixelView PlayTV P7000</div>
</li>
<li>
<div>May 24 19:38:21 lonewolf kernel: [    14.338171] cx88[0]:    card=50 -&gt; NPG Tech Real TV FM Top 10</div>
</li>
<li>
<div>May 24 19:38:21 lonewolf kernel: [    14.349322] cx88[0]:    card=51 -&gt; WinFast DTV2000 H</div>
</li>
<li>
<div>May 24 19:38:21 lonewolf kernel: [    14.360277] cx88[0]:    card=52 -&gt; Geniatech DVB-S</div>
</li>
<li>
<div>May 24 19:38:21 lonewolf kernel: [    14.371133] cx88[0]:    card=53 -&gt; Hauppauge WinTV-HVR3000 TriMode  Analog/DVB-S/DVB-T</div>
</li>
<li>
<div>May 24 19:38:21 lonewolf kernel: [    14.392302] cx88[0]:    card=54 -&gt; Norwood Micro TV Tuner</div>
</li>
<li>
<div>May 24 19:38:21 lonewolf kernel: [    14.403119] cx88[0]:    card=55 -&gt; Shenzhen Tungsten Ages Tech  TE-DTV-250 / Swann OEM</div>
</li>
<li>
<div>May 24 19:38:21 lonewolf kernel: [    14.425351] cx88[0]:    card=56 -&gt; Hauppauge WinTV-HVR1300  DVB-T/Hybrid MPEG Encoder</div>
</li>
<li>
<div>May 24 19:38:21 lonewolf kernel: [    14.448397] cx88[0]:    card=57 -&gt; ADS Tech Instant Video PCI</div>
</li>
<li>
<div>May 24 19:38:21 lonewolf kernel: [    14.460250] cx88[0]:    card=58 -&gt; Pinnacle PCTV HD 800i</div>
</li>
<li>
<div>May 24 19:38:21 lonewolf kernel: [    14.472088] cx88[0]:    card=59 -&gt; DViCO FusionHDTV 5 PCI nano</div>
</li>
<li>
<div>May 24 19:38:21 lonewolf kernel: [    14.483859] cx88[0]:    card=60 -&gt; Pinnacle Hybrid PCTV</div>
</li>
<li>
<div>May 24 19:38:21 lonewolf kernel: [    14.495621] cx88[0]:    card=61 -&gt; Leadtek TV2000 XP Global</div>
</li>
<li>
<div>May 24 19:38:21 lonewolf kernel: [    14.507511] cx88[0]:    card=62 -&gt; PowerColor RA330</div>
</li>
<li>
<div>May 24 19:38:21 lonewolf kernel: [    14.519250] cx88[0]:    card=63 -&gt; Geniatech X8000-MT DVBT</div>
</li>
<li>
<div>May 24 19:38:21 lonewolf kernel: [    14.531312] cx88[0]:    card=64 -&gt; DViCO FusionHDTV DVB-T PRO</div>
</li>
<li>
<div>May 24 19:38:21 lonewolf kernel: [    14.543210] cx88[0]:    card=65 -&gt; DViCO FusionHDTV 7 Gold</div>
</li>
<li>
<div>May 24 19:38:21 lonewolf kernel: [    14.554938] cx88[0]:    card=66 -&gt; Prolink Pixelview MPEG 8000GT</div>
</li>
<li>
<div>May 24 19:38:21 lonewolf kernel: [    14.566832] cx88[0]:    card=67 -&gt; Kworld PlusTV HD PCI 120 (ATSC 120)</div>
</li>
<li>
<div>May 24 19:38:21 lonewolf kernel: [    14.578525] cx88[0]:    card=68 -&gt; Hauppauge WinTV-HVR4000  DVB-S/S2/T/Hybrid</div>
</li>
<li>
<div>May 24 19:38:21 lonewolf kernel: [    14.589973] cx88[0]:    card=69 -&gt; Hauppauge WinTV-HVR4000(Lite)  DVB-S/S2</div>
</li>
<li>
<div>May 24 19:38:21 lonewolf kernel: [    14.601279] cx88[0]:    card=70 -&gt; TeVii S460 DVB-S/S2</div>
</li>
<li>
<div>May 24 19:38:21 lonewolf kernel: [    14.612676] cx88[0]:    card=71 -&gt; Omicom SS4 DVB-S/S2 PCI</div>
</li>
<li>
<div>May 24 19:38:21 lonewolf kernel: [    14.624058] cx88[0]:    card=72 -&gt; TBS 8920 DVB-S/S2</div>
</li>
<li>
<div>May 24 19:38:21 lonewolf kernel: [    14.635450] cx88[0]:    card=73 -&gt; TeVii S420 DVB-S</div>
</li>
<li>
<div>May 24 19:38:21 lonewolf kernel: [    14.646784] cx88[0]:    card=74 -&gt; Prolink Pixelview Global Extreme</div>
</li>
<li>
<div>May 24 19:38:21 lonewolf kernel: [    14.658301] cx88[0]:    card=75 -&gt; PROF 7300 DVB-S/S2</div>
</li>
<li>
<div>May 24 19:38:21 lonewolf kernel: [    14.669770] cx88[0]:    card=76 -&gt; SATTRADE ST4200 DVB-S/S2</div>
</li>
<li>
<div>May 24 19:38:21 lonewolf kernel: [    14.681486] cx88[0]:    card=77 -&gt; TBS 8910 DVB-S</div>
</li>
<li>
<div>May 24 19:38:21 lonewolf kernel: [    14.692933] cx88[0]:    card=78 -&gt; Prof 6200 DVB-S</div>
</li>
<li>
<div>May 24 19:38:21 lonewolf kernel: [    14.704146] cx88[0]:    card=79 -&gt; Terratec Cinergy HT PCI MKII</div>
</li>
<li>
<div>May 24 19:38:21 lonewolf kernel: [    14.715313] cx88[0]:    card=80 -&gt; Hauppauge WinTV-IR Only</div>
</li>
<li>
<div>May 24 19:38:21 lonewolf kernel: [    14.726179] cx88[0]:    card=81 -&gt; Leadtek WinFast DTV1800 Hybrid</div>
</li>
<li>
<div>May 24 19:38:21 lonewolf kernel: [    14.736853] cx88[0]:    card=82 -&gt; WinFast DTV2000 H rev. J</div>
</li>
<li>
<div>May 24 19:38:21 lonewolf kernel: [    14.736865] cx88[0]: subsystem: 0000:0000, board: UNKNOWN/GENERIC  [card=0,autodetected], frontend(s): 0</div>
</li>
<li>
<div>May 24 19:38:21 lonewolf kernel: [    14.736872] cx88[0]: TV tuner type -1, Radio tuner type -1</div>
</li>
</ol>
<p>Never had to deal with this before. Annoying, as my Hauppauge 250 PVR card works amazing and out of the box. As you can see there is no EZ View or Mercury in there.</p>
<h2>Debugging</h2>
<p>I needed to find out more information:</p>
<pre>sudo lspci -v</pre>
<pre>02:0a.0 Multimedia video controller: Conexant Systems, Inc. CX23880/1/2/3 PCI Video and Audio Decoder (rev 03)
 Flags: medium devsel, IRQ 22
 Memory at f9000000 (32-bit, non-prefetchable) [size=16M]
 Capabilities: [44] Vital Product Data &lt;?&gt;
 Capabilities: [4c] Power Management version 2
 Kernel modules: cx8800</pre>
<p>I installed my usual software:</p>
<ul>
<li>tvtime</li>
<li>xawtv</li>
</ul>
<pre>sudo apt-get install tvtime xawtv</pre>
<p>I tried all, obviously, got nothing.</p>
<p>After posting numerous posts around the web, reading, my last resort was to figure out how to set the card types. To do so I needed to learn the modprobe command.</p>
<p>One thing to note here is that it seems the cx8800 driver creates the device /dev/video0 and the cx88xx provides new functionality, therefore they work together. You need to unload and reload them both. My initial problems was that the cx8800 driver does not support the modprobe command &#8220;card&#8221; as that was moved to the cx88xx driver.</p>
<p>Another thing was you can&#8217;t unload the cx88xx module from the kernel unless you first remove the cx8800 module. These little things caused a lot of initial confusion for me.</p>
<p>I wrote a little script to test each card type, surprisingly, this card seems to work on a couple different types. It was working and I didn&#8217;t even know it a couple times. Here&#8217;s a simple shell script I wrote:</p>
<pre>rmmod cx8800
rmmod cx88xx</pre>
<pre>modprobe cx88xx card=$1 tuner=$2
modprobe cx8800</pre>
<pre>tvtime</pre>
<p>When tvtime opens, you can then set the input for the card, in my case it was Television, but for some it might be composite, s-video, dvb whatever your case may be. It took a few seconds before my video started producing color video.</p>
<h3>Freenode help</h3>
<p>A friendly fellow from Iceland, <strong>kizi</strong>, from Freenode&#8217;s IRC ##linux channel, provided some expertise here and helped me on the rest of the journey. He found me this interesting site:</p>
<p><a title="Linkification:  http://translate.google.is/translate?js=y&amp;prev=_t&amp;hl=en&amp;ie=UTF-8&amp;layout=1&amp;eotf=1&amp;u=http%3A%2F%2Fsugo.ubuntu.hu%2Fcommunity-doc%2Fhardy%2Funiverse%2Fhardware%2Fmercury_ezview_cx88xx.html&amp;sl=hu&amp;tl=en" href="http://translate.google.is/translate?js=y&amp;prev=_t&amp;hl=en&amp;ie=UTF-8&amp;layout=1&amp;eotf=1&amp;u=http%3A%2F%2Fsugo.ubuntu.hu%2Fcommunity-doc%2Fhardy%2Funiverse%2Fhardware%2Fmercury_ezview_cx88xx.html&amp;sl=hu&amp;tl=en">http://translate.google.is/translate?js=y&amp;prev=_t&amp;hl=en&amp;ie=UTF-8&amp;layout=1&amp;eotf=1&amp;u=http%3A%2F%2Fsugo.ubuntu.hu%2Fcommunity-doc%2Fhardy%2Funiverse%2Fhardware%2Fmercury_ezview_cx88xx.html&amp;sl=hu&amp;tl=en</a></p>
<p>Honestly cannot thank him enough!</p>
<p>Interestingly this link had the card and tuner number I needed! card=27 tuner=69</p>
<p>So I ran the script again with the following:</p>
<pre>./mercury 27 69</pre>
<p>Viola! seemed to work even better!</p>
<p>To make this work after rebooting the computer, I made a config file: /etc/<a class="linkification-ext" title="Linkification: http://modprobe.conf/mercury.conf" href="http://modprobe.conf/mercury.conf">modprobe.conf/mercury.conf</a></p>
<pre>options cx88 card=27 tuner=69</pre>
<p>So I rebooted and to make sure it worked still. Yay!</p>
<p>As for setting it up in MythTV, well, that is a whole different post. Due to the way my audio is configured, it&#8217;s like a puzzle of jumper cables and only just figured it out 24 hours later with lots of frustration. <strong>Boy, do I hate </strong>the way Ubuntu 10.04 LTS handles the audio card configurations!!</p>
<p>Hope this will help anyone else getting their card to work.</p>
<h2>Related pages:</h2>
<ul>
<li>Mercury EZ view tv tuner card (Conexant CX 23881 chipset) &#8211; http://ubuntuforums.org/showthread.php?t=512551</li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://www.lwp.ca/james/2010/05/linux-and-the-mercury-ez-view-tv-tuner-card/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Automatic database backup via script</title>
		<link>http://www.lwp.ca/james/2010/02/automatic-database-backup-via-script/</link>
		<comments>http://www.lwp.ca/james/2010/02/automatic-database-backup-via-script/#comments</comments>
		<pubDate>Mon, 22 Feb 2010 19:13:16 +0000</pubDate>
		<dc:creator>James</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[ProTip]]></category>
		<category><![CDATA[Web Development]]></category>
		<category><![CDATA[Backup]]></category>
		<category><![CDATA[Scripts]]></category>
		<category><![CDATA[Tips 'n Hacks]]></category>

		<guid isPermaLink="false">http://www.lwp.ca/james/?p=475</guid>
		<description><![CDATA[As mentioned before somewhere in my blog, here is the script I have written to back up my databases. This is actually my local backup script, I have a much different one on the server which uses a passwordless ssh connection to backup the databases offsite. #!/bin/sh # Database backup 2008 &#60;jemmrich@gmail.com&#62; # Nightly Usage: [...]]]></description>
			<content:encoded><![CDATA[<p>As mentioned before somewhere in my blog, here is the script I have written to back up my databases. This is actually my local backup script, I have a much different one on the server which uses a passwordless ssh connection to backup the databases offsite.</p>
<pre>#!/bin/sh
# Database backup 2008 &lt;jemmrich@gmail.com&gt;
# Nightly Usage:
# 0 0 * * * /home/james/Dropbox/Home/mobilewolf/scripts/backup.sh &amp;&gt; /dev/null

LOGFILE="/home/james/Dropbox/Home/mobilewolf/databases/databases.log"
BACKUPDIR="/home/james/Dropbox/Home/mobilewolf/databases"
STARTTIME="$(date +%Y-%m-%d-%r)"

# MySQL Login
SQLUSER="sqluser"
SQLPASS="sqlpass"

# Dump databases
echo "*** Database Backup Started: $STARTTIME" &gt;&gt; $LOGFILE

# Keep yesterdays databases
rm -f $BACKUPDIR/yesterday/*
mv $BACKUPDIR/*.gz $BACKUPDIR/yesterday/

for i in `echo "show databases" | mysql -u $SQLUSER -p$SQLPASS | grep -v Database`;
do
 mysqldump -u $SQLUSER -p$SQLPASS $i &gt; /tmp/$i.sql
 echo $i &gt;&gt; $LOGFILE
 gzip /tmp/$i.sql

 # Send Databases
 cp /tmp/*.sql.gz $BACKUPDIR/

 # Remove our dumps to keep us clean
 rm -f /tmp/*.sql.gz
done

echo "*** Database Backup Ended: $(date +%Y-%m-%d-%r)" &gt;&gt; $LOGFILE
echo "\n" &gt;&gt; $LOGFILE</pre>
<p><strong>Setup</strong></p>
<ol>
<li>Change the user and password to a user that has ability to access all databases for dump</li>
<li>Download and set executable permissions chmod +x backup_databases.sh</li>
<li>edit cron to execute every night: crontab -e</li>
<li>add: 0 0 * * * /home/james/Dropbox/Home/mobilewolf/scripts/backup_databases.sh &amp;&gt; /dev/null</li>
</ol>
<p><strong>Ideas for your setup</strong></p>
<ul>
<li>The line following &#8220;Send databases&#8221; replace cp, with scp to send the databases to remote server. You will need to have passwordless ssh connections setup.</li>
<li>Have the log file emailed to you once completed</li>
</ul>
<p><strong>My Future Improvements</strong></p>
<ul>
<li>Enable backup archiving for the past week rotated daily so I can go back to a database from 2 or 3 days or even a week ago</li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://www.lwp.ca/james/2010/02/automatic-database-backup-via-script/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
