LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
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 06-30-2008, 01:05 PM   #1
danielph
Member
 
Registered: Nov 2004
Distribution: Archlinux
Posts: 41

Rep: Reputation: 15
Cannot connect to camcorder with dvgrab or kino


Hi,

Begging for some help with a dv camcorder.

I have a PV-GS200 Panasonic Camcorder. The DV connection works in XP and in Ubuntu with the same PC, camera and cable. With Archlinux it fails. I have searched the forums and it seems that other people have gone through simular problems, none of the threads helped me to get this working. It must be a config issue or a difference in kernel / modules. Is there any clear documentation for setting up dv devices?

I have also tried this on 2 Archlinux i686 machines and both have the same problem. Here are some details.

The problem

Quote:
dvgrab
Error: no camera exists
as root:
Quote:
dvgrab
Error: no camera exists
kino reports
Quote:
WARNING: raw1394 kernel module not loaded or failure to read/write /dev/raw1394
the same when run as root

in terminal it loops on:
Quote:
iec61883Reader::StartThread on port 0
The config
Quote:
tail -f /var/log/messages

Jun 30 16:23:05 egypt firewire_core: created device fw1: GUID 0080458051262199, S100
Jun 30 16:23:05 egypt firewire_core: phy config: card 0, new root=ffc1, gap_count=5
Jun 30 16:23:05 egypt ieee1394: raw1394: /dev/raw1394 device initialized
Jun 30 16:23:05 egypt NOTE: The dv1394 driver is unsupported and may be removed in a future Linux release. Use raw1394 instead.
Quote:
lsmod |grep 1394
dv1394 17244 0
raw1394 24028 0
ohci1394 28720 1 dv1394
ieee1394 79288 3 dv1394,raw1394,ohci1394
Quote:
ls -l /dev/raw1394
crw-rw---- 1 root video 171, 0 2008-06-30 16:23 /dev/raw1394
Quote:
groups
lp wheel network video audio optical storage camera users
thanks for any suggestions
 
Old 07-02-2008, 04:12 AM   #2
resetreset
Senior Member
 
Registered: Mar 2008
Location: India
Distribution: Dynebolic, Ubuntu 10.10
Posts: 1,320

Rep: Reputation: 51
This is *just an opinion* - it's not just the kernel module, but the higher layers (it's name is probably "HAL") need to be activated before any software will see specifically your *camera*. In Fedora, I think "ntsysv" will let you turn it on if it's off - but I think at least 3 things need to be enabled - please look through the little text at the bottom if your distro has it or simply enable everything (I have never used Archlinux). Kino *may* be getting this wrong. Please try it
 
Old 07-02-2008, 11:42 AM   #3
danielph
Member
 
Registered: Nov 2004
Distribution: Archlinux
Posts: 41

Original Poster
Rep: Reputation: 15
I am sure you are on the right lines, it must be something that isn't configured right. Arch does require manual configuring for most things. You are correct, it is HAL, but is it running as you can see here:

Code:
lshal |grep 1394
  info.product = 'PCI4510 IEEE-1394 Controller'  (string)
  pci.product = 'PCI4510 IEEE-1394 Controller'  (string)
udi = '/org/freedesktop/Hal/devices/ieee1394_guid424fc0002a875c10'
  ieee1394.device = '/dev/fw0'  (string)
  ieee1394.guid = 4778248836609432592  (0x424fc0002a875c10)  (uint64)
  ieee1394.product = 'Juju'  (string)
  ieee1394.product_id = 1  (0x1)  (int)
  ieee1394.vendor = 'Linux Firewire'  (string)
  ieee1394.vendor_id = 13634846  (0xd00d1e)  (int)
  info.capabilities = {'ieee1394'} (string list)
  info.subsystem = 'ieee1394'  (string)
  info.udi = '/org/freedesktop/Hal/devices/ieee1394_guid424fc0002a875c10'  (string)
Also, the distro is fairly "mature" as in I have been running it a while, so most things are enabled. This is all done in one file on Archlinux (rc.conf) and daemons are taken care of with this line
Code:
DAEMONS=(syslog-ng !network net-profiles !netfs laptop-mode !i8kmon @openntpd @crond @acpid !cpufreqd @alsa @hal @sshd fam kdm)
and modules with this
Code:
MODULES=(b44 mii slhc eeprom_93cx6 !i8k acpi-cpufreq cpufreq_ondemand rt2500 ac97_bus snd-mixer-oss snd-pcm-oss snd-page-alloc snd-pcm snd-timer snd snd-ac97-codec snd-intel8x0 snd-intel8x0m soundcore)
still in the same file.

Thanks for your reply
 
Old 07-06-2008, 05:57 AM   #4
danielph
Member
 
Registered: Nov 2004
Distribution: Archlinux
Posts: 41

Original Poster
Rep: Reputation: 15
OK I have done some testing and found that a 3rd machine amd64 with archlinux actually works without issue. I noticed this difference when powering up the camcorder

Working machine:
Code:
Jul 6 11:26:34 kenya NOTE: The dv1394 driver is unsupported and may be removed in a future Linux release. Use raw1394 instead.
Jul 6 11:26:34 kenya ieee1394: raw1394: /dev/raw1394 device initialized
Jul 6 11:35:28 gconfd (dan-5757): GConf server is not in use, shutting down.
Jul 6 11:35:28 gconfd (dan-5757): Exiting
Machine with problem
Code:
Jul  6 12:29:44 morocco firewire_core: phy config: card 0, new root=ffc1, gap_count=5
Jul  6 12:29:44 morocco firewire_core: created device fw1: GUID 0080458051262199, S100
Jul  6 12:29:44 morocco NOTE: The dv1394 driver is unsupported and may be removed in a future Linux release. Use raw1394 instead.
The difference is this line is not present
Code:
Jul 6 11:26:34 kenya ieee1394: raw1394: /dev/raw1394 device initialized
on the machine not working

Can anyone tell me what this means?
 
Old 07-06-2008, 06:30 AM   #5
tredegar
Guru
 
Registered: May 2003
Location: London, UK
Distribution: Ubuntu 10.04, mostly
Posts: 6,007

Rep: Reputation: 366Reputation: 366Reputation: 366Reputation: 366
Quote:
Can anyone tell me what this means?
It means:
Your working machine is using the raw1394 module.
The broken machine is using the dv1394 module and is telling you that this is unsupported, may be removed in a future Linux release and that you should use raw1394 instead.
So, wherever arch sets up its modules, you need to remove, or blacklist dv1394 and modprobe raw1394 instead.
 
Old 07-06-2008, 07:50 AM   #6
danielph
Member
 
Registered: Nov 2004
Distribution: Archlinux
Posts: 41

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by tredegar View Post
So, wherever arch sets up its modules, you need to remove, or blacklist dv1394 and modprobe raw1394 instead.
rc.conf
Code:
MOD_BLACKLIST=(dv1394)
and loading raw1394 results in the following:
Code:
Jul  6 14:45:22 morocco firewire_core: phy config: card 0, new root=ffc1, gap_count=5
Jul  6 14:45:23 morocco firewire_core: created device fw1: GUID 0080458051262199, S100
Jul  6 14:45:23 morocco logger: udev load-modules: ieee1394:ven00008045mo00803303sp0000A02Dver00010001 is blacklisted
I think the working machine uses dv1394 also, as this displays the same warning, but it works.

Last edited by danielph; 07-06-2008 at 07:52 AM.
 
Old 07-06-2008, 08:10 AM   #7
tredegar
Guru
 
Registered: May 2003
Location: London, UK
Distribution: Ubuntu 10.04, mostly
Posts: 6,007

Rep: Reputation: 366Reputation: 366Reputation: 366Reputation: 366
You have the right idea, but it is difficult for me to help you as I know nothing about how arch handles modules.

I suspect that dv1394 is somehow linked or aliased with raw1394 so by blacklisting one, you have blacklisted the other.

I think the working machine is aware that dv1394 driver is unsupported so it just ignores it and uses raw1394.
 
Old 07-06-2008, 08:18 AM   #8
danielph
Member
 
Registered: Nov 2004
Distribution: Archlinux
Posts: 41

Original Poster
Rep: Reputation: 15
raw1394 module is loaded ok as shown with lsmod

Quote:
raw1394 24028 0
ohci1394 28720 0
ieee1394 79288 2 raw1394,ohci1394
Perhaps I should have mentioned it is when I switch the camera on that it tries to load ieee1394 but seems unable to without dv1394. The other system is running the almost the same system (almost - it is arch64).
 
Old 07-06-2008, 11:05 AM   #9
tredegar
Guru
 
Registered: May 2003
Location: London, UK
Distribution: Ubuntu 10.04, mostly
Posts: 6,007

Rep: Reputation: 366Reputation: 366Reputation: 366Reputation: 366
From your posting above you have both raw1394 and ieee1394 loaded
So what happens when you turn the camera on?
Anything useful printed to /var/log/messages ?
Quote:
The other system is running the almost the same system (almost - it is arch64).
Now I'm getting confused: You have XP & Ubuntu (which work) and 2 Archlinux (which don't) but "The other (which?) system is running the almost the same system almost - it is arch64."
??
 
Old 07-08-2008, 02:56 AM   #10
danielph
Member
 
Registered: Nov 2004
Distribution: Archlinux
Posts: 41

Original Poster
Rep: Reputation: 15
I take the blame for the confusion entirely

I have 2 machines running Archlinux i686 (not working) and a 3rd running Archlinux 64 (working). Dual booting with Ubuntu LiveCD or into XP works on either.

However, this is irrelevant now as I got it working BIG CHEER.It was a configuration problem and I have learned a little.

Currently there are two 1394 frameworks available and Archlinux has them both. One is still in development and uses firewire_core and firewire_ohci. This is likely to replace the current system, but is not needed or wanted if you are still using the older stable framework, as I am.

Solution: Out with the new, in with the old
  1. Blacklist the firewire_core and firewire_ohci (and dv1394 as it is old and not needed) to prevent them loading.
  2. Ensure the modules ieee1394, raw1394 and ohci1394 are loaded (I also loaded them in that order).
  3. Take a note that you did this as you will most likely want to use the new firewire modules in future.

Now it fires up and works everytime.

@tredegar Thanks for your help here, apprieciate it.

Last edited by danielph; 07-08-2008 at 03:33 AM. Reason: general tidy up
 
Old 02-14-2009, 07:28 AM   #11
MarianP
LQ Newbie
 
Registered: Jan 2008
Location: Prague, Czech Republic (Central Europe)
Distribution: Ubuntu 8.04
Posts: 5

Rep: Reputation: 0
Lightbulb dvgrab 3.3: NO --- dvgrab 3.2: YES

Hello,

today I tried to download video from my camcorder the first time after a complete OS reinstallation (because of a failing system disk). So I just started my old reliable script for downloading video which essentially just calls dvgrab with a given set of parameters. And it failed with "Error: no camera exists". Sometimes, it reported that it "Found AV/C device with GUID 0x..." but did nothing else. After spending 40 minutes with searching the web and trying the Firewire cable, I realised that I have a different version of dvgrab installed now. Before the OS reinstallation, I had dvgrab 3.2, now I have dvgrab 3.3. So I uninstalled dvgrab 3.3 (make uninstall) and downloaded, compiled and installed dvgrab 3.2. Then I tried the video again - and it worked!

Conclusion: Before buying a new Firewire cable or hacking the kernel, try dvgrab 3.2. You can download dvgrab from http://www.kinodv.org/. Installation is the simpliest one: ./configure --- make --- sudo make install.

Note:
The camcorder I have is Sony DCR-TRV320E.

Last edited by MarianP; 02-14-2009 at 09:35 AM.
 
  


Reply

Tags
camcorder, dvgrab, error, solution, sony


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
Kino-(kino:5747): Gtk-WARNING **: cannot open display: :0 nix2ways Slackware 16 05-14-2008 06:14 AM
Kino & coriander camcorder master Linux - Software 4 01-04-2006 09:00 AM
kino 0.7.5 won't export back to camcorder tvphil Linux - Software 0 04-14-2005 09:48 PM
dvgrab canyon289 Fedora 0 10-11-2004 09:37 PM
Firewire/Kino/DV Camcorder gizmogadgetus Red Hat 1 09-29-2003 06:15 PM


All times are GMT -5. The time now is 03:06 AM.

Main Menu
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