Please consider adding the 'Nikon COOLPIX L120' to gphoto2's support.
At the moment when camera is attached via usb cable and turned on the kernel recognizes the device:
kernel: [598401.215276] usb 1-1: new high speed USB device using ehci_hcd and address 10
But then this error comes up in the log:
kernel: [598422.608037] usb 1-1: usbfs: USBDEVFS_CONTROL failed cmd gvfs-gphoto2-vo rqt 33 rq 102 len 0 ret -110
preventing further progress.
After killing the 'gvfs-gphoto2-volume-monitor' process, I run 'lsusb -vs xxx:yyy' and get:
root@jupiter:~
# lsusb -vs 001:010
Bus 001 Device 010: ID 04b0:0185 Nikon Corp.
Device Descriptor:
bLength 18
bDescriptorType 1
bcdUSB 2.00
bDeviceClass 0 (Defined at Interface level)
bDeviceSubClass 0
bDeviceProtocol 0
bMaxPacketSize0 64
idVendor 0x04b0 Nikon Corp.
idProduct 0x0185
bcdDevice 1.00
iManufacturer 1 NIKON
iProduct 2 NIKON DSC COOLPIX L120-PTP
iSerial 3 000030190504
bNumConfigurations 1
Configuration Descriptor:
bLength 9
bDescriptorType 2
wTotalLength 39
bNumInterfaces 1
bConfigurationValue 1
iConfiguration 0
bmAttributes 0xc0
Self Powered
MaxPower 2mA
Interface Descriptor:
bLength 9
bDescriptorType 4
bInterfaceNumber 0
bAlternateSetting 0
bNumEndpoints 3
bInterfaceClass 6 Imaging
bInterfaceSubClass 1 Still Image Capture
bInterfaceProtocol 1 Picture Transfer Protocol (PIMA 15470)
iInterface 0
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x01 EP 1 OUT
bmAttributes 2
Transfer Type Bulk
Synch Type None
Usage Type Data
wMaxPacketSize 0x0200 1x 512 bytes
bInterval 0
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x82 EP 2 IN
bmAttributes 2
Transfer Type Bulk
Synch Type None
Usage Type Data
wMaxPacketSize 0x0200 1x 512 bytes
bInterval 0
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x83 EP 3 IN
bmAttributes 3
Transfer Type Interrupt
Synch Type None
Usage Type Data
wMaxPacketSize 0x0008 1x 8 bytes
bInterval 11
Device Qualifier (for other device speed):
bLength 10
bDescriptorType 6
bcdUSB 2.00
bDeviceClass 0 (Defined at Interface level)
bDeviceSubClass 0
bDeviceProtocol 0
bMaxPacketSize0 64
bNumConfigurations 1
Device Status: 0x0001
Self Powered
root@jupiter:~
#
Additional info.
The workaround for me at the moment to connect and download pics from the Coolpix L120 is to kill the 'gvfs-gphoto2-volume-monitor' on my desktop machine (Linux Mint 10 Julia). Then run just about any current flavor of linux virtually via VirtualBox 4x. Enable the Coolpix L120 usb on the virtual guest and connect and use gtkam (preferred) to download pics (Ubuntu/Mint/Puppy vbox guests) or likewise with gthumb (CentOS/Fedora vbox guests). When an icon is present on the virtual guest Desktop it is labelled: 'NIKON DSC COOLPIX L120-PTP'. gtkam label, when used: 'USB PTP Class Camera'.
Thanks!
Does it work on the host with the commandline tool gphoto2, after you kill the gvfs-gphoto2-volume-m,onitor?
the volume-monitor basically opens and grabs the camera as soon as you plug it in. If this is not desired, you need to discuss that with the GNOME guys.
I neglected to mention in my initial post that on the host machine, after killing 'gvfs-gphoto2-volume-monitor', I have launched gtkam. Using 'Add Camera' and 'Detect', gtkam, on the host machine, detects 'USB PTP Class Camera, but when I click on 'Apply' or OK, after a delay gtkam throws up an error window: ''Could not initialize camera PTP General Error', thus forcing me to 'Cancel' out of the gtkam 'Add Camera' window.
I have never used gphoto2 on the command line? In a search I found it suggested that I run:
$ gphoto2 --list-ports
$ gphoto2 --auto-detect
$ gphoto2 --summary
$ gphoto2 --list-files
$ gphoto2 --get-all-files
So with the coolpix L120 connected and after killing ''gvfs-gphoto2-volume-monitor' I ran:
$ gphoto2 --list-ports
Devices found: 8
Path Description
--------------------------------------------------------------
ptpip: PTP/IP Connection
serial:/dev/ttyS0 Serial Port 0
serial:/dev/ttyS1 Serial Port 1
serial:/dev/ttyS2 Serial Port 2
serial:/dev/ttyS3 Serial Port 3
usb: Universal Serial Bus
usb:006,002 Universal Serial Bus
usb:001,008 Universal Serial Bus
marty@jupiter:~/tmp/coolpix
and
$ gphoto2 --auto-detect
Model Port
----------------------------------------------------------
USB PTP Class Camera usb:
USB PTP Class Camera usb:001,008
and
$ gphoto2 --summary
*** Error ***
PTP General Error
*** Error ***
An error occurred in the io-library ('Unspecified error'): The supplied vendor or product id (0x0,0x0) is not valid.
*** Error (-1: 'Unspecified error') ***
For debugging messages, please use the --debug option.
Debugging messages may help finding a solution to your problem.
If you intend to send any error or debug messages to the gphoto
developer mailing list <gphoto-devel@lists.sourceforge.net>, please run
gphoto2 as follows:
env LANG=C gphoto2 --debug --debug-logfile=my-logfile.txt --summary
Please make sure there is sufficient quoting around the arguments.
-----------------------------------------------------------------------
As suggested I then ran the 'env LANG=C gphoto2 --debug --debug-logfile=my-logfile.txt --summary' command naming the file: 1105181636_coolpixL120-logfile.txt
I going to attach that file instead of pasting here. If what I did was incorrect here please give me some command line specifics for proceeding with gphoto2? I'm just a lowly user, NOT a developer!
Results from running 'env LANG=C gphoto2 --debug --debug-logfile=1105181636_coolpixL120-logfile.txt --summary' command.
the camera does not react on anything.
it might have been broken by the volume-momnitor. did you switch the camera off and on again
after killing this persistent daemon?
2011-05-20 12:05:12 CDT: '...it might have been broken by the volume-momnitor. did you switch the camera off and on again after killing this persistent daemon?'
Yes. Probing with either gtkam or ghoto2 would 'hang' the camera requiring that I pull the usb cable from the machine port in order to power down the camera. This would be required every time an error occurred.
I have now un-installed the 'gvfs-backends package which included the 'gvfs-gphoto2-volume-monitor' daemon. With 'gvfs-gphoto2-volume-monitor' eliminated, gphoto --summary still fails. .gtkam 'Add Camera|Apply or OK' still fails with '... PTP General Error' popup '. Also see an error in the 'syslog' similar to this:
... kernel: [27788.169250] usb 1-5: usbfs: USBDEVFS_CONTROL failed cmd [gtkam | gphoto2] rqt 33 rq 102 len 0 ret -110
That is/was until a couple of nights ago.
On my desktop machine, after further repeated attempts to 'Add Camera' to gtkam running on my desktop machine, an attempt to 'Add Camera' FINALLY worked and I was able to, with gtkam, successfully 'Add Camera', view and download files from the coolpix L120!
On my netbook (ubuntu 11.04), attempts to use gtkam continued to fail when I attempted to 'Add Camera' with the coolpix L120 connected. Finally, I copied the ~/.gphoto/settings file from my now gtkam working desktop machine to the netbook. Re-connected and powered on the coolpix L120 connected to the netbook, launched gtkam, and gtkam worked for the first time!
Finally, on a third desktop machine (ubuntu 10.04), in which gtkam was also repeatedly failing at connecting to the coolpix L120. Again, copy the contents of a 'working' ~/.gphoto/settings file to the ~/.gphoto/settings file on machine #3. Connect and power on the coolpix L120, launch gtkam, click on the + next to 'USB PTP Class Camera' displayed in gtkam, 'Initializing Camera' progess appears at the bottom of the gtkam gui as expected, continue to drill down, click on '100NIKON', image thumbnails appear!
Now. All three of my machines successfully connect via gtkam to the coolpix L120!
In addition to the already present lines: gtkam=width=yyy and gtkam=height=xxx, the lines that I added to .gphoto/settings that enable gtkam functionality on the netbook and machine #3 are as follows:
gtkam=model-1=USB PTP Class Camera
gtkam=port-1=usb:
gtkam=multi-1=0
gtkam=speed-1=0
FWIW. On all three machines, if I remove or rename the 'settings' file. Launch gtkam, attempt to 'Add Camera' will undoubtedly fail. Put the 'working' settings back in place and gtkam will succeed. Without fail. Oh and ghoto2? Regardless of version gphoto2 from the command line when using '--summary', '--list-files/folders', continues to fail on all my machines. On my desktop machine (Mint 10 [32-bit]) the version is: 2.4.5-2. On the netbook running natty (11.04 [32-bit]) gphoto's version is: 2.4.10-1. On machine (ubuntu 10.04 [32-bit]) #3 : 2.4.5-2. The error again will look something like: '... kernel: [ 943.753438] usb 2-1.1: usbfs: USBDEVFS_CONTROL failed cmd gphoto2 rqt 33 rq 102 len 0 ret -110'
This Tracker item was closed automatically by the system. It was
previously set to a Pending status, and the original submitter
did not respond within 14 days (the time period specified by
the administrator of this Tracker).
it is in 2.4.12/2.4.13