I have gphoto2 that I use to read my digital camera photos. To use this I run it with sudo as I do not otherwise have permissions on the device. I recently followed the migration to 2.6 guide (http://www.gentoo.org/doc/en/migration-to-2.6.xml) so upgrade from 2.4 to 2.6 kernel and encountered no errors. Now, however, I am having trouble with this application since the migration. I suspect it has something to do with udev. Reproducible: Always Steps to Reproduce: 1. sudo gphoto2 -L 2. sudo gphoto2 -L Actual Results: The first time I run this command it produces a listing of the files on the camera. The second time I get an I/O error as follows: edavison@ebdhome 20050731 $ sudo gphoto2 -p 1-62 gp_port_read: Connection timed out *** Error *** PTP I/O error *** Error *** An error occurred in the io-library ('Unspecified error'): No error description available *** 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 -p "1-62" Please make sure there is sufficient quoting around the arguments. Expected Results: This should consistently read the device every consecutive time it is run. In order to work around this I have to unplug the device from the USB port and plug it back in. Then I can issue one command again until I get the same I/O error.
I had this same problem recently, upgrade the unstable version of gphoto2 and libgphoto2 ( 2.1.6 ). I suspect that something recently broke this, and now we have to stabilize 2.1.6. ( This is what worked for me ) Please report back. I'll look into marking this stable if this also works for you. Thanks!
Seems I might have been a bit premature to log this bug. Turns out that I had version 2.12 on my system. I am going to try 2.15 tonight and see if that works. If not, I will definitely try the 2.16 build. Either way, I will report back the results of the attempt.
I tried this with 2.1.5 (both gphoto2 and libgphoto2 now matching versions) and it works consistently from time to time without the I/O errors.