From owner-freebsd-ports@FreeBSD.ORG Wed Aug 25 02:46:10 2004 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 08B4116A4CE for ; Wed, 25 Aug 2004 02:46:10 +0000 (GMT) Received: from smtp02.mrf.mail.rcn.net (smtp02.mrf.mail.rcn.net [207.172.4.61]) by mx1.FreeBSD.org (Postfix) with ESMTP id A127343D45 for ; Wed, 25 Aug 2004 02:46:09 +0000 (GMT) (envelope-from ports@mgle.com) Received: from 207-172-134-70.c3-0.wth-ubr2.sbo-wth.ma.cable.rcn.com ([207.172.134.70] helo=[127.0.0.1]) by smtp02.mrf.mail.rcn.net with esmtp (Exim 3.35 #7) id 1Bznnc-00017C-00 for ports@freebsd.org; Tue, 24 Aug 2004 22:46:08 -0400 Message-ID: <412BFC86.3030907@mgle.com> Date: Tue, 24 Aug 2004 22:42:14 -0400 From: Jon Busby User-Agent: Mozilla Thunderbird 0.7.1 (Windows/20040626) X-Accept-Language: en-us, en MIME-Version: 1.0 To: ports@freebsd.org Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Subject: Problem with gphoto 2.1.4 port on 4.10-RELEASE X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 25 Aug 2004 02:46:10 -0000 Hi everybody, I've been having trouble getting gphoto 2.1.4, built from ports, to work with a Canon PowerShot S300 on FreeBSD 4.10-RELEASE. ports@ is listed as the maintainer, so I assume this is the right place to ask... gphoto won't detect the camera at all when running as a normal user, even with permissions set to 777 on the device (ugen0). Running as root, gphoto will detect it, but will not capture images from it. When attempting to capture, the camera will wake up and extend the lens, but gphoto will freeze indefinitely before the shutter is released. After about five minutes, I give gphoto a Control-C. The debug output and dmesg are below. I also have this problem on a different board with the same VIA USB chipset, and also with a Canon PowerShot S230 (the only other camera I have available to test with). Does anyone have any idea what's going on? By the way, this Just Works on gphoto 2.1.4 on Knoppix 3.4 on the same hardware :). # Debug output: # env LANG=C gphoto2 --debug --camera "Canon PowerShot S300" --port "usb:" --capture-image 0.000081 main(2): ALWAYS INCLUDE THE FOLLOWING LINES WHEN SENDING DEBUG MESSAGES TO THE MAILING LIST: 0.001057 main(2): gphoto2 2.1.4 0.001573 main(2): gphoto2 has been compiled with the following options: 0.002097 main(2): + cc (C compiler used) 0.002575 main(2): + popt (for handling command-line parameters) 0.003085 main(2): + exif (for displaying EXIF information) 0.003573 main(2): + no cdk (for accessing configuration options) 0.004098 main(2): + aa (for displaying live previews) 0.004585 main(2): + jpeg (for displaying live previews in JPEG format) 0.005103 main(2): + no readline (for easy navigation in the shell) 0.005616 main(2): libgphoto2 2.1.4 0.006141 main(2): libgphoto2 has been compiled with the following options: 0.006632 main(2): + cc (C compiler used) 0.007134 main(2): + EXIF (for special handling of EXIF files) 0.007615 main(2): + no ltdl (working around buggy libltdl, eh? :-) 0.008160 main(2): + no /proc/meminfo (adapts cache size to memory available) 0.008678 main(2): libgphoto2_port 0.5.1 0.009193 main(2): libgphoto2_port has been compiled with the following options: 0.009707 main(2): + cc (C compiler used) 0.010219 main(2): + USB (for USB cameras) 0.010704 main(2): + serial (for serial cameras) 0.011210 main(2): + no resmgr (serial port access and locking) 0.011696 main(2): + no baudboy (serial port locking) 0.012208 main(2): + no ttylock (serial port locking) 0.012690 main(2): + no lockdev (serial port locking) 0.013199 main(2): + no ltdl (working around buggy libltdl, eh? :-) 0.013806 main(2): Processing 'model' option ('Canon PowerShot S300')... 0.014608 gphoto2-camera(2): Setting abilities ('Canon PowerShot S300')... 0.015206 setting/gphoto2-setting.c(2): Creating $HOME/.gphoto 0.016137 setting/gphoto2-setting.c(2): Loading settings from file "/root/.gphoto/settings" 0.016889 gphoto2-setting(2): Setting key 'model' to value 'Canon PowerShot S300' (gphoto2) 0.017469 gphoto2-setting(2): Saving 2 setting(s) to file "/root/.gphoto/settings" 0.020630 main(2): Processing 'port' option ('usb:')... 0.021423 gp-port-info-list(2): Loading io-drivers from '/usr/local/lib/gphoto2_port/0.5.1'... 0.022819 gphoto2-port-serial(2): Trying to lock '/dev/cuaa0'... 0.024040 gphoto2-port-serial(2): Trying to lock '/dev/cuaa1'... 0.024713 gphoto2-port-serial(2): Trying to lock '/dev/cuaa2'... 0.025274 gphoto2-port-serial(2): Trying to lock '/dev/cuaa3'... 0.025800 gphoto2-port-serial(2): Trying to lock '/dev/cuaa4'... 0.026347 gphoto2-port-serial(2): Trying to lock '/dev/cuaa5'... 0.026860 gphoto2-port-serial(2): Trying to lock '/dev/cuaa6'... 0.027403 gphoto2-port-serial(2): Trying to lock '/dev/cuaa7'... 0.027959 gphoto2-port-serial(2): Trying to lock '/dev/cuaa8'... 0.028483 gphoto2-port-serial(2): Trying to lock '/dev/cuaa9'... 0.028998 gphoto2-port-serial(2): Trying to lock '/dev/cuaaa'... 0.029541 gphoto2-port-serial(2): Trying to lock '/dev/cuaab'... 0.030055 gphoto2-port-serial(2): Trying to lock '/dev/cuaac'... 0.030598 gphoto2-port-serial(2): Trying to lock '/dev/cuaad'... 0.031117 gphoto2-port-serial(2): Trying to lock '/dev/cuaae'... 0.031660 gphoto2-port-serial(2): Trying to lock '/dev/cuaaf'... 0.032274 gphoto2-port-core(2): Loaded 'Serial Port 0' (serial:/dev/cuaa0) from 'libgphoto2_port_serial.so' 0.032869 gphoto2-port-core(2): Loaded '' (^serial) from 'libgphoto2_port_serial.so' 0.034731 gphoto2-port-core(2): Loaded 'Universal Serial Bus' (usb:) from 'libgphoto2_port_usb.so' 0.035581 gphoto2-port-info-list(2): Looking for path 'usb:' (3 entries available)... 0.036217 gphoto2-port-info-list(2): Getting info of entry 1 (3 available)... 0.036797 gphoto2-camera(2): Setting port info for port 'Universal Serial Bus' at 'usb:'... 0.057391 gphoto2-port(2): Setting timeout to 5000 millisecond(s)... 0.058347 gphoto2-port(2): Setting settings... 0.058855 gphoto2-setting(2): Setting key 'port' to value 'usb:' (gphoto2) 0.059401 gphoto2-setting(2): Saving 2 setting(s) to file "/root/.gphoto/settings" 0.062477 gphoto2-camera(2): Initializing camera... 0.063255 gphoto2-port-usb(1): Looking for USB device (vendor 0x4a9, product 0x304c)... found. 0.063815 gphoto2-port-usb(1): Detected defaults: config 1, interface 0, altsetting 0, inep 81, outep 02, intep 83, class ff, subclass ff 0.064383 gphoto2-camera(2): Loading '/usr/local/lib/gphoto2/2.1.4/libgphoto2_canon.so'... 0.065802 gphoto2-port(2): Opening USB port... 0.066682 canon/library.c(2): canon camera_init() 0.067319 canon/library.c(2): GPhoto tells us that we should use a USB link. 0.067862 canon/usb.c(2): Initializing the (USB) camera. 0.068440 gphoto2-port(2): Setting settings... 0.069082 gphoto2-port-usb(2): Changed usb.config from -1 to 1 0.072232 gphoto2-port-usb(2): Changed usb.altsetting from -1 to 0 0.072989 canon/usb.c(2): canon_usb_camera_init() 0.073582 canon/usb.c(2): canon_usb_identify: USB ID match 0x04a9:0x304c (Canon:PowerShot S300) 0.074168 context(2): Detected a 'Canon:PowerShot S300'. Detected a 'Canon:PowerShot S300'. 0.075016 gphoto2-port(2): Reading message (request=0xc value=0x55 index=0x0 size=1=0x1)... 0.078210 gphoto2-port(3): Hexdump of 1 = 0x1 bytes follows: 0000 43 - C 0.078906 canon/usb.c(2): canon_usb_camera_init() initial camera response: C/'Camera was woken up' 0.079441 gphoto2-port(2): Reading message (request=0x4 value=0x1 index=0x0 size=88=0x58)... 0.085226 gphoto2-port(3): Hexdump of 88 = 0x58 bytes follows: 0000 18 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................ 0010 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................ 0020 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................ 0030 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................ 0040 01 00 05 03 4c 30 a9 04-00 08 00 00 ff ff ff ff ....L0.......... 0050 00 fd 00 00 00 fd 00 00- ........ 0.086149 gphoto2-port(2): Writing message (request=0x4 value=0x11 index=0x0 size=80=0x50)... 0.086689 gphoto2-port(3): Hexdump of 80 = 0x50 bytes follows: 0000 10 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................ 0010 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................ 0020 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................ 0030 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................ 0040 00 08 00 00 ff ff ff ff-00 fd 00 00 00 fd 00 00 ................ 0.092196 canon/usb.c(2): canon_usb_camera_init() PC sign on LCD should be lit now (if your camera has a PC sign) 0.092889 gphoto2-port(2): Reading 64=0x40 bytes from port... 0.098189 gphoto2-port(3): Hexdump of 64 = 0x40 bytes follows: 0000 04 00 00 00 02 03 00 00-00 00 00 00 00 00 00 00 ................ 0010 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................ 0020 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................ 0030 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................ 0.099110 gphoto2-port(2): Reading 4=0x4 bytes from port... 0.101215 gphoto2-port(3): Hexdump of 4 = 0x4 bytes follows: 0000 00 00 00 00 - .... 0.125205 gphoto2-port(2): Reading 16=0x10 bytes from interrupt ep (fast)... 0.126069 gphoto2-port(3): Hexdump of 16 = 0x10 bytes follows: 0000 02 00 00 00 20 00 00 00-10 00 00 00 00 00 00 00 .... ........... 0.126687 canon/usb.c(2): canon_usb_lock_keys() 0.127182 canon/usb.c(2): Locking camera keys and turning off LCD using 'normal' locking code... 0.127787 canon/usb.c(2): canon_usb_dialogue() cmd 0x1f 0x12 0x201 (Get picture abilities) 0.128373 gphoto2-port(2): Writing message (request=0x4 value=0x10 index=0x0 size=80=0x50)... 0.128897 gphoto2-port(3): Hexdump of 80 = 0x50 bytes follows: 0000 10 00 00 00 01 02 00 00-00 00 00 00 00 00 00 00 ................ 0010 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................ 0020 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................ 0030 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................ 0040 02 00 00 00 1f 00 00 12-10 00 00 00 00 00 00 00 ................ 0.134181 gphoto2-port(2): Reading 896=0x380 bytes from port... 0.138318 gphoto2-port(3): Hexdump of 896 = 0x380 bytes follows: 0000 44 03 00 00 01 03 00 00-00 00 00 00 00 00 00 00 D............... 0010 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................ 0020 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................ 0030 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................ 0040 02 00 00 00 1f 00 00 22-44 03 00 00 00 00 00 00 ......."D....... 0050 00 00 00 00 30 03 00 00-04 01 50 6f 77 65 72 53 ....0.....PowerS 0060 68 6f 74 20 53 33 30 30-00 54 50 82 22 01 00 00 hot S300.TP."... 0070 aa 10 10 03 02 00 20 08-a2 10 09 00 00 00 4c 61 ...... .......La 0080 72 67 65 3a 53 75 70 65-72 46 69 6e 65 00 45 8a rge:SuperFine.E. 0090 a8 00 40 06 00 00 b0 04-00 00 01 00 00 00 4c 61 ..@...........La 00a0 72 67 65 3a 46 69 6e 65-00 40 90 80 02 40 04 a8 rge:Fine.@...@.. 00b0 20 14 40 06 00 00 b0 04-00 00 02 00 00 00 4c 61 .@...........La 00c0 72 67 65 3a 4e 6f 72 6d-61 6c 00 00 00 40 10 20 rge:Normal...@. 00d0 8a 10 40 06 00 00 b0 04-00 00 03 00 00 00 4d 69 ..@...........Mi 00e0 64 64 6c 65 3a 53 75 70-65 72 46 69 6e 65 00 20 ddle:SuperFine. 00f0 00 50 00 04 00 00 00 03-00 00 01 00 00 00 4d 69 .P............Mi 0100 64 64 6c 65 3a 46 69 6e-65 00 01 2a 82 01 00 a0 ddle:Fine..*.... 0110 00 40 00 04 00 00 00 03-00 00 02 00 00 00 4d 69 .@............Mi 0120 64 64 6c 65 3a 4e 6f 72-6d 61 6c 00 00 40 45 20 ddle:Normal..@E 0130 00 00 00 04 00 00 00 03-00 00 03 00 00 00 53 6d ..............Sm 0140 61 6c 6c 3a 53 75 70 65-72 46 69 6e 65 00 15 00 all:SuperFine... 0150 08 09 80 02 00 00 e0 01-00 00 01 00 00 00 53 6d ..............Sm 0160 61 6c 6c 3a 46 69 6e 65-00 00 00 00 32 45 01 20 all:Fine....2E. 0170 08 01 80 02 00 00 e0 01-00 00 02 00 00 00 53 6d ..............Sm 0180 61 6c 6c 3a 4e 6f 72 6d-61 6c 00 0a 00 05 04 88 all:Normal...... 0190 a0 00 80 02 00 00 e0 01-00 00 03 00 00 00 14 20 ............... 01a0 88 15 45 08 82 00 5c 80-20 44 11 80 00 00 01 00 ..E...\. D...... 01b0 10 00 05 80 90 01 05 80-02 01 00 02 a0 10 0c 82 ................ 01c0 00 10 41 00 08 05 00 28-22 00 15 40 30 00 05 00 ..A....("..@0... 01d0 82 01 00 a0 02 15 04 20-00 14 40 02 00 04 11 00 ....... ..@..... 01e0 02 46 15 00 10 00 04 00-02 01 00 a8 00 00 00 08 .F.............. 01f0 02 04 00 02 00 11 05 2a-22 05 00 00 00 54 10 02 .......*"....T.. 0200 00 00 00 02 00 04 54 00-80 01 01 00 a2 00 00 a2 ......T......... 0210 20 00 00 0a a2 10 01 00-00 40 11 22 20 01 00 42 ........@." ..B 0220 22 41 14 80 02 14 04 a8-00 04 00 08 08 14 04 08 "A.............. 0230 00 14 00 08 80 85 05 0a-02 04 00 20 00 50 00 80 ........... .P.. 0240 80 00 11 40 80 01 00 2a-00 00 00 2a 0a 10 11 00 ...@...*...*.... 0250 00 04 00 0a 0a 10 10 20-82 40 01 00 0a 01 c0 08 ....... .@...... 0260 88 50 41 0a 00 40 00 0a-02 04 50 a2 00 10 04 8a .PA..@....P..... 0270 00 41 54 00 00 40 10 00-00 40 00 20 00 40 78 00 .AT..@...@. .@x. 0280 00 00 00 00 00 00 a0 00-00 00 00 00 00 00 14 00 ................ 0290 00 00 00 80 00 00 00 80-00 00 00 80 00 00 00 80 ................ 02a0 00 00 00 80 00 00 00 00-00 00 00 00 00 00 00 80 ................ 02b0 00 00 00 80 03 00 00 80-26 00 00 80 00 00 00 00 ........&....... 02c0 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................ 02d0 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................ 02e0 28 00 00 50 00 80 00 14-00 c0 00 00 00 80 00 00 (..P............ 02f0 00 80 00 00 00 80 00 00-00 80 00 00 00 80 00 00 ................ 0300 00 80 00 00 00 80 00 00-00 80 00 00 00 80 00 00 ................ 0310 00 c0 00 00 00 80 00 00-00 80 00 00 00 80 00 00 ................ 0320 00 00 00 00 00 00 00 00-00 80 00 00 00 80 00 00 ................ 0330 00 80 00 00 00 80 00 00-00 00 00 00 00 00 00 00 ................ 0340 00 00 00 00 00 00 00 00-00 00 00 00 00 e0 00 00 ................ 0350 00 80 00 00 00 80 00 00-00 00 00 00 00 00 00 00 ................ 0360 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................ 0370 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................ 0.142071 gphoto2-port(2): Reading 4=0x4 bytes from port... 0.144211 gphoto2-port(3): Hexdump of 4 = 0x4 bytes follows: 0000 00 00 00 28 - ...( 0.144888 canon/usb.c(2): canon_usb_lock_keys: Got the expected number of bytes back from "get picture abilities." 0.145413 canon/usb.c(2): canon_usb_dialogue() cmd 0x20 0x12 0x201 (Lock keys and turn off LCD) 0.145959 gphoto2-port(2): Writing message (request=0x4 value=0x10 index=0x0 size=80=0x50)... 0.146477 gphoto2-port(3): Hexdump of 80 = 0x50 bytes follows: 0000 10 00 00 00 01 02 00 00-00 00 00 00 00 00 00 00 ................ 0010 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................ 0020 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................ 0030 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................ 0040 02 00 00 00 20 00 00 12-10 00 00 00 01 00 00 00 .... ........... 0.152192 gphoto2-port(2): Reading 64=0x40 bytes from port... 0.154182 gphoto2-port(3): Hexdump of 64 = 0x40 bytes follows: 0000 14 00 00 00 01 03 00 00-00 00 00 00 00 00 00 00 ................ 0010 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................ 0020 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................ 0030 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................ 0.154951 gphoto2-port(2): Reading 20=0x14 bytes from port... 0.157201 gphoto2-port(3): Hexdump of 20 = 0x14 bytes follows: 0000 02 00 00 00 1f 00 00 22-14 00 00 00 01 00 00 00 ......."........ 0010 00 00 00 00 - .... 0.157960 canon/usb.c(2): canon_usb_lock_keys: Got the expected number of bytes back. 0.158531 canon/canon.c(2): canon_int_identify_camera() called 0.159039 canon/usb.c(2): canon_usb_dialogue() cmd 0x1 0x12 0x201 (Identify camera) 0.159564 gphoto2-port(2): Writing message (request=0x4 value=0x10 index=0x0 size=80=0x50)... 0.160076 gphoto2-port(3): Hexdump of 80 = 0x50 bytes follows: 0000 10 00 00 00 01 02 00 00-00 00 00 00 00 00 00 00 ................ 0010 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................ 0020 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................ 0030 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................ 0040 02 00 00 00 01 00 00 12-10 00 00 00 02 00 00 00 ................ 0.165173 gphoto2-port(2): Reading 128=0x80 bytes from port... 0.167199 gphoto2-port(3): Hexdump of 128 = 0x80 bytes follows: 0000 5c 00 00 00 01 03 00 00-00 00 00 00 00 00 00 00 \............... 0010 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................ 0020 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................ 0030 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................ 0040 02 00 00 00 01 00 00 22-5c 00 00 00 02 00 00 00 ......."\....... 0050 00 00 00 00 00 05 15 81-00 00 00 01 43 61 6e 6f ............Cano 0060 6e 20 50 6f 77 65 72 53-68 6f 74 20 53 33 30 30 n PowerShot S300 0070 00 00 00 00 00 00 00 00-00 00 00 00 52 6f 73 73 ............Ross 0.168486 gphoto2-port(2): Reading 28=0x1c bytes from port... 0.170183 gphoto2-port(3): Hexdump of 28 = 0x1c bytes follows: 0000 20 41 6e 64 65 72 73 6f-6e 00 00 00 00 00 00 00 Anderson....... 0010 00 00 00 00 00 00 00 00-00 00 00 00 ............ 0.170989 canon/canon.c(2): canon_int_identify_camera: ident 'Canon PowerShot S300' owner 'Ross Anderson' 0.171547 canon/canon.c(2): canon_int_get_battery() 0.172050 canon/usb.c(2): canon_usb_dialogue() cmd 0xa 0x12 0x201 (Power supply status) 0.172584 gphoto2-port(2): Writing message (request=0x4 value=0x10 index=0x0 size=80=0x50)... 0.173101 gphoto2-port(3): Hexdump of 80 = 0x50 bytes follows: 0000 10 00 00 00 01 02 00 00-00 00 00 00 00 00 00 00 ................ 0010 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................ 0020 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................ 0030 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................ 0040 02 00 00 00 0a 00 00 12-10 00 00 00 03 00 00 00 ................ 0.178176 gphoto2-port(2): Reading 64=0x40 bytes from port... 0.180180 gphoto2-port(3): Hexdump of 64 = 0x40 bytes follows: 0000 18 00 00 00 01 03 00 00-00 00 00 00 00 00 00 00 ................ 0010 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................ 0020 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................ 0030 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................ 0.180953 gphoto2-port(2): Reading 24=0x18 bytes from port... 0.183184 gphoto2-port(3): Hexdump of 24 = 0x18 bytes follows: 0000 02 00 00 00 0a 00 00 22-18 00 00 00 03 00 00 00 ......."........ 0010 00 00 00 00 06 00 00 10- ........ 0.183886 canon/canon.c(2): canon_int_get_battery: Status: 06 (OK) / Source: 10 (AC) 0.184408 canon/library.c(2): canon_capture() called 0.185013 canon/canon.c(2): canon_int_get_disk_name() 0.185541 canon/usb.c(2): canon_usb_long_dialogue() function 9, payload = 0 bytes 0.186080 canon/usb.c(2): canon_usb_dialogue() cmd 0xa 0x11 0x202 (Flash device ident) 0.186587 gphoto2-port(2): Writing message (request=0x4 value=0x10 index=0x0 size=80=0x50)... 0.187120 gphoto2-port(3): Hexdump of 80 = 0x50 bytes follows: 0000 10 00 00 00 02 02 00 00-00 00 00 00 00 00 00 00 ................ 0010 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................ 0020 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................ 0030 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................ 0040 02 00 00 00 0a 00 00 11-10 00 00 00 04 00 00 00 ................ 0.192176 gphoto2-port(2): Reading 64=0x40 bytes from port... 0.240207 gphoto2-port(3): Hexdump of 64 = 0x40 bytes follows: 0000 00 00 00 00 02 03 04 00-00 00 00 00 00 00 00 00 ................ 0010 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................ 0020 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................ 0030 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................ 0.241155 canon/usb.c(2): canon_usb_long_dialogue: calling gp_port_read(), total_data_size = 4, bytes_received = 0, read_bytes = 4 (0x4) 0.241716 gphoto2-port(2): Reading 4=0x4 bytes from port... 0.244174 gphoto2-port(3): Hexdump of 4 = 0x4 bytes follows: 0000 44 3a 00 00 - D:.. 0.244855 canon/canon.c(2): canon_int_get_disk_name: disk 'D:' 0.245408 canon/usb.c(2): canon_usb_long_dialogue() function 11, payload = 6 bytes 0.245937 canon/usb.c(2): canon_usb_dialogue() cmd 0xb 0x11 0x202 (Get directory entries) 0.246458 canon/usb.c(2): Payload : 0.247104 canon(3): Hexdump of 6 = 0x6 bytes follows: 0000 0f 44 3a 00 00 00 - .D:... 0.247656 gphoto2-port(2): Writing message (request=0x4 value=0x10 index=0x0 size=86=0x56)... 0.248198 gphoto2-port(3): Hexdump of 86 = 0x56 bytes follows: 0000 16 00 00 00 02 02 00 00-00 00 00 00 00 00 00 00 ................ 0010 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................ 0020 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................ 0030 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................ 0040 02 00 00 00 0b 00 00 11-16 00 00 00 05 00 00 00 ................ 0050 0f 44 3a 00 00 00 - .D:... 0.253184 gphoto2-port(2): Reading 64=0x40 bytes from port... 0.344207 gphoto2-port(3): Hexdump of 64 = 0x40 bytes follows: 0000 00 00 00 00 02 03 9d 00-00 00 00 00 00 00 00 00 ................ 0010 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................ 0020 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................ 0030 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................ 0.345170 canon/usb.c(2): canon_usb_long_dialogue: calling gp_port_read(), total_data_size = 157, bytes_received = 0, read_bytes = 128 (0x80) 0.345723 gphoto2-port(2): Reading 128=0x80 bytes from port... 0.597183 gphoto2-port(3): Hexdump of 128 = 0x80 bytes follows: 0000 80 00 00 00 00 00 00 00-00 00 44 3a 00 80 00 00 ..........D:.... 0010 00 00 00 cc 1c 52 3f 2e-5c 54 52 41 53 48 45 7e .....R?.\TRASHE~ 0020 31 00 20 00 52 00 00 00-e6 1c 52 3f 5f 35 30 31 1. .R.....R?_501 0030 7e 31 00 10 00 00 00 00-00 00 00 00 00 35 30 31 ~1...........501 0040 00 80 00 00 00 00 00 00-00 00 00 2e 2e 00 80 00 ................ 0050 00 00 00 00 8c 80 20 41-2e 5c 44 43 49 4d 00 10 ...... A.\DCIM.. 0060 00 00 00 00 00 00 00 00-00 43 41 4e 4f 4e 4d 53 .........CANONMS 0070 43 00 10 00 00 00 00 00-00 00 00 00 31 32 37 43 C...........127C 0.598260 canon/usb.c(2): canon_usb_long_dialogue: calling gp_port_read(), total_data_size = 157, bytes_received = 128, read_bytes = 29 (0x1d) 0.598830 gphoto2-port(2): Reading 29=0x1d bytes from port... 0.601122 gphoto2-port(3): Hexdump of 29 = 0x1d bytes follows: 0000 41 4e 4f 4e 00 80 00 00-00 00 00 00 00 00 00 2e ANON............ 0010 2e 00 00 00 00 00 00 00-00 00 00 00 00 ............. 0.601849 gphoto2-port(2): Getting timeout... 0.602357 gphoto2-port(2): Current timeout: 5000 milliseconds 0.602874 canon/canon.c(2): canon_int_capture_image: usb port timeout starts at 5000ms 0.603413 gphoto2-port(2): Setting timeout to 15000 millisecond(s)... 0.604035 canon/canon.c(2): Camera control init++ with 0, 0 0.604557 canon/usb.c(2): canon_usb_dialogue() cmd 0x13 0x12 0x201 (Remote camera control) 0.605102 canon/usb.c(2): canon_usb_dialogue() called with CONTROL_CAMERA, Camera control init 0.605593 canon/usb.c(2): Payload : 0.606094 canon(3): Hexdump of 8 = 0x8 bytes follows: 0000 00 00 00 00 00 00 00 00- ........ 0.606609 gphoto2-port(2): Writing message (request=0x4 value=0x10 index=0x0 size=88=0x58)... 0.607142 gphoto2-port(3): Hexdump of 88 = 0x58 bytes follows: 0000 18 00 00 00 01 02 00 00-00 00 00 00 00 00 00 00 ................ 0010 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................ 0020 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................ 0030 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................ 0040 02 00 00 00 13 00 00 12-18 00 00 00 06 00 00 00 ................ 0050 00 00 00 00 00 00 00 00- ........ 0.612099 gphoto2-port(2): Reading 64=0x40 bytes from port... 2.013882 gphoto2-port(3): Hexdump of 64 = 0x40 bytes follows: 0000 1c 00 00 00 01 03 00 00-00 00 00 00 00 00 00 00 ................ 0010 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................ 0020 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................ 0030 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................ 2.014377 gphoto2-port(2): Reading 28=0x1c bytes from port... 2.015839 gphoto2-port(3): Hexdump of 28 = 0x1c bytes follows: 0000 02 00 00 00 13 00 00 22-1c 00 00 00 06 00 00 00 ......."........ 0010 00 00 00 00 00 00 00 00-00 00 00 00 ............ 2.016042 canon/canon.c(2): Camera control init-- 2.016081 gphoto2-port(2): Setting timeout to 5000 millisecond(s)... 2.016117 canon/canon.c(2): canon_int_capture_image: set camera port timeout back to 5 seconds... 2.016152 canon/canon.c(2): canon_int_capture_image: transfer mode is 8 2.016191 canon/canon.c(2): Set transfer mode++ with 4, 8 2.016235 canon/usb.c(2): canon_usb_dialogue() cmd 0x13 0x12 0x201 (Remote camera control) 2.016274 canon/usb.c(2): canon_usb_dialogue() called with CONTROL_CAMERA, Set transfer mode 2.016309 canon/usb.c(2): Payload : 2.016343 canon(3): Hexdump of 12 = 0xc bytes follows: 0000 09 00 00 00 04 00 00 00-08 00 00 00 ............ 2.016387 gphoto2-port(2): Writing message (request=0x4 value=0x10 index=0x0 size=92=0x5c)... 2.016435 gphoto2-port(3): Hexdump of 92 = 0x5c bytes follows: 0000 1c 00 00 00 01 02 00 00-00 00 00 00 00 00 00 00 ................ 0010 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................ 0020 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................ 0030 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................ 0040 02 00 00 00 13 00 00 12-1c 00 00 00 07 00 00 00 ................ 0050 09 00 00 00 04 00 00 00-08 00 00 00 ............ 2.021828 gphoto2-port(2): Reading 64=0x40 bytes from port... 2.023835 gphoto2-port(3): Hexdump of 64 = 0x40 bytes follows: 0000 1c 00 00 00 01 03 00 00-00 00 00 00 00 00 00 00 ................ 0010 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................ 0020 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................ 0030 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................ 2.024037 gphoto2-port(2): Reading 28=0x1c bytes from port... 2.025832 gphoto2-port(3): Hexdump of 28 = 0x1c bytes follows: 0000 02 00 00 00 13 00 00 22-1c 00 00 00 07 00 00 00 ......."........ 0010 00 00 00 00 09 00 00 00-00 00 00 00 ............ 2.026025 canon/canon.c(2): Set transfer mode-- 2.026062 canon/canon.c(2): Get release params++ with 4, 8 2.026103 canon/usb.c(2): canon_usb_dialogue() cmd 0x13 0x12 0x201 (Remote camera control) 2.026139 canon/usb.c(2): canon_usb_dialogue() called with CONTROL_CAMERA, Get release params 2.026173 canon/usb.c(2): Payload : 2.026206 canon(3): Hexdump of 8 = 0x8 bytes follows: 0000 0a 00 00 00 04 00 00 00- ........ 2.026247 gphoto2-port(2): Writing message (request=0x4 value=0x10 index=0x0 size=88=0x58)... 2.026293 gphoto2-port(3): Hexdump of 88 = 0x58 bytes follows: 0000 18 00 00 00 01 02 00 00-00 00 00 00 00 00 00 00 ................ 0010 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................ 0020 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................ 0030 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................ 0040 02 00 00 00 13 00 00 12-18 00 00 00 08 00 00 00 ................ 0050 0a 00 00 00 04 00 00 00- ........ 2.030830 gphoto2-port(2): Reading 128=0x80 bytes from port... 2.033842 gphoto2-port(3): Hexdump of 128 = 0x80 bytes follows: 0000 4c 00 00 00 01 03 00 00-00 00 00 00 00 00 00 00 L............... 0010 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................ 0020 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................ 0030 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................ 0040 02 00 00 00 13 00 00 22-4c 00 00 00 08 00 00 00 ......."L....... 0050 00 00 00 00 0a 00 00 00-30 00 00 00 20 03 01 00 ........0... ... 0060 64 00 01 01 00 01 00 00-ff 01 01 30 00 ff 00 ff d..........0.... 0070 7f 7f 7f 7f ff ff ff ff-ff ff ff ff 18 ff ff ff ................ 2.034076 gphoto2-port(2): Reading 12=0xc bytes from port... 2.035830 gphoto2-port(3): Hexdump of 12 = 0xc bytes follows: 0000 20 00 38 00 ad 00 06 02-ad 00 20 00 .8....... . 2.036023 canon/canon.c(2): Get release params-- 2.036060 canon/canon.c(2): Get release params++ with 4, 8 2.036098 canon/usb.c(2): canon_usb_dialogue() cmd 0x13 0x12 0x201 (Remote camera control) 2.036137 canon/usb.c(2): canon_usb_dialogue() called with CONTROL_CAMERA, Get release params 2.036170 canon/usb.c(2): Payload : 2.036205 canon(3): Hexdump of 8 = 0x8 bytes follows: 0000 0a 00 00 00 04 00 00 00- ........ 2.036246 gphoto2-port(2): Writing message (request=0x4 value=0x10 index=0x0 size=88=0x58)... 2.036291 gphoto2-port(3): Hexdump of 88 = 0x58 bytes follows: 0000 18 00 00 00 01 02 00 00-00 00 00 00 00 00 00 00 ................ 0010 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................ 0020 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................ 0030 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................ 0040 02 00 00 00 13 00 00 12-18 00 00 00 09 00 00 00 ................ 0050 0a 00 00 00 04 00 00 00- ........ 2.040827 gphoto2-port(2): Reading 128=0x80 bytes from port... 2.043845 gphoto2-port(3): Hexdump of 128 = 0x80 bytes follows: 0000 4c 00 00 00 01 03 00 00-00 00 00 00 00 00 00 00 L............... 0010 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................ 0020 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................ 0030 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................ 0040 02 00 00 00 13 00 00 22-4c 00 00 00 09 00 00 00 ......."L....... 0050 00 00 00 00 0a 00 00 00-30 00 00 00 20 03 01 00 ........0... ... 0060 64 00 01 01 00 01 00 00-ff 01 01 30 00 ff 00 ff d..........0.... 0070 7f 7f 7f 7f ff ff ff ff-ff ff ff ff 18 ff ff ff ................ 2.044068 gphoto2-port(2): Reading 12=0xc bytes from port... 2.045851 gphoto2-port(3): Hexdump of 12 = 0xc bytes follows: 0000 20 00 38 00 ad 00 06 02-ad 00 20 00 .8....... . 2.046161 canon/canon.c(2): Get release params-- 2.046239 canon/usb.c(2): canon_usb_capture_dialogue() ^C Cancelling... 303.050490 gphoto2-port(2): Could only read 16 out of 64 byte(s) 303.050932 gphoto2-port(2): Reading 64=0x40 bytes from interrupt ep (fast)... 303.050976 gphoto2-port(3): Hexdump of 16 = 0x10 bytes follows: 0000 02 00 00 00 05 00 02 00-10 00 00 00 3c 00 00 00 ............<... 303.051022 canon/usb.c(2): canon_usb_poll_interrupt_pipe: interrupt packet took 1 tries 362.688509 gphoto2-port(2): Could only read 16 out of 64 byte(s) 362.688906 gphoto2-port(2): Reading 64=0x40 bytes from interrupt ep (fast)... 362.688950 gphoto2-port(3): Hexdump of 16 = 0x10 bytes follows: 0000 02 00 00 00 05 00 04 00-10 00 00 00 00 00 00 00 ................ 362.688996 canon/usb.c(2): canon_usb_poll_interrupt_pipe: interrupt packet took 1 tries 362.904532 canon/usb.c(0): canon_usb_poll_interrupt_pipe: interrupt read failed after 0 tries, "Error reading from the port" 362.904936 gphoto2-port(2): Getting timeout... 362.904970 gphoto2-port(2): Current timeout: 5000 milliseconds 362.905005 canon/usb.c(2): canon_usb_capture_dialogue: usb port timeout starts at 5000ms 362.905043 gphoto2-port(2): Setting timeout to 15000 millisecond(s)... 362.905086 canon/usb.c(2): canon_usb_dialogue() cmd 0x13 0x12 0x201 (Remote camera control) 362.905130 canon/usb.c(2): canon_usb_dialogue() called with CONTROL_CAMERA, Release shutter 362.905166 canon/usb.c(2): Payload : 362.905203 canon(3): Hexdump of 8 = 0x8 bytes follows: 0000 04 00 00 00 00 00 00 00- ........ 362.905251 gphoto2-port(2): Writing message (request=0x4 value=0x10 index=0x0 size=88=0x58)... 362.905301 gphoto2-port(3): Hexdump of 88 = 0x58 bytes follows: 0000 18 00 00 00 01 02 00 00-00 00 00 00 00 00 00 00 ................ 0010 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................ 0020 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................ 0030 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................ 0040 02 00 00 00 13 00 00 12-18 00 00 00 0a 00 00 00 ................ 0050 04 00 00 00 00 00 00 00- ........ 362.905379 canon/usb.c(2): canon_usb_dialogue: write failed! (returned -1) 362.905421 canon/canon.c(2): Exit release control++ with 0, 0 362.905458 canon/usb.c(2): canon_usb_dialogue() cmd 0x13 0x12 0x201 (Remote camera control) 362.905496 canon/usb.c(2): canon_usb_dialogue() called with CONTROL_CAMERA, Exit release control 362.905530 canon/usb.c(2): Payload : 362.905562 canon(3): Hexdump of 8 = 0x8 bytes follows: 0000 01 00 00 00 00 00 00 00- ........ 362.905604 gphoto2-port(2): Writing message (request=0x4 value=0x10 index=0x0 size=88=0x58)... 362.905650 gphoto2-port(3): Hexdump of 88 = 0x58 bytes follows: 0000 18 00 00 00 01 02 00 00-00 00 00 00 00 00 00 00 ................ 0010 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................ 0020 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................ 0030 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................ 0040 02 00 00 00 13 00 00 12-18 00 00 00 0b 00 00 00 ................ 0050 01 00 00 00 00 00 00 00- ........ 362.906676 canon/usb.c(2): canon_usb_dialogue: write failed! (returned -1) 362.906713 canon/canon.c(2): Exit release control returned msg=0x0, datalen=0 362.907457 context(0): Error capturing image *** Error *** Error capturing image 362.907547 gphoto2-camera(2): Operation failed! ERROR: Could not capture. *** 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 , please run gphoto2 as follows: env LANG=C gphoto2 --debug --debug --camera "Canon PowerShot S300" --port "usb:" --capture-image Please make sure there is sufficient quoting around the arguments. 362.909086 gp-camera(2): Freeing camera... 362.909148 gphoto2-camera(2): Exiting camera ('Canon PowerShot S300')... 362.909208 canon/usb.c(2): canon_usb_unlock_keys() 362.909241 canon/usb.c(2): canon_usb_unlock_keys: Not unlocking the kind of camera you have. If unlocking works when using the Windows software with your camera, please contact . 362.909285 canon/library.c(2): switch_camera_off() 362.909316 canon/library.c(2): Not trying to shut down USB camera... 362.909370 canon/library.c(2): clear_readiness() 362.909422 gphoto2-port(2): Closing port... 362.910514 libgphoto2/gphoto2-filesys.c(2): Clearing fscache LRU list... 362.910550 libgphoto2/gphoto2-filesys.c(2): fscache LRU list already empty 362.910584 gphoto2-filesystem(2): Internally deleting all folders from '/'... 362.910660 gphoto2-port(2): Freeing port... 362.910703 gphoto2-port(2): Closing port... 362.910829 libgphoto2/gphoto2-filesys.c(2): Clearing fscache LRU list... 362.910862 libgphoto2/gphoto2-filesys.c(2): fscache LRU list already empty 362.910894 gphoto2-filesystem(2): Internally deleting all folders from '/'... # dmesg output: Copyright (c) 1992-2004 The FreeBSD Project. Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994 The Regents of the University of California. All rights reserved. FreeBSD 4.10-RELEASE #0: Tue May 25 22:47:12 GMT 2004 root@perseus.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC Timecounter "i8254" frequency 1193182 Hz CPU: VIA C3 Samuel 2 (800.03-MHz 686-class CPU) Origin = "CentaurHauls" Id = 0x673 Stepping = 3 Features=0x803035 real memory = 259981312 (253888K bytes) avail memory = 247508992 (241708K bytes) Preloaded elf kernel "kernel" at 0xc0551000. md0: Malloc disk Using $PIR table, 5 entries at 0xc00fdf20 npx0: on motherboard npx0: INT 16 interface pcib0: on motherboard pci0: on pcib0 agp0: mem 0xe0000000-0xe7ffffff at device 0.0 on pci0 pcib1: at device 1.0 on pci0 pci1: on pcib1 pci1: at 0.0 irq 11 isab0: at device 17.0 on pci0 isa0: on isab0 atapci0: port 0xd000-0xd00f at device 17.1 on pci0 ata0: at 0x1f0 irq 14 on atapci0 ata1: at 0x170 irq 15 on atapci0 uhci0: port 0xd400-0xd41f irq 5 at device 17.2 on pci0 usb0: on uhci0 usb0: USB revision 1.0 uhub0: VIA UHCI root hub, class 9/0, rev 1.00/1.00, addr 1 uhub0: 2 ports with 2 removable, self powered uhci1: port 0xd800-0xd81f irq 5 at device 17.3 on pci0 usb1: on uhci1 usb1: USB revision 1.0 uhub1: VIA UHCI root hub, class 9/0, rev 1.00/1.00, addr 1 uhub1: 2 ports with 2 removable, self powered chip0: at device 17.4 on pci0 chip1: port 0xe400-0xe403,0xe000-0xe003,0xdc00-0xdcff irq 10 at device 17.5 on pci0 vr0: port 0xe800-0xe8ff mem 0xeb000000-0xeb0000ff irq 11 at device 18.0 on pci0 vr0: Ethernet address: 00:40:63:d5:6a:36 miibus0: on vr0 ukphy0: on miibus0 ukphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto orm0: