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

Re: Programm bei USB (dis)connect starten?



Gruesse!
* Jan Lühr <jluehr@gmx.net> schrieb am [09.01.05 21:42]:

> > Kurz:
> > Du brauchst die VendorID und die ProdID des devices, z.b. über lsusb
> > -v[vv].
> 
> In welchem Paket ist dies?

usbutils

> 
> > In /etc/hotplug/usb erstellst du ein File usbgeraet.usermap (die
> > usermap files Einträge werden in der Doku beschrieben oder du
> > orientierst dich z.B. an der libsane.usermap). 
> 
> Danke. Die habe ich zwar nicht zur Hand, jedoch werde ich morgen mal die Doku 
> fressen.

Klar, die kam ja erst mit dem Sane-Dingsbums.
Hier der relevate Teil (Sorry für überlange Zeilen bzw. verhunzten 
Zeilenumbruch)

# The entries below are used to detect a USB scanner when it's plugged in
# and then run the libusbscanner script to change the ownership and
# permissions on the "device node" used by libusb.
#
# The 0x0003 match flag means the device is matched by its vendor and
# product IDs.
#
# Sample entry (replace 0xVVVV and 0xPPPP with vendor ID and product ID respectively) :
# libusbscanner      0x0003      0xVVVV   0xPPPP    0x0000       0x0000       0x00         0x00            0x00            0x00            0x00               0x00               0x00000000
#
# usb module         match_flags idVendor idProduct bcdDevice_lo bcdDevice_hi bDeviceClass bDeviceSubClass bDeviceProtocol bInterfaceClass bInterfaceSubClass bInterfaceProtocol driver_info
#
 
> Keep smiling
> yanosz

Gruß
    Gerhard



Reply to: