Bug#334068: udev and Logitech mouse applet
reassign 334068 libsane thanks On Oct 17, Christopher Martin [EMAIL PROTECTED] wrote: On October 17, 2005 13:03, Marco d'Itri wrote: The problem seems to be that udev runs lmctl before the usbfs entry corresponding to your mouse has been created under /proc/bus/usb. The By design. The correct rule would be: BUS==usb, SYSFS{idVendor}==046d, SYSFS{idProduct}==c025, \ RUN+=/usr/bin/lmctl -8 --sms I doubt that switching from PROGRAM= to RUN+= will make a difference, as it certainly didn't resolve the issue with kdebase. Perhaps you're not running OK, as it turns out I was half wrong: /proc/bus/ is not syncronous, so scripts still need to wait (they may use the wait_for_file function from /lib/hotplug/hotplug.functions). OTOH, RUN is still the correct keyword to use, because PROGRAM has different semantics (and you must always use += unless you know better). This looks like the same issue of #334068, which I am reassigning for libsane (I'm sorry for not getting it right the first time). a modular kernel? I did notice that a homebrew everything-built-in kernel did not suffer from this problem. I just took it for granted that the udev/hotplug maintainer would be testing against a stock Debian kernel, or at least something similarly modularized. I need newer kernels before a debian package is available, and anyway I will not use debian kernels again as long as they will break drivers by removing uploadable firmwares. worked fine when hotplugged later. The wait loop fixed it. A rule like: SYSFS{idProduct}==0039, SYSFS{idVendor}==045e, MODE=660, GROUP=plugdev ...changes the permissions of /dev/input/ nodes instead of usbfs entries, which isn't very helpful in this case. Because the rule matches on many events, among them BUS==usb. The correct rule to change the /dev/bus/usb/ device permissions would be: SUBSYSTEM==usb_device, SYSFS{idProduct}==0039, SYSFS{idVendor}==045e, \ GROUP=plugdev (660 is the default.) -- ciao, Marco signature.asc Description: Digital signature
Bug#334068: udev and Logitech mouse applet
[EMAIL PROTECTED] (Marco d'Itri) wrote: Hi, This looks like the same issue of #334068, which I am reassigning for libsane (I'm sorry for not getting it right the first time). So, I'm a bit lost here. What is the problem ? Coldplugging not running the old hotplug scripts ? I don't want to use a RUN rule in the rules file to take care of /proc/bus/usb. I want RUN rules to be available to the user to run a custom script. Colplugging should work with the old hotplug scripts, just as hotplugging does. And yet again, this whole hotplug/udev stuff is a complete obscure mess that nobody understands. Grmpf. JB. -- Julien BLACHE [EMAIL PROTECTED] | Debian, because code matters more Debian GNU/Linux Developer| http://www.debian.org Public key available on http://www.jblache.org - KeyID: F5D6 5169 GPG Fingerprint : 935A 79F1 C8B3 3521 FD62 7CC7 CD61 4FD7 F5D6 5169 -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Bug#334068: udev and Logitech mouse applet
On Oct 18, Julien BLACHE [EMAIL PROTECTED] wrote: This looks like the same issue of #334068, which I am reassigning for libsane (I'm sorry for not getting it right the first time). So, I'm a bit lost here. What is the problem ? Coldplugging not running the old hotplug scripts ? No, that there is a race between RUN rules and the time /proc/bus/usb/ files are created, so scripts tend to fail at boot time. I don't want to use a RUN rule in the rules file to take care of /proc/bus/usb. If you want to support /proc/bus/usb/ until /dev/bus/usb/ will become available, you need to. I want RUN rules to be available to the user to run a custom script. They are, as long as both you and users use RUN+= instead of RUN=. Colplugging should work with the old hotplug scripts, just as hotplugging does. Actually udev better supports coldplugging than hotplug, which does not run the hotplug.d/ scripts. -- ciao, Marco signature.asc Description: Digital signature
Bug#334068: udev and Logitech mouse applet
[EMAIL PROTECTED] (Marco d'Itri) wrote: Colplugging should work with the old hotplug scripts, just as hotplugging does. Actually udev better supports coldplugging than hotplug, which does not run the hotplug.d/ scripts. OK. Will be fixed by a new revision before next week (being a bit busy at the moment). Thanks for the clarification, JB. -- Julien BLACHE - Debian GNU/Linux Developer - [EMAIL PROTECTED] Public key available on http://www.jblache.org - KeyID: F5D6 5169 GPG Fingerprint : 935A 79F1 C8B3 3521 FD62 7CC7 CD61 4FD7 F5D6 5169 -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]