From mboxrd@z Thu Jan 1 00:00:00 1970 From: Kay Sievers Date: Sat, 11 Dec 2004 14:26:13 +0000 Subject: Re: usb pen usb.usermap problem Message-Id: <1102775173.9126.24.camel@localhost.localdomain> List-Id: References: <20041209073912.GB7187@alea> In-Reply-To: <20041209073912.GB7187@alea> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: linux-hotplug@vger.kernel.org On Thu, 2004-12-09 at 14:10 +0100, hy2 wrote: > > usb-stylo != usb-stilo > > Spelling error? > language error, i'm italian :) :) > > > i don't know how to set the 1th field (match_flags) but about > > > the 2th end 3th i'm sure they are right. > > Look at /etc/hotplug/usb.agent: > yes, hight bash scripting. > > i need to match vendor && product so i changed match_flags to > 0x0003 (right?) and i have corrected the script name. Seems right. > but if.. > # lsusb > Bus 003 Device 005: ID 0ea0:6803 Ours Technology, Inc. OTI-6803 Flash Disk > > is the target device plugged-in. > why the script /etc/hotplug/usb/usb-stylo is still ignored? Is the script executable? Does it run if you call it from the commandline? > which kind of test can i perform to understand where my configuration fails? Just uncomment: # DEBUG=yes; export DEBUG in /etc/hotplug/hotplug.functions. Here is my test. Works by calling "my-mouse" which just logs the env: default.hotplug[11643]: invoke /etc/hotplug/usb.agent () usb.agent[11643]: Setup my-mouse 0x06 0x06 for USB product 46d/c03e/2000 usb.agent[11643]: Module setup my-mouse for USB product 46d/c03e/2000 logger: SUBSYSTEM=usb WORKS=1 DEVPATH=/devices/pci0000:00/0000:00:1d.1/usb3/3-2/3-2:1.0 ... Kay ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://productguide.itmanagersjournal.com/ _______________________________________________ Linux-hotplug-devel mailing list http://linux-hotplug.sourceforge.net Linux-hotplug-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel