linux-hotplug.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Evangelos Foutras <foutrelis@gmail.com>
To: linux-hotplug@vger.kernel.org
Subject: Re: group is not set properly for usb printer for older kernels
Date: Tue, 20 Oct 2009 11:59:54 +0000	[thread overview]
Message-ID: <4ADDA63A.1020907@gmail.com> (raw)
In-Reply-To: <20091008191201.19276c15@workstation64.home>

Matthias Schwarzott wrote:
> On Donnerstag, 15. Oktober 2009, Evangelos Foutras wrote:
>   
>> Kay Sievers wrote:
>>     
>>> On Tue, Oct 13, 2009 at 05:30, Evangelos Foutras <foutrelis@gmail.com> 
>>>       
> wrote:
>   
>>>> I set udev's loglevel to "debug" and saw something interesting in my
>>>> logs [1] after turning on the printer. Specifically, the following line
>>>> appears 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
>>>> fire? I think this would explain why subsequent calls to udevadm
>>>> test/trigger apply the correct group to the printer.
>>>>         
>>> 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="..." to possibly work around that on older kernel
>>> versions.
>>>       
>> I tried your suggestion and placing WAIT_FOR_SYSFS="descriptors" before
>> the IMPORT does produce the desired behavior (awesome!). If it's not
>> clear, I'm referring to line 69 in 50-udev-default.rules [1].
>>
>> Any chance of applying this modification to udev.git? :)
>>
>>     
> So adding this rule anywhere before line 69 will help?
> SUBSYSTEM="usb", ENV{DEVTYPE}="usb_device", WAIT_FOR_SYSFS="descriptors"
>
> If yes, I am going to add it to the gentoo ruleset.
>
> Regards
> Matthias
>   

That works too.

  parent reply	other threads:[~2009-10-20 11:59 UTC|newest]

Thread overview: 20+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-10-08 17:12 group is not set properly for usb printer for older kernels Andreas Radke
2009-10-08 17:26 ` Kay Sievers
2009-10-08 18:19 ` Andreas Radke
2009-10-08 18:24 ` Kay Sievers
2009-10-08 18:33 ` Andreas Radke
2009-10-08 19:05 ` Kay Sievers
2009-10-08 20:11 ` Andreas Radke
2009-10-08 22:38 ` Kay Sievers
2009-10-09  3:36 ` Andreas Radke
2009-10-09  9:29 ` Kay Sievers
2009-10-09 10:33 ` Andreas Radke
2009-10-11 18:48 ` Andreas Radke
2009-10-13  3:30 ` Evangelos Foutras
2009-10-13  8:22 ` Kay Sievers
2009-10-15 13:28 ` Andreas Radke
2009-10-15 14:33 ` Evangelos Foutras
2009-10-20  8:05 ` Matthias Schwarzott
2009-10-20 11:59 ` Evangelos Foutras [this message]
2009-10-20 12:07 ` Matthias Schwarzott
2009-10-20 19:11 ` Kay Sievers

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4ADDA63A.1020907@gmail.com \
    --to=foutrelis@gmail.com \
    --cc=linux-hotplug@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).