View previous topic :: View next topic |
Author |
Message |
tristure Apprentice
Joined: 30 Oct 2003 Posts: 270 Location: France
|
Posted: Sat Jan 24, 2004 9:52 pm Post subject: |
|
|
Thanks.
As cgansen has noticed I had forgotten to give my kernel version.
I run a freshly compiled gentoo-dev-sources 2.6.1.
Just to be very precise, my first gentoo installation was with a 2.4.20, and my powershot worked perfectly - almost everything ran perfectly, actually.
Then my box had a major crash and I had to reinstall everything (windows + linux). I installed a gentoo-sources 2.4.22 rc 8 or 9 and was very unhappy with it (BIG problems with sounds and multitasking....)
My new 2.6 kernel runs quite amazingly. Very fast and so far very stable. But I encounter more problems with my peripherals, especially usb!! |
|
Back to top |
|
|
tristure Apprentice
Joined: 30 Oct 2003 Posts: 270 Location: France
|
Posted: Mon Jan 26, 2004 11:16 pm Post subject: |
|
|
Well finally it seems that unmerging usbutils is not a satisfactory solution.
It sort of gives acces to the camera, but when I want to save more than one image on my computer I get errors and finally just the first image is saved. If I try to "Save all" the program dies instantly.
Then when usbutils is unmerged I get a "can't sythetize root hub events" during the start of hotplug at boot. Don't really know what it means, but it doesn't look so good....... |
|
Back to top |
|
|
toberonenz n00b
Joined: 19 Apr 2003 Posts: 15 Location: Auckland, New Zealand
|
Posted: Tue Jan 27, 2004 1:50 am Post subject: |
|
|
tristure, are you using the hotplug init script?
I haven't been using this script with the 2.6 kernel.
I have also remerged both libgphoto2 and hotplug without usbutils (after removing the dependancy in the ebuilds), both compiled successfully so it appears not to be required for either to function.
Not sure what the usb errrors are on boot as I don't get them. |
|
Back to top |
|
|
tristure Apprentice
Joined: 30 Oct 2003 Posts: 270 Location: France
|
Posted: Tue Jan 27, 2004 6:52 am Post subject: |
|
|
I just did an emerge hotplug then rc-add hotpluf default.
So I assume I use the init script.
How is it possible not to use it?? |
|
Back to top |
|
|
ozonator Guru
Joined: 11 Jun 2003 Posts: 591 Location: Ontario, Canada
|
Posted: Tue Jan 27, 2004 1:04 pm Post subject: |
|
|
tristure wrote: | I just did an emerge hotplug then rc-add hotpluf default.
So I assume I use the init script.
How is it possible not to use it?? |
This will remove hotplug from your default runlevel, and prevent it from loading automatically at boot time:
Code: | rc-update del hotplug default |
Doing that and rebooting is likely the best thing to try, for a 'cleaner' start. You can also stop the hotplug service, if it's running, without rebooting:
Code: | /etc/init.d/hotplug stop |
|
|
Back to top |
|
|
tristure Apprentice
Joined: 30 Oct 2003 Posts: 270 Location: France
|
Posted: Wed Jan 28, 2004 10:29 pm Post subject: |
|
|
Well, the thing is I do want to keep hotplug. I need it for my mp3 player (with which I have many problems too, there's a thread about it in this very forum ).
Reading toberonenz's post I understood there was another way to have hotplug than to use the default script... And given the fact that I can't get the whole USB stuff to work correctly, and that I don't understand a friggin'damn thing about it, I was ready to try that solution too.
Oh by the way, while we're on the topic of canon powershot, have you noticed this? :
When I use it in Windows, all pictures are oriented correctly. I mean there is no need to rotate (90 or 270) the ones you shot in "portrait" position.
When using gtkam in linux the correction is not made. And I have to rotate the pictures manually. It's not too bad, but if there was an option to make it work, I would be glad to hear it
Thanks everyone! |
|
Back to top |
|
|
felixz n00b
Joined: 30 Nov 2003 Posts: 24
|
Posted: Thu Jan 29, 2004 12:03 am Post subject: |
|
|
tristure wrote: |
Oh by the way, while we're on the topic of canon powershot, have you noticed this? :
When I use it in Windows, all pictures are oriented correctly. I mean there is no need to rotate (90 or 270) the ones you shot in "portrait" position.
When using gtkam in linux the correction is not made. And I have to rotate the pictures manually. It's not too bad, but if there was an option to make it work, I would be glad to hear it
Thanks everyone! |
This is because the camera does not actually rearange the pixels of the image it keeps them the same , it simply tags the jpeg in the exif header to specify the orientation. Sure canons own software is smart enough to figure it out but general purpose stuff like gtkam is not smart enough. |
|
Back to top |
|
|
Zidge Tux's lil' helper
Joined: 20 Aug 2003 Posts: 86
|
Posted: Mon Feb 02, 2004 3:59 pm Post subject: |
|
|
Hi,
I've got a little pb with my Powershot S40
I compiled my kernel with the good options (I assume)
emerged gphoto2 and gtkam ...
When I plug my camera I have
Quote: |
/var/log/messages
Feb 2 10:59:01 galadriel hub 1-0:1.0: new USB device on port 1, assigned address 9
|
but, I have no /proc/bus/usb
I don't know why, maybe one of the 2.6 kernel feature (sysfs) but I compiled procfs support ... so ?
What can I do ...
Well, I don't know why, I compiled USB File System support, and installed my new kernel but ... it seems it didn't work ... I'm recompiling and I will try again ...
they key seems to be there:
https://forums.gentoo.org/viewtopic.php?t=95568&highlight=powershot+proc+bus+usb |
|
Back to top |
|
|
tristure Apprentice
Joined: 30 Oct 2003 Posts: 270 Location: France
|
Posted: Tue Feb 03, 2004 2:58 pm Post subject: |
|
|
@Zidge
could you post the usb sections of your kernel .config?
Or make a link to your entire .config?
It could help if we want to check that you activated the right options. To me, /proc/bus/usb not existing sort of looks like something's mising in the kernel. (or you compiled things as modules that are not loaded right now)
@Everyone else
I've tried various things (in console.perms, devfsd.conf, etc...) and changed many permissions, tried to alter my hotplug configuration... And still I can't get any resultats without unmerging usbutils. It seems very strange.
OK, this is not a desperate situation as I can access my camera (but I have to log in as root), and the usbutils package is not really crucial.
Yet this is to me an "bad situation" (understand : situation really worse than what happens in windows ). I really would like to understand what the hell is going on.
Anyone got new hints about USB, digital cameras and usbutils package?
THanks! |
|
Back to top |
|
|
cgansen n00b
Joined: 02 Dec 2002 Posts: 29
|
Posted: Wed Feb 04, 2004 3:09 am Post subject: |
|
|
just as an update, I was able to get my Powershot S200 to work with the following:
Kernel: 2.6.1-mm5
hotplug: sys-apps/hotplug-20030805-r3
libgphoto2: media-libs/libgphoto2-2.1.3-r1
gphoto2: media-gfx/gphoto2-2.1.3
And no usbutils.
Hope this helps
--chris |
|
Back to top |
|
|
toberonenz n00b
Joined: 19 Apr 2003 Posts: 15 Location: Auckland, New Zealand
|
Posted: Wed Feb 04, 2004 5:23 am Post subject: |
|
|
Zidge
it looks like your system has not "automagically" mounted the usb filesystem. It should be done at bootup, by one of the init scripts (Anyone feel free to point out the correct place, it'll be nice to really know!)
do a
and if you have it mounted the it will show a line similar to this
Code: | none 0 0 0 - /proc/bus/usb |
if you don't have it mounted try
Code: | mount none -t usbfs /proc/bus/usb |
or try
Code: | mount none -t usbdevfs /proc/bus/usb |
if it mounts sucessfully then
Code: | cat /proc/bus/usb/devices |
this will show you your usb controllers and devices if attached
otherwise I'm at a loss. |
|
Back to top |
|
|
toberonenz n00b
Joined: 19 Apr 2003 Posts: 15 Location: Auckland, New Zealand
|
Posted: Wed Feb 04, 2004 5:38 am Post subject: |
|
|
Zidge
another thought, you could try the following
Code: | sh /etc/hotplug/usb.rc status |
this will give you some useful info of your usb setup.
it give me
Code: | USB Status for kernel: Linux 2.6.1-mm5 i686
USB up; bus count is 0
T: Bus=01 Lev=00 Prnt=00 Port=00 Cnt=00 Dev#= 1 Spd=12 MxCh= 2
P: Vendor=0000 ProdID=0000 Rev= 2.06
S: Manufacturer=Linux 2.6.1-mm5 uhci_hcd
S: Product=UHCI Host Controller
S: SerialNumber=0000:00:1f.2
I: If#= 0 Alt= 0 #EPs= 1 Cls=09(hub ) Sub=00 Prot=00 Driver=hub
USB Drivers Loaded:
hid
hub
usb
usb-storage
usbfs
usblp
khubd/hotplug thread:
F S UID PID PPID C PRI NI ADDR SZ WCHAN TTY TIME CMD
1 S 0 5 1 0 75 0 - 0 hub_th ? 00:00:00 khubd
Module Size Used by
ncpfs 56992 1
nvidia 2070632 14
3c59x 34984 0
yenta_socket 14528 2 |
tobz |
|
Back to top |
|
|
MIT_Service Guru
Joined: 29 Nov 2002 Posts: 355
|
Posted: Thu Feb 05, 2004 9:22 pm Post subject: |
|
|
Yay! Kernel 2.6.2 fixed this problem for me!
gphoto2 runs just like it should - with no configuration changes to my previous setup.
Just hope I get my usb-bluetooth dongle working with this new kernel, too. |
|
Back to top |
|
|
Paulten Apprentice
Joined: 28 Mar 2003 Posts: 257 Location: Sykkylven, Norway
|
Posted: Tue Feb 24, 2004 9:39 pm Post subject: |
|
|
Hi all.
I have the same problem on my 2.6.2-ck1.
I tried upgrading libgphoto2, gphoto2 and hotplug.
I also tried to disable hotplug, thou I still have support for it in the kernel.
My camera is a canon coolpix 880, --auto-detect finds the camera, but when trying to browse/download I get the same error as everyone else.
Any other suggestions?
Code: |
root@lappy paul # lsusb -vv
Bus 002 Device 002: ID 04b0:0103 Nikon Corp. Coolpix 880
Language IDs: none (cannot get min. string descriptor; got len=-1, error=32:Broken pipe)
cannot get string descriptor 1, error = Broken pipe(32)
cannot get string descriptor 2, error = Broken pipe(32)
Device Descriptor:
bLength 18
bDescriptorType 1
bcdUSB 1.10
bDeviceClass 255 Vendor Specific Class
bDeviceSubClass 255 Vendor Specific Subclass
bDeviceProtocol 255 Vendor Specific Protocol
bMaxPacketSize0 8
idVendor 0x04b0 Nikon Corp.
idProduct 0x0103 Coolpix 880
bcdDevice 1.00
iManufacturer 1
iProduct 2
iSerial 0
bNumConfigurations 1
cannot get config descriptor 0, Broken pipe (32)
Language IDs: none (cannot get min. string descriptor; got len=-1, error=32:Broken pipe)
Bus 002 Device 001: ID 0000:0000
Device Descriptor:
bLength 18
bDescriptorType 1
bcdUSB 1.10
bDeviceClass 9 Hub
bDeviceSubClass 0
bDeviceProtocol 0
bMaxPacketSize0 8
idVendor 0x0000
idProduct 0x0000
bcdDevice 2.06
iManufacturer 3 Linux 2.6.2 uhci_hcd
iProduct 2 UHCI Host Controller
iSerial 1 0000:00:1d.2
bNumConfigurations 1
Configuration Descriptor:
bLength 9
bDescriptorType 2
wTotalLength 25
bNumInterfaces 1
bConfigurationValue 1
iConfiguration 0
bmAttributes 0x40
Self Powered
MaxPower 0mA
Interface Descriptor:
bLength 9
bDescriptorType 4
bInterfaceNumber 0
bAlternateSetting 0
bNumEndpoints 1
bInterfaceClass 9 Hub
bInterfaceSubClass 0
bInterfaceProtocol 0
iInterface 0
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x81 EP 1 IN
bmAttributes 3
Transfer Type Interrupt
Synch Type none
wMaxPacketSize 2
bInterval 255
Language IDs: (length=4)
0409 English(US)
Bus 001 Device 001: ID 0000:0000
Device Descriptor:
bLength 18
bDescriptorType 1
bcdUSB 1.10
bDeviceClass 9 Hub
bDeviceSubClass 0
bDeviceProtocol 0
bMaxPacketSize0 8
idVendor 0x0000
idProduct 0x0000
bcdDevice 2.06
iManufacturer 3 Linux 2.6.2 uhci_hcd
iProduct 2 UHCI Host Controller
iSerial 1 0000:00:1d.0
bNumConfigurations 1
Configuration Descriptor:
bLength 9
bDescriptorType 2
wTotalLength 25
bNumInterfaces 1
bConfigurationValue 1
iConfiguration 0
bmAttributes 0x40
Self Powered
MaxPower 0mA
Interface Descriptor:
bLength 9
bDescriptorType 4
bInterfaceNumber 0
bAlternateSetting 0
bNumEndpoints 1
bInterfaceClass 9 Hub
bInterfaceSubClass 0
bInterfaceProtocol 0
iInterface 0
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x81 EP 1 IN
bmAttributes 3
Transfer Type Interrupt
Synch Type none
wMaxPacketSize 2
bInterval 255
Language IDs: (length=4)
0409 English(US)
|
Thanks! _________________ Homepage : http://paul.kde.no Jabber ID : tenfjord@jabber.org
"Dei levde som dyr. Dei verken røykte eller drakk" -Ukjent |
|
Back to top |
|
|
flokno Apprentice
Joined: 18 Dec 2002 Posts: 185 Location: graz/austria/europe
|
Posted: Tue Feb 24, 2004 9:44 pm Post subject: |
|
|
upgrade to kernel 2.6.3 and (lib)gphoto2 2.1.4.
it seems to work here with hotplug enabled (/etc/init.d/hotplug start).
though i can't test it at the moment. i have lend my camera... |
|
Back to top |
|
|
Kabuto l33t
Joined: 01 Aug 2002 Posts: 701
|
Posted: Wed Feb 25, 2004 3:54 pm Post subject: |
|
|
Just FYI. Actutally usbutils is not required per se by gphoto2. It actually uses libusb. There was a conflict between usbutils and libusb using the same library name and that was fixed in an upgrade usbutils ebuild so it actually is checking to make sure you have that. Most likely you could just re-emerge libusb without removing usbutils and it would work also.
Btw. You can build just the gphoto drivers your want with the GPHOTO_LIBS environment variable seperated by comments or add to make.conf. Here is the comments I added to the ebuild.
# If you want to only compile for specific camera(s), set GPHOTO_LIBS
# environment to a comma-separated list (no spaces) of drivers that
# you want to build.
#
# For example:
#
# env GPHOTO_LIBS='canon,ptp2' emerge libgphoto2
#
# drivers: agfa-cl20, barbie, canon, casio, digita, dimera,
# directory, fuji, gsmart300, jamcam,
# jd11, kodak, konica, mustek, largan,
# minolta, panasonic, pccam300, pccam600,
# polaroid, ptp2, ricoh, samsung, smal,
# sierra, sipix, sonydscf1, sonydscf55,
# soundvision, spca50x, sq905, stv0680, sx330z |
|
Back to top |
|
|
Paulten Apprentice
Joined: 28 Mar 2003 Posts: 257 Location: Sykkylven, Norway
|
Posted: Wed Feb 25, 2004 10:24 pm Post subject: |
|
|
Upgraded to 2.6.3. remerged both usbutils and libusb. upgraded libgphoto but still the same annoying problem.
EDIT : some more output
Code: |
root@lappy paul # gphoto2 --auto-detect
Model Port
----------------------------------------------------------
Nikon CoolPix 880 usb:
|
Code: |
root@lappy paul # gphoto2 -P
*** Error (-34: 'Error reading from the port') ***
|
Code: |
0.203403 gphoto2-port-serial(2): Trying to lock '/dev/ttyS30'...
0.205812 gphoto2-port-serial(2): Trying to lock '/dev/ttyS31'...
0.208208 gphoto2-port-serial(2): Trying to lock '/dev/ttyS32'...
0.210665 gphoto2-port-core(2): Loaded '' (^serial) from 'libgphoto2_port_serial.so'
0.211123 gphoto2-port-core(2): Loaded 'Universal Serial Bus' (usb:) from 'libgphoto2_port_usb.so'
0.211338 gphoto2-port-info-list(2): Looking for path 'usb:' (2 entries available)...
0.211430 gphoto2-port-info-list(2): Getting info of entry 0 (2 available)...
0.211515 gphoto2-camera(2): Setting port info for port 'Universal Serial Bus' at 'usb:'...
0.212207 gphoto2-port(2): Setting timeout to 5000 millisecond(s)...
0.212318 gphoto2-port(2): Setting settings...
0.212385 gphoto2-setting(2): Setting key 'port' to value 'usb:' (gphoto2)
0.212458 gphoto2-setting(2): Saving 2 setting(s) to file "/root/.gphoto/settings"
0.213489 gphoto2-camera(2): Listing files in '/'...
0.213588 gphoto2-camera(2): Initializing camera...
0.213671 gphoto2-port-usb(1): Looking for USB device (vendor 0x4b0, product 0x103)... found.
0.213748 gphoto2-port-usb(1): Detected defaults: config 1, interface 0, altsetting 0, inep 83, outep 04, intep ffffffff, class ff, subclass ff
0.213827 gphoto2-camera(2): Loading '/usr/lib/gphoto2/2.1.3/libgphoto2_sierra.so'...
0.214168 gphoto2-port(2): Opening USB port...
Segmentation fault
|
I've upgraded all my computers to 2.6 with ntpl so theres no way back to 2.4
Any other suggestion are very appreciated.
Thanx _________________ Homepage : http://paul.kde.no Jabber ID : tenfjord@jabber.org
"Dei levde som dyr. Dei verken røykte eller drakk" -Ukjent |
|
Back to top |
|
|
|
|
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
|
|