[Pkg-phototools-devel] Bug#479135: 479135: Reproduced, have some ideas
Alexander E. Patrakov
patrakov at gmail.com
Fri Jul 25 11:25:27 UTC 2008
I can reproduce this bug with my Panasonic Lumix DMC-FS3 camera. Some
observations:
1) Udev is irrelevant, HAL is the curlpit (somehow upsets the camera). If I
stop hal, I can mount the camera manually. If HAL is running, the kernel
doesn't create /dev/sdb1.
2) There is some confusion (same USB device ID, completely different cameras)
of my DMC-FS3 camera and the DMC-FZ10/FZ20 models. For some reason, FZ10/FZ20
needs a custom libgphoto2 driver (that can talk to DMC-FS3 in PTP mode just
fine), while DMC-FS3 is well supported as a USB PTP Class camera.
3) If I remove the following part
of /usr/share/hal/fdi/preprobe/10osvendor/20-libgphoto2.fdi
<match key="usb.vendor_id" int="1242">
<match key="usb.product_id" int="9074">
<merge key="info.category" type="string">camera</merge>
<append key="info.capabilities" type="strlist">camera</append>
<merge key="camera.access_method" type="string">ptp</merge>
<merge key="camera.libgphoto2.name" type="string">Panasonic
DMC-LC1</merge>
<merge key="camera.libgphoto2.support" type="bool">true</merge>
</match>
</match>
and all other snippets about usb.product_id 9074 (found out by "echo $((
0x2372 ))", where 2372 is from lsusb output), my camera starts working as USB
storage. Can anyone confirm that all cameras with USB ID 04da:2372 are in
fact mass storage devices and thus should not be supported by libgphoto2?
Here is my camera in PTP mode (PTP and USB storage modes are selectable via
buttons on the camera):
# lsusb -s 1:13
Bus 001 Device 013: ID 04da:2374 Panasonic (Matsushita) DMC-FZ20
home:~/old# lsusb -vvv -s 1:13
Bus 001 Device 013: ID 04da:2374 Panasonic (Matsushita) DMC-FZ20
Device Descriptor:
bLength 18
bDescriptorType 1
bcdUSB 1.10
bDeviceClass 0 (Defined at Interface level)
bDeviceSubClass 0
bDeviceProtocol 0
bMaxPacketSize0 8
idVendor 0x04da Panasonic (Matsushita)
idProduct 0x2374 DMC-FZ20
bcdDevice 0.10
iManufacturer 1 Panasonic
iProduct 2 DMC-FS3
iSerial 3 0000000000000000001X0208240416
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 0x0040 1x 64 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 0x0040 1x 64 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 16
Device Status: 0x0000
(Bus Powered)
Here is my camera in USB storage mode:
# lsusb -vvv -s 1:14
Bus 001 Device 014: ID 04da:2372 Panasonic (Matsushita) Lumix DMC-FZ10 Camera
Device Descriptor:
bLength 18
bDescriptorType 1
bcdUSB 1.10
bDeviceClass 0 (Defined at Interface level)
bDeviceSubClass 0
bDeviceProtocol 0
bMaxPacketSize0 8
idVendor 0x04da Panasonic (Matsushita)
idProduct 0x2372 Lumix DMC-FZ10 Camera
bcdDevice 0.10
iManufacturer 1 Panasonic
iProduct 2 DMC-FS3
iSerial 3 0000000000000000001X0208240416
bNumConfigurations 1
Configuration Descriptor:
bLength 9
bDescriptorType 2
wTotalLength 32
bNumInterfaces 1
bConfigurationValue 1
iConfiguration 0
bmAttributes 0xc0
Self Powered
MaxPower 2mA
Interface Descriptor:
bLength 9
bDescriptorType 4
bInterfaceNumber 0
bAlternateSetting 0
bNumEndpoints 2
bInterfaceClass 8 Mass Storage
bInterfaceSubClass 6 SCSI
bInterfaceProtocol 80 Bulk (Zip)
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 0x0040 1x 64 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 0x0040 1x 64 bytes
bInterval 0
Device Status: 0x0000
(Bus Powered)
--
Alexander E. Patrakov
More information about the Pkg-phototools-devel
mailing list