This is a discussion on Recognizing a digital camera within the Slackware Linux Support forums, part of the Unix Operating Systems category; --> I posted this to comp.os.linux.misc but the feedback I have got so far is not very useful; maybe Slackware ...
| |||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| ||||
| I posted this to comp.os.linux.misc but the feedback I have got so far is not very useful; maybe Slackware experts can do better. I am running Slackware 10.2 with a 2.6.16.9 kernel. I have connected my Canon Optura 20 to the USB ports on my Linux box, and the camera seems to be recognized all right, as far as the USB interface is concerned. The output from lsusb is Bus 005 Device 002: ID 04a9:307f Canon, Inc. Optura 20 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 03f0:7504 Hewlett-Packard Bus 002 Device 001: ID 0000:0000 Bus 001 Device 001: ID 0000:0000 whereas that from cat /proc/bus/usb/devices is (I am including the relevant portion only): T: Bus=05 Lev=01 Prnt=01 Port=00 Cnt=01 Dev#= 2 Spd=12 MxCh= 0 D: Ver= 1.10 Cls=ff(vend.) Sub=ff Prot=ff MxPS= 8 #Cfgs= 1 P: Vendor=04a9 ProdID=307f Rev= 0.01 S: Manufacturer=CANON Inc. S: Product=Canon DVC C:* #Ifs= 1 Cfg#= 1 Atr=c0 MxPwr=100mA I: If#= 0 Alt= 0 #EPs= 3 Cls=ff(vend.) Sub=ff Prot=ff Driver=(none) E: Ad=82(I) Atr=02(Bulk) MxPS= 64 Ivl=0ms E: Ad=01(O) Atr=02(Bulk) MxPS= 64 Ivl=0ms E: Ad=83(I) Atr=03(Int.) MxPS= 8 Ivl=96ms The output from gphoto2 --list-ports is Devices found: 3 Path Description -------------------------------------------------------------- usb: Universal Serial Bus usb:005,002 Universal Serial Bus usb:002,002 Universal Serial Bus However, gphoto2 --auto-detect fails to detect it. In fact, when invoked with --debug it prints out lots of lines like 1.439791 gphoto2-port(0): Could not find USB device (vendor 0x2770, product 0x9120). Make sure this device is connected to the computer. One if the lines contains the vendor and product numbers for my camera, as reported by lsusb above. From all this I surmise that the kernel has recognized the camera all right, but somehow gphoto2 (and flphoto - I tried with that as well) seem to be unable to access it, be it as root or any other user. What am I missing? |
| |||
| Frank W. Steiner wrote: > From all this I surmise that the kernel has recognized the camera all > right, but somehow gphoto2 (and flphoto - I tried with that as well) seem > to be unable to access it, be it as root or any other user. > > What am I missing? Try using digikam instead. You can either find the latest version, compile and install that or go to http://linuxpackages.net and search for digikam. It may well only recognize your camera as a PTP camera but it will still be of use. |
| |||
| On Mon, 13 Nov 2006 13:08:55 -0500, Art Clemons wrote: > Frank W. Steiner wrote: > >> From all this I surmise that the kernel has recognized the camera all >> right, but somehow gphoto2 (and flphoto - I tried with that as well) >> seem to be unable to access it, be it as root or any other user. >> >> What am I missing? > > Try using digikam instead. You can either find the latest version, > compile and install that or go to http://linuxpackages.net and search for > digikam. It may well only recognize your camera as a PTP camera but it > will still be of use. Thanks for your suggestion. The thing is, under Slackware 10.0 this camera can be used under gphoto2 and flphoto without any problems. I am guessing it must be a matter of configuring things correctly - but I am stymied :-( |
| |||
| Frank W. Steiner wrote: > I posted this to comp.os.linux.misc but the feedback I have got so > far is not very useful; maybe Slackware experts can do better. > > I am running Slackware 10.2 with a 2.6.16.9 kernel. I have connected my > Canon Optura 20 to the USB ports on my Linux box, and the camera seems to > be recognized all right, as far as the USB interface is concerned. The > output from lsusb is > > Bus 005 Device 002: ID 04a9:307f Canon, Inc. Optura 20 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 03f0:7504 Hewlett-Packard Bus 002 Device 001: ID > 0000:0000 > Bus 001 Device 001: ID 0000:0000 > > whereas that from cat /proc/bus/usb/devices is (I am including the > relevant portion only): > > T: Bus=05 Lev=01 Prnt=01 Port=00 Cnt=01 Dev#= 2 Spd=12 MxCh= 0 D: Ver= > 1.10 Cls=ff(vend.) Sub=ff Prot=ff MxPS= 8 #Cfgs= 1 P: Vendor=04a9 > ProdID=307f Rev= 0.01 S: Manufacturer=CANON Inc. > S: Product=Canon DVC > C:* #Ifs= 1 Cfg#= 1 Atr=c0 MxPwr=100mA I: If#= 0 Alt= 0 #EPs= 3 > Cls=ff(vend.) Sub=ff Prot=ff Driver=(none) E: Ad=82(I) Atr=02(Bulk) MxPS= > 64 Ivl=0ms E: Ad=01(O) Atr=02(Bulk) MxPS= 64 Ivl=0ms E: Ad=83(I) > Atr=03(Int.) MxPS= 8 Ivl=96ms > > The output from gphoto2 --list-ports is > > Devices found: 3 > Path Description > -------------------------------------------------------------- > usb: > Universal Serial Bus usb:005,002 > Universal Serial Bus usb:002,002 Universal Serial Bus > > However, gphoto2 --auto-detect fails to detect it. In fact, when invoked > with --debug it prints out lots of lines like > > 1.439791 gphoto2-port(0): Could not find USB device (vendor 0x2770, > product 0x9120). Make sure this device is connected to the computer. > > One if the lines contains the vendor and product numbers for my camera, > as reported by lsusb above. > > From all this I surmise that the kernel has recognized the camera all > right, but somehow gphoto2 (and flphoto - I tried with that as well) seem > to be unable to access it, be it as root or any other user. > > What am I missing? How did you install gphoto? 10.2 did not ship with GNOME so there is no gphoto with the base install. My guess is there is a library missing or it is not properly linked to the library needed for installation? When starting from the command line do you have an error related to a certain missing library? Gecko |
| |||
| On Mon, 13 Nov 2006 13:59:47 -0500, Jason Hoss wrote: > Frank W. Steiner wrote: > >> I posted this to comp.os.linux.misc but the feedback I have got so far >> is not very useful; maybe Slackware experts can do better. >> >> I am running Slackware 10.2 with a 2.6.16.9 kernel. I have connected my >> Canon Optura 20 to the USB ports on my Linux box, and the camera seems >> to be recognized all right, as far as the USB interface is concerned. >> The output from lsusb is >> >> Bus 005 Device 002: ID 04a9:307f Canon, Inc. Optura 20 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 03f0:7504 Hewlett-Packard Bus 002 Device 001: ID >> 0000:0000 >> Bus 001 Device 001: ID 0000:0000 >> >> whereas that from cat /proc/bus/usb/devices is (I am including the >> relevant portion only): >> >> T: Bus=05 Lev=01 Prnt=01 Port=00 Cnt=01 Dev#= 2 Spd=12 MxCh= 0 D: >> Ver= 1.10 Cls=ff(vend.) Sub=ff Prot=ff MxPS= 8 #Cfgs= 1 P: Vendor=04a9 >> ProdID=307f Rev= 0.01 S: Manufacturer=CANON Inc. S: Product=Canon DVC >> C:* #Ifs= 1 Cfg#= 1 Atr=c0 MxPwr=100mA I: If#= 0 Alt= 0 #EPs= 3 >> Cls=ff(vend.) Sub=ff Prot=ff Driver=(none) E: Ad=82(I) Atr=02(Bulk) >> MxPS= >> 64 Ivl=0ms E: Ad=01(O) Atr=02(Bulk) MxPS= 64 Ivl=0ms E: Ad=83(I) >> Atr=03(Int.) MxPS= 8 Ivl=96ms >> >> The output from gphoto2 --list-ports is >> >> Devices found: 3 >> Path Description >> -------------------------------------------------------------- usb: >> Universal Serial Bus usb:005,002 >> Universal Serial Bus usb:002,002 Universal Serial >> Bus >> >> However, gphoto2 --auto-detect fails to detect it. In fact, when invoked >> with --debug it prints out lots of lines like >> >> 1.439791 gphoto2-port(0): Could not find USB device (vendor 0x2770, >> product 0x9120). Make sure this device is connected to the computer. >> >> One if the lines contains the vendor and product numbers for my camera, >> as reported by lsusb above. >> >> From all this I surmise that the kernel has recognized the camera all >> right, but somehow gphoto2 (and flphoto - I tried with that as well) >> seem to be unable to access it, be it as root or any other user. >> >> What am I missing? > > > How did you install gphoto? 10.2 did not ship with GNOME so there is no > gphoto with the base install. It was installed by Freerock Gnome. > My guess is there is a library missing or > it is not properly linked to the library needed for installation? When > starting from the command line do you have an error related to a certain > missing library? No: $ ldd /usr/bin/gphoto2 linux-gate.so.1 => (0xffffe000) libaa.so.1 => /usr/lib/libaa.so.1 (0xb7f94000) libm.so.6 => /lib/tls/libm.so.6 (0xb7f51000) libX11.so.6 => /usr/X11R6/lib/libX11.so.6 (0xb7e87000) libgpm.so.1 => /lib/libgpm.so.1 (0xb7e81000) libslang.so.1 => /usr/lib/libslang.so.1 (0xb7e0f000) libjpeg.so.62 => /usr/lib/libjpeg.so.62 (0xb7df2000) libpthread.so.0 => /lib/tls/libpthread.so.0 (0xb7ddf000) libexif.so.12 => /usr/lib/libexif.so.12 (0xb7dbf000) libreadline.so.4 => /usr/lib/libreadline.so.4 (0xb7d93000) libncurses.so.5 => /usr/lib/libncurses.so.5 (0xb7d54000) libgphoto2.so.2 => /usr/lib/libgphoto2.so.2 (0xb7cd9000) libgphoto2_port.so.0 => /usr/lib/libgphoto2_port.so.0 (0xb7cd2000) libpopt.so.0 => /usr/lib/libpopt.so.0 (0xb7cc9000) libc.so.6 => /lib/tls/libc.so.6 (0xb7bad000) /lib/ld-linux.so.2 (0xb7fae000) libdl.so.2 => /lib/tls/libdl.so.2 (0xb7ba9000) gphoto2 is correctly installed, I believe. Also, remember that I also tried with flphoto, with the same negative results. |
| |||
| On Mon, 13 Nov 2006 18:53:57 +0000, Frank W. Steiner wrote: > On Mon, 13 Nov 2006 13:08:55 -0500, Art Clemons wrote: > >> Frank W. Steiner wrote: >> >>> From all this I surmise that the kernel has recognized the camera all >>> right, but somehow gphoto2 (and flphoto - I tried with that as well) >>> seem to be unable to access it, be it as root or any other user. >>> >>> What am I missing? >> >> Try using digikam instead. You can either find the latest version, >> compile and install that or go to http://linuxpackages.net and search for >> digikam. It may well only recognize your camera as a PTP camera but it >> will still be of use. > > Thanks for your suggestion. The thing is, under Slackware 10.0 this > camera can be used under gphoto2 and flphoto without any problems. I am > guessing it must be a matter of configuring things correctly - but I am > stymied :-( i would guess that you have permissions problem. try using gphoto-set-procperm (it should be included in libgphoto2), or try searching on google for setting permissions for usb PTP cameras. maybe you should first try running as root: # gphoto2 --auto-detect and if it finds camera, then it's definitely problem with permissions. -- i. |
| |||
| On 2006-11-13, Frank W. Steiner <steinfw@hotmail.com> wrote: > Thanks for your suggestion. The thing is, under Slackware 10.0 this > camera can be used under gphoto2 and flphoto without any problems. I am > guessing it must be a matter of configuring things correctly - but I am > stymied :-( YOu're doing better than me. I coulnd't even get Gphoto to compile under slack 10.1. May be mismstched libs. I may wait till I have 11.0 settled in. nb |
| |||
| Frank W. Steiner wrote: > ... gphoto2 --auto-detect fails to detect it. In fact, when invoked > with --debug it prints out lots of lines like > > 1.439791 gphoto2-port(0): Could not find USB device (vendor 0x2770, > product 0x9120). Make sure this device is connected to the computer. I have no experience at all with Gphoto, and have not looked back to the thread on comp.os.linux.misc to see if you've check this already, but in case you haven't, does the following help at all? http://www.gphoto.org/doc/manual/FAQ...d-not-find-usb > From all this I surmise that the kernel has recognized the camera all > right, but somehow gphoto2 (and flphoto - I tried with that as well) > seem to be unable to access it, be it as root or any other user. Hrmmm... if the auto-detect fails as root, the above may not be very helpful. In that case, I would trace Gphoto (using "strace", and saving the output to a file, because it's likely to be more than a little copious ...), and look through that for any clues ... > What am I missing? I'm hoping the above link to the Gphoto FAQ will help fill in whatever it is ... -- ---------------------------------------------------------------------- Sylvain Robitaille syl@alcor.concordia.ca Systems and Network analyst Concordia University Instructional & Information Technology Montreal, Quebec, Canada ---------------------------------------------------------------------- |
| |||
| On Mon, 13 Nov 2006 20:28:54 +0100, Ivan Rajkovic wrote: > On Mon, 13 Nov 2006 18:53:57 +0000, Frank W. Steiner wrote: > >> On Mon, 13 Nov 2006 13:08:55 -0500, Art Clemons wrote: >> >>> Frank W. Steiner wrote: >>> >>>> From all this I surmise that the kernel has recognized the camera all >>>> right, but somehow gphoto2 (and flphoto - I tried with that as well) >>>> seem to be unable to access it, be it as root or any other user. >>>> >>>> What am I missing? >>> >>> Try using digikam instead. You can either find the latest version, >>> compile and install that or go to http://linuxpackages.net and search >>> for digikam. It may well only recognize your camera as a PTP camera but >>> it will still be of use. >> >> Thanks for your suggestion. The thing is, under Slackware 10.0 this >> camera can be used under gphoto2 and flphoto without any problems. I am >> guessing it must be a matter of configuring things correctly - but I am >> stymied :-( > > i would guess that you have permissions problem. try using > gphoto-set-procperm (it should be included in libgphoto2), or try > searching on google for setting permissions for usb PTP cameras. maybe you > should first try running as root: # gphoto2 --auto-detect > and if it finds camera, then it's definitely problem with permissions. Things do not change when running gphoto2 as root, as I mentioned. |
| ||||
| On Mon, 13 Nov 2006 19:55:26 +0000, Sylvain Robitaille wrote: > Frank W. Steiner wrote: > >> ... gphoto2 --auto-detect fails to detect it. In fact, when invoked >> with --debug it prints out lots of lines like >> >> 1.439791 gphoto2-port(0): Could not find USB device (vendor 0x2770, >> product 0x9120). Make sure this device is connected to the computer. > > I have no experience at all with Gphoto, and have not looked back to the > thread on comp.os.linux.misc to see if you've check this already, but in > case you haven't, does the following help at all? > > http://www.gphoto.org/doc/manual/FAQ...d-not-find-usb > >> From all this I surmise that the kernel has recognized the camera all >> right, but somehow gphoto2 (and flphoto - I tried with that as well) >> seem to be unable to access it, be it as root or any other user. > > Hrmmm... if the auto-detect fails as root, the above may not be very > helpful. In that case, I would trace Gphoto (using "strace", and saving > the output to a file, because it's likely to be more than a little copious > ...), and look through that for any clues ... Thanks. I looked into the document above and did as explained. Unfortunately, the suggested remedy (setting USB permissions correctly) is very poorly written, prompting as many questions as it answers. At any rate, I think that my setup is fine, for I can use other USB devices with no problem whatsoever. |