Camera does not register properly with udev?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello,

I'm trying to debug an issue with udev not registering my camera properly on Slackware 13.37. When I run udevadm monitor --property, it shows this when I plug in and then unplug the camera:

KERNEL[1319073984.353340] add /devices/pci0000:00/0000:00:13.0/usb5/5-2 (usb)
UDEV_LOG=3
ACTION=add
DEVPATH=/devices/pci0000:00/0000:00:13.0/usb5/5-2
SUBSYSTEM=usb
DEVNAME=bus/usb/005/006
DEVTYPE=usb_device
DEVICE=/proc/bus/usb/005/006
PRODUCT=40a/57b/100
TYPE=0/0/0
BUSNUM=005
DEVNUM=006
SEQNUM=2847
MAJOR=189
MINOR=517

KERNEL[1319073984.355239] add /devices/pci0000:00/0000:00:13.0/usb5/5-2/5-2:1.0 (usb)
UDEV_LOG=3
ACTION=add
DEVPATH=/devices/pci0000:00/0000:00:13.0/usb5/5-2/5-2:1.0
SUBSYSTEM=usb
DEVTYPE=usb_interface
DEVICE=/proc/bus/usb/005/006
PRODUCT=40a/57b/100
TYPE=0/0/0
INTERFACE=6/1/1
MODALIAS=usb:v040Ap057Bd0100dc00dsc00dp00ic06isc01ip01
SEQNUM=2848

KERNEL[1319073984.355300] add /devices/pci0000:00/0000:00:13.0/usb5/5-2/usb_device/usbdev5.6 (usb_device)
UDEV_LOG=3
ACTION=add
DEVPATH=/devices/pci0000:00/0000:00:13.0/usb5/5-2/usb_device/usbdev5.6
SUBSYSTEM=usb_device
DEVNAME=usbdev5.6
SEQNUM=2849
MAJOR=189
MINOR=517

UDEV [1319073984.367351] add /devices/pci0000:00/0000:00:13.0/usb5/5-2 (usb)
UDEV_LOG=3
ACTION=add
DEVPATH=/devices/pci0000:00/0000:00:13.0/usb5/5-2
SUBSYSTEM=usb
DEVNAME=/dev/bus/usb/005/006
DEVTYPE=usb_device
DEVICE=/proc/bus/usb/005/006
PRODUCT=40a/57b/100
TYPE=0/0/0
BUSNUM=005
DEVNUM=006
SEQNUM=2847
ID_VENDOR=Eastman_Kodak_Company
ID_VENDOR_ENC=Eastman\x20Kodak\x20Company
ID_VENDOR_ID=040a
ID_MODEL=KODAK_EasyShare_CX7430_Zoom_Digital_Camera
ID_MODEL_ENC=KODAK\x20EasyShare\x20CX7430\x20Zoom\x20Digital\x20Camera
ID_MODEL_ID=057b
ID_REVISION=0100
ID_SERIAL=Eastman_Kodak_Company_KODAK_EasyShare_CX7430_Zoom_Digital_Camera_KCKCY43014629
ID_SERIAL_SHORT=KCKCY43014629
ID_BUS=usb
ID_USB_INTERFACES=:060101:
ID_GPHOTO2=1
GPHOTO2_DRIVER=PTP
MAJOR=189
MINOR=517
TAGS=:udev-acl:

UDEV [1319073984.372429] add /devices/pci0000:00/0000:00:13.0/usb5/5-2/5-2:1.0 (usb)
UDEV_LOG=3
ACTION=add
DEVPATH=/devices/pci0000:00/0000:00:13.0/usb5/5-2/5-2:1.0
SUBSYSTEM=usb
DEVTYPE=usb_interface
DEVICE=/proc/bus/usb/005/006
PRODUCT=40a/57b/100
TYPE=0/0/0
INTERFACE=6/1/1
MODALIAS=usb:v040Ap057Bd0100dc00dsc00dp00ic06isc01ip01
SEQNUM=2848

UDEV [1319073984.379762] add /devices/pci0000:00/0000:00:13.0/usb5/5-2/usb_device/usbdev5.6 (usb_device)
UDEV_LOG=3
ACTION=add
DEVPATH=/devices/pci0000:00/0000:00:13.0/usb5/5-2/usb_device/usbdev5.6
SUBSYSTEM=usb_device
DEVNAME=/dev/usbdev5.6
SEQNUM=2849
MAJOR=189
MINOR=517

KERNEL[1319073988.760514] remove /devices/pci0000:00/0000:00:13.0/usb5/5-2/5-2:1.0 (usb)
UDEV_LOG=3
ACTION=remove
DEVPATH=/devices/pci0000:00/0000:00:13.0/usb5/5-2/5-2:1.0
SUBSYSTEM=usb
DEVTYPE=usb_interface
DEVICE=/proc/bus/usb/005/006
PRODUCT=40a/57b/100
TYPE=0/0/0
INTERFACE=6/1/1
MODALIAS=usb:v040Ap057Bd0100dc00dsc00dp00ic06isc01ip01
SEQNUM=2850

KERNEL[1319073988.760603] remove /devices/pci0000:00/0000:00:13.0/usb5/5-2/usb_device/usbdev5.6 (usb_device)
UDEV_LOG=3
ACTION=remove
DEVPATH=/devices/pci0000:00/0000:00:13.0/usb5/5-2/usb_device/usbdev5.6
SUBSYSTEM=usb_device
DEVNAME=usbdev5.6
SEQNUM=2851
MAJOR=189
MINOR=517

KERNEL[1319073988.760624] remove /devices/pci0000:00/0000:00:13.0/usb5/5-2 (usb)
UDEV_LOG=3
ACTION=remove
DEVPATH=/devices/pci0000:00/0000:00:13.0/usb5/5-2
SUBSYSTEM=usb
DEVNAME=bus/usb/005/006
DEVTYPE=usb_device
DEVICE=/proc/bus/usb/005/006
PRODUCT=40a/57b/100
TYPE=0/0/0
BUSNUM=005
DEVNUM=006
SEQNUM=2852
MAJOR=189
MINOR=517

UDEV [1319073988.760792] remove /devices/pci0000:00/0000:00:13.0/usb5/5-2/5-2:1.0 (usb)
UDEV_LOG=3
ACTION=remove
DEVPATH=/devices/pci0000:00/0000:00:13.0/usb5/5-2/5-2:1.0
SUBSYSTEM=usb
DEVTYPE=usb_interface
DEVICE=/proc/bus/usb/005/006
PRODUCT=40a/57b/100
TYPE=0/0/0
INTERFACE=6/1/1
MODALIAS=usb:v040Ap057Bd0100dc00dsc00dp00ic06isc01ip01
SEQNUM=2850

UDEV [1319073988.766314] remove /devices/pci0000:00/0000:00:13.0/usb5/5-2/usb_device/usbdev5.6 (usb_device)
UDEV_LOG=3
ACTION=remove
DEVPATH=/devices/pci0000:00/0000:00:13.0/usb5/5-2/usb_device/usbdev5.6
SUBSYSTEM=usb_device
DEVNAME=/dev/usbdev5.6
SEQNUM=2851
MAJOR=189
MINOR=517

UDEV [1319073988.772662] remove /devices/pci0000:00/0000:00:13.0/usb5/5-2 (usb)
UDEV_LOG=3
ACTION=remove
DEVPATH=/devices/pci0000:00/0000:00:13.0/usb5/5-2
SUBSYSTEM=usb
DEVNAME=/dev/bus/usb/005/006
DEVTYPE=usb_device
DEVICE=/proc/bus/usb/005/006
PRODUCT=40a/57b/100
TYPE=0/0/0
BUSNUM=005
DEVNUM=006
SEQNUM=2852
MAJOR=189
MINOR=517

The fourth entry is the one that is the most descriptive and is the one I want (I'm trying to get my camera working with Shotwell--a photo manager). However, Shotwell's call to gudev never returns this device, and I'm starting to suspect it's a problem with the way udev is set up. When I unplug the camera, that same device (that has ID_VENDOR, ID_GPHOTO2 and GPHOTO2_DRIVER) is not listed. However, there are 6 devices added and 6 removed, yet none of the ones removed have ID_VENDOR set, etc. On Ubuntu, unplugging the camera, shows the same device when it's removed, so I'm guessing it's something Slackware is doing with udev. It's almost like it's clearing out ID_VENDOR and so right after it's added..? This is way out of my comfort zone, so forgive me if some of what I say doesn't make sense... but any ideas what could be causing this?

Thank you,
Brad
--
To unsubscribe from this list: send the line "unsubscribe linux-hotplug" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux Kernel]     [Linux DVB]     [Asterisk Internet PBX]     [DCCP]     [Netdev]     [X.org]     [Util Linux NG]     [Fedora Women]     [ALSA Devel]     [Linux USB]

  Powered by Linux