AVS › AVS Forum › Video Components › Home Theater Computers › HTPC - Linux Chat › Pinnacle PCTV HD 800i card on Myth
New Posts  All Forums:Forum Nav:

Pinnacle PCTV HD 800i card on Myth

post #1 of 58
Thread Starter 
This thread is to continue the discussion from

http://www.avsforum.com/avs-vb/showt...1#post13774831

That thread has lots of diagnostic output from the Mythbox I'm building.

To summarize:

MythBuntu 8.04

BioStar NF4 Ultra-A9A mobo
X2 3800
Nvidia 7300GS PCIe
1 GB PC3200 DDR
Maxtor 120GB OS drive
Maxtor 200GB data drive for recordings
Pioneer DVD-RW
HP DVD-RW
Packard Bell Fast Media Remote with serial port receiver- works fine (where do I find the key function mappings?)

This thread
http://ubuntuforums.org/showthread.php?t=602039&page=5

appears to indicate that it *can* work with Myth, but no one has replied. One guy claimed that OTA HD works great for him, but no reply on *how* to get it up and running.
post #2 of 58
OK, I'm still up and slightly more buzzed; but, I think waterhead's on to something over in the other thread, even though he doesn't realize you've started another thread, LOL!

This could very well be a problem with the (proper) firmware not being right or in the right place.
post #3 of 58
Thread Starter 
Welp, I dl'd the firmware again from

http://www.steventoth.net/linux/xc5000/

dl'd the .gz from

http://linuxtv.org/hg/v4l-dvb

tar zxvf'd it, then did

make

sudo make install

apparently without issue. The v4l-dvb package is newer than the one I was using, so there's hope. I will reboot now.
post #4 of 58
Thread Starter 
Rebooted, still nuthin' when I run MythTV Backend setup (no card detected) ;(

I hate to say it, but the 800i *was* detected in MythDora 5.0, but it appeared only for analog- couldn't figure out the ATSC tuner part there either

I want to use MythBuntu.
post #5 of 58
Thread Starter 
Calling it quits for the night- but by all means, keep posting ideas if you can't sleep
post #6 of 58
OK, one more post tonight.

Try this one.
Code:
 modprobe cx23885 card=58
I got that from here:

http://ubuntuforums.org/archive/index.php/t-550276.html
post #7 of 58
Thread Starter 
modprobe cx23885 card=58

returned

WARNING: Error inserting dvb_core (/lib/modules/2.6.24-16-generic/kernel/drivers/media/dvb/dvb-core/dvb-core.ko): Operation not permitted
WARNING: Error inserting videobuf_dvb (/lib/modules/2.6.24-16-generic/kernel/drivers/media/video/videobuf-dvb.ko): Operation not permitted
WARNING: Error inserting cx2341x (/lib/modules/2.6.24-16-generic/kernel/drivers/media/video/cx2341x.ko): Operation not permitted
FATAL: Error inserting cx23885 (/lib/modules/2.6.24-16-generic/kernel/drivers/media/video/cx23885/cx23885.ko): Operation not permitted

so, I did

sudo modprobe cx23885 card=58

which returned nothing, so I assumed it "worked" and ran MythTV Backend Setup, but still no capture card found.
post #8 of 58
Check dmesg again after inserting a new module. That command may only be for the analog side of the card. I really don't know!

Make sure that you are setting it up as a DVB card, but you most likely already know that.

Gotta go to work now, bye.
post #9 of 58
Also, since you rebooted, the bt driver loaded again & it may cause conflicts.
Code:
sudo modprobe -r cx23885
sudo modprobe -r btcx_risc
sudo modprobe cx23885 card=58
dmesg
Once (if) you find a module that works, you'll probably have to blacklist the bt one.
post #10 of 58
Thread Starter 
Quote:
Originally Posted by mythmaster View Post

Also, since you rebooted, the bt driver loaded again & it may cause conflicts.
Code:
sudo modprobe -r cx23885
sudo modprobe -r btcx_risc
sudo modprobe cx23885 card=58
dmesg
Once (if) you find a module that works, you'll probably have to blacklist the bt one.

Thanks. I'll try this evening when I get back home.
post #11 of 58
I did a little digging in the V4L-DVB mailing list archives here. It says that the modules needed for this card are these.

cx88-*
s5h1409
xc5000

I don't know why the * after cx88-. I guess it's a wildcard.
post #12 of 58
Thread Starter 
Quote:
Originally Posted by mythmaster View Post
Also, since you rebooted, the bt driver loaded again & it may cause conflicts.
Code:
sudo modprobe -r cx23885
sudo modprobe -r btcx_risc
sudo modprobe cx23885 card=58
dmesg
Once (if) you find a module that works, you'll probably have to blacklist the bt one.
The modprobe commands appeared to work, i.e. returned nothing.

Attached is dmesg output

 

dmesg2.txt 38.994140625k . file
post #13 of 58
This seems to be a bug in Ubuntu only. Try this work around by Michael Krufky:
https://bugs.launchpad.net/ubuntu/+s...24/+bug/220857

Quote:
Originally Posted by Michael Krufky View Post

I found a workaround to this problem.

First, I noticed the following.....

mk@aftermath:/lib/modules/2.6.24-16-generic/ubuntu/media$ find /lib/modules/`uname -r` | grep cx88xx.ko
/lib/modules/2.6.24-16-generic/ubuntu/media/cx88/cx88xx.ko
/lib/modules/2.6.24-16-generic/kernel/drivers/media/video/cx88/cx88xx.ko
mk@aftermath:/lib/modules/2.6.24-16-generic/ubuntu/media$ find /lib/modules/`uname -r` | grep saa7134.ko
/lib/modules/2.6.24-16-generic/ubuntu/media/saa7134/saa7134.ko
/lib/modules/2.6.24-16-generic/kernel/drivers/media/video/saa7134/saa7134.ko

The ubuntu kernel has its own separate copy of the cx88 and saa7134 modules! When we build new modules in the v4l-dvb repository from linuxtv.org, we are adding a second version of these modules.

There are copies of some other v4l modules, too:

mk@aftermath:/lib/modules/2.6.24-16-generic/ubuntu/media$ ls /lib/modules/`uname -r`/ubuntu/media
cx88 gspcav1 lirc ov511 quickcam saa7134 stk11xx usbvideo

It is ubuntu's version of these modules that is loading by default, and that is why we have the symbol version conflict with videobuf_foo.

To workaround the problem, delete the offending ubuntu driver from the directory above, then run "sudo depmod -a"

for example:

sudo rm -rf /lib/modules/`uname -r`/ubuntu/media/cx88
sudo rm -rf /lib/modules/`uname -r`/ubuntu/media/saa7134
sudo depmod -a

So, this issue does indeed seem to have been caused by bug #212100's "fix".
post #14 of 58
It appears that all of the "Unknown symbol" stuff in the dmesg is happening at boot when the bt driver is loaded, so I wouldn't worry about that, but do go ahead and blacklist it.

The workaround waterhead found makes sense.

Also, we apparently haven't used the right module(s) yet. I would delete all of the duplicates found per the workaround (or rename them to whatever.bak) and then try the modules he found in the V4L-DVB list.

The wildcard usually means "all", but in this case it could also mean "whatever chipset you have", or it could be "whatever version", so I don't know as I haven't had a look at the modules yet. It'll probably be apparent when you see the .ko filenames.
post #15 of 58
Thread Starter 
Quote:
Originally Posted by waterhead View Post

This seems to be a bug in Ubuntu only. Try this work around by Michael Krufky:
https://bugs.launchpad.net/ubuntu/+s...24/+bug/220857

DEAL!

Doing the rm commands and depmod at the end of the citation, then make install from the v4l-dvb download again and rebooting, did the trick. Myth TV Set up now recognizes both the analog and ATSC (DVB) parts of the card perfectly!

I am scanning for OTA stations as I write this.

Mythmaster and waterhead are truly Steely-Eyed Missile Men of the Highest Order

This thread was a great tutorial on Linux drivers (Modules), how to inspect them and diagnose them. Truly in the spirit of Linux/FOSS and the PC builders community.

Thanks guys...
post #16 of 58
The person to really thank is Michael Krufky. He and CityK are V4L-DVB developers (among others), without whom we would still need to use Windows for TV.

I knew if I looked hard enough I would find a reason to hate Ubuntu! Damn those pretty and popular girls... umm... I mean distros!
post #17 of 58
Thread Starter 
Quote:
Originally Posted by waterhead View Post

The person to really thank is Michael Krufky. He and CityK are V4L-DVB developers (among others), without whom we would still need to use Windows for TV.

I knew if I looked hard enough I would find a reason to hate Ubuntu! Damn those pretty and popular girls... umm... I mean distros!

Yes, Ubuntu has been grabbing most of the limelight, deservedly so in the recent past for putting the focus on the end user experience/desktop experience and release schedule discipline, which has motivated lots of other distros to improve their install/driver experience and release schedules for users.

However, the past 6 months or so with Ubuntu have indicated some kind of change going on- Ubuntu 7.10 and 8.04 haven't been as polished and vetted for driver issues (PInnacle 800i, Pulse audio, bt wireless drivers for notebooks, etc) prior to release as they could have. There appears to be a rising tide of resentment in the user community about the Ubuntu developer's lack of attention to detail and responsiveness to what many users feel are obvious, basic driver issues that aren't addressed prior to release.

/rant on/
IMO, the entire *point* of a "distro", in addition to making the install procedure simple and adding wizards/front end GUIs for common system tasks, is to test and vet the driver base. Too many distros tout all the apps they have- who cares if your distro has the latest OpenOffice/Mplayer/ or whatever app- any idiot can add these from Synaptic, debs or install scripts. The job of the distro is to package the low level stuff properly, and communicate needs back upstream to the driver developers and hopefully motivate them to get their drivers up to snuff.
/rant off/

On the bright side, Ubuntu has spawned great derivatve distros like MythBuntu and Mint, which are developing their own communities/ fan bases. If Ubuntu doesn't get back on track in the next release or two, these kinds of distros can always change to another base or start rolling their own. I am actually waiting for Mint 5.0 late this month, and will try to add MythBuntu on top of it from Synaptic. Mint adds all the media stuff by default, and cleans up driver issues and fundamental system level issues like network drive sharing defaults. I want to see if Mint 5.0 fixes up the Pinnacle 800i issues out of the box, though now that I know the "secret sauce", pasting a few lines into the terminal isn't so bad in MythBuntu 8.04

Competition is good- I'm sure MythBuntu has motivated MthDora to improve, and the Mint's of the world might not have been inspired to start without Ubuntu demonstrating a vision, however imperfect, of what can be done with a distro.

Back on topic, after running the Myth Setup and scanning for channels, I ran the front end and tried "Watch TV".

All I get is a blank screen for a few seconds, then it goes back to the Front End main menu. If I hit Watch TV again-> black screen-> back to main menu.

Out of the frying pan...

(I might not have access to the box until Mon/Tues...)
post #18 of 58
Which module(s) did you load?

You're welcome, btw, but waterhead came up with the goods on this one

Edit: also, try tuning channels with mplayer to be sure it's not a problem with myth, but it's probably still a module problem.
post #19 of 58
Thread Starter 
Quote:
Originally Posted by mythmaster View Post

Which module(s) did you load?

You're welcome, btw, but waterhead came up with the goods on this one

I just did

sudo rm -rf /lib/modules/`uname -r`/ubuntu/media/cx88
sudo rm -rf /lib/modules/`uname -r`/ubuntu/media/saa7134
sudo depmod -a

then cd'd to the v4l-dvb download directory, then

sudo make install

then rebooted and ran MythTVsetup. It appears the depmod command "registered" the new v4l-dvb" drivers and they were picked up automagically at reboot.
post #20 of 58
Ok. Let's have a look at lsmod and dmesg again (when you get a chance).
post #21 of 58
The pulse audio problems aren't confined to Ubuntu. I am running Fedora 8 on my Dell laptop, and have many audio problems. This is also attributed to needing to use the JACK audio server, which I can't seem to get to function without running everything as root!

But, I digress.

MythTV is separate from every distro. I have just redone my setup using CentOS 5.1. I am using the ATRPMs repository for MythTV, although I can't get all the plugins installed because of dependency errors. I may have to just use Fedora instead. SUSE can be made into a wonderful MythTV box too. You just need the correct repositories.
post #22 of 58
To address the WatchTV problem. I've had this trouble in the past, but don't recall the solution.

You can run the frontend from a terminal with the -v option, and look for errors. There are many verbose options:

mythfrontend -v all
mythfrontend -v playback
etc.

Run mythfrontend -v help for a complete list
post #23 of 58
@waterhead: A bit off-topic, but why do you need pulse audio? Also, JACK requires a kernel patch to run with real-time priority. MythTV (and plugs) build real nice in Gentoo, btw
post #24 of 58
Pulse is installed as the default audio handler in Fedora 8. As for the JACK kernel, I just found a source for this.

http://ccrma.stanford.edu/planetccrm...anetccrma.html

I'm not sure if I want to tempt fate and install from their repository. I have it all set up using the Smart Package Manager, if I want to try it. Maybe I should get some beer and try it later tonight. (beer is a universal lubricant)

I have everything working on a PC with 64Studio installed. It uses Debian 4 as it's base and adds a real-time kernel.
post #25 of 58
Thread Starter 
Quote:
Originally Posted by mythmaster View Post
Ok. Let's have a look at lsmod and dmesg again (when you get a chance).
Attached.

 

dmesg_080503_0957.txt 30.921875k . file

 

lsmod_080503_0955.txt 4.2529296875k . file
post #26 of 58
Thread Starter 
Quote:
Originally Posted by waterhead View Post

To address the WatchTV problem. I've had this trouble in the past, but don't recall the solution.

You can run the frontend from a terminal with the -v option, and look for errors. There are many verbose options:

mythfrontend -v all
mythfrontend -v playback
etc.

Run mythfrontend -v help for a complete list

I'll try these Mon/Tues.
post #27 of 58
Those files look good. No more errors.

For the WatchTV problem, I think that I had to delete the TV cards (in mythtv-setup) and then re-add them. Not sure what happens to cause this problem. You may also want to make sure the MythTV playback settings are correct.

If you have a directory that stores the recordings, make sure that it has read/write access for the mythtv user.

EDIT: Make sure you run mythfilldatabase too.
post #28 of 58
I had to go in to work today, blah.

Quote:
Originally Posted by waterhead View Post

Pulse is installed as the default audio handler in Fedora 8.

Yet another reason not to use Fedora...

As for lsmod & dmesg, yes, THAT'S EFFIN' BEAUTIFUL!!!

Also, yes, deleting and re-adding the card is a good idea. Make sure it starts on a known good channel, and verify that fetch channels worked properly by having a peek in channel editor. Don't forget to set the input source.

Then, run mythfrontend from a terminal without any options and try to watch tv again. If it doesn't work, exit and have a look at mythfrontend's output (and post it here). Then, we can start digging through various levels of -v.

It's a good thing you won't be doing this until Mon/Tue, because I'm gonna be pretty useless in about an hour!

EDIT: It's also a good thing you didn't follow my advice and blacklist the bt driver as I just noticed that it's required by the cx* drivers.
post #29 of 58
Quote:
Originally Posted by waterhead View Post

I just found a source for this.

http://ccrma.stanford.edu/planetccrm...anetccrma.html

I'm not sure if I want to tempt fate and install from their repository. I have it all set up using the Smart Package Manager, if I want to try it. Maybe I should get some beer and try it later tonight. (beer is a universal lubricant)

I have everything working on a PC with 64Studio installed. It uses Debian 4 as it's base and adds a real-time kernel.

Why not dl vanilla kernel sources and the official rt patch and build ye olde kernel yourself? I'm assuming you're composing music or something, because you really don't need JACK for htpc. That's one thing I love about Gentoo -- you HAVE to build a kernel just to install it. It's great practice. Plus, there are "overlays" with specific packages, configs, and patched sources for various niches: composing, video editing, xen, etc.
post #30 of 58
I am trying to run Rosegarden so that I can mess with some midi ringtones. This is on my laptop, not a HTPC.

I will compile a kernel if I have to, but I would rather have kernels and packages that are upgradeable. I have it working on another PC, running 64Studio. It comes with a real-time kernel. I just wanted to do the same thing on my laptop. It seems like such a simple thing.
New Posts  All Forums:Forum Nav:
  Return Home
  Back to Forum: HTPC - Linux Chat
AVS › AVS Forum › Video Components › Home Theater Computers › HTPC - Linux Chat › Pinnacle PCTV HD 800i card on Myth