WinTV Radio Model 401 Success

  • user warning: Table './drupal_gding/cache_filter' is marked as crashed and should be repaired query: SELECT data, created, headers, expire, serialized FROM cache_filter WHERE cid = '1:f66f5dde307c6be06ded2f61e557dcf3' in /var/www/mythdora/html/includes/cache.inc on line 26.
  • user warning: Table './drupal_gding/cache_filter' is marked as crashed and should be repaired query: UPDATE cache_filter SET data = '<p>I thought I\'d share a recent success I had using a WinTV Radio Model 401 on Mythdora 4. It was a rocky road getting it working, but I\'ve finally done it. Hopefully it helps someone else down the road. </p>\n<p>I got this card Hauppauge WinTV Radio (model dbx-401) for free, so I figured I\'d put it to use. This card is a v4l card that uses the CX88 modules that are included with the video4linux packages.</p>\n<p>After the setup of MD4.0 the card was detected auto-magically as the proper type. So here are some things you may need to be careful of or modify to get things working nicely.</p>\n<p><strong>1) Mythtv-setup &amp; sound card selection:</strong><br />\n Choose v4l card. and select audio capture as /dev/dsp1 (you should verify cx88-alsa is loaded). By choosing /dev/dsp1 (you should have /dev/dsp &amp; /dev/dsp1 for available devices) you will capture audio by DMA and eliminate the need for a line-out / line-in jumper from capture card to sound card.</p>\n<p><strong>2) LIRC &amp; Remote Controls:</strong><br />\n This bit was a bit frustrating until I stumbled onto what was happening. At the setup step in mythdorasetup for remotes, I selected the Hauppauge-Grey remote (which it is). Unfortunately, due to our old assumptions, when we make this choice for remote we assume it\'s an IVTV lirc device. So here\'s the weird and confusing part. The remote came up and kind-of worked. Some keys worked, others didn\'t, and irw wouldn\'t show me anything. </p>\n<p>After some poking and prodding as to why I\'d get ^B and ^M signals from the remote key presses, I realized that the remote was working not via lirc, but via the built in cx88_ir module that automagically loaded. The problem with this was that I couldn\'t figure out how to program the damn thing with the proper key presses, so I figured out how to make it work with LIRC instead. </p>\n<p>The IR device was being installed as a /dev/input/event device. So to get lirc to honor this device I looked here: <strong>/proc/bus/input/devices</strong> for the IR device. It said my device was installed on /dev/input/event4. So now <strong>/etc/sysconfig/lircd</strong> needed to be updated for options to acces this device. So for lircd_options I added this <strong>-H dev/input -d /dev/input/event4</strong>. </p>\n<p>A restart of lircd with /sbin/service lircd restart and I was on my way. Now one thing to notice here.. if you go and remove a device, like an add on card, or say a USB keyboard or mouse. It\'s possible that your input event ID will change. Especially if you remove a device, it\'s likely your event ID will decrease, and of course lircd will not work properly. </p>\n<p><strong>3)Pre-Loaded modules.. No Good for me.</strong><br />\nI found that something being done in /etc/sysconfig/modules/v4l.sh was causing me problems. This script was pre-loading the cx88-alsa card early in the boot scheme. As a result my main sound card would fail to get the proper device ID at boot time and thus the module would insert but no device would exist; and the result: No Sound. </p>\n<p>Needless to say this pissed me off and I was on my way to finding what to do. I removed the v4l.sh pre-load script, and the cx88-alsa still loaded before my snd-intel8x0 module and I still had no sound. So to remedy this I ended up having to blacklist the cx88-alsa module in <strong>/etc/modprobe.d/blacklist</strong>. Now to get my module working I had to add a modprobe line to <strong>/etc/rc.local</strong> to get this module to load last. Finally I have reliable sound. </p>\n<p><strong>4)Uninstall IVTV</strong><br />\nThe video4linux and ivtv drivers hate each other. So rip out all ivtv and ivtv-kmdl packages to get smooth playback.</p>\n<p>I hope this helps someone out there cause it was a PITA for me! But the card is functioning well now, and it\'s pretty decent for a cheap software based card.</p>\n<p>Ryan</p>\n', created = 1369018556, expire = 1369104956, headers = '', serialized = 0 WHERE cid = '1:f66f5dde307c6be06ded2f61e557dcf3' in /var/www/mythdora/html/includes/cache.inc on line 109.
  • user warning: Table './drupal_gding/cache_filter' is marked as crashed and should be repaired query: SELECT data, created, headers, expire, serialized FROM cache_filter WHERE cid = '1:4e8b4b34d7580ec2b53a6b6f44aa2200' in /var/www/mythdora/html/includes/cache.inc on line 26.
  • user warning: Table './drupal_gding/cache_filter' is marked as crashed and should be repaired query: UPDATE cache_filter SET data = '<p>Nice writeup Ryan. I may need to tweak these type of cards getting loaded correctly. I do have something for the bttv style cards but the cx88 styles are a PIA sometimes.</p>\n<p>\"Please ignore the man behind the curtain\"<br />\nDennis</p>\n', created = 1369018556, expire = 1369104956, headers = '', serialized = 0 WHERE cid = '1:4e8b4b34d7580ec2b53a6b6f44aa2200' in /var/www/mythdora/html/includes/cache.inc on line 109.
  • user warning: Table './drupal_gding/cache_filter' is marked as crashed and should be repaired query: SELECT data, created, headers, expire, serialized FROM cache_filter WHERE cid = '1:7ee834acd95a5efc693cacccaa73a62b' in /var/www/mythdora/html/includes/cache.inc on line 26.
  • user warning: Table './drupal_gding/cache_filter' is marked as crashed and should be repaired query: UPDATE cache_filter SET data = '<p>\"Please ignore the man behind the curtain\"<br />\nDennis</p>\n', created = 1369018556, expire = 1369104956, headers = '', serialized = 0 WHERE cid = '1:7ee834acd95a5efc693cacccaa73a62b' in /var/www/mythdora/html/includes/cache.inc on line 109.
  • user warning: Table './drupal_gding/cache_filter' is marked as crashed and should be repaired query: SELECT data, created, headers, expire, serialized FROM cache_filter WHERE cid = '1:ca44f9341d8399ce70707219893d53ff' in /var/www/mythdora/html/includes/cache.inc on line 26.
  • user warning: Table './drupal_gding/cache_filter' is marked as crashed and should be repaired query: UPDATE cache_filter SET data = '<p>Yeah it was a little rough. I figured I\'d get the key points out somewhere now as I had a hell of time finding any useful information on the net. It seems like there were old list posts with lots of people lost like I was. So I just had to push through it and figure out what the hell I needed to do. </p>\n<p>Oh, I also had to record a new lircd.conf for this model. Since the IR was being grabbed through the input device it doesn\'t register with the same key-codes. I figured we could put some another remote option for \"hauppauge remote Grey (cx88) model\" Then do some magic to get the proper device ID from /proc/bus and dump to lircd in /etc/sysconfig/lircd.</p>\n', created = 1369018556, expire = 1369104956, headers = '', serialized = 0 WHERE cid = '1:ca44f9341d8399ce70707219893d53ff' in /var/www/mythdora/html/includes/cache.inc on line 109.
  • user warning: Table './drupal_gding/cache_filter' is marked as crashed and should be repaired query: SELECT data, created, headers, expire, serialized FROM cache_filter WHERE cid = '1:4f388ca1a4e24394b8456989c928e600' in /var/www/mythdora/html/includes/cache.inc on line 26.
  • user warning: Table './drupal_gding/cache_filter' is marked as crashed and should be repaired query: UPDATE cache_filter SET data = '<p>Do me a favor and upload your new lircd.conf into SVN under the lirc directory for me. If you have a lircrc file then add that in too.</p>\n<p>\"Please ignore the man behind the curtain\"<br />\nDennis</p>\n', created = 1369018556, expire = 1369104956, headers = '', serialized = 0 WHERE cid = '1:4f388ca1a4e24394b8456989c928e600' in /var/www/mythdora/html/includes/cache.inc on line 109.
  • user warning: Table './drupal_gding/cache_filter' is marked as crashed and should be repaired query: SELECT data, created, headers, expire, serialized FROM cache_filter WHERE cid = '1:7ee834acd95a5efc693cacccaa73a62b' in /var/www/mythdora/html/includes/cache.inc on line 26.
  • user warning: Table './drupal_gding/cache_filter' is marked as crashed and should be repaired query: UPDATE cache_filter SET data = '<p>\"Please ignore the man behind the curtain\"<br />\nDennis</p>\n', created = 1369018556, expire = 1369104956, headers = '', serialized = 0 WHERE cid = '1:7ee834acd95a5efc693cacccaa73a62b' in /var/www/mythdora/html/includes/cache.inc on line 109.
  • user warning: Table './drupal_gding/cache_filter' is marked as crashed and should be repaired query: SELECT data, created, headers, expire, serialized FROM cache_filter WHERE cid = '1:9bcadc4d10a95ecc679c9cce2438f499' in /var/www/mythdora/html/includes/cache.inc on line 26.
  • user warning: Table './drupal_gding/cache_filter' is marked as crashed and should be repaired query: UPDATE cache_filter SET data = '<p>lircrc from regular hauppgrey should work. I named the keys accordingly when I performed the irrecord.</p>\n', created = 1369018556, expire = 1369104956, headers = '', serialized = 0 WHERE cid = '1:9bcadc4d10a95ecc679c9cce2438f499' in /var/www/mythdora/html/includes/cache.inc on line 109.

I thought I'd share a recent success I had using a WinTV Radio Model 401 on Mythdora 4. It was a rocky road getting it working, but I've finally done it. Hopefully it helps someone else down the road.

I got this card Hauppauge WinTV Radio (model dbx-401) for free, so I figured I'd put it to use. This card is a v4l card that uses the CX88 modules that are included with the video4linux packages.

After the setup of MD4.0 the card was detected auto-magically as the proper type. So here are some things you may need to be careful of or modify to get things working nicely.

1) Mythtv-setup & sound card selection:
Choose v4l card. and select audio capture as /dev/dsp1 (you should verify cx88-alsa is loaded). By choosing /dev/dsp1 (you should have /dev/dsp & /dev/dsp1 for available devices) you will capture audio by DMA and eliminate the need for a line-out / line-in jumper from capture card to sound card.

2) LIRC & Remote Controls:
This bit was a bit frustrating until I stumbled onto what was happening. At the setup step in mythdorasetup for remotes, I selected the Hauppauge-Grey remote (which it is). Unfortunately, due to our old assumptions, when we make this choice for remote we assume it's an IVTV lirc device. So here's the weird and confusing part. The remote came up and kind-of worked. Some keys worked, others didn't, and irw wouldn't show me anything.

After some poking and prodding as to why I'd get ^B and ^M signals from the remote key presses, I realized that the remote was working not via lirc, but via the built in cx88_ir module that automagically loaded. The problem with this was that I couldn't figure out how to program the damn thing with the proper key presses, so I figured out how to make it work with LIRC instead.

The IR device was being installed as a /dev/input/event device. So to get lirc to honor this device I looked here: /proc/bus/input/devices for the IR device. It said my device was installed on /dev/input/event4. So now /etc/sysconfig/lircd needed to be updated for options to acces this device. So for lircd_options I added this -H dev/input -d /dev/input/event4.

A restart of lircd with /sbin/service lircd restart and I was on my way. Now one thing to notice here.. if you go and remove a device, like an add on card, or say a USB keyboard or mouse. It's possible that your input event ID will change. Especially if you remove a device, it's likely your event ID will decrease, and of course lircd will not work properly.

3)Pre-Loaded modules.. No Good for me.
I found that something being done in /etc/sysconfig/modules/v4l.sh was causing me problems. This script was pre-loading the cx88-alsa card early in the boot scheme. As a result my main sound card would fail to get the proper device ID at boot time and thus the module would insert but no device would exist; and the result: No Sound.

Needless to say this pissed me off and I was on my way to finding what to do. I removed the v4l.sh pre-load script, and the cx88-alsa still loaded before my snd-intel8x0 module and I still had no sound. So to remedy this I ended up having to blacklist the cx88-alsa module in /etc/modprobe.d/blacklist. Now to get my module working I had to add a modprobe line to /etc/rc.local to get this module to load last. Finally I have reliable sound.

4)Uninstall IVTV
The video4linux and ivtv drivers hate each other. So rip out all ivtv and ivtv-kmdl packages to get smooth playback.

I hope this helps someone out there cause it was a PITA for me! But the card is functioning well now, and it's pretty decent for a cheap software based card.

Ryan

Nice writeup Ryan. I take it

Nice writeup Ryan. I may need to tweak these type of cards getting loaded correctly. I do have something for the bttv style cards but the cx88 styles are a PIA sometimes.

"Please ignore the man behind the curtain"
Dennis

"Please ignore the man behind the curtain"
Dennis

Yeah it was a little rough.

Yeah it was a little rough. I figured I'd get the key points out somewhere now as I had a hell of time finding any useful information on the net. It seems like there were old list posts with lots of people lost like I was. So I just had to push through it and figure out what the hell I needed to do.

Oh, I also had to record a new lircd.conf for this model. Since the IR was being grabbed through the input device it doesn't register with the same key-codes. I figured we could put some another remote option for "hauppauge remote Grey (cx88) model" Then do some magic to get the proper device ID from /proc/bus and dump to lircd in /etc/sysconfig/lircd.

Do me a favor and upload

Do me a favor and upload your new lircd.conf into SVN under the lirc directory for me. If you have a lircrc file then add that in too.

"Please ignore the man behind the curtain"
Dennis

"Please ignore the man behind the curtain"
Dennis

I will do it today

lircrc from regular hauppgrey should work. I named the keys accordingly when I performed the irrecord.