| Summary: | gphoto2: Error (-37: 'Error updating the port settings') | ||
|---|---|---|---|
| Product: | Gentoo Linux | Reporter: | Jan-Erik Skata <jeskata> |
| Component: | [OLD] Core system | Assignee: | Alastair Tse (RETIRED) <liquidx> |
| Status: | RESOLVED FIXED | ||
| Severity: | major | ||
| Priority: | High | ||
| Version: | unspecified | ||
| Hardware: | x86 | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Package list: | Runtime testing required: | --- | |
Now also tried gentoo-sources-2.6.14-r2, same problem. I've seen the same issue for a while now. The problem is described here at http://bugzilla.kernel.org/show_bug.cgi?id=5063 which indicates that libgphoto2 2.1.6 should fix the problem. I see that you are using 2.1.5 so that may fix it for you but I've got 2.1.6-r1 and am still seeing the exact same problem (-EBUSY on a USBDEVFS_SETCONFIGURATION ioctl) If you strace the gphoto2 run you should see something like the below right before it errors out. ioctl(5, USBDEVFS_SETCONFIGURATION, 0xbfda7f34) = -1 EBUSY (Device or resource busy) gettimeofday({1132112423, 363219}, NULL) = 0 write(2, "3.606017 gphoto2-port(0): ", 263.606017 gphoto2-port(0): ) = 26 write(2, "Could not set config 0/1 (Device"..., 50Could not set config 0/1 (Device or resource busy)) = 50 write(2, "\n", 1 ) = 1 gettimeofday({1132112423, 363459}, NULL) = 0 write(2, "3.606257 context(0): ", 213.606257 context(0): ) = 21 write(2, "Could not apply USB settings", 28Could not apply USB settings) = 28 write(2, "\n", 1 ... Updating libgphoto2 to 2.1.6 fixes the problem. However, portage doesn't automatically indicate that a newer version is available with emerge -pu world, only with emerge -pu libgphoto2. Should be set to update for everybody running stable branch. I have libhphoto 2.1.6-r1 and kernel 2.6.14 and i have some problem.
gphoto2 -P
*** Error ***
An error occurred in the io-library ('Error updating the port settings'): Could
not release interface 1 (Invalid argument).
*** Error (-37: 'Error updating the port settings') ***
gphoto2 -P --debug
.............
0.888952 gphoto2-port-info-list(2): Loaded '' (^serial) from
'libgphoto2_port_serial.so'
0.928746 gphoto2-port-info-list(2): Loaded 'Universal Serial Bus' (usb:) from
'libgphoto2_port_usb.so'
0.959263 gphoto2-port-info-list(2): Looking for path 'usb:' (2 entries available)...
0.959626 gphoto2-port-info-list(2): Getting info of entry 0 (2 available)...
0.959769 gphoto2-camera(2): Setting port info for port 'Universal Serial Bus' at
'usb:'...
0.960662 gphoto2-port(2): Setting timeout to 5000 millisecond(s)...
1.000020 gphoto2-port(2): Setting settings...
1.000098 gphoto2-setting(2): Setting key 'port' to value 'usb:' (gphoto2)
1.000174 gphoto2-setting(2): Saving 2 setting(s) to file "/root/.gphoto/settings"
1.001068 gphoto2-camera(2): Listing files in '/'...
1.039438 gphoto2-camera(2): Initializing camera...
1.039591 gphoto2-port-usb(1): Looking for USB device (vendor 0x41e, product
0x400b)... found.
1.039673 gphoto2-port-usb(1): Detected defaults: config 1, interface 0,
altsetting 0, inep ffffffff, outep ffffffff, intep ffffffff, class ff, subclass 00
1.039747 gphoto2-camera(2): Loading
'/usr/lib64/gphoto2/2.1.6/libgphoto2_pccam600.so'...
1.040045 gphoto2-port(2): Opening USB port...
1.040286 gphoto2-port(0): Could not query kernel driver of device.
1.068714 pccam(2): Initializing the camera
1.068896 gphoto2-port(2): Setting settings...
1.068992 gphoto2-port-usb(2): releasing the iface for config failed.
1.069165 gphoto2-port(0): Could not set config 1/1 (Device or resource busy)
1.069267 gphoto2-port(2): Closing port...
1.069354 gphoto2-port(0): Could not release interface 1 (Invalid argument).
1.108665 context(0): An error occurred in the io-library ('Error updating the
port settings'): Could not release interface 1 (Invalid argument).
*** Error ***
An error occurred in the io-library ('Error updating the port settings'): Could
not release interface 1 (Invalid argument).
*** Error (-37: 'Error updating the port settings') ***
...................
strace gphoto2 -P
open("/usr/lib64/gphoto2/2.1.6/libgphoto2_pccam600.so", O_RDONLY) = 5
read(5, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0 \24\0\0"..., 640) = 640
fstat(5, {st_mode=S_IFREG|0755, st_size=14384, ...}) = 0
mmap(NULL, 1060808, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 5, 0) =
0x2aaaac84c000
mprotect(0x2aaaac84f000, 1048520, PROT_NONE) = 0
mmap(0x2aaaac94e000, 4096, PROT_READ|PROT_WRITE,
MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 5, 0x2000) = 0x2aaaac94e000
close(5) = 0
open("/proc/bus/usb/002/012", O_RDWR) = 5
ioctl(5, USBDEVFS_GETDRIVER, 0x7ffffffe7560) = -1 ENODATA (No data available)
ioctl(5, USBDEVFS_CLAIMINTERFACE, 0x7ffffffe767c) = 0
ioctl(5, USBDEVFS_RELEASEINTERFACE, 0x7ffffffe757c) = -1 EINVAL (Invalid argument)
ioctl(5, USBDEVFS_SETCONFIGURATION, 0x7ffffffe757c) = -1 EBUSY (Device or
resource busy)
ioctl(5, USBDEVFS_RELEASEINTERFACE, 0x7ffffffe76cc) = -1 EINVAL (Invalid argument)
munmap(0x2aaaac84c000, 1060808) = 0
write(2, "\n", 1
) = 1
write(2, "*** Error *** \n", 28*** Error ***
) = 28
write(2, "An error occurred in the io-libr"..., 123An error occurred in the
io-library ('Error updating the port settings'): Could not release interface 1
(Invalid argument).) = 123
write(2, "\n", 1
|
After updating the kernel to 2.6.13-gentoo-r5 and installing udev for the first time, gphoto2 can no longer access images from my camera. Reproducible: Always Steps to Reproduce: Expected Results: Download images. This is the detailed output from 'gphoto2 -P --debug': 0.000008 main(2): ALWAYS INCLUDE THE FOLLOWING LINES WHEN SENDING DEBUG MESSAGES TO THE MAILING LIST: 0.000105 main(2): gphoto2 2.1.5 0.000122 main(2): gphoto2 has been compiled with the following options: 0.000137 main(2): + i686-pc-linux-gnu-gcc (C compiler used) 0.000152 main(2): + popt (for handling command-line parameters) 0.000166 main(2): + exif (for displaying EXIF information) 0.000181 main(2): + cdk (for accessing configuration options) 0.000195 main(2): + no aa (for displaying live previews) 0.000210 main(2): + no jpeg (for displaying live previews in JPEG format) 0.000224 main(2): + readline (for easy navigation in the shell) 0.000241 main(2): libgphoto2 2.1.5 0.000257 main(2): libgphoto2 has been compiled with the following options: 0.000272 main(2): + i686-pc-linux-gnu-gcc (C compiler used) 0.000287 main(2): + EXIF (for special handling of EXIF files) 0.000301 main(2): + no ltdl (working around buggy libltdl, eh? :-) 0.000317 main(2): + /proc/meminfo (adapts cache size to memory available) 0.000332 main(2): libgphoto2_port 0.5.1 0.000347 main(2): libgphoto2_port has been compiled with the following options: 0.000362 main(2): + i686-pc-linux-gnu-gcc (C compiler used) 0.000376 main(2): + USB (for USB cameras) 0.000391 main(2): + serial (for serial cameras) 0.000405 main(2): + no resmgr (serial port access and locking) 0.000419 main(2): + no baudboy (serial port locking) 0.000433 main(2): + no ttylock (serial port locking) 0.000448 main(2): + no lockdev (serial port locking) 0.000462 main(2): + no ltdl (working around buggy libltdl, eh? :-) 0.000520 main(2): The user has not specified both a model and a port. Try to figure them out. 0.000540 gp-port-info-list(2): Loading io-drivers from '/usr/lib/gphoto2_port/0.5.1'... 0.000738 gphoto2-port-serial(2): Trying to lock '/dev/tts/0'... 0.000910 gphoto2-port-serial(2): Trying to lock '/dev/tts/1'... 0.001023 gphoto2-port-serial(2): Trying to lock '/dev/tts/2'... 0.001055 gphoto2-port-serial(2): Trying to lock '/dev/tts/3'... 0.001086 gphoto2-port-serial(2): Trying to lock '/dev/tts/4'... 0.001107 gphoto2-port-serial(2): Trying to lock '/dev/tts/5'... 0.001126 gphoto2-port-serial(2): Trying to lock '/dev/tts/6'... 0.001144 gphoto2-port-serial(2): Trying to lock '/dev/tts/7'... 0.001161 gphoto2-port-serial(2): Trying to lock '/dev/tts/8'... 0.001179 gphoto2-port-serial(2): Trying to lock '/dev/tts/9'... 0.001196 gphoto2-port-serial(2): Trying to lock '/dev/tts/10'... 0.001213 gphoto2-port-serial(2): Trying to lock '/dev/tts/11'... 0.001231 gphoto2-port-serial(2): Trying to lock '/dev/tts/12'... 0.001248 gphoto2-port-serial(2): Trying to lock '/dev/tts/13'... 0.001265 gphoto2-port-serial(2): Trying to lock '/dev/tts/14'... 0.001283 gphoto2-port-serial(2): Trying to lock '/dev/tts/15'... 0.001300 gphoto2-port-serial(2): Trying to lock '/dev/tts/16'... 0.001317 gphoto2-port-serial(2): Trying to lock '/dev/tts/17'... 0.001334 gphoto2-port-serial(2): Trying to lock '/dev/tts/18'... 0.001352 gphoto2-port-serial(2): Trying to lock '/dev/tts/19'... 0.001369 gphoto2-port-serial(2): Trying to lock '/dev/tts/20'... 0.001386 gphoto2-port-serial(2): Trying to lock '/dev/tts/21'... 0.001404 gphoto2-port-serial(2): Trying to lock '/dev/tts/22'... 0.001422 gphoto2-port-serial(2): Trying to lock '/dev/tts/23'... 0.001439 gphoto2-port-serial(2): Trying to lock '/dev/tts/24'... 0.001456 gphoto2-port-serial(2): Trying to lock '/dev/tts/25'... 0.001474 gphoto2-port-serial(2): Trying to lock '/dev/tts/26'... 0.001491 gphoto2-port-serial(2): Trying to lock '/dev/tts/27'... 0.001508 gphoto2-port-serial(2): Trying to lock '/dev/tts/28'... 0.001526 gphoto2-port-serial(2): Trying to lock '/dev/tts/29'... 0.001543 gphoto2-port-serial(2): Trying to lock '/dev/tts/30'... 0.001560 gphoto2-port-serial(2): Trying to lock '/dev/tts/31'... 0.001578 gphoto2-port-serial(2): Trying to lock '/dev/tts/32'... 0.001597 gphoto2-port-core(2): Loaded 'Serial Port 0' (serial:/dev/tts/0) from 'libgphoto2_port_serial.so' 0.001613 gphoto2-port-core(2): Loaded 'Serial Port 1' (serial:/dev/tts/1) from 'libgphoto2_port_serial.so' 0.001647 gphoto2-port-core(2): Loaded 'Serial Port 2' (serial:/dev/tts/2) from 'libgphoto2_port_serial.so' 0.001663 gphoto2-port-core(2): Loaded 'Serial Port 3' (serial:/dev/tts/3) from 'libgphoto2_port_serial.so' 0.001678 gphoto2-port-core(2): Loaded '' (^serial) from 'libgphoto2_port_serial.so' 0.002056 gphoto2-port-core(2): Loaded 'Universal Serial Bus' (usb:) from 'libgphoto2_port_usb.so' 0.002460 gphoto2-port-info-list(2): Counting entries (6 available)... 0.002481 gphoto2-port-info-list(2): 5 regular entries available. 0.002496 gphoto2-port(2): Creating new device... 0.002513 gphoto2-port-info-list(2): Getting info of entry 0 (6 available)... 0.002586 gphoto2-port(2): Setting timeout to 500 millisecond(s)... 0.002607 gphoto2-port(2): Setting settings... 0.002623 gphoto2-port-info-list(2): Getting info of entry 1 (6 available)... 0.002764 gphoto2-port(2): Setting timeout to 500 millisecond(s)... 0.002784 gphoto2-port(2): Setting settings... 0.002799 gphoto2-port-info-list(2): Getting info of entry 2 (6 available)... 0.002864 gphoto2-port(2): Setting timeout to 500 millisecond(s)... 0.002883 gphoto2-port(2): Setting settings... 0.002898 gphoto2-port-info-list(2): Getting info of entry 3 (6 available)... 0.002962 gphoto2-port(2): Setting timeout to 500 millisecond(s)... 0.002981 gphoto2-port(2): Setting settings... 0.002997 gphoto2-port-info-list(2): Getting info of entry 4 (6 available)... 0.003322 gphoto2-port(2): Setting timeout to 5000 millisecond(s)... 0.003343 gphoto2-port(2): Setting settings... 0.003359 gphoto2-abilities-list.c(1): Auto-detecting USB cameras... 0.003389 gphoto2-port(0): Could not find USB device (vendor 0x553, product 0x202). Make sure this device is connected to the computer. 0.003410 gphoto2-port(0): Could not find USB device (vendor 0x6bd, product 0x403). Make sure this device is connected to the computer. 0.003428 gphoto2-port(0): Could not find USB device (vendor 0x6bd, product 0x404). Make sure this device is connected to the computer. 0.003446 gphoto2-port(0): Could not find USB device (vendor 0x4fc, product 0x504b). Make sure this device is connected to the computer. 0.003464 gphoto2-port(0): Could not find USB device (vendor 0x553, product 0x202). Make sure this device is connected to the computer. 0.003482 gphoto2-port(0): Could not find USB device (vendor 0x4fc, product 0x504a). Make sure this device is connected to the computer. 0.003500 gphoto2-port(0): Could not find USB device (vendor 0x553, product 0x202). Make sure this device is connected to the computer. 0.003518 gphoto2-port(0): Could not find USB device (vendor 0x8ca, product 0x111). Make sure this device is connected to the computer. 0.003536 gphoto2-port(0): Could not find USB device (vendor 0x4fc, product 0x504a). Make sure this device is connected to the computer. 0.003554 gphoto2-port(0): Could not find USB device (vendor 0x4fc, product 0x504b). Make sure this device is connected to the computer. 0.003574 gphoto2-port(0): Could not find USB device (vendor 0x553, product 0x202). Make sure this device is connected to the computer. 0.003592 gphoto2-port(0): Could not find USB device (vendor 0x2770, product 0x9120). Make sure this device is connected to the computer. 0.003610 gphoto2-port(0): Could not find USB device (vendor 0x2770, product 0x913c). Make sure this device is connected to the computer. 0.003628 gphoto2-port(0): Could not find USB device (vendor 0x919, product 0x100). Make sure this device is connected to the computer. 0.003646 gphoto2-port(0): Could not find USB device (vendor 0x4a5, product 0x3003). Make sure this device is connected to the computer. 0.003664 gphoto2-port(0): Could not find USB device (vendor 0x4a9, product 0x3047). Make sure this device is connected to the computer. 0.003682 gphoto2-port(0): Could not find USB device (vendor 0x4a9, product 0x3072). Make sure this device is connected to the computer. 0.003700 gphoto2-port(0): Could not find USB device (vendor 0x4a9, product 0x304d). Make sure this device is connected to the computer. 0.003719 gphoto2-port(0): Could not find USB device (vendor 0x4a9, product 0x3066). Make sure this device is connected to the computer. 0.003776 gphoto2-port(0): Could not find USB device (vendor 0x4a9, product 0x30bf). Make sure this device is connected to the computer. 0.003795 gphoto2-port(0): Could not find USB device (vendor 0x4a9, product 0x3075). Make sure this device is connected to the computer. 0.003813 gphoto2-port(0): Could not find USB device (vendor 0x4a9, product 0x3075). Make sure this device is connected to the computer. 0.003832 gphoto2-port(0): Could not find USB device (vendor 0x4a9, product 0x30ba). Make sure this device is connected to the computer. 0.003850 gphoto2-port(0): Could not find USB device (vendor 0x4a9, product 0x30ba). Make sure this device is connected to the computer. 0.003868 gphoto2-port(0): Could not find USB device (vendor 0x4a9, product 0x30b4). Make sure this device is connected to the computer. 0.003886 gphoto2-port(0): Could not find USB device (vendor 0x4a9, product 0x30b4). Make sure this device is connected to the computer. 0.003905 gphoto2-port(0): Could not find USB device (vendor 0x4a9, product 0x309b). Make sure this device is connected to the computer. 0.003923 gphoto2-port(0): Could not find USB device (vendor 0x4a9, product 0x3072). Make sure this device is connected to the computer. 0.003941 gphoto2-port(0): Could not find USB device (vendor 0x4a9, product 0x30b6). Make sure this device is connected to the computer. 0.003959 gphoto2-port(0): Could not find USB device (vendor 0x4a9, product 0x3052). Make sure this device is connected to the computer. 0.003977 gphoto2-port(0): Could not find USB device (vendor 0x4a9, product 0x3065). Make sure this device is connected to the computer. 0.003995 gphoto2-port(0): Could not find USB device (vendor 0x4a9, product 0x3070). Make sure this device is connected to the computer. 0.004014 gphoto2-port(0): Could not find USB device (vendor 0x4a9, product 0x3071). Make sure this device is connected to the computer. 0.004032 gphoto2-port(0): Could not find USB device (vendor 0x4a9, product 0x306a). Make sure this device is connected to the computer. 0.004050 gphoto2-port(0): Could not find USB device (vendor 0x4a9, product 0x3087). Make sure this device is connected to the computer. 0.004068 gphoto2-port(0): Could not find USB device (vendor 0x4a9, product 0x3083). Make sure this device is connected to the computer. 0.004086 gphoto2-port(0): Could not find USB device (vendor 0x4a9, product 0x30ea). Make sure this device is connected to the computer. 0.004105 gphoto2-port(0): Could not find USB device (vendor 0x4a9, product 0x30eb). Make sure this device is connected to the computer. 0.004123 gphoto2-port(0): Could not find USB device (vendor 0x4a9, product 0x30ec). Make sure this device is connected to the computer. 0.004141 gphoto2-port(0): Could not find USB device (vendor 0x4a9, product 0x3084). Make sure this device is connected to the computer. 0.004159 gphoto2-port(0): Could not find USB device (vendor 0x4a9, product 0x3099). Make sure this device is connected to the computer. 0.004177 gphoto2-port(0): Could not find USB device (vendor 0x4a9, product 0x3044). Make sure this device is connected to the computer. 0.004195 gphoto2-port(0): Could not find USB device (vendor 0x4a9, product 0x3060). Make sure this device is connected to the computer. 0.004214 gphoto2-port(0): Could not find USB device (vendor 0x4a9, product 0x3084). Make sure this device is connected to the computer. 0.004232 gphoto2-port(0): Could not find USB device (vendor 0x4a9, product 0x3099). Make sure this device is connected to the computer. 0.004250 gphoto2-port(0): Could not find USB device (vendor 0x4a9, product 0x3084). Make sure this device is connected to the computer. 0.004268 gphoto2-port(0): Could not find USB device (vendor 0x4a9, product 0x3099). Make sure this device is connected to the computer. 0.004286 gphoto2-port(0): Could not find USB device (vendor 0x4a9, product 0x3046). Make sure this device is connected to the computer. 0.004305 gphoto2-port(0): Could not find USB device (vendor 0x4a9, product 0x304b). Make sure this device is connected to the computer. 0.004341 gphoto2-port(0): Could not find USB device (vendor 0x4a9, product 0x307b). Make sure this device is connected to the computer. 0.004360 gphoto2-port(0): Could not find USB device (vendor 0x4a9, product 0x3079). Make sure this device is connected to the computer. 0.004378 gphoto2-port(0): Could not find USB device (vendor 0x4a9, product 0x306b). Make sure this device is connected to the computer. 0.004396 gphoto2-port(0): Could not find USB device (vendor 0x4a9, product 0x3081). Make sure this device is connected to the computer. 0.004414 gphoto2-port(0): Could not find USB device (vendor 0x4a9, product 0x307f). Make sure this device is connected to the computer. 0.004432 gphoto2-port(0): Could not find USB device (vendor 0x4a9, product 0x306b). Make sure this device is connected to the computer. 0.004450 gphoto2-port(0): Could not find USB device (vendor 0x4a9, product 0x304f). Make sure this device is connected to the computer. 0.004469 gphoto2-port(0): Could not find USB device (vendor 0x4a9, product 0x3061). Make sure this device is connected to the computer. 0.004487 gphoto2-port(0): Could not find USB device (vendor 0x4a9, product 0x304e). Make sure this device is connected to the computer. 0.004505 gphoto2-port(0): Could not find USB device (vendor 0x4a9, product 0x3062). Make sure this device is connected to the computer. 0.004523 gphoto2-port(0): Could not find USB device (vendor 0x4a9, product 0x3059). Make sure this device is connected to the computer. 0.004541 gphoto2-port(0): Could not find USB device (vendor 0x4a9, product 0x3076). Make sure this device is connected to the computer. 0.004559 gphoto2-port(0): Could not find USB device (vendor 0x4a9, product 0x30b8). Make sure this device is connected to the computer. 0.004577 gphoto2-port(0): Could not find USB device (vendor 0x4a9, product 0x30b8). Make sure this device is connected to the computer. 0.004595 gphoto2-port(0): Could not find USB device (vendor 0x4a9, product 0x3058). Make sure this device is connected to the computer. 0.004613 gphoto2-port(0): Could not find USB device (vendor 0x4a9, product 0x30b7). Make sure this device is connected to the computer. 0.004631 gphoto2-port(0): Could not find USB device (vendor 0x4a9, product 0x30b7). Make sure this device is connected to the computer. 0.004650 gphoto2-port(0): Could not find USB device (vendor 0x4a9, product 0x3074). Make sure this device is connected to the computer. 0.004667 gphoto2-port(0): Could not find USB device (vendor 0x4a9, product 0x3074). Make sure this device is connected to the computer. 0.004686 gphoto2-port(0): Could not find USB device (vendor 0x4a9, product 0x3073). Make sure this device is connected to the computer. 0.004704 gphoto2-port(0): Could not find USB device (vendor 0x4a9, product 0x3073). Make sure this device is connected to the computer. 0.004722 gphoto2-port(0): Could not find USB device (vendor 0x4a9, product 0x30b5). Make sure this device is connected to the computer. 0.004740 gphoto2-port(0): Could not find USB device (vendor 0x4a9, product 0x30b5). Make sure this device is connected to the computer. 0.004758 gphoto2-port(0): Could not find USB device (vendor 0x4a9, product 0x309a). Make sure this device is connected to the computer. 0.004776 gphoto2-port(0): Could not find USB device (vendor 0x4a9, product 0x309a). Make sure this device is connected to the computer. 0.004794 gphoto2-port-usb(1): Looking for USB device (vendor 0x4a9, product 0x30b9)... found. 0.004810 gphoto2-port-usb(1): Detected defaults: config 1, interface 0, altsetting 0, inep 81, outep 02, intep 83, class 06, subclass 01 0.004828 gphoto2-abilities-list.c(2): Found 'Canon PowerShot A85 (normal mode)' (0x4a9,0x30b9) 0.004845 gphoto2-port(2): Freeing port... 0.004860 gphoto2-port(2): Closing port... 0.004916 gphoto2-camera(2): Setting abilities ('Canon PowerShot A85 (normal mode)')... 0.004939 setting/gphoto2-setting.c(2): Creating $HOME/.gphoto 0.004997 setting/gphoto2-setting.c(2): Loading settings from file "/home/jskata/.gphoto/settings" 0.005054 gphoto2-setting(2): Setting key 'model' to value 'Canon PowerShot A85 (normal mode)' (gphoto2) 0.005071 gphoto2-setting(2): Saving 2 setting(s) to file "/home/jskata/.gphoto/settings" 0.005193 gp-port-info-list(2): Loading io-drivers from '/usr/lib/gphoto2_port/0.5.1'... 0.005308 gphoto2-port-serial(2): Trying to lock '/dev/tts/0'... 0.005462 gphoto2-port-serial(2): Trying to lock '/dev/tts/1'... 0.005571 gphoto2-port-serial(2): Trying to lock '/dev/tts/2'... 0.005599 gphoto2-port-serial(2): Trying to lock '/dev/tts/3'... 0.005629 gphoto2-port-serial(2): Trying to lock '/dev/tts/4'... 0.005646 gphoto2-port-serial(2): Trying to lock '/dev/tts/5'... 0.005661 gphoto2-port-serial(2): Trying to lock '/dev/tts/6'... 0.005675 gphoto2-port-serial(2): Trying to lock '/dev/tts/7'... 0.005688 gphoto2-port-serial(2): Trying to lock '/dev/tts/8'... 0.005702 gphoto2-port-serial(2): Trying to lock '/dev/tts/9'... 0.005716 gphoto2-port-serial(2): Trying to lock '/dev/tts/10'... 0.005730 gphoto2-port-serial(2): Trying to lock '/dev/tts/11'... 0.005744 gphoto2-port-serial(2): Trying to lock '/dev/tts/12'... 0.005758 gphoto2-port-serial(2): Trying to lock '/dev/tts/13'... 0.005772 gphoto2-port-serial(2): Trying to lock '/dev/tts/14'... 0.005786 gphoto2-port-serial(2): Trying to lock '/dev/tts/15'... 0.005799 gphoto2-port-serial(2): Trying to lock '/dev/tts/16'... 0.005813 gphoto2-port-serial(2): Trying to lock '/dev/tts/17'... 0.005827 gphoto2-port-serial(2): Trying to lock '/dev/tts/18'... 0.005841 gphoto2-port-serial(2): Trying to lock '/dev/tts/19'... 0.005854 gphoto2-port-serial(2): Trying to lock '/dev/tts/20'... 0.005868 gphoto2-port-serial(2): Trying to lock '/dev/tts/21'... 0.005882 gphoto2-port-serial(2): Trying to lock '/dev/tts/22'... 0.005896 gphoto2-port-serial(2): Trying to lock '/dev/tts/23'... 0.005910 gphoto2-port-serial(2): Trying to lock '/dev/tts/24'... 0.005924 gphoto2-port-serial(2): Trying to lock '/dev/tts/25'... 0.005938 gphoto2-port-serial(2): Trying to lock '/dev/tts/26'... 0.005952 gphoto2-port-serial(2): Trying to lock '/dev/tts/27'... 0.005966 gphoto2-port-serial(2): Trying to lock '/dev/tts/28'... 0.005979 gphoto2-port-serial(2): Trying to lock '/dev/tts/29'... 0.005993 gphoto2-port-serial(2): Trying to lock '/dev/tts/30'... 0.006007 gphoto2-port-serial(2): Trying to lock '/dev/tts/31'... 0.006021 gphoto2-port-serial(2): Trying to lock '/dev/tts/32'... 0.006036 gphoto2-port-core(2): Loaded 'Serial Port 0' (serial:/dev/tts/0) from 'libgphoto2_port_serial.so' 0.006049 gphoto2-port-core(2): Loaded 'Serial Port 1' (serial:/dev/tts/1) from 'libgphoto2_port_serial.so' 0.006060 gphoto2-port-core(2): Loaded 'Serial Port 2' (serial:/dev/tts/2) from 'libgphoto2_port_serial.so' 0.006071 gphoto2-port-core(2): Loaded 'Serial Port 3' (serial:/dev/tts/3) from 'libgphoto2_port_serial.so' 0.006083 gphoto2-port-core(2): Loaded '' (^serial) from 'libgphoto2_port_serial.so' 0.006373 gphoto2-port-core(2): Loaded 'Universal Serial Bus' (usb:) from 'libgphoto2_port_usb.so' 0.006421 gphoto2-port-info-list(2): Looking for path 'usb:' (6 entries available)... 0.006437 gphoto2-port-info-list(2): Getting info of entry 4 (6 available)... 0.006451 gphoto2-camera(2): Setting port info for port 'Universal Serial Bus' at 'usb:'... 0.006765 gphoto2-port(2): Setting timeout to 5000 millisecond(s)... 0.006782 gphoto2-port(2): Setting settings... 0.006794 gphoto2-setting(2): Setting key 'port' to value 'usb:' (gphoto2) 0.006808 gphoto2-setting(2): Saving 2 setting(s) to file "/home/jskata/.gphoto/settings" 0.007299 gphoto2-camera(2): Listing files in '/'... 0.007318 gphoto2-camera(2): Initializing camera... 0.007342 gphoto2-port-usb(1): Looking for USB device (vendor 0x4a9, product 0x30b9)... found. 0.007356 gphoto2-port-usb(1): Detected defaults: config 1, interface 0, altsetting 0, inep 81, outep 02, intep 83, class 06, subclass 01 0.007369 gphoto2-camera(2): Loading '/usr/lib/gphoto2/2.1.5/libgphoto2_canon.so'... 0.007487 gphoto2-port(2): Opening USB port... 0.007553 gphoto2-port(0): Could not query kernel driver of device. 0.007607 canon/library.c(2): canon camera_init() 0.007638 canon/library.c(2): GPhoto tells us that we should use a USB link. 0.007654 canon/usb.c(2): Initializing the (USB) camera. 0.007673 gphoto2-port(2): Setting settings... 0.007775 gphoto2-port(0): Could not set config 0/1 (Device or resource busy) 0.007798 context(0): Could not apply USB settings *** Error *** Could not apply USB settings 0.007824 gphoto2-port(2): Closing port... 0.009273 context(0): An error occurred in the io-library ('Error updating the port settings'): Could not set config 0/1 (Device or resource busy) *** Error *** An error occurred in the io-library ('Error updating the port settings'): Could not set config 0/1 (Device or resource busy) *** Error (-37: 'Error updating the port settings') *** 0.009923 gp-camera(2): Freeing camera... 0.009939 gphoto2-port(2): Freeing port... 0.009950 gphoto2-port(2): Closing port... 0.009986 libgphoto2/gphoto2-filesys.c(2): Clearing fscache LRU list... 0.010000 libgphoto2/gphoto2-filesys.c(2): fscache LRU list already empty 0.010012 gphoto2-filesystem(2): Internally deleting all folders from '/'... And dmesg gives this: ohci_hcd 0000:00:02.1: wakeup hub 3-0:1.0: state 5 ports 3 chg 0000 evt 0002 ohci_hcd 0000:00:02.1: GetStatus roothub.portstatus [0] = 0x00010101 CSC PPS CCS hub 3-0:1.0: port 1, status 0101, change 0001, 12 Mb/s hub 3-0:1.0: debounce: port 1: total 100ms stable 100ms status 0x101 ohci_hcd 0000:00:02.1: GetStatus roothub.portstatus [0] = 0x00100103 PRSC PPS PES CCS usb 3-1: new full speed USB device using ohci_hcd and address 4 ohci_hcd 0000:00:02.1: GetStatus roothub.portstatus [0] = 0x00100103 PRSC PPS PES CCS usb 3-1: ep0 maxpacket = 32 usb 3-1: default language 0x0409 usb 3-1: new device strings: Mfr=1, Product=2, SerialNumber=0 usb 3-1: Product: Canon Digital Camera usb 3-1: Manufacturer: Canon Inc. usb 3-1: hotplug usb 3-1: adding 3-1:1.0 (config #1, interface 0) usb 3-1:1.0: hotplug hub 3-0:1.0: state 5 ports 3 chg 0000 evt 0002 usb 3-1: usbfs: interface 0 claimed by usbfs while 'gphoto2' sets config #1 hub 3-0:1.0: state 5 ports 3 chg 0000 evt 0002 ohci_hcd 0000:00:02.1: GetStatus roothub.portstatus [0] = 0x00030100 PESC CSC PPS hub 3-0:1.0: port 1, status 0100, change 0003, 12 Mb/s usb 3-1: USB disconnect, address 4 usb 3-1: usb_disable_device nuking all URBs usb 3-1: unregistering interface 3-1:1.0 usb 3-1:1.0: hotplug usb 3-1: unregistering device usb 3-1: hotplug hub 3-0:1.0: debounce: port 1: total 100ms stable 100ms status 0x100 ohci_hcd 0000:00:02.1: suspend root hub