Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Kodak camera not seen by gphoto2
View unanswered posts
View posts from last 24 hours

Goto page 1, 2, 3  Next  
Reply to topic    Gentoo Forums Forum Index Multimedia
View previous topic :: View next topic  
Author Message
mad_ady
n00b
n00b


Joined: 14 Jul 2004
Posts: 54

PostPosted: Sun Oct 03, 2004 4:31 pm    Post subject: Kodak camera not seen by gphoto2 Reply with quote

I have a Kodak CX 4200 photocamera that I want to use under linux. It uses PTP, so I can't mount it as a usb storage device. But gphoto2 should work with it.

I enabled usb support in my 2.6.5 kernel, and dmesg gives this when I turn the camera on...

Code:

bash-2.05b# cat .config | grep USB |grep -v "#"
CONFIG_USB=y
CONFIG_USB_DEVICEFS=y
CONFIG_USB_EHCI_HCD=m
CONFIG_USB_OHCI_HCD=m
CONFIG_USB_UHCI_HCD=m
CONFIG_USB_AUDIO=m
CONFIG_USB_BLUETOOTH_TTY=m
CONFIG_USB_MIDI=m
CONFIG_USB_ACM=m
CONFIG_USB_PRINTER=y
CONFIG_USB_STORAGE=m
CONFIG_USB_STORAGE_DEBUG=y
CONFIG_USB_STORAGE_DATAFAB=y
CONFIG_USB_STORAGE_HP8200e=y
CONFIG_USB_HID=y
CONFIG_USB_HIDINPUT=y
bash-2.05b# cat .config | grep SCSI |grep -v "#"
CONFIG_BLK_DEV_IDESCSI=y
CONFIG_SCSI=y
CONFIG_SCSI_PROC_FS=y
CONFIG_SCSI_MULTI_LUN=y
CONFIG_SCSI_REPORT_LUNS=y
CONFIG_SCSI_CONSTANTS=y
CONFIG_SCSI_LOGGING=y
CONFIG_SCSI_SATA=y
CONFIG_SCSI_ATA_PIIX=y
CONFIG_SCSI_QLA2XXX=y
CONFIG_I2O_SCSI=y
bash-2.05b# lsmod
Module                  Size  Used by
nvidia               1700460  10
ohci_hcd               18948  0
ehci_hcd               26756  0
snd_bt87x              13636  1
snd_via82xx            25408  2
usb_storage            55108  0
uhci_hcd               32080  0
w83781d                34944  0
i2c_sensor              2944  1 w83781d
tuner                  17356  0
bttv                  148588  0
video_buf              21252  1 bttv
i2c_algo_bit            9288  1 bttv
v4l2_common             6208  1 bttv
btcx_risc               4744  1 bttv
i2c_core               23684  5 w83781d,i2c_sensor,tuner,bttv,i2c_algo_bit
videodev               10240  1 bttv
b44                    22532  0

bash-2.05b#dmesg
...
usb 2-1: new full speed USB device using address 2


Code:

cat /proc/bus/usb/devices
T:  Bus=02 Lev=01 Prnt=01 Port=00 Cnt=01 Dev#=  2 Spd=12  MxCh= 0
D:  Ver= 1.10 Cls=00(>ifc ) Sub=00 Prot=00 MxPS=16 #Cfgs=  1
P:  Vendor=040a ProdID=0560 Rev= 1.00
S:  Manufacturer=Eastman Kodak Company
S:  Product=KODAK EasyShare CX4200 Digital Camera
S:  SerialNumber=CX42031290535
C:* #Ifs= 1 Cfg#= 1 Atr=c0 MxPwr=  0mA
I:  If#= 0 Alt= 0 #EPs= 3 Cls=06(still) Sub=01 Prot=01 Driver=(none)
E:  Ad=83(I) Atr=02(Bulk) MxPS=  64 Ivl=0ms
E:  Ad=04(O) Atr=02(Bulk) MxPS=  64 Ivl=0ms
E:  Ad=85(I) Atr=03(Int.) MxPS=  64 Ivl=16ms

But when I try
Code:


mad_ady@frost  mad_ady $ gphoto2 --auto-detect
Model                          Port
----------------------------------------------------------
mad_ady@frost  mad_ady $ gphoto2 --list-ports
Devices found: 9
Path                             Description
--------------------------------------------------------------
serial:/dev/tts/0                Serial Port 0
serial:/dev/tts/1                Serial Port 1
serial:/dev/tts/2                Serial Port 2
serial:/dev/tts/3                Serial Port 3
serial:/dev/tts/4                Serial Port 4
serial:/dev/tts/5                Serial Port 5
serial:/dev/tts/6                Serial Port 6
serial:/dev/tts/7                Serial Port 7
usb:                             Universal Serial Bus

It doesn't list my camera

In gtkam, under Camera-> Add Camera I only have greyed out selections and I can't select anything.

I know it works with gtkam because it works fine under a Red Hat 9 system.

If you have any suggestions on what I can do, please help me.
Back to top
View user's profile Send private message
FishB8
l33t
l33t


Joined: 17 Mar 2003
Posts: 820

PostPosted: Sun Oct 03, 2004 8:42 pm    Post subject: Reply with quote

just because the system properly detects and identifies a USB device doesn't mean it can do anything with it. Take a look at the line reading:

Code:
I:  If#= 0 Alt= 0 #EPs= 3 Cls=06(still) Sub=01 Prot=01 Driver=(none)


notice that Driver=(none)

I don't think gtkam can access it because there is no means to do so. Most likely your problem is the proper driver it needs isn't being built or the proper module isn't being loaded.

See what driver is listed when you connect it under RH.
_________________
"...as we enjoy great advantages from the inventions of others, we should be glad of an opportunity to serve others by any invention of ours, and this we should do freely and generously." -Benjamin Franklin
Back to top
View user's profile Send private message
mad_ady
n00b
n00b


Joined: 14 Jul 2004
Posts: 54

PostPosted: Mon Oct 04, 2004 1:54 pm    Post subject: Reply with quote

AHA! Thanks for pointing that out... I'm suspecting that hotplug should load the necessary drivers, but I don't know. I'll keep searching... Thanks.
Back to top
View user's profile Send private message
mad_ady
n00b
n00b


Joined: 14 Jul 2004
Posts: 54

PostPosted: Mon Oct 04, 2004 7:18 pm    Post subject: Reply with quote

I have tried to get more information out of the red hat system, but it doesn't help me...

Here's what I've got:

Code:

cat /proc/bus/usb/devices
...
D:  Ver= 1.10 Cls=00(>ifc ) Sub=00 Prot=00 MxPS=16 #Cfgs=  1
P:  Vendor=040a ProdID=0560 Rev= 1.00
S:  Manufacturer=Eastman Kodak Company
S:  Product=KODAK EasyShare CX4200 Digital Camera
S:  SerialNumber=CX42031290535
C:* #Ifs= 1 Cfg#= 1 Atr=c0 MxPwr=  0mA
I:  If#= 0 Alt= 0 #EPs= 3 Cls=06(still) Sub=01 Prot=01 Driver=(none)
E:  Ad=83(I) Atr=02(Bulk) MxPS=  64 Ivl=0ms
E:  Ad=04(O) Atr=02(Bulk) MxPS=  64 Ivl=0ms
E:  Ad=85(I) Atr=03(Int.) MxPS=  64 Ivl=16ms
T:  Bus=01 Lev=00 Prnt=00 Port=00 Cnt=00 Dev#=  1 Spd=12  MxCh= 3
B:  Alloc=  0/900 us ( 0%), #Int=  0, #Iso=  0
D:  Ver= 1.10 Cls=09(hub  ) Sub=00 Prot=00 MxPS= 8 #Cfgs=  1
....

So, it still has driver=(none), but the camera works fine with gtkam/gphoto2. Do you have a driver for your cam? And if so, can you mount your cam as a directory? (Because mine can't be mounted).

I'm still tinking hotplug isn't doing its job... But I don't know where to look...
Back to top
View user's profile Send private message
mad_ady
n00b
n00b


Joined: 14 Jul 2004
Posts: 54

PostPosted: Mon Oct 04, 2004 7:48 pm    Post subject: Reply with quote

I played around with hotplug's documentation and I got dizzy :) But I didn't understand if I can do anything to make my camera work...

Here's where I stopped:

Code:

bash-2.05b# hotplug usb
Bad USB agent invocation, no action


What's wrong?
Back to top
View user's profile Send private message
FishB8
l33t
l33t


Joined: 17 Mar 2003
Posts: 820

PostPosted: Tue Oct 05, 2004 9:33 pm    Post subject: Reply with quote

You've got me stumped. :?

If may be that gtkam/gphoto2 don't access the PTP based camers via a driver but has a built in driver so that it access the hardware directly. (i.e. user space driver)

I set my dad's camera up for him that supports both PTP and mounting as a USB drive. I tried out the PTP mode for kicks, so I know it works. (As far as the Gentoo vs other distros aspect is concerned)

PTP may be an option in gtkam/gphoto2. You might check and see if there are USE flags that need to be set in order to build that functionallity in.

See if this turns up anything for you
Code:

euse -i | grep PTP
euse -i | grep gkcam
euse -i | grep gphoto2

_________________
"...as we enjoy great advantages from the inventions of others, we should be glad of an opportunity to serve others by any invention of ours, and this we should do freely and generously." -Benjamin Franklin


Last edited by FishB8 on Sat Oct 16, 2004 4:21 pm; edited 1 time in total
Back to top
View user's profile Send private message
FishB8
l33t
l33t


Joined: 17 Mar 2003
Posts: 820

PostPosted: Tue Oct 05, 2004 10:08 pm    Post subject: Reply with quote

Of course there is always the possibility that your rights to access the camera are not set up properly. Have you tried accessing the camera as root?
_________________
"...as we enjoy great advantages from the inventions of others, we should be glad of an opportunity to serve others by any invention of ours, and this we should do freely and generously." -Benjamin Franklin
Back to top
View user's profile Send private message
mad_ady
n00b
n00b


Joined: 14 Jul 2004
Posts: 54

PostPosted: Wed Oct 13, 2004 8:17 pm    Post subject: Reply with quote

:(
Sorry for not replying sooner, but the forum failed to e-mail me on your reply...

Anyway, I tryed gtkam and gphoto2 as root and as normal user, and they didn't work :(

I've tried 'euse', but I get 'command not found'. What packages do I need to install?
Back to top
View user's profile Send private message
asiobob
Veteran
Veteran


Joined: 29 Oct 2003
Posts: 1375
Location: Bamboo Creek

PostPosted: Thu Oct 14, 2004 3:11 am    Post subject: Reply with quote

mad_ady wrote:

I've tried 'euse', but I get 'command not found'. What packages do I need to install?


Code:
emerge gentoolkit
Back to top
View user's profile Send private message
FishB8
l33t
l33t


Joined: 17 Mar 2003
Posts: 820

PostPosted: Thu Oct 14, 2004 3:25 am    Post subject: Reply with quote

the result from
Code:
euse -i | grep gphoto2
should be
Code:
gphoto2               [-] [ ] [G] Adds digital camera support


Its a General rather than a Local Use flag, so it probably effects all kinds of things. I'm not sure what packages would need to be rebuilt if you don't have that flag set, but just off the top of my head things like hotplug would be a good start.

You can start up ufed (you might want to emerge that as well if you haven't yet) and make sure that USE flag is turned on.
_________________
"...as we enjoy great advantages from the inventions of others, we should be glad of an opportunity to serve others by any invention of ours, and this we should do freely and generously." -Benjamin Franklin
Back to top
View user's profile Send private message
mad_ady
n00b
n00b


Joined: 14 Jul 2004
Posts: 54

PostPosted: Thu Oct 14, 2004 10:17 am    Post subject: Reply with quote

I merged euse (thanks):

Code:

bash-2.05b# euse -i |grep gphoto2
gphoto2               [-] [ ] [G] Adds digital camera support


I used ufed and added usb to the flags.
I reemerged hotplug and gphoto2

Code:

bash-2.05b# gphoto2 --list-ports
Devices found: 9
Path                             Description
--------------------------------------------------------------
serial:/dev/tts/0                Serial Port 0
serial:/dev/tts/1                Serial Port 1
serial:/dev/tts/2                Serial Port 2
serial:/dev/tts/3                Serial Port 3
serial:/dev/tts/4                Serial Port 4
serial:/dev/tts/5                Serial Port 5
serial:/dev/tts/6                Serial Port 6
serial:/dev/tts/7                Serial Port 7
usb:                             Universal Serial Bus
bash-2.05b# gphoto2 --auto-detect
Model                          Port
----------------------------------------------------------


It still doesn't work... :(

I don't know what else to try... I can't afford a card reader, and I'm determined to make this work!
Do you think there may be something wrong with the kernel? Should I switch to a newer kernel? (I have 2.6.5)
Back to top
View user's profile Send private message
FishB8
l33t
l33t


Joined: 17 Mar 2003
Posts: 820

PostPosted: Thu Oct 14, 2004 6:06 pm    Post subject: Reply with quote

Your kernel should be fine. You could always update to make sure but I honestly don't think it will change anything.

You might try rebuilding libgphoto2 and libusb.

You might try
Quote:
emerge --newuse world
which will rebuild packages effected by the new use flag settings, but I doubt that will change much.

It may be that the problem is with gtkam itself. You could try the kde equivalent digikam, bit this is a bit of a stretch.

Beyond that I can't think of anything else. :cry: There's really no way beyond this I can think of without actually being hands on with your computer. Perhaps somebody else can give more insight than I. If nobody can help you in these forums, you might conside filing a bug saying that you've tried all the angles in trying to chase down the problem and gphoto2 still fails to access the camera. (and mention that it succeeds on your fedora core box)
_________________
"...as we enjoy great advantages from the inventions of others, we should be glad of an opportunity to serve others by any invention of ours, and this we should do freely and generously." -Benjamin Franklin
Back to top
View user's profile Send private message
mad_ady
n00b
n00b


Joined: 14 Jul 2004
Posts: 54

PostPosted: Fri Oct 15, 2004 6:45 pm    Post subject: Reply with quote

:( This wasn't the answer I was expecting... :(

Thank you for your help, though....

I want to ask you something... After you installed hotplug, did your camera work automagically? Or did you have to tweak something?

Please, (if you have a PTP camera also) post what dmesg says when you plug your camera in.. I have the sneaking suspicion that hotplug doesn't do what I pay it to do :) Maybe I'll find a way to convince it...

But I need more info (not to mention help!)
Back to top
View user's profile Send private message
FishB8
l33t
l33t


Joined: 17 Mar 2003
Posts: 820

PostPosted: Sat Oct 16, 2004 4:11 am    Post subject: Reply with quote

It worked automatically, for root user at least. My dad's camera is a nikon model that supports both the PTP and USB drive modes of access. I tried out the PTP mode just to see if it had any advantages. (It doesn't.) I think I created a special group in /etc/hotplug/usb/usbcam for accessing the camera as a normal user.

Part of the problem may be with the default script /etc/hotplug/usb/usbcam This script trys to find out who owns the console when the device is plugged and matching the ownership of the device to that user logged into the console. It trys to determin the user by looking at either /var/run/console.lock or var/lock/console.lock On my system neither of these exist, so the usbcam script basically sets the owner to nobody.

On my dad's computer I switched this script with a script that set assigned the camera to a group. If you haven't changed from this default script, it may be what is causing you all these problems.

Change the script so that it reads:
Code:

if [ "${ACTION}" = "add" ] && [ -f "${DEVICE}" ]
then
    chmod g-rw "${DEVICE}"
    chgrp users "${DEVICE}"
    chmod g+rw "${DEVICE}"
fi

_________________
"...as we enjoy great advantages from the inventions of others, we should be glad of an opportunity to serve others by any invention of ours, and this we should do freely and generously." -Benjamin Franklin
Back to top
View user's profile Send private message
mad_ady
n00b
n00b


Joined: 14 Jul 2004
Posts: 54

PostPosted: Sat Oct 16, 2004 7:04 am    Post subject: Reply with quote

I see your point. I've changed the script, restarted hotplug but it still doesn't work :(

I can't get to my camera as root or as any other user...

Please, I want some information from you...

Unload your usb-storage module (rmmod usb-storage)
Plug your dad's camera in
try to access it with gtkam (or whatever you use)
and post the relevant messages in:
/var/log/messages
and dmesg.

I want to know it my camera loads completly...Because all that I can see is:
Code:

Oct 16 10:00:55 frost usb 2-1: new full speed USB device using address 3

Also, do a cat /proc/bus/usb/devices :
Code:

T:  Bus=02 Lev=01 Prnt=01 Port=00 Cnt=01 Dev#=  3 Spd=12  MxCh= 0
D:  Ver= 1.10 Cls=00(>ifc ) Sub=00 Prot=00 MxPS=16 #Cfgs=  1
P:  Vendor=040a ProdID=0560 Rev= 1.00
S:  Manufacturer=Eastman Kodak Company
S:  Product=KODAK EasyShare CX4200 Digital Camera
S:  SerialNumber=CX42031290535
C:* #Ifs= 1 Cfg#= 1 Atr=c0 MxPwr=  0mA
I:  If#= 0 Alt= 0 #EPs= 3 Cls=06(still) Sub=01 Prot=01 Driver=(none)
E:  Ad=83(I) Atr=02(Bulk) MxPS=  64 Ivl=0ms
E:  Ad=04(O) Atr=02(Bulk) MxPS=  64 Ivl=0ms
E:  Ad=85(I) Atr=03(Int.) MxPS=  64 Ivl=16ms

I get that Driver=(none), and I'm not sure it should be like this...

Thank you for sticking with me!
Back to top
View user's profile Send private message
FishB8
l33t
l33t


Joined: 17 Mar 2003
Posts: 820

PostPosted: Sat Oct 16, 2004 4:19 pm    Post subject: Reply with quote

Alas, 8 hours of driving separate me from my dad and his computer/camera. :( And he is not computer savy enough to get that info for me.

Quote:
I get that Driver=(none), and I'm not sure it should be like this...


That puzzles me as well, I think it should read Driver=usbcam, even though PTP is a userspace driver if I understand correctly.
_________________
"...as we enjoy great advantages from the inventions of others, we should be glad of an opportunity to serve others by any invention of ours, and this we should do freely and generously." -Benjamin Franklin
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54393
Location: 56N 3W

PostPosted: Sat Oct 16, 2004 5:24 pm    Post subject: Reply with quote

FishB8,

Your kernel is OK, if you are actually running the one that belongs to that config file. Does
Code:
uname -a
give you the date and time you expect?

No need to worry about driver=(none) gphoto2 does its own thing with usb cameras. The camera won't show in
Code:
/dev/tts/
because thats your serial ports for devices like very old mice, even older printers and real external modems, not usb devices like your camera.

Theres two questions come to mind, is ohci-hcd the right usb root hub driver for your motherboard?
If you have other usb 1.1 devices working, then the answer is yes.
If you have a VIA or Intel motheboard, then its probably not.
Check with lspci - do you have ohci or uhci root hubs?
The other question is does gphoto2 know about a device called
Code:
Vendor=040a ProdID=0560
If not it may be as simple as editing the known devices list to add it.
How old is the camera?
The gphoto2 release is Jan 2004, so that may be it if its a this years model camera.
Since it worked with another distro, it will work with Gentoo too. It just a case of tracking down the difference.

libgphoto2 has this to say:-
Quote:
This file describe which driver must be used for a Kodak
camera.

digita
DC-220, DC-260, DC-265, DC-290
kodak/dc240
DC-240, DC-280, DC-3400, DC-5000
kodak/dc120
DC-120
kodak/dc210
DC-200 DC-210 DC-215
kodak/dc3200
DC-3200
ptp [*]
DC-4800, DX-3215, DX-3500, DX-3600, DX-3700, DX-3900
none
DC-3800 [**]
dc20 [***]
DC-20, DC-25
The CX4200 is not listed. thats a Bad Sign(tm) See what sourceforge has to say abou CX4200 cameras.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
FishB8
l33t
l33t


Joined: 17 Mar 2003
Posts: 820

PostPosted: Sat Oct 16, 2004 5:43 pm    Post subject: Reply with quote

mad_ady, I think that was susposed to be directed to you. :wink:

NeddySeagoon: I think his camera is supported, or at least the model description is found in /etc/hotplug/usb/usbcam-gphoto2.usermap:
Quote:
# Kodak CX4200
usbcam 0x0003 0x040a 0x0560 0x0000 0x0000 0x00 0x00 0x00 0x00 0x00 0x00 0x00000000


However, this entry has a different vendor and product ID numbers than what you listed.
Edit: It's the same numbers, I was looking at the wrong numbers. :P
_________________
"...as we enjoy great advantages from the inventions of others, we should be glad of an opportunity to serve others by any invention of ours, and this we should do freely and generously." -Benjamin Franklin


Last edited by FishB8 on Sat Oct 16, 2004 5:52 pm; edited 3 times in total
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54393
Location: 56N 3W

PostPosted: Sat Oct 16, 2004 5:47 pm    Post subject: Reply with quote

FishB8,

Sorry about that.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
FishB8
l33t
l33t


Joined: 17 Mar 2003
Posts: 820

PostPosted: Sat Oct 16, 2004 5:54 pm    Post subject: Reply with quote

Perhaps it is something as simple as the wrong root hub. If he has no other USB devices and the wrong root hub, there is no reason he ever would have noticed it.
_________________
"...as we enjoy great advantages from the inventions of others, we should be glad of an opportunity to serve others by any invention of ours, and this we should do freely and generously." -Benjamin Franklin
Back to top
View user's profile Send private message
FishB8
l33t
l33t


Joined: 17 Mar 2003
Posts: 820

PostPosted: Sat Oct 16, 2004 5:59 pm    Post subject: Reply with quote

NeddySeagoon: perhaps I'm not understanding something. If a camera is listed in /etc/hotplug/usb/usbcam-gphoto2.usermap does that mean it is supported, or is that only a means for the computer to identify the device, and has no bearing on weather or not gphoto2 supports it? I've been assuming that any camera listed in that usermap file implied that the camera was supported.
_________________
"...as we enjoy great advantages from the inventions of others, we should be glad of an opportunity to serve others by any invention of ours, and this we should do freely and generously." -Benjamin Franklin
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54393
Location: 56N 3W

PostPosted: Sat Oct 16, 2004 8:13 pm    Post subject: Reply with quote

FishB8,

That only means the hotplug has detected that the device is present and is advertising that its available for applictions to play with.

gphoto still needs to support it.
The good news is that is works with another distro and the CX4200 is lised in the supported cameras list in libgphoto, so we should get it to work.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54393
Location: 56N 3W

PostPosted: Sat Oct 16, 2004 8:19 pm    Post subject: Reply with quote

FishB8,

I've just spotted a nasty in the orignal post
Code:
bash-2.05b# lsmod
Module                  Size  Used by
nvidia               1700460  10
ohci_hcd               18948  0
ehci_hcd               26756  0
snd_bt87x              13636  1
snd_via82xx            25408  2
usb_storage            55108  0
uhci_hcd               32080  0
[snip]

You have both usb 1.1 drivers loaded. Thats a no no. Nothing usb works then. Having two drivers loaded for the sme hardware is always a bad idea.

Unless you are using kernel 2.6.7 you may load ehci-hcd (if you have USB 2.0 devices) and either ohci-hcd or uhci-hcd.
Choose only the one for your root hubs.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
mad_ady
n00b
n00b


Joined: 14 Jul 2004
Posts: 54

PostPosted: Sun Oct 17, 2004 12:08 pm    Post subject: Reply with quote

I wasn't aware this thread doubled its posts so quickly, but I'm glad...

So, let's get things one at a time:

FishB8: I'm sorry you are so far away from your dad (and his camera), but I appreciate the support!

NeddySeagoon:
Quote:

Your kernel is OK, if you are actually running the one that belongs to that config file. Does
Code:
uname -a
give you the date and time you expect?

Code:

mad_ady@frost  mad_ady $ uname -a
Linux frost 2.6.5-gentoo-r1 #3 Mon Aug 30 14:03:57 EEST 2004 i686 AMD Athlon(tm) XP 1800+ AuthenticAMD GNU/Linux
mad_ady@frost  mad_ady $ date
Sun Oct 17 14:46:57 EEST 2004


I have a MSI VIA KT600 Motherboard
I have a usb printer (hp deskjet 656c) working flawlessly...
Code:

frost root # lspci
0000:00:00.0 Host bridge: VIA Technologies, Inc. VT8377 [KT400 AGP] Host Bridge (rev 80)
0000:00:01.0 PCI bridge: VIA Technologies, Inc.: Unknown device b198
0000:00:06.0 Multimedia video controller: Brooktree Corporation Bt878 Video Capture (rev 11)
0000:00:06.1 Multimedia controller: Brooktree Corporation Bt878 Audio Capture (rev 11)
0000:00:08.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL-8139/8139C/8139C+ (rev 10)
0000:00:0b.0 Ethernet controller: Broadcom Corporation BCM4401 100Base-T (rev 01)
0000:00:0f.0 IDE interface: VIA Technologies, Inc. VT82C586/B/686A/B PIPC Bus Master IDE (rev 06)
0000:00:10.0 USB Controller: VIA Technologies, Inc. USB (rev 81)
0000:00:10.1 USB Controller: VIA Technologies, Inc. USB (rev 81)
0000:00:10.2 USB Controller: VIA Technologies, Inc. USB (rev 81)
0000:00:10.3 USB Controller: VIA Technologies, Inc. USB (rev 81)
0000:00:10.4 USB Controller: VIA Technologies, Inc. USB 2.0 (rev 86)
0000:00:11.0 ISA bridge: VIA Technologies, Inc.: Unknown device 3227
0000:00:11.5 Multimedia audio controller: VIA Technologies, Inc. VT8233 AC97 Audio Controller (rev 60)
0000:01:00.0 VGA compatible controller: nVidia Corporation NV11 [GeForce2 MX] (rev b2)


Quote:

NeddySeagoon: I think his camera is supported, or at least the model description is found in /etc/hotplug/usb/usbcam-gphoto2.usermap:
Quote:
# Kodak CX4200
usbcam 0x0003 0x040a 0x0560 0x0000 0x0000 0x00 0x00 0x00 0x00 0x00 0x00 0x00000000



My /etc/hotplug/usb/usbcam-gphoto2.usermap lists only this:
Code:

frost root # cat /etc/hotplug/usb/usbcam-gphoto2.usermap
# !!! DO NOT EDIT THIS FILE !!! This file is automatically generated.
# Put your custom entries in /etc/hotplug/usb/usbcam.usermap

I read somewhere that I should generate this file, but I don't know how...
Quote:

Unless you are using kernel 2.6.7 you may load ehci-hcd (if you have USB 2.0 devices) and either ohci-hcd or uhci-hcd.

I didn't know that...
I did a rmmod uhci-hcd and then a /etc/init.d/hotplug restart
and:
Code:

dmesg
[output ommited]
usb 2-1: USB disconnect, address 2
hub 5-0:1.0: USB hub found
hub 5-0:1.0: 8 ports detected
usb 2-1: new full speed USB device using address 3
ohci_hcd: 2004 Feb 02 USB 1.1 'Open' Host Controller (OHCI) Driver (PCI)
ohci_hcd: block sizes: ed 64 td 64
frost root # gphoto2 --auto-detect
Model                          Port
----------------------------------------------------------

gtkam still has its options grayed out :(
But I feel we're making progress... :)

This is what it says when I plug in my printer (which still works fine)
Code:

usb 2-2: new full speed USB device using address 4
drivers/usb/class/usblp.c: usblp0: USB Bidirectional printer dev 4 if 0 alt 1 proto 2 vid 0x03F0 pid 0x2304
Back to top
View user's profile Send private message
mad_ady
n00b
n00b


Joined: 14 Jul 2004
Posts: 54

PostPosted: Sun Oct 17, 2004 12:17 pm    Post subject: Reply with quote

I did a little testing myself and I came to the conclusion that my usb system works only with ehci_hcd and uhci_hcd (with ohci_hcd I don't get any USB ports)

So I did a :
Code:

frost root # rmmod ehci_hcd
frost root # rmmod ohci_hcd
frost root # rmmod uhci_hcd
frost root # lsmod
Module                  Size  Used by
nvidia               1700460  10
snd_bt87x              13636  1
snd_via82xx            25408  2
w83781d                34944  0
i2c_sensor              2944  1 w83781d
tuner                  17356  0
bttv                  148588  0
video_buf              21252  1 bttv
i2c_algo_bit            9288  1 bttv
v4l2_common             6208  1 bttv
btcx_risc               4744  1 bttv
i2c_core               23684  5 w83781d,i2c_sensor,tuner,bttv,i2c_algo_bit
videodev               10240  1 bttv
b44                    22532  0
frost root # modprobe ehci_hcd
frost root # lsmod
Module                  Size  Used by
ehci_hcd               26756  0
nvidia               1700460  10
snd_bt87x              13636  1
snd_via82xx            25408  2
w83781d                34944  0
i2c_sensor              2944  1 w83781d
tuner                  17356  0
bttv                  148588  0
video_buf              21252  1 bttv
i2c_algo_bit            9288  1 bttv
v4l2_common             6208  1 bttv
btcx_risc               4744  1 bttv
i2c_core               23684  5 w83781d,i2c_sensor,tuner,bttv,i2c_algo_bit
videodev               10240  1 bttv
b44                    22532  0
frost root # modprobe uhci_hcd
frost root # lsmod
Module                  Size  Used by
uhci_hcd               32080  0
ehci_hcd               26756  0
nvidia               1700460  10
snd_bt87x              13636  1
snd_via82xx            25408  2
w83781d                34944  0
i2c_sensor              2944  1 w83781d
tuner                  17356  0
bttv                  148588  0
video_buf              21252  1 bttv
i2c_algo_bit            9288  1 bttv
v4l2_common             6208  1 bttv
btcx_risc               4744  1 bttv
i2c_core               23684  5 w83781d,i2c_sensor,tuner,bttv,i2c_algo_bit
videodev               10240  1 bttv
b44                    22532  0
frost root # dmesg
...
ehci_hcd 0000:00:10.4: VIA Technologies, Inc. USB 2.0
ehci_hcd 0000:00:10.4: irq 217, pci mem d1949d00
ehci_hcd 0000:00:10.4: new USB bus registered, assigned bus number 1
ehci_hcd 0000:00:10.4: USB 2.0 enabled, EHCI 1.00, driver 2003-Dec-29
hub 1-0:1.0: USB hub found
hub 1-0:1.0: 8 ports detected
USB Universal Host Controller Interface driver v2.2
uhci_hcd 0000:00:10.0: VIA Technologies, Inc. USB
uhci_hcd 0000:00:10.0: irq 217, io base 0000dc00
uhci_hcd 0000:00:10.0: new USB bus registered, assigned bus number 2
hub 2-0:1.0: USB hub found
hub 2-0:1.0: 2 ports detected
uhci_hcd 0000:00:10.1: VIA Technologies, Inc. USB (#2)
uhci_hcd 0000:00:10.1: irq 217, io base 0000e000
uhci_hcd 0000:00:10.1: new USB bus registered, assigned bus number 3
hub 3-0:1.0: USB hub found
hub 3-0:1.0: 2 ports detected
uhci_hcd 0000:00:10.2: VIA Technologies, Inc. USB (#3)
uhci_hcd 0000:00:10.2: irq 217, io base 0000e400
uhci_hcd 0000:00:10.2: new USB bus registered, assigned bus number 4
hub 4-0:1.0: USB hub found
hub 4-0:1.0: 2 ports detected
uhci_hcd 0000:00:10.3: VIA Technologies, Inc. USB (#4)
usb 3-1: new full speed USB device using address 2
uhci_hcd 0000:00:10.3: irq 217, io base 0000e800
uhci_hcd 0000:00:10.3: new USB bus registered, assigned bus number 5
hub 5-0:1.0: USB hub found
hub 5-0:1.0: 2 ports detected
usb 3-1: USB disconnect, address 2
usb 3-1: new full speed USB device using address 3
frost root # /etc/init.d/hotplug restart
 * Stopping input hotplugging...                                            [ ok ]
 * Stopping pci hotplugging...                                              [ ok ]
 * Stopping usb hotplugging...                                              [ ok ]
 * Starting input hotplugging...                                            [ ok ]
 * Starting pci hotplugging...                                              [ ok ]
 * Starting usb hotplugging...                                              [ ok ]
frost root # gphoto2 --auto-detect
Model                          Port
----------------------------------------------------------

So I guess I'm back in square 1... :(
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Multimedia All times are GMT
Goto page 1, 2, 3  Next
Page 1 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