Analog tuner does not work on boot, but restarting cx8800 allows it to work

Bug #582523 reported by DAP
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
xserver-xorg-video-v4l (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

Binary package hint: xserver-xorg-video-v4l

I have been trying to get an ATI HDTV Wonder card to work with analog NTSC television on MythTV without success. (note that this card works fine for ATSC, or clear QAM digital broadcasts).
With the tuner set up following the MythTV wiki, I get a blank screen, and a channel scan finds no channels.
everything appears to be set up properly, /dev/video0 exists.
Running

"mplayer tv://32 -tv device=/dev/video0:driver=v4l2:chanlist=us-cable:alsa:adevice=hw.1,0:amode=1:audiorate=48000:forceaudio:volume=100:immediatemode=0:norm=NTSC-M"

gets me a black window with static playing from the speakers.

As per a suggestion by Harry Orenstein on the mythtv-users mailing list, if I stop mythtvbackend, and run the following script:

#!/bin/sh
#
# unload hdtv wonder modules
#
/sbin/modprobe -r cx8800
/sbin/modprobe -r cx88_dvb
/sbin/modprobe -r nxt200x
/usr/bin/pkill pulseaudio; /sbin/modprobe -r cx88_alsa
/sbin/modprobe -r tuner
/sbin/modprobe -r tuner_simple
/sbin/modprobe -r tuner_types
/sbin/modprobe -r tda9887
/sbin/modprobe -r tda8290
#
# reload hdtv wonder modules
#
/sbin/modprobe cx88_dvb
/sbin/modprobe cx8800 video_nr=1 vbi_nr=1
/sbin/modprobe cx88_alsa index=1

then run

"mplayer tv://32 -tv device=/dev/video1:driver=v4l2:chanlist=us-cable:alsa:adevice=hw.1,0:amode=1:audiorate=48000:forceaudio:volume=100:immediatemode=0:norm=NTSC-M"

both video and audio play properly.
I do not understand all of what the script is doing. At the very least it is changing the device from /dev/video0 to /dev/video1. I have tried changing the script so that the device is /dev/video0, but then I get video with static instead of sound.

In any case, after running this script and restarting mythbackend, mythTV can now find channels when it scans, but when I try and do live TV, I get a bit over a second of video & sound before the picture freezes then switches to garbage.

How do I make this work properly on startup?

ProblemType: Bug
DistroRelease: Ubuntu 10.04
Package: xserver-xorg-video-v4l 1:0.2.0-4
ProcVersionSignature: Ubuntu 2.6.32-22.33-generic 2.6.32.11+drm33.2
Uname: Linux 2.6.32-22-generic x86_64
NonfreeKernelModules: fglrx
Architecture: amd64
CheckboxSubmission: 4f08ac62e89ad166a1e0b05f95495253
CheckboxSystem: fd6c484c0b5d20a2f1cd036ef0f63975
Date: Tue May 18 13:45:49 2010
ProcEnviron:
 LANG=en_US.utf8
 SHELL=/bin/bash
SourcePackage: xserver-xorg-video-v4l

Revision history for this message
DAP (akadap) wrote :
Revision history for this message
Bryce Harrington (bryce) wrote :

Hi DAP,

Thanks for including the attached files. Could you also include your /var/log/Xorg.0.log (or Xorg.0.log.old) from after reproducing the issue?

Please attach the output of `lspci -vvnn` too.

[This is an automated message. Apologies if it has reached you inappropriately; please just reply to this message indicating so.]

tags: added: needs-xorglog
Changed in xserver-xorg-video-v4l (Ubuntu):
status: New → Incomplete
Revision history for this message
DAP (akadap) wrote :
Revision history for this message
DAP (akadap) wrote :

For this Xorg.0.log, I did the following:
I ran

"mplayer tv://32 -tv device=/dev/video0:driver=v4l2:chanlist=us-cable:alsa:adevice=hw.1,0:amode=1:audiorate=48000:forceaudio:volume=100:immediatemode=0:norm=NTSC-M"

got black window, and noise for sound.

I stopped mythbackend, then ran

"mplayer tv://32 -tv device=/dev/video0:driver=v4l2:chanlist=us-cable:alsa:adevice=hw.1,0:amode=1:audiorate=48000:forceaudio:volume=100:immediatemode=0:norm=NTSC-M"

got black window and noise for sound

I ran "testscript2" which contains:

#!/bin/sh
#
# unload hdtv wonder modules
#
/sbin/modprobe -r cx8800
/sbin/modprobe -r cx88_dvb
/sbin/modprobe -r nxt200x
/usr/bin/pkill pulseaudio; /sbin/modprobe -r cx88_alsa
/sbin/modprobe -r tuner
/sbin/modprobe -r tuner_simple
/sbin/modprobe -r tuner_types
/sbin/modprobe -r tda9887
/sbin/modprobe -r tda8290
#
# reload hdtv wonder modules
#
/sbin/modprobe cx88_dvb
/sbin/modprobe cx8800 video_nr=1 vbi_nr=1
/sbin/modprobe cx88_alsa index=1

Then ran

"mplayer tv://32 -tv device=/dev/video1:driver=v4l2:chanlist=us-cable:alsa:adevice=hw.1,0:amode=1:audiorate=48000:forceaudio:volume=100:immediatemode=0:norm=NTSC-M"

Got a video window with video and sound to match.

I exited "MythTV Backend Setup" which restarted mythbackend

I ran mythfrontend and started liveTV. I switched to the analog TV tuner, got video for about 1 second, the picture froze for several seconds and went black.
I changed channels, I again got picture for about a second before it froze for about a second then went black.
I changed channels again, I again got picture for about a second, it froze for about a second, then started flickering.
I exited live TV, and exited mythfrontend.

Revision history for this message
DAP (akadap) wrote :

I don't know if you will find this useful, but I included the mythTV front end log.

Revision history for this message
DAP (akadap) wrote :

For completeness, an excerpt from MythTV Back end log
(tried and failed to upload the whole log twice before, but it aborted)

Bryce Harrington (bryce)
tags: added: hardy
Revision history for this message
DAP (akadap) wrote :

This was a problem in 9.10 and 9.04. I did not get that script until after I had upgraded to 10.04, so I did not know for sure that the hardware was functional until then, so I had not reported it.

Bryce Harrington (bryce)
tags: removed: needs-xorglog
Changed in xserver-xorg-video-v4l (Ubuntu):
status: Incomplete → Confirmed
Revision history for this message
DAP (akadap) wrote :

The situation has changed a bit since I have upgraded to 10.10
I no longer need to run the script to get the card to function. I need only stop the mythTV back end, and run:
mplayer tv://32 -tv device=/dev/video0:driver=v4l2:chanlist=us-cable:alsa:adevice=hw.1,0:amode=1:audiorate=48000:forceaudio:volume=100:immediatemode=0:norm=NTSC-M

This does not mean that everything is working. I am unable to use "Watch TV" in MythTV with the analog tuner.
TVTime will show video, but not play sound, and only works when mythTV back end is stopped
Zapping requires I set NTSC-M-JP to get a proper picture NTSC-M gets me a noisy black and white picture, and I am located in the US. Also, Zapping does not have an option for the cable standard I am using. The one that works of the two that are available will not tune some of the channels.

So while it appears the bug I reported is fixed, the analog tuner is still unusable.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.