From mboxrd@z Thu Jan 1 00:00:00 1970 From: Evangelos Foutras Date: Thu, 15 Oct 2009 14:33:50 +0000 Subject: Re: group is not set properly for usb printer for older kernels Message-Id: <4AD732CE.90607@gmail.com> List-Id: References: <20091008191201.19276c15@workstation64.home> In-Reply-To: <20091008191201.19276c15@workstation64.home> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable To: linux-hotplug@vger.kernel.org Kay Sievers wrote: > On Tue, Oct 13, 2009 at 05:30, Evangelos Foutras wr= ote: > =20 >> I set udev's loglevel to "debug" and saw something interesting in my logs >> [1] after turning on the printer. Specifically, the following line appea= rs >> to be of interest: >> >> Oct 12 19:38:26 foutboxd udevd-work[7541]: '/lib/udev/usb_id' (stderr) >> 'error opening USB device 'descriptors' file' >> >> Maybe the 'descriptors' file hasn't been created when the udev rules fir= e? I >> think this would explain why subsequent calls to udevadm test/trigger ap= ply >> the correct group to the printer. >> =20 > > Yes, that might be. There have been numerous fixes to recent kernel > versions to address issues like this. You could try to set up rules > with WAIT_FOR_SYSFS=3D"..." to possibly work around that on older kernel > versions. > =20 I tried your suggestion and placing WAIT_FOR_SYSFS=3D"descriptors" before=20 the IMPORT does produce the desired behavior (awesome!). If it's not=20 clear, I'm referring to line 69 in 50-udev-default.rules [1]. Any chance of applying this modification to udev.git? :) ---- [1]=20 http://git.kernel.org/?p=3Dlinux/hotplug/udev.git;a=3Dblob;f=3Drules/rules.= d/50-udev-default.rules;h=A79073b90e6f2d2e1c47d0daf02345f7726b3193;hb=3DHEA= D#l69