Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
kernel 2.6.0 and digital ixus (=powershot something)
View unanswered posts
View posts from last 24 hours

Goto page Previous  1, 2, 3  Next  
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
jacob
n00b
n00b


Joined: 25 Apr 2002
Posts: 22
Location: Copenhagen, Denmark

PostPosted: Tue Jan 13, 2004 1:14 am    Post subject: Reply with quote

stenny wrote:
The only thing I then changed according to the various posts was recompiling my kernel (2.6.1.-mm-rc1) with hotplugging enabled and configuring the hotplugging system. Now I see exactly the same error messages as most of you.
I'm quite sure, these error messages will disappear and my camera will be usable in normal mode again (only for root ...) if I switch off hotplugging support in my kernel configuration.


Works for me. Disabled hotplugging and generic scsi in my kernel. And now I can use my S45 in normal mode with gphoto2.
Back to top
View user's profile Send private message
stenny
Tux's lil' helper
Tux's lil' helper


Joined: 06 Feb 2003
Posts: 100
Location: Germany

PostPosted: Tue Jan 13, 2004 9:54 am    Post subject: Reply with quote

jsut to agree ...
after disabling hotplugging in my kernel config, tha camera is accessible again in normal mode.
Back to top
View user's profile Send private message
symbiote
Tux's lil' helper
Tux's lil' helper


Joined: 06 Oct 2002
Posts: 87
Location: The 3rd World

PostPosted: Thu Jan 15, 2004 12:56 am    Post subject: Reply with quote

I just recompiled/upgraded the hotplug package and everything is working perfectly.

Hell, even my USB printer is able to print 100 consecutive pages now. It used to ALWAYS abort after 2 - 3. So my print jobs were always disected.
_________________
symbiote: interstellar mohican-general of the stealthdildo buddhist-warrior ninjas
[*] symbiote@stealthdildo.net
[*] gpg: 1024D/3FC84E5B
[*] http://stealthdildo.net/pgp-key
Back to top
View user's profile Send private message
felixz
n00b
n00b


Joined: 30 Nov 2003
Posts: 24

PostPosted: Thu Jan 15, 2004 1:05 am    Post subject: Reply with quote

I just purchased a cannon A70. Too much contradictory information. Can someone summerize exacly what is required for gphoto2 to work. Right now it does not. I have 2.4 kernel but I will upgrade to 2.6 if that is better.

Hotplug do i need it ?
What usb options ?
What is this PTP mode on camera and how do I enable it ?
Back to top
View user's profile Send private message
stenny
Tux's lil' helper
Tux's lil' helper


Joined: 06 Feb 2003
Posts: 100
Location: Germany

PostPosted: Thu Jan 15, 2004 10:08 pm    Post subject: Reply with quote

symbiote wrote:
I just recompiled/upgraded the hotplug package and everything is working perfectly.

Which version of hotplug is installed on your system?
I see:
Code:
(delos) ~$ qpkg -I -v hotplug
sys-apps/hotplug-20040105 *
Back to top
View user's profile Send private message
ozonator
Guru
Guru


Joined: 11 Jun 2003
Posts: 591
Location: Ontario, Canada

PostPosted: Fri Jan 16, 2004 12:05 am    Post subject: Reply with quote

Just tried with a newer hotplug here -- was using hotplug-20030805-r3 (latest unmasked), now using hotplug-20040105. After doing etc-update and ensuring scripts were up to date, I tried again with gphoto, but had the exact same problem as before -- 'corrupted data' error, etc.

On the other hand, I note there are masked versions of gphoto2 newer than the one I'm using. So, another question for symbiote: not only what version of hotplug, but also what version of gphoto2/libgphoto2 are you using?
Back to top
View user's profile Send private message
ozonator
Guru
Guru


Joined: 11 Jun 2003
Posts: 591
Location: Ontario, Canada

PostPosted: Fri Jan 16, 2004 12:44 am    Post subject: Reply with quote

By chance, I just noticed a 'hotplug' script in /etc/init.d. Don't know whether that's always been there, but it's not in my default runlevel, and I don't remember ever running it. In any case, thinking it might help, I ran it (no errors reported), and tried the camera again.

It didn't work, but gphoto took a bit longer than before (after "Detected a 'Canon:PowerShot S200'") to spit out an error ("Could not establish initial contact with camera ... Error (-102: 'Corrupted data')"). Then, with --debug, I tried gphoto again -- and to my surprise, it worked. The good news ends there, unfortunately: I haven't been able to get it to work again.

I tried again, with --debug --debug, and here's the relevant part of the output:

Code:
1.658343 gphoto2-camera(2): Setting port info for port 'Universal Serial Bus' at 'usb:'...
1.659805 gphoto2-port(2): Setting timeout to 5000 millisecond(s)...
1.659970 gphoto2-port(2): Setting settings...
1.660039 gphoto2-setting(2): Setting key 'port' to value 'usb:' (gphoto2)
1.660115 gphoto2-setting(2): Saving 13 setting(s) to file "/home/ozon/.gphoto/settings"
1.660669 foreach(2): Executing action 'List Files' for folder '/'.
1.662094 gphoto2-camera(2): Listing files in '/'...
1.662295 gphoto2-camera(2): Initializing camera...
1.662386 gphoto2-port-usb(1): Looking for USB device (vendor 0x4a9, product 0x3065)... found.
1.662468 gphoto2-port-usb(1): Detected defaults: config 1, interface 0, altsetting 0, inep 81, outep 02, intep 83
1.662549 gphoto2-camera(2): Loading '/usr/lib/gphoto2/2.1.2/libgphoto2_canon.so'...
1.662971 gphoto2-port(2): Opening USB port...
1.663311 canon/library.c(2): canon camera_init()
1.663475 canon/library.c(2): GPhoto tells us that we should use a USB link.
1.663558 canon/usb.c(2): Initializing the (USB) camera.

1.663667 gphoto2-port(2): Setting settings...
1.823567 gphoto2-port-usb(2): Changed usb.config from -1 to 1
1.867391 gphoto2-port-usb(2): Changed usb.altsetting from -1 to 0
1.867587 canon/usb.c(2): canon_usb_camera_init()
1.867696 canon/usb.c(2): canon_usb_identify: model name match 'Canon:PowerShot S200'
1.867793 context(2): Detected a 'Canon:PowerShot S200'.
Detected a 'Canon:PowerShot S200'.
1.867915 gphoto2-port(2): Reading message (request=0xc value=0x55 index=0x0 size=1=0x1)...
1.870562 gphoto2-port(3): Hexdump of 1 = 0x1 bytes follows:
0000  49                     -                         I               

1.870774 context(0): Initial camera response I/'Unknown (some kind of error))' unrecognized)

*** Error ***             
Initial camera response I/'Unknown (some kind of error))' unrecognized)
1.871000 gphoto2-port(2): Closing port...
*** Error (-102: 'Corrupted data') ***       

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 --debug --debug -L

Please make sure there is sufficient quoting around the arguments.

1.056558 gp-camera(2): Freeing camera...
1.056658 gphoto2-port(2): Freeing port...
1.056717 gphoto2-port(2): Closing port...
1.056890 libgphoto2/gphoto2-filesys.c(2): Clearing fscache LRU list...
1.056968 libgphoto2/gphoto2-filesys.c(2): fscache LRU list already empty
1.057027 gphoto2-filesystem(2): Internally deleting all folders from '/'...


Again, in syslog:

Code:
Jan 15 19:38:28 [kernel] usb 1-1: control timeout on ep0in
                - Last output repeated 49 times -


Don't know if there's any useful info there, but the long and short of it: problems persist, whether /etc/init.d/hotplug is run or not.
Back to top
View user's profile Send private message
felixz
n00b
n00b


Joined: 30 Nov 2003
Posts: 24

PostPosted: Fri Jan 16, 2004 2:17 am    Post subject: Reply with quote

ozonaro
I got same error as you.

I upgraded to kernel 2.6.1 and reinstalled hotplug the masked version. I did not try to intstall masked version of gphoto2
Back to top
View user's profile Send private message
ozonator
Guru
Guru


Joined: 11 Jun 2003
Posts: 591
Location: Ontario, Canada

PostPosted: Fri Jan 16, 2004 3:05 am    Post subject: Reply with quote

felixz wrote:
ozonaro
I got same error as you.

I upgraded to kernel 2.6.1 and reinstalled hotplug the masked version. I did not try to intstall masked version of gphoto2


I've now had time to try the masked versions of gphoto2/libgphoto2 -- but alas, no difference; the problem persists.

[added later] Not only that, I'm also trying to get a USB bluetooth dongle to work, and am getting "hci_cmd_task: hci0 command tx timeout" and "usb 4-2: control timeout on ep0in" errors in my logs.... I'm beginning to think it's time for me to try an earlier release of 2.6, which doesn't have the most recent USB changes. :?
Back to top
View user's profile Send private message
felixz
n00b
n00b


Joined: 30 Nov 2003
Posts: 24

PostPosted: Fri Jan 16, 2004 3:53 am    Post subject: Reply with quote

Ok i seem to understand the problem better now !!!

If you go read the whole post carefully a pattern emerges.

Many people are having this error which is "*** Error (-102: 'Corrupted data') ***" and they are using a canon camera.

I have kernel 2.6 and others have that.
They upgraded hotplugs to latest masked version.
I have upgraded gphoto2 to maked version.

But the problem is still there.
Now you must be aware that there is thing called mode Picture transfer protocol (PTP)

Canon seems to go out of their way not to inform us that PTP exists (in A70 user manual its not even mentioned). In the software guied I found this line
Quote:
See PTP Mode leaflet if you are using a Powershot G3 , Powershot S45, Posershot S230 Digital Elph/Isux 3. In addition set the camera's transfer settings to [PTP] if you use the method to download with these models

Ok so I dug up the green leaflet and it says :
Quote:
If you encouter any problems during image download, use the software applications bundled on the Canon Digital Camera Solution Disk to download images.
and it forgets to tell us how to place camera in PTP mode.

Ok apperantly the A70 and newer canon cameral work in either modes depending on which protocol gphoto starts talking in. Anyone tell us how to get gphoto2 to initiate PTP ?
[/quote]
Back to top
View user's profile Send private message
ozonator
Guru
Guru


Joined: 11 Jun 2003
Posts: 591
Location: Ontario, Canada

PostPosted: Fri Jan 16, 2004 5:24 pm    Post subject: Reply with quote

Yet another update: I've now tried with a kernel having hotplug disabled. The good news: my USB bluetooth dongle now seems to work. The bad news: I'm still getting 'corrupted data' errors with gphoto2. :(
Back to top
View user's profile Send private message
felixz
n00b
n00b


Joined: 30 Nov 2003
Posts: 24

PostPosted: Fri Jan 16, 2004 6:55 pm    Post subject: Reply with quote

My update.

I compiled hotplug support out of the kernel and the connection to my canon A70 works fine now. From what I read one will need to be root to access the usb device.

I have kernel 2.6.1 with usb device filesystem
gphoto2 2.1.3
Back to top
View user's profile Send private message
ozonator
Guru
Guru


Joined: 11 Jun 2003
Posts: 591
Location: Ontario, Canada

PostPosted: Fri Jan 16, 2004 7:47 pm    Post subject: Reply with quote

felixz wrote:
From what I read one will need to be root to access the usb device.


That's what I forgot! Without hotplug in the kernel, my S200 works now, using gphoto2 as root. Thanks for the reminder.
Back to top
View user's profile Send private message
Useful Idiot
Guru
Guru


Joined: 30 Aug 2002
Posts: 329
Location: Finland

PostPosted: Fri Jan 16, 2004 8:18 pm    Post subject: Reply with quote

That's just premission issue. You can acces your camera as a normal user aswell. Just do:
Code:
 # /usr/lib/libgphoto2/print-usb-usermap > /etc/hotplug/usb/usbcam.usermap

_________________
[size=9]We are all in the gutter, but some of us are looking at the stars.
Back to top
View user's profile Send private message
ozonator
Guru
Guru


Joined: 11 Jun 2003
Posts: 591
Location: Ontario, Canada

PostPosted: Fri Jan 16, 2004 11:48 pm    Post subject: Reply with quote

Useful Idiot wrote:
That's just premission issue. You can acces your camera as a normal user aswell. Just do:
Code:
 # /usr/lib/libgphoto2/print-usb-usermap > /etc/hotplug/usb/usbcam.usermap


Yes, but that assumes a person is using hotplug, and is exactly what I'd been enjoying with 2.4.x kernels. The only way we've been able to get gphoto2 to work at all with 2.6.x is by disabling hotplug altogether in the kernel, which precludes the hotplug way of managing device permissions.
Back to top
View user's profile Send private message
stenny
Tux's lil' helper
Tux's lil' helper


Joined: 06 Feb 2003
Posts: 100
Location: Germany

PostPosted: Sat Jan 17, 2004 9:00 am    Post subject: Reply with quote

Yep! I can confirm that!
I also can confirm, that it is possible (at least with my Canpn A70) to use the camera in PTP mode if you want to use hotplugging support.

The camera discovers the protocol (either "normal" or "PTP") automagically by the way it gets initialized by gphoto2, digikam, ...

To enable the PTP protocol in digikam select the camera model Canon PowerShot A70 (PTP) in the camera setup dialog. When using gphoto2, start it with --camera="Canon PowerShot A70 (PTP)"

Hope, that helps a bit ...

stefan
Back to top
View user's profile Send private message
cgansen
n00b
n00b


Joined: 02 Dec 2002
Posts: 29

PostPosted: Mon Jan 19, 2004 3:15 am    Post subject: Reply with quote

can anyone confirm that support for the Digital IXUS/Powershot S200 is still broken? As far as I can tell, these models don't support PTP mode. If I'm mistaken, and some has gotten it to work for these models, please post details!

Thanks,
--chris
Back to top
View user's profile Send private message
ozonator
Guru
Guru


Joined: 11 Jun 2003
Posts: 591
Location: Ontario, Canada

PostPosted: Mon Jan 19, 2004 3:43 am    Post subject: Reply with quote

cgansen wrote:
can anyone confirm that support for the Digital IXUS/Powershot S200 is still broken? As far as I can tell, these models don't support PTP mode. If I'm mistaken, and some has gotten it to work for these models, please post details!


My S200 works now when I run gphoto2 as root, with a 2.6.1 kernel compiled from development-sources without hotplug support enabled. Not sure it matters, but I'm using the latest (still masked) versions of gphoto2 and libgphoto. As for PTP mode, I think you're right, it's not an option for the S200.
Back to top
View user's profile Send private message
stenny
Tux's lil' helper
Tux's lil' helper


Joined: 06 Feb 2003
Posts: 100
Location: Germany

PostPosted: Mon Jan 19, 2004 8:56 pm    Post subject: Reply with quote

As far as I can tell from this:
Code:
(delos) ~$ gphoto2 --list-cameras | grep 'Canon.*PTP'
        "Canon Digital IXUS 2 (PTP mode)"
        "Canon Digital IXUS 400 (PTP mode)"
        "Canon Digital IXUS v3 (PTP mode)"
        "Canon EOS 300D (PTP mode)"
        "Canon EOS Digital Rebel (PTP mode)"
        "Canon EOS Kiss Digital (PTP mode)"
        "Canon PowerShot A60 (PTP)"
        "Canon PowerShot A70 (PTP)"
        "Canon PowerShot A80 (PTP)"
        "Canon PowerShot G3 (PTP mode)"
        "Canon PowerShot G5 (PTP mode)"
        "Canon PowerShot S230 (PTP mode)"
        "Canon PowerShot S45 (PTP mode)"
(delos) ~$

the IXUS/PowerShot S200 is not supported in PTP mode by gphoto.

Regards
stefan
Back to top
View user's profile Send private message
cgansen
n00b
n00b


Joined: 02 Dec 2002
Posts: 29

PostPosted: Tue Jan 20, 2004 5:48 am    Post subject: Reply with quote

ozonator wrote:

My S200 works now when I run gphoto2 as root, with a 2.6.1 kernel compiled from development-sources without hotplug support enabled. Not sure it matters, but I'm using the latest (still masked) versions of gphoto2 and libgphoto. As for PTP mode, I think you're right, it's not an option for the S200.


After trying it out, I can get the S200 to work with latest kernel (hotplug disabled) and latest gphoto2/libgphoto2

However, disabling hotplugging in the kernel resulted in PCMCIA support being taken out, too, which I need for my laptop. Sigh. Maybe a few mroe releases and all will be well.
Back to top
View user's profile Send private message
lmpinto
Tux's lil' helper
Tux's lil' helper


Joined: 12 Feb 2003
Posts: 94
Location: somewhere near a computer and a beer.

PostPosted: Thu Jan 22, 2004 11:06 pm    Post subject: Reply with quote

cgansen wrote:
ozonator wrote:

My S200 works now when I run gphoto2 as root, with a 2.6.1 kernel compiled from development-sources without hotplug support enabled. Not sure it matters, but I'm using the latest (still masked) versions of gphoto2 and libgphoto. As for PTP mode, I think you're right, it's not an option for the S200.


After trying it out, I can get the S200 to work with latest kernel (hotplug disabled) and latest gphoto2/libgphoto2

However, disabling hotplugging in the kernel resulted in PCMCIA support being taken out, too, which I need for my laptop. Sigh. Maybe a few mroe releases and all will be well.


I haven't even tried to disable hotplug for the exact same reasons (wireless card), and nothing suggested on this post ever solved the problem (sometimes the camera would work for the first time, and give the same errors mentioned earlier on the subsequent times). However, I have been able to make it work again using linux-2.6.2-rc1 and linux-2.6.2-rc1-mm1. Gphoto2 works, and I am playing with S10sh, that even let's me do a thing I couldn't do with either gphoto2 or the Windows XP original drivers - file upload :-)
Back to top
View user's profile Send private message
toberonenz
n00b
n00b


Joined: 19 Apr 2003
Posts: 15
Location: Auckland, New Zealand

PostPosted: Fri Jan 23, 2004 11:10 pm    Post subject: Reply with quote

I have a Canon PowerShot A40 and had the same "corrupt data" issues as above.
After some investigation of the hotplug scripts I unmerged usbutils to remove usbmodules. I can now connect with gphoto2 without problems with hotplug support compiled into the kernel.
I am running kernel 2.6.1mm4 with hotplug support and PCMCIA.
Back to top
View user's profile Send private message
tristure
Apprentice
Apprentice


Joined: 30 Oct 2003
Posts: 270
Location: France

PostPosted: Sat Jan 24, 2004 7:30 pm    Post subject: Reply with quote

Unmerging usbutils did the trick for me and my powershot S200.

Yet I don't know what usbutils does exactly!! :oops:

Are there any programs that have usbutils in their dependencies??

And this seems to generate strange messages when booting. I get the following message on boot:

Quote:
hub 1-0:1.0: new USB device on port 2, assigned address 2
usb 1-2: bulk timeout on ep1in
usbfs: USBDEVFS_BULK failed dev 2 ep 0x81 len 512 ret -110
usb 1-2: USB disconnect, address 2


And I get some kind of warning during the "starting hotplugging USB and PCI devices" part.

But well, as long as it works who cares :twisted: . Only if any of you know a bit more about that, just let me know. Thanks everyone.
Back to top
View user's profile Send private message
cgansen
n00b
n00b


Joined: 02 Dec 2002
Posts: 29

PostPosted: Sat Jan 24, 2004 7:49 pm    Post subject: Reply with quote

@tristure

What kernel are you using?
Back to top
View user's profile Send private message
ozonator
Guru
Guru


Joined: 11 Jun 2003
Posts: 591
Location: Ontario, Canada

PostPosted: Sat Jan 24, 2004 9:45 pm    Post subject: Reply with quote

tristure wrote:
Are there any programs that have usbutils in their dependencies??


Code:
$ etcat -d usbutils
[ Results for search key : usbutils ]
* media-libs/libgphoto2-2.1.3
  >=sys-apps/usbutils-0.11-r2
* media-libs/libgphoto2-2.1.2-r1
  >=sys-apps/usbutils-0.11-r2
* media-libs/libgphoto2-2.1.3-r1
  >=sys-apps/usbutils-0.11-r2
* sys-apps/hotplug-20030805-r1
  >=sys-apps/usbutils-0.9
* sys-apps/hotplug-20030805-r2
  >=sys-apps/usbutils-0.9
* sys-apps/hotplug-20030805-r3
  >=sys-apps/usbutils-0.9
* sys-apps/hotplug-20020826-r2
  >=sys-apps/usbutils-0.9
* sys-apps/hotplug-20040105
  >=sys-apps/usbutils-0.9
* sys-apps/hotplug-20030501-r2
  >=sys-apps/usbutils-0.9
* sys-apps/hotplug-20030805
  >=sys-apps/usbutils-0.9
* sys-apps/usbd-0.1
  >=sys-apps/usbutils-0.11


So, only libgphoto2, hotplug, and usbd list usbutils as a dependency, which means emerging or upgrading any of those will result in the re-emerging of usbutils.

On the other hand, the gphoto2 documentation includes neither hotplug nor usbutils among its requirements. My guess is that they're required by the ebuilds because, when they work, they do make things more convenient; in spite of that, since gphoto2 itself doesn't require it, it appears it's okay to use gphoto2 without usbutils (or hotplug, as we already knew).
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Goto page Previous  1, 2, 3  Next
Page 2 of 3

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum