SlackwareThis Forum is for the discussion of Slackware Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I have 13.37 installed on three PCs. Two nvidia (propriertary driver from Slackbuilds) and one ATI (radeon dirver). Kaffeine 1.1 installed from Slackbuild on all three machines. Runs fine on the ATI box and on one of the nvidia boxes, but fails to start (or provide any messages when command-line started) on the other nvidia box.
The box on which it will not start is also the box that has a DVB card in it - which is why I particularly want kaffeine to run there as it has a really easy interface to the TV card which ran just fine under Slack 13.1.
My gut feeling it that the problem is connected to the presence of the TV card which is somehow srewing up initialisation of kaffeine, but (other than removing the card physically) I am not sure how to test this or test whether the card is working. lspci and dmesg shows that it has recognised during boot-up.
Any ideas on how I should investigate this?
Or on how I can bypass the problem by configuring vlc (which runs fine for dvds and video clips) to view DVB output?
I posted on a kaffeine forum but no sign of life there.
As you mentioned, an easy go-no-go test is to temporarily remove the capture card and see whether Kaffeine starts. Inconvenient if the case is under a desk, but nonetheless a quick and easy test.
Side note: When no capture card is installed or the capture card is in use by another app, Kaffeine will not display the Digital TV button on the main interface. In either case Kaffeine still should start.
The stock Slackware comes with MPlayer and Xine, both of which support digital TV capture cards. Using either at least will inform you whether the capture card is working.
The strace command often is useful to see where an app is dying. Capture the strace output to a text file. Some patience is required to browse the usually large file, but something obvious should appear, such as a missing dynamic library file.
I know a bit more now, but not much. I got the new (1.2) kaffeine package from slacky.eu and installed in place of the stock 1.1. I got a bit more info from this version when I ran from command line. Specifically after a minute or so of silence it came up with :
Quote:
kaffeine(6818): Communication problem with "kaffeine" , it probably crashed.
Error message was: "org.freedesktop.DBus.Error.NoReply" : " "Did not receive a reply. Possible causes include: the remote application did not send a reply, the message bus security policy blocked the reply, the reply timeout expired, or the network connection was broken." "
The other way in which I have approached the problem is to use simple command-line utilities to scan for channels. Three of these (dvbscan, scan and w_scan) all behave the same way : they produce no output, no error messages but neither do they exit. Attempts to kill with either Control-C or "kill -9 ,<pid>" also fail - the processes remain in ps lists until I reboot.
Seems like a bad error in the driver or a hardware fault in the card. The card will have to come out of the machine this week to check this out a bit more.
You wrote that the capture card worked under 13.1. Presume then that the card is still functional.
Is dbus and hald running (/etc/rc.d/rc.messagebus, rc.hald)?
Have you tested the capture card with different software such as xine or mplayer?
Does your capture card require firmware? I have two capture cards. One requires firmware (HVR-1600) and the other doesn't (HVR-1250).
For whatever reason, I seem to recall that Kaffeine is a bit cantankerous when the network is not up and running. I don't know why Kaffeine needs a network.
As there is a long pause before you see the error message, have you tried running Kaffeine through strace?
You can check the card is being detected through the logs. Look for 'DVB' or 'dvb' in dmesg and messages. If the card is being recognized by the kernel you should see a device node like /dev/dvb/adapter0. Unless you are using the huge kernel, you should see the respective modules being loaded (lsmod). For example you should see modules like cx2341x, cx23885, dvb_core, tveeprom, v4l1_compat, v4l1_common, videodev. The device modules might be different for your card, but most of the others should be loaded.
Thanks for additional hints, Woodsman. I certainly have the /dev/dvb/adapter0 device created. I have module cx88.. (can't rememberthe rest) loading and probably most of the others you mention (not at home tonight so cannot check). I will try out some of the other things you mention I need to check tomorrow. Network should be fine on that machine - main desktop PC with eth0 always on the go.
Is dbus and hald running (/etc/rc.d/rc.messagebus, rc.hald)?
Yep, both rc.* files are executable and in the right place.
Quote:
Have you tested the capture card with different software such as xine or mplayer?
Have tried xine (crashes on startup with a segmentation fault); smplayer (runs OK but no tv played, and freezes when you ask it to play tv), vlc (runs OK but again starts to behave strangely when you ask for tv, and cannot be killed - like the cli scan programs I mentioned.
Quote:
Does your capture card require firmware? I have two capture cards. One requires firmware (HVR-1600) and the other doesn't (HVR-1250).
I think this might be the problem. My card is a HVR-1300. Google "linux firmware HVR-1300" and various posts can be found suggesting a variety of problems. How would I obtain and install the correct firmware? Is it likely that this was included with 13.1 drivers but has changed in a bad way in 13.37 ?
Quote:
As there is a long pause before you see the error message, have you tried running Kaffeine through strace?
Had a quick look at this - lots and lots of output so difficult to see where the problem lies. Will try and study this a bit more.
Quote:
You can check the card is being detected through the logs. Look for 'DVB' or 'dvb' in dmesg and messages. If the card is being recognized by the kernel you should see a device node like /dev/dvb/adapter0. Unless you are using the huge kernel, you should see the respective modules being loaded (lsmod). For example you should see modules like cx2341x, cx23885, dvb_core, tveeprom, v4l1_compat, v4l1_common, videodev. The device modules might be different for your card, but most of the others should be loaded.
This part seems to be OK, the /dev/dvb/adapter0 device is certainly created.
As root install/copy the three files to /lib/firmware. Reboot. See what happens.
You originally wrote the TV card ran fine under Slack 13.1. Perhaps you once upon a time downloaded the firmware? Or perhaps you were using only the analog tuner and not the digital tuner?
Woodsman - you've been really helpful here so it pains me to say that the firmware is still not quite sorted out - with the additions from ivtv-firmware.tar.gz which you suggested there is still a problem in dmesg:
Although in the next line after "Firmware and/or mailbox pointer not initialized or corrupted" I also see
"Firmware upload successful".
Notwithstanding, kaffeine and the cli scan utilities still behave the same way - exiting or hanging.
I guess it will have to be some strace-ing to try and figure out exactly what is going on. Actually strace-ing the dvb scanning utilities will probably yield something simpler than strace-ing kaffeine.
In the latter link, look towards the end of the comments. Seems like some people successfully patched the cx88-dvb.c source code and recompiled the kernel.
Comment #50 in that latter indicates the problem might be an acpi conflict. For a quick-and-dirty test you might try booting your system with the acpi=off boot parameter and then see whether kaffeine detects the card.
When I was learning about my own capture cards I found that searching the web for mythtv related issues helped me. Searching the web for 'mythtv hvr-1300' shows a lot of hits.
If you still have 13.1 installed on separate partitions you might want to boot to 13.1 and verify everything works. Or perhaps reinstall 13.1 on the system using the HVR-1300 if recompiling is too much work.
You might want to install the dvb-apps tools. A slackbuild script is available here. Don't worry that the package is for Slackware 12.1. Download the build script and sources and rebuild on your own system. I used the same build script to build a package on 12.2 and 13.1.
You can use those scan tools to build a channel list for xine and mplayer. Redirect the output to a text file. Use the atscscan or dvbscan command. An example:
Then you could use xine to test DVB rather than kaffeine. Of course, if the problem is the kernel, the dvb-app scan tools might fail too.
Xine and mplayer use the same format in their respective channels.conf file. On my system I sym link $HOME/.mplayer/channels.conf to $HOME/.xine/channels.conf.
OK, some progress with re-built kernel module according to the git-and-make instructions in http://bugs.launchpad.net/mythtv/+bug/439163. Specifically I commented out the five lines suggested from cx88-dvb.c. I then did a make and a make-install, installing all the v4l modules that had been downloaded and built. Kaffeine and the various scanning utilities now no longer crash / hang. However they still do not work, they just provide more helpful error messages.
So running, dvbscan /usr/share/dvb/dvb-t/uk-Moel-y-parc simply says :
Quote:
Unable to query frontend status
Next up, scan /usr/share/dvb/dvb-t/uk-Moel-y-parc provides more information :
w_scan version 20090918 (compiled for DVB API 5.0)
using settings for UNITED KINGDOM
DVB aerial
DVB-T GB
frontend_type DVB-T, channellist 6
output format vdr-1.6
Info: using DVB adapter auto detection.
/dev/dvb/adapter0/frontend0 -> DVB-T "Conexant CX22702 DVB-T": good :-)
Using DVB-T frontend (adapter /dev/dvb/adapter0/frontend0)
-_-_-_-_ Getting frontend capabilities-_-_-_-_
Using DVB API 5.3
frontend Conexant CX22702 DVB-T supports
INVERSION_AUTO
QAM_AUTO
TRANSMISSION_MODE_AUTO
GUARD_INTERVAL_AUTO
HIERARCHY_AUTO
FEC_AUTO
-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_
Scanning 7MHz frequencies...
177500: (time: 00:00) set_frontend:1694: FATAL: unsupported DVB API Version 5.3
This final line of output might be the clue to what is really wrong at this stage, but I am not sure what it is that is trying to use the unsupported API - my card and its firmware ?, the driver?
Kaffeine itself now starts up and shows the DVB option as a button in its opening screen. When I open the Channels dialog however the "Source" drop-down box and "Start Scan" button are greyed out. Not surprising perhaps if there is a card-driver dialog problem.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.