Nikon camera not found by gphoto
Gary Dunn
knowtree at aloha.com
Mon Feb 1 21:41:42 UTC 2010
output of uname -a
FreeBSD slate01 8.0-RELEASE-p2 FreeBSD 8.0-RELEASE-p2 #0: Thu Jan 28
06:16:14 HST 2010 gary at slate01:/usr/obj/usr/src/sys/GENERIC i386
Gnome 2.28.2
Camera: Nikon Coolpix 5400, volume name NIKY2
Before I upgraded to FreeBSD 8.0 gphoto saw my camera and would import
photos. Now it does not.
Initial problem was that usb system would drop the connection. This
forum entry from http://forums.freebsd.org/showthread.php?t=7940 seems
to have fixed that problem:
Try creating file /usr/local/etc/hal/fdi/policy/preferences.fdi with
this content: Code:
<?xml version="1.0" encoding="UTF-8"?>
<deviceinfo version="0.2">
<device>
<match key="volume.fstype" string="vfat">
<match key="volume.size" compare_ge="128000000000">
<merge key="volume.policy.mount_option.large" type="bool">true</merge>
</match>
</match>
</device>
</deviceinfo>
Now the usb system mounts the camera but gphoto fails to recognize.
Error in GUI dialog is "An error occurred in the io-library ('Bad
parameters'): No error description available
At this point mount command includes:
/dev/msdosfs/NIKY2 on /media/NIKY2 (msdosfs, local, nosuid)
After some googling I found that others had solved a similar problem by
changing the camera from "mass storage" to "PTP." With that gphoto GUI
fails to open at all.
I noticed that /usr/local/share/doc/libgphoto2/camlibs lists many camera
makes, but not Nikon. In README.ptp2 I find my camera listed in a table,
along with a lot of other Nikons:
Model |Vendor ID|Product ID|
...
Nikon Coolpix 5400 | 0x04b0 | 0x0119 |
That readme suggests debugging with gphoto2. I had to install the port.
gphoto2 -L gives
*** Error ***
Could not detect any camera
*** Error (-105: 'Unknown model') ***
In the debug output I see gphoto2 looking through all those camer files,
nothing for Nikon. Not necessarily a bug.
Log messages
After connecting in PTP mode:
Feb 1 11:18:12 slate01 root: Unknown USB device: vendor 0x04b0 product
0x0119 bus uhub0
Feb 1 11:18:12 slate01 kernel: ugen0.2: <NIKON> at usbus0
After connecting in mass storage mode:
Feb 1 11:27:49 slate01 root: Unknown USB device: vendor 0x04b0 product
0x0118 bus uhub0
Feb 1 11:27:49 slate01 kernel: ugen0.2: <NIKON> at usbus0
Feb 1 11:27:49 slate01 kernel: umass0: <NIKON NIKON DSC E5400, class
0/0, rev 1.10/1.00, addr 2> on usbus0
Feb 1 11:27:49 slate01 kernel: umass0: SCSI over Bulk-Only; quirks =
0x0000
Feb 1 11:27:50 slate01 kernel: umass0:0:0:-1: Attached to scbus0
Feb 1 11:27:50 slate01 kernel: da0 at umass-sim0 bus 0 scbus0 target 0
lun 0
Feb 1 11:27:50 slate01 kernel: da0: <NIKON NIKON DSC E5400 1.00>
Removable Direct Access SCSI-2 device
Feb 1 11:27:50 slate01 kernel: da0: 1.000MB/s transfers
Feb 1 11:27:50 slate01 kernel: da0: 1953MB (4001760 512 byte sectors:
255H 63S/T 249C)
Feb 1 11:27:56 slate01 gnome-keyring-daemon[1315]: removing removable
location: /media/NIKY2
Feb 1 11:27:56 slate01 gnome-keyring-daemon[1315]: no volume registered
at: /media/NIKY2
Note the vendor and product codes match.
I have installed the NTFS-3G port, if that matters.
--
Gary Dunn, Honolulu
osp at aloha.com
http://openslate.net/
http://e9erust.blogspot.com/
Sent from Slate001
More information about the freebsd-gnome
mailing list