udev - detecting plugged in usb device.


Results 1 to 5 of 5

Thread: udev - detecting plugged in usb device.

  1. #1
    Join Date
    Nov 2003
    Posts
    217

    udev - detecting plugged in usb device.

    How can I have something happen when I plug a USB device in? A camera or mp3 player for example. I am using Kernel 2.6 and .

  2. #2
    Join Date
    Jul 2002
    Location
    Vladivostok, Russia
    Posts
    9,053
    Have you tried a reboot after plugging in the device to see if it has been detected?
    "I was pulled over for speeding today. The officer said, "Don't you know
    the speed limit is 55 miles an hour?" And I said, "Yes, but I wasn't going
    to be out that long."

    How To Ask Questions The Smart Way
    COME VISIT ME IN RUSSIA NOW!!

  3. #3
    Join Date
    Mar 2002
    Location
    Alton, Illinois, USA
    Posts
    1,126
    take a look in /var/log/dmesg ... you should see some stuff there when you plug in a device (tail -f /var/log/dmesg)

    also you need usb compiled in your kernel...
    "You are not beaten until you admit it." --George S. Patton

    "Reading and learning, it's what linux users do"
    "Double clicking" doesn't work on Linux

    G4L | ZSH - The Z Shell

    Apple OS X, FreeBSD, and Smoothwall

  4. #4
    Join Date
    Nov 2003
    Posts
    217
    No. The device HAS been detected. I can use it. I am using udev and the hardware works fine. What I am asking for is some sort of notification, "run app when udev rule A is matched", so that my picture browser opens up automatically when I plug my camera in. Is that possible?

  5. #5
    Join Date
    Jul 2002
    Location
    Vladivostok, Russia
    Posts
    9,053
    This should answer most of your questions(other links included).......
    http://www.kernel.org/pub/linux/util...tplug/udev-FAQ
    "I was pulled over for speeding today. The officer said, "Don't you know
    the speed limit is 55 miles an hour?" And I said, "Yes, but I wasn't going
    to be out that long."

    How To Ask Questions The Smart Way
    COME VISIT ME IN RUSSIA NOW!!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •