linux-hotplug.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Brad Hermanson <apeitheo@gmail.com>
To: linux-hotplug@vger.kernel.org
Subject: Camera does not register properly with udev?
Date: Thu, 20 Oct 2011 01:30:05 +0000	[thread overview]
Message-ID: <4E9F799D.5040307@gmail.com> (raw)

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­d
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@a/57b/100
TYPE=0/0/0
BUSNUM\05
DEVNUM\06
SEQNUM(47
MAJOR\x189
MINORQ7

KERNEL[1319073984.355239] add      
/devices/pci0000:00/0000:00:13.0/usb5/5-2/5-2:1.0 (usb)
UDEV_LOG=3
ACTION­d
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@a/57b/100
TYPE=0/0/0
INTERFACE=6/1/1
MODALIAS=usb:v040Ap057Bd0100dc00dsc00dp00ic06isc01ip01
SEQNUM(48

KERNEL[1319073984.355300] add      
/devices/pci0000:00/0000:00:13.0/usb5/5-2/usb_device/usbdev5.6 (usb_device)
UDEV_LOG=3
ACTION­d
DEVPATH=/devices/pci0000:00/0000:00:13.0/usb5/5-2/usb_device/usbdev5.6
SUBSYSTEM=usb_device
DEVNAME=usbdev5.6
SEQNUM(49
MAJOR\x189
MINORQ7

UDEV  [1319073984.367351] add      
/devices/pci0000:00/0000:00:13.0/usb5/5-2 (usb)
UDEV_LOG=3
ACTION­d
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@a/57b/100
TYPE=0/0/0
BUSNUM\05
DEVNUM\06
SEQNUM(47
ID_VENDORêstman_Kodak_Company
ID_VENDOR_ENCêstman\x20Kodak\x20Company
ID_VENDOR_ID\x040a
ID_MODEL=KODAK_EasyShare_CX7430_Zoom_Digital_Camera
ID_MODEL_ENC=KODAK\x20EasyShare\x20CX7430\x20Zoom\x20Digital\x20Camera
ID_MODEL_ID\x057b
ID_REVISION\x0100
ID_SERIALêstman_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\x189
MINORQ7
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­d
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@a/57b/100
TYPE=0/0/0
INTERFACE=6/1/1
MODALIAS=usb:v040Ap057Bd0100dc00dsc00dp00ic06isc01ip01
SEQNUM(48

UDEV  [1319073984.379762] add      
/devices/pci0000:00/0000:00:13.0/usb5/5-2/usb_device/usbdev5.6 (usb_device)
UDEV_LOG=3
ACTION­d
DEVPATH=/devices/pci0000:00/0000:00:13.0/usb5/5-2/usb_device/usbdev5.6
SUBSYSTEM=usb_device
DEVNAME=/dev/usbdev5.6
SEQNUM(49
MAJOR\x189
MINORQ7

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@a/57b/100
TYPE=0/0/0
INTERFACE=6/1/1
MODALIAS=usb:v040Ap057Bd0100dc00dsc00dp00ic06isc01ip01
SEQNUM(50

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(51
MAJOR\x189
MINORQ7

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@a/57b/100
TYPE=0/0/0
BUSNUM\05
DEVNUM\06
SEQNUM(52
MAJOR\x189
MINORQ7

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@a/57b/100
TYPE=0/0/0
INTERFACE=6/1/1
MODALIAS=usb:v040Ap057Bd0100dc00dsc00dp00ic06isc01ip01
SEQNUM(50

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(51
MAJOR\x189
MINORQ7

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@a/57b/100
TYPE=0/0/0
BUSNUM\05
DEVNUM\06
SEQNUM(52
MAJOR\x189
MINORQ7

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

             reply	other threads:[~2011-10-20  1:30 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-10-20  1:30 Brad Hermanson [this message]
2011-10-21  5:28 ` Camera does not register properly with udev? Brad Hermanson

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4E9F799D.5040307@gmail.com \
    --to=apeitheo@gmail.com \
    --cc=linux-hotplug@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).