gThumb half-works with my digital camera

Bug #24746 reported by Colin Leroy-Mira
18
Affects Status Importance Assigned to Milestone
gthumb (Ubuntu)
Fix Released
Medium
Ubuntu Desktop Bugs

Bug Description

Hi,

When I plug my digital camera in, gThumb starts, shows me the photos stored on
the camera in /media/usbdisk/dcim//100MSDCF. If I click File/Import photos, I
tells me it can't recognize my camera. If I force it to Sony DSC-P51 (which is
what I have), the USB IDs don't match. GThumb tells:
"An error occurred in the io-library ('Bad parameters'): Could not find USB
device (vendor 0x54c, product 0x4e). Make sure this device is connected to the
computer."

lsusb says: "Bus 002 Device 002: ID 054c:0010 Sony Corp.
DSC-S30/S70/S75/F505V/F505/FD92 Cybershot/Mavica Digital Camera" (but on the
camera it's written DSC-P51).

Also, it looks like a bit stupid that the importer thingy can't use the
usb-storage mode it just used to show the photos on the camera.

Revision history for this message
Daniel Holbach (dholbach) wrote :

Thanks for your bug report. Which version of gphoto, gthumb and Ubuntu do you
use? Martin, could this be a general gphoto issue?

Revision history for this message
Colin Leroy-Mira (colin-colino) wrote :

[colin@jack ~]$ dpkg -l|grep "\(gphoto\|gthumb\)"
ii gthumb 2.6.5-1ubuntu3
         an image viewer and browser
ii libgphoto2-2 2.1.6-1ubuntu6.1
         gphoto2 digital camera library
ii libgphoto2-port0 2.1.6-1ubuntu6.1
         gphoto2 digital camera port library

On Ubuntu 5.10 (Breezy Badger), up-to-date.

Thanks,
Colin

Revision history for this message
Martin Pitt (pitti) wrote :

(In reply to comment #0)
> Hi,
>
> When I plug my digital camera in, gThumb starts, shows me the photos stored on
> the camera in /media/usbdisk/dcim//100MSDCF. If I click File/Import photos, I
> tells me it can't recognize my camera. If I force it to Sony DSC-P51 (which is
> what I have), the USB IDs don't match. GThumb tells:
> "An error occurred in the io-library ('Bad parameters'): Could not find USB
> device (vendor 0x54c, product 0x4e). Make sure this device is connected to the
> computer."

This camera is mentioned in the libgphoto2 device map, so it should be supported
in principle.

> lsusb says: "Bus 002 Device 002: ID 054c:0010 Sony Corp.

After doing this, can you please send the output of

  ls -l /proc/bus/usb/devices/BUSNO

where BUSNO must be replaced with the number that lsusb outputs after 'Bus'; e.
g. /proc/bus/usb/devices/002

> DSC-S30/S70/S75/F505V/F505/FD92 Cybershot/Mavica Digital Camera" (but on the
> camera it's written DSC-P51).
>
> Also, it looks like a bit stupid that the importer thingy can't use the
> usb-storage mode it just used to show the photos on the camera.

Right, that's a gthumb oddity.

Revision history for this message
Colin Leroy-Mira (colin-colino) wrote :

/proc/bus/usb/devices is a file here, so here it goes:
cat /proc/bus/usb/devices #edited to include only the relevant bus
T: Bus=03 Lev=00 Prnt=00 Port=00 Cnt=00 Dev#= 1 Spd=12 MxCh= 2
B: Alloc= 0/900 us ( 0%), #Int= 0, #Iso= 0
D: Ver= 1.10 Cls=09(hub ) Sub=00 Prot=00 MxPS= 8 #Cfgs= 1
P: Vendor=0000 ProdID=0000 Rev= 2.06
S: Manufacturer=Linux 2.6.14 uhci_hcd
S: Product=UHCI Host Controller
S: SerialNumber=0000:00:1d.1
C:* #Ifs= 1 Cfg#= 1 Atr=c0 MxPwr= 0mA
I: If#= 0 Alt= 0 #EPs= 1 Cls=09(hub ) Sub=00 Prot=00 Driver=hub
E: Ad=81(I) Atr=03(Int.) MxPS= 2 Ivl=255ms

T: Bus=03 Lev=01 Prnt=01 Port=00 Cnt=01 Dev#= 2 Spd=12 MxCh= 0
D: Ver= 1.10 Cls=00(>ifc ) Sub=00 Prot=00 MxPS= 8 #Cfgs= 1
P: Vendor=054c ProdID=0010 Rev= 4.10
S: Manufacturer=Sony
S: Product=Sony DSC
C:* #Ifs= 1 Cfg#= 1 Atr=c0 MxPwr= 2mA
I: If#= 0 Alt= 0 #EPs= 3 Cls=08(stor.) Sub=ff Prot=01 Driver=usb-storage
E: Ad=01(O) Atr=02(Bulk) MxPS= 64 Ivl=0ms
E: Ad=82(I) Atr=02(Bulk) MxPS= 64 Ivl=0ms
E: Ad=83(I) Atr=03(Int.) MxPS= 8 Ivl=255ms

attaching lsusb -vv, in case that helps.

Revision history for this message
Colin Leroy-Mira (colin-colino) wrote :

Created an attachment (id=5360)
output of lsusb -vv

Revision history for this message
Martin Pitt (pitti) wrote :

(In reply to comment #3)
> (In reply to comment #0)
> > Hi,
> >
> > When I plug my digital camera in, gThumb starts, shows me the photos stored on
> > the camera in /media/usbdisk/dcim//100MSDCF. If I click File/Import photos, I
> > tells me it can't recognize my camera. If I force it to Sony DSC-P51 (which is
> > what I have), the USB IDs don't match. GThumb tells:
> > "An error occurred in the io-library ('Bad parameters'): Could not find USB
> > device (vendor 0x54c, product 0x4e). Make sure this device is connected to the
> > computer."
>
> This camera is mentioned in the libgphoto2 device map, so it should be supported
> in principle.
>
> > lsusb says: "Bus 002 Device 002: ID 054c:0010 Sony Corp.
>
> After doing this, can you please send the output of
>
> ls -l /proc/bus/usb/devices/BUSNO

Sorry, that should have been

  ls -l /proc/bus/usb/BUSNO

Can you please do that again with the bus number of the day?

Revision history for this message
Daniel Holbach (dholbach) wrote :

Closing as we didn't get new info on it. Please reopen if you have new information on it. Thanks.

Changed in gthumb:
assignee: dholbach → desktop-bugs
status: Needs Info → Rejected
Revision history for this message
Samium Gromoff (deepfire) wrote :
Download full text (3.2 KiB)

Pretty much the same happens for me too in Gutsy Gibbon/Canon PowerShot G6:

"An error occurred in the io-library ('Bad parameters'): Could not find USB device (vendor 0x4a9, product 0x30b3). Make sure this device is connected to the computer."

root@betelheise:/home/deepfire # lsusb
Bus 001 Device 001: ID 0000:0000
Bus 002 Device 003: ID 046d:c024 Logitech, Inc.
Bus 002 Device 002: ID 058f:9254 Alcor Micro Corp. Hub
Bus 002 Device 001: ID 0000:0000
Bus 002 Device 004: ID 0b38:0003
root@betelheise:/home/deepfire # ls -l /proc/bus/usb/
.usbfs/ 001/ 002/ devices
root@betelheise:/home/deepfire # ls -l /proc/bus/usb/001/
total 0
crw-rw-r-- 1 root root 189, 0 May 5 15:29 001
root@betelheise:/home/deepfire # ls -l /proc/bus/usb/002
total 0
crw-rw-r-- 1 root root 189, 128 May 5 15:29 001
crw-rw-r-- 1 root root 189, 129 May 5 15:29 002
crw-rw---- 1 root plugdev 189, 130 May 5 15:29 003
crw-rw-r-- 1 root root 189, 131 May 5 15:29 004

root@betelheise:/home/deepfire # cat /proc/bus/usb/devices

T: Bus=02 Lev=00 Prnt=00 Port=00 Cnt=00 Dev#= 1 Spd=12 MxCh=10
B: Alloc= 37/900 us ( 4%), #Int= 4, #Iso= 0
D: Ver= 1.10 Cls=09(hub ) Sub=00 Prot=00 MxPS=64 #Cfgs= 1
P: Vendor=0000 ProdID=0000 Rev= 2.06
S: Manufacturer=Linux 2.6.18-mm3-betelheise ohci_hcd
S: Product=OHCI Host Controller
S: SerialNumber=0000:00:02.0
C:* #Ifs= 1 Cfg#= 1 Atr=e0 MxPwr= 0mA
I: If#= 0 Alt= 0 #EPs= 1 Cls=09(hub ) Sub=00 Prot=00 Driver=hub
E: Ad=81(I) Atr=03(Int.) MxPS= 2 Ivl=255ms

T: Bus=02 Lev=01 Prnt=01 Port=08 Cnt=01 Dev#= 2 Spd=12 MxCh= 4
D: Ver= 1.10 Cls=09(hub ) Sub=00 Prot=00 MxPS= 8 #Cfgs= 1
P: Vendor=058f ProdID=9254 Rev= 3.12
S: Manufacturer=ALCOR
S: Product=Generic USB Hub
C:* #Ifs= 1 Cfg#= 1 Atr=e0 MxPwr=100mA
I: If#= 0 Alt= 0 #EPs= 1 Cls=09(hub ) Sub=00 Prot=00 Driver=hub
E: Ad=81(I) Atr=03(Int.) MxPS= 1 Ivl=255ms

T: Bus=02 Lev=02 Prnt=02 Port=00 Cnt=01 Dev#= 4 Spd=1.5 MxCh= 0
D: Ver= 1.10 Cls=00(>ifc ) Sub=00 Prot=00 MxPS= 8 #Cfgs= 1
P: Vendor=0b38 ProdID=0003 Rev= 1.00
S: Product=USB-compliant keyboard
C:* #Ifs= 2 Cfg#= 1 Atr=a0 MxPwr=100mA
I: If#= 0 Alt= 0 #EPs= 1 Cls=03(HID ) Sub=01 Prot=01 Driver=usbhid
E: Ad=81(I) Atr=03(Int.) MxPS= 8 Ivl=10ms
I: If#= 1 Alt= 0 #EPs= 1 Cls=03(HID ) Sub=01 Prot=02 Driver=usbhid
E: Ad=82(I) Atr=03(Int.) MxPS= 4 Ivl=10ms

T: Bus=02 Lev=01 Prnt=01 Port=09 Cnt=02 Dev#= 3 Spd=1.5 MxCh= 0
D: Ver= 2.00 Cls=00(>ifc ) Sub=00 Prot=00 MxPS= 8 #Cfgs= 1
P: Vendor=046d ProdID=c024 Rev=98.02
S: Manufacturer=B16_b_02
S: Product=USB-PS/2 Optical Mouse
C:* #Ifs= 1 Cfg#= 1 Atr=a0 MxPwr= 98mA
I: If#= 0 Alt= 0 #EPs= 1 Cls=03(HID ) Sub=01 Prot=02 Driver=usbhid
E: Ad=81(I) Atr=03(Int.) MxPS= 5 Ivl=10ms

T: Bus=01 Lev=00 Prnt=00 Port=00 Cnt=00 Dev#= 1 Spd=480 MxCh=10
B: Alloc= 0/800 us ( 0%), #Int= 0, #Iso= 0
D: Ver= 2.00 Cls=09(hub ) Sub=00 Prot=01 MxPS=64 #Cfgs= 1
P: Vendor=0000 ProdID=0000 Rev= 2.06
S: Manufacturer=Linux 2.6.18-mm3-betelheise ehci_hcd
S: Product=EHCI Host Controller
S: SerialNumber=0000:00:02.1
C:* #Ifs= 1 Cfg#= 1 Atr=e0 MxPwr= 0mA
I: If#= 0 Alt= 0 #EPs= 1 Cl...

Read more...

Changed in gthumb:
status: Rejected → Confirmed
Revision history for this message
Samium Gromoff (deepfire) wrote :

Forgot to add: gphoto/gthumb are 2.3.1-3ubuntu1/3:2.10.2-0ubuntu1

Revision history for this message
lau (lbives) wrote :

Hello,

Pretty much the same error message for me too in Feisty Fawn/Canon SD 700IS
"An error occurred in the io-library ('Bad parameters'): Could not find USB device (vendor 0x4a9, product 0x3119). Make sure this device is connected to the computer."

foo@bar $ dpkg -l|grep "\(gphoto\|gthumb\)"
ii gthumb 2.10.2-0ubuntu1 an image viewer and browser
ii libgphoto2-2 2.3.0-0ubuntu4 gphoto2 digital camera library
ii libgphoto2-port0 2.3.0-0ubuntu4 gphoto2 digital camera port library

lsusb does not return anything related to the camera

This camera was working excellent in Edgy

Thank you

Revision history for this message
Basilio Kublik (sourcercito) wrote :

does this still happens?, if you change the usb cable/port the same behaviour can be observed?.

i try to reproduce this bug and i was unable to do so., all works fine here:

related packages:
==========
gthumb 3:2.10.5-0ubuntu2
libgtk2.0-0 2.11.6-1ubuntu3
libgtk2.0-bin 2.11.6-1ubuntu3
libgtk2.0-common 2.11.6-1ubuntu3
libgtk2.0-dev 2.11.6-1ubuntu3
libgphoto2-2 2.3.1-5ubuntu1
libgphoto2-port0 2.3.1-5ubuntu1

Revision history for this message
lau (lbives) wrote :

Everything is nicely working with Gutsy!
Thank you.

Revision history for this message
Pedro Villavicencio (pedro) wrote :

Closing this report for now the, feel free to re open it if you experience the same problem with gutsy or later. thanks!.

Changed in gthumb:
status: Confirmed → Fix Released
Revision history for this message
Vtrain (niartv) wrote :

I have the same problem with a Cannon A60. When I connect the camera it starts the picture importer but after it says:

An error occurred in the io-library ('Bad parameters'): Could not find USB device (vendor 0x4a9, product 0x3074). Make sure this device is connected to the computer.

My details

@golfinho:~$ cat /etc/*release*
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=7.10
DISTRIB_CODENAME=gutsy
DISTRIB_DESCRIPTION="Ubuntu 7.10"

@golfinho:~$ dpkg -l|grep "\(gphoto\|gthumb\)"
ii gthumb 3:2.10.6-0ubuntu1 an image viewer and browser
ii libgphoto2-2 2.4.0-2ubuntu2 gphoto2 digital camera library
ii libgphoto2-port0 2.4.0-2ubuntu2 gphoto2 digital camera port library

But then I found out that lsusb was not showing my camera but sudo lsusb was:

@golfinho:~$ lsusb
Bus 005 Device 001: ID 0000:0000
Bus 004 Device 001: ID 0000:0000
Bus 003 Device 001: ID 0000:0000
Bus 002 Device 001: ID 0000:0000
Bus 001 Device 001: ID 0000:0000
@golfinho:~$ sudo lsusb
Bus 005 Device 001: ID 0000:0000
Bus 004 Device 001: ID 0000:0000
Bus 003 Device 001: ID 0000:0000
Bus 002 Device 002: ID 04a9:3074 Canon, Inc. PowerShot A60 (ptp)
Bus 002 Device 001: ID 0000:0000
Bus 001 Device 001: ID 0000:0000

so I tried
sudo gnome-volume-manager-gthumb

and it worked. What shall I do to have it working as the normal users?
I had a scanner that I needed to chmod +w the /proc/bus/usb/xxxx/yyyy but here I do not see any files at

@golfinho:~$ ls -lart /proc/bus/usb/
[empty]

regards.
David

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.