LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices



Reply
 
Search this Thread
Old 03-18-2010, 09:42 PM   #1
mitchell7man
Member
 
Registered: Jan 2007
Location: Provo, UT
Distribution: OSX - Fedora
Posts: 458

Rep: Reputation: 31
Getting card working with mythtv?


OS of this system: Ubuntu 9.10 Server

Okay so i have a Hauppage card, not sure exactly which one, under lspci it is:

Quote:
02:01.0 Multimedia video controller: Brooktree Corporation Bt878 Video Capture (rev 11)
02:01.1 Multimedia controller: Brooktree Corporation Bt878 Audio Capture (rev 11)
lsmod lists:

Quote:
tvaudio 25884 0
snd_intel8x0 30168 0
tda7432 5016 0
snd_ac97_codec 101216 1 snd_intel8x0
msp3400 28204 0
snd_bt87x 12708 0
ac97_bus 1532 1 snd_ac97_codec
snd_pcm 75488 3 snd_intel8x0,snd_ac97_codec,snd_bt87x
bttv 119412 0
snd_timer 22276 1 snd_pcm
ir_common 48512 1 bttv
i2c_algo_bit 5760 1 bttv
snd 59204 5 snd_intel8x0,snd_ac97_codec,snd_bt87x,snd_pcm,snd_timer
soundcore 7264 1 snd
v4l2_common 17500 5 tuner,tvaudio,tda7432,msp3400,bttv
videodev 36736 6 tuner,tvaudio,tda7432,msp3400,bttv,v4l2_common
v4l1_compat 14496 1 videodev
videobuf_dma_sg 12608 1 bttv
videobuf_core 17952 2 bttv,videobuf_dma_sg
btcx_risc 4772 1 bttv
i82875p_edac 5220 0
tveeprom 11872 1 bttv
edac_core 40176 3 i82875p_edac
lp 8964 0
psmouse 56180 0
snd_page_alloc 9252 3 snd_intel8x0,snd_bt87x,snd_pcm
serio_raw 5280 0
intel_agp 27748 1
iptable_filter 3100 0
ppdev 6688 0
agpgart 35020 1 intel_agp
shpchp 32336 0
parport_pc 32228 1
ip_tables 11692 1 iptable_filter
x_tables 16544 1 ip_tables
parport 35340 3 lp,ppdev,parport_pc
dell_wmi 2564 0
dcdbas 7332 0
e1000 119744 0
3c59x 37892 0
mii 5212 1 3c59x
when i bring up xawtv i get a blank screen, i figure its because it doesn't know what channels to read or whatever, so i run scantv:

Code:
please select your TV norm
   0: NTSC
   1: NTSC-M
   2: NTSC-M-JP
   3: NTSC-M-KR
   4: PAL
   5: PAL-BG
   6: PAL-H
   7: PAL-I
   8: PAL-DK
   9: PAL-M
  10: PAL-N
  11: PAL-Nc
  12: PAL-60
  13: SECAM
  14: SECAM-B
  15: SECAM-G
nr ? 0

please select a frequency table
   0: us-bcast
   1: us-cable
   2: us-cable-hrc
   3: japan-bcast
   4: japan-cable
   5: europe-west
   6: europe-east
   7: italy
   8: newzealand
   9: australia
  10: ireland
  11: france
  12: china-bcast
  13: southafrica
  14: argentina
  15: australia-optus
  16: russia
nr ? 1
[global]
freqtab = us-cable

[defaults]
input = Television
norm = NTSC

vbi: open failed [/dev/vbi]
open /dev/vbi: No such file or directory
How do I go about getting this working? --I'm trying to make sure the card works before I mess with myth-setup anymore.

Note: in MythTV I don't get the "Scan Channels" option, so I'm not sure what to do there.
Note: Cable source is my college campus cable.
Thanks,

Last edited by mitchell7man; 03-19-2010 at 05:04 AM.
 
Old 03-18-2010, 09:50 PM   #2
Quakeboy02
Senior Member
 
Registered: Nov 2006
Distribution: Debian Squeeze 2.6.32.9 SMP AMD64
Posts: 3,245

Rep: Reputation: 121Reputation: 121
Run "ls /dev/v*". I've got a Hauppauge bt878 based card and I have /dev/video0 and /dev/vbi0. It's hard to look at your lsmod output, but it looks like it's probably OK. It would be better to see the results of both "lsmod |sort" and "dmesg |grep bt".

Try the program "tvtime". That's what I use in mine.
 
Old 03-18-2010, 09:58 PM   #3
mitchell7man
Member
 
Registered: Jan 2007
Location: Provo, UT
Distribution: OSX - Fedora
Posts: 458

Original Poster
Rep: Reputation: 31
Quote:
root@kate:/dev# cd v
v4l/ vcs vcs2 vcs4 vcs6 vcsa1 vcsa3 vcsa5 video0
vbi0 vcs1 vcs3 vcs5 vcsa vcsa2 vcsa4 vcsa6
root@kate:/dev# ls /video0
ls: cannot access /video0: No such file or directory
root@kate:/dev# ls video0
video0
root@kate:/dev# ls vbi0
vbi0
Quote:
root@kate:/dev# lsmod |sort
3c59x 37892 0
ac97_bus 1532 1 snd_ac97_codec
agpgart 35020 1 intel_agp
btcx_risc 4772 1 bttv
bttv 119412 0
dcdbas 7332 0
dell_wmi 2564 0
e1000 119744 0
edac_core 40176 3 i82875p_edac
i2c_algo_bit 5760 1 bttv
i82875p_edac 5220 0
intel_agp 27748 1
iptable_filter 3100 0
ip_tables 11692 1 iptable_filter
ir_common 48512 1 bttv
lp 8964 0
mii 5212 1 3c59x
Module Size Used by
msp3400 28204 0
parport 35340 3 ppdev,lp,parport_pc
parport_pc 32228 1
ppdev 6688 0
psmouse 56180 0
serio_raw 5280 0
shpchp 32336 0
snd 59204 5 snd_bt87x,snd_intel8x0,snd_ac97_codec,snd_pcm,snd_timer
snd_ac97_codec 101216 1 snd_intel8x0
snd_bt87x 12708 0
snd_intel8x0 30168 0
snd_page_alloc 9252 3 snd_bt87x,snd_intel8x0,snd_pcm
snd_pcm 75488 3 snd_bt87x,snd_intel8x0,snd_ac97_codec
snd_timer 22276 1 snd_pcm
soundcore 7264 1 snd
tda7432 5016 0
tuner 21540 1
tuner_simple 14832 1
tuner_types 14396 1 tuner_simple
tvaudio 25884 0
tveeprom 11872 1 bttv
v4l1_compat 14496 1 videodev
v4l2_common 17500 5 tuner,tvaudio,tda7432,msp3400,bttv
videobuf_core 17952 2 bttv,videobuf_dma_sg
videobuf_dma_sg 12608 1 bttv
videodev 36736 6 tuner,tvaudio,tda7432,msp3400,bttv,v4l2_common
x_tables 16544 1 ip_tables
Quote:
root@kate:/dev# dmesg |grep bt
[ 9.420700] bt87x0: Using board 1, analog, digital (rate 32000 Hz)
[ 9.941619] bttv: driver version 0.9.18 loaded
[ 9.941624] bttv: using 8 buffers with 2080k (520 pages) each for capture
[ 9.941691] bttv: Bt8xx card found (0).
[ 9.941715] bttv 0000:02:01.0: PCI INT A -> GSI 22 (level, low) -> IRQ 22
[ 9.941728] bttv0: Bt878 (rev 17) at 0000:02:01.0, irq: 22, latency: 64, mmio: 0xf8001000
[ 9.943065] bttv0: detected: Hauppauge WinTV [card=10], PCI subsystem ID is 0070:13eb
[ 9.943071] bttv0: using: Hauppauge (bt878) [card=10,autodetected]
[ 9.943074] IRQ 22/bttv0: IRQF_DISABLED is not guaranteed on shared IRQs
[ 9.943111] bttv0: gpio: en=00000000, out=00000000 in=00ffffdb [init]
[ 9.945601] bttv0: Hauppauge/Voodoo msp34xx: reset line init [5]
[ 9.981397] bttv0: Hauppauge eeprom indicates model#44981
[ 9.981400] bttv0: tuner type=50
[ 10.236246] bttv0: audio absent, no audio device found!
[ 10.369268] tuner 0-0061: chip found @ 0xc2 (bt878 #0 [sw])
[ 10.420559] bttv0: registered device video0
[ 10.420594] bttv0: registered device vbi0
[ 10.420615] bttv0: PLL: 28636363 => 35468950 .. ok
[ 22.788372] bttv0: PLL can sleep, using XTAL (28636363).
I'm trying TVTime now...
 
Old 03-18-2010, 10:01 PM   #4
mitchell7man
Member
 
Registered: Jan 2007
Location: Provo, UT
Distribution: OSX - Fedora
Posts: 458

Original Poster
Rep: Reputation: 31
Okay, so same problem with tv time, no "station file".

Quote:
root@kate:/dev# tvtime
Running tvtime 1.0.2.
Reading configuration from /etc/tvtime/tvtime.xml
I/O warning : failed to load external entity "/root/.tvtime/tvtime.xml"
xvoutput: Received X error: BadAccess (attempt to access private resource denied)
xvoutput: Received X error: BadShmSeg (invalid shared segment parameter)
mixer: Can't open device /dev/mixer, mixer volume and mute unavailable.
xvoutput: Received X error: BadShmSeg (invalid shared segment parameter)
xvoutput: Received X error: BadShmSeg (invalid shared segment parameter)
I/O warning : failed to load external entity "/root/.tvtime/stationlist.xml"
station: No station file found, creating a new one.
Thank you for using tvtime.
 
Old 03-18-2010, 10:05 PM   #5
Quakeboy02
Senior Member
 
Registered: Nov 2006
Distribution: Debian Squeeze 2.6.32.9 SMP AMD64
Posts: 3,245

Rep: Reputation: 121Reputation: 121
I don't know what this means, but the rest looks OK.
Code:
[ 10.236246] bttv0: audio absent, no audio device found!
 
Old 03-18-2010, 10:07 PM   #6
Quakeboy02
Senior Member
 
Registered: Nov 2006
Distribution: Debian Squeeze 2.6.32.9 SMP AMD64
Posts: 3,245

Rep: Reputation: 121Reputation: 121
I suspect that a big part of your problem is that you're logged in as root. Is there some reason for that? Try logging in as a regular user. Root is not for user applications.
Code:
root@kate:/dev# tvtime
...
I/O warning : failed to load external entity "/root/.tvtime/tvtime.xml"
 
Old 03-18-2010, 10:07 PM   #7
mitchell7man
Member
 
Registered: Jan 2007
Location: Provo, UT
Distribution: OSX - Fedora
Posts: 458

Original Poster
Rep: Reputation: 31
the card has "audio out" I have a 3.5mm cable going from the output to my sound in. --- What do I do about the "station"/channel file?
 
Old 03-18-2010, 10:18 PM   #8
mitchell7man
Member
 
Registered: Jan 2007
Location: Provo, UT
Distribution: OSX - Fedora
Posts: 458

Original Poster
Rep: Reputation: 31
My server is in a closet here, i'm forwarding x through ssh. (ssh -C -X). Anyhow, as a normal user:

Quote:
mitchj@kate:~$ xawtv
This is xawtv-3.95.dfsg.1, running on Linux/i686 (2.6.31-14-generic-pae)
xinerama 0: 1280x1024+0+0
xinerama 1: 1600x1200+1280+0
WARNING: remote display `localhost:11.0' not allowed, using `:11.0' instead
can't open x11 display :11.0
v4l-conf had some trouble, trying to continue anyway
v4l2: open /dev/video0: Permission denied
v4l2: open /dev/video0: Permission denied
v4l: open /dev/video0: Permission denied
no video grabber device available
mitchj@kate:~$ tvtime
Running tvtime 1.0.2.
Reading configuration from /etc/tvtime/tvtime.xml
Reading configuration from /home/mitchj/.tvtime/tvtime.xml
videoinput: Cannot open capture device /dev/video0: Permission denied
xvoutput: Received X error: BadAccess (attempt to access private resource denied)
xvoutput: Received X error: BadShmSeg (invalid shared segment parameter)
mixer: Can't open device /dev/mixer, mixer volume and mute unavailable.
xvoutput: Received X error: BadShmSeg (invalid shared segment parameter)
xvoutput: Received X error: BadShmSeg (invalid shared segment parameter)
Thank you for using tvtime.
 
Old 03-18-2010, 10:31 PM   #9
Quakeboy02
Senior Member
 
Registered: Nov 2006
Distribution: Debian Squeeze 2.6.32.9 SMP AMD64
Posts: 3,245

Rep: Reputation: 121Reputation: 121
Code:
can't open x11 display :11.0
You'll have to deal with this the way you usually deal with running X remotely. Something like xawtv --display server:0.0. I dunno. I haven't dealt with remote-X in many many years.
Code:
v4l-conf had some trouble, trying to continue anyway
v4l2: open /dev/video0: Permission denied
What is the result of "ls -l /dev/video0"? Is your userid, on the machine with the board, a member of the "video" group?
 
Old 03-18-2010, 10:49 PM   #10
mitchell7man
Member
 
Registered: Jan 2007
Location: Provo, UT
Distribution: OSX - Fedora
Posts: 458

Original Poster
Rep: Reputation: 31
I just added my user to group "Video" (usermod -G video mitchj). This is my current output for ls -l /dev/video0

Quote:
mitchj@kate:~$ ls -l /dev/video0
crw-rw---- 1 root video 81, 0 2010-03-18 20:46 /dev/video0
The display comes up fine when I'm logged in as root.
 
Old 03-18-2010, 11:09 PM   #11
Quakeboy02
Senior Member
 
Registered: Nov 2006
Distribution: Debian Squeeze 2.6.32.9 SMP AMD64
Posts: 3,245

Rep: Reputation: 121Reputation: 121
So are you getting a different set of error messages now? If so, what are they?
 
Old 03-18-2010, 11:14 PM   #12
mitchell7man
Member
 
Registered: Jan 2007
Location: Provo, UT
Distribution: OSX - Fedora
Posts: 458

Original Poster
Rep: Reputation: 31
i'm still getting the same errors
 
Old 03-18-2010, 11:17 PM   #13
Quakeboy02
Senior Member
 
Registered: Nov 2006
Distribution: Debian Squeeze 2.6.32.9 SMP AMD64
Posts: 3,245

Rep: Reputation: 121Reputation: 121
Then are you sure you set the permissions on the right machine for the right user?
 
Old 03-19-2010, 01:59 AM   #14
mitchell7man
Member
 
Registered: Jan 2007
Location: Provo, UT
Distribution: OSX - Fedora
Posts: 458

Original Poster
Rep: Reputation: 31
Quote:
mitchj@kate:~$ id
uid=1000(mitchj) gid=1000(mitchj) groups=4(adm),20(dialout),24(cdrom),44(video),46(plugdev),108(sambashare),111(lpadmin),112(admin),10 00(mitchj)
Quote:
crw-rw---- 1 root video 81, 0 2010-03-18 22:43 /dev/video0
Thats all on the right machine. Wow, I do not know whats up with this...
 
Old 03-19-2010, 04:03 AM   #15
mitchell7man
Member
 
Registered: Jan 2007
Location: Provo, UT
Distribution: OSX - Fedora
Posts: 458

Original Poster
Rep: Reputation: 31
I got the card working, I installed firmware from http://www.linuxtv.org/wiki/index.ph...WinTV-HVR-4000 and I got reads immediately after.

Now I'm working on setting up mythtv. What type of input is this? When I try to scan for channels, i get failed to start device or something along those lines.

-Thanks for your help.
 
  


Reply

Tags
channels, hauppage, mythtv, tv, win, xawtv


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Setting up MythTV in Mandriva 2009.1 with Hauppage 350 rrsc16954 Linux - Hardware 5 05-26-2009 04:27 PM
Help setting up MythTV to record from a VCR on Composite Input mr.matti Linux - Software 0 04-16-2007 01:52 PM
Problems with authentication setting up MythTV flycast Debian 1 12-10-2006 05:00 PM
setting up Anjuta for (eventually) game development blastradius Programming 1 07-01-2006 04:57 AM
Thinking of setting up MythTV, need some advice Gates1026 Linux - General 2 02-02-2005 02:30 AM


All times are GMT -5. The time now is 05:42 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration