From mboxrd@z Thu Jan 1 00:00:00 1970 From: Moshe Yudkowsky Date: Mon, 10 Apr 2006 19:02:52 +0000 Subject: Re: USB camera not hotplugging because SYSFS{ID_VENDOR} etc. not Message-Id: <443AABDC.6050106@bl.com> List-Id: References: <443A76D5.60208@bl.com> In-Reply-To: <443A76D5.60208@bl.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: linux-hotplug@vger.kernel.org Andrey, Thanks for responding. Andrey Borzenkov wrote: >> libgphoto2.rules: >>> SYSFS{idVendor}="04a9", SYSFS{idProduct}="3051", MODE="0660", >>> GROUP="camera" > > If this is full rule it won't work. That's the full rule. I'm pretty sure it used to work. I wrote: >> I don't have SYSFS{ID_VENDOR} available when >> > the device is plugged in. You wrote: > This does not exist and has never existed. But I see from udevmonitor --env that: > ID_VENDOR=iriver > ID_MODEL=MassStorage_Disc > ID_REVISION01 > ID_SERIAL=iriver_MassStorage_Disc > ID_TYPE=disk > ID_BUS=usb And the rule > SUBSYSTEM="block", ACTION="add", ENV{ID_VENDOR}="iriver", ENV{ID_SERIAL}="iriver_MassStorage_Disc", SYMLINK+="iriver", RUN+="/etc/hotplug/usb/iriver", > ENV{REMOVE_CMD}="/etc/hotplug/usb/iriver remove" does work as expected. Oh, I see. One's ENV and the other is SYSFS. As always, it's impossible to tell from the printout if you don't know the SYSFS variables by heart. And, for the record, I suspect that ID_VENDOR got into the environment via a usb_id() function call -- am I correct? For the camera, I get > PRODUCTJ9/3051/1 And inside the rule for the camera I see SYSFS{idVendor}="04a9", SYSFS{idProduct}="3051". It looks to me as if they are very similar. Has there been a recent change of some sort in udev that made idVendor stop working? Or did this never work, and I am remembering wrong, and it's time to write ghoto2 and ask them to update their rules? -- Moshe Yudkowsky work: http://www.Disaggregate.com book: http://www.PebbleAndAvalanche.com ------------------------------------------------------- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid0944&bid$1720&dat1642 _______________________________________________ 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