Skip to Content.
Sympa Menu

sm-discuss - Re: [SM-Discuss] udev, usb and cups

sm-discuss AT lists.ibiblio.org

Subject: Public SourceMage Discussion List

List archive

Chronological Thread  
  • From: Juuso Alasuutari <iuso AT sourcemage.org>
  • To: sm-discuss AT lists.ibiblio.org
  • Subject: Re: [SM-Discuss] udev, usb and cups
  • Date: Wed, 10 May 2006 13:11:42 +0300

On Wednesday 10 May 2006 13:11, Flavien Bridault wrote:
> Le mercredi 10 mai 2006 à 12:58 +0300, Juuso Alasuutari a écrit :
<clip>
> > It could be that the "normal" printer rule is being used before the usb
> > one. Here's what we have in /etc/udev/rules.d/50-default.rules now:
> >
> > # printer
> > KERNEL=="lp*", NAME="%k", GROUP="lp", MODE="0660"
> > KERNEL=="irlpt", NAME="%k", GROUP="lp", MODE="0660"
> > KERNEL=="usblp", NAME="%k", GROUP="lp", MODE="0660"
> > KERNEL=="parport*", NAME="%k", GROUP="lp", MODE="0660"
> > BUS=="usb", KERNEL=="lp[0-9]*", NAME="usb/%k", GROUP="lp", MODE="0660"
> >
> > If the problem is what I think it is, moving the last line before the
> > others should cause udev to use it for usb printers and create
> > /dev/usb/lp*. Try it and tell if it works.
>
> Would it not be better to add a BUS field for all these rules to prevent
> those kind of problems ? I suppose this would be BUS=="ide" for lp ?

Well, I'd choose the option involving the least new characters :). Since udev
takes the first rule that matches and stops there, just moving the BUS=="usb"
line should work perfectly.

--
Juuso Alasuutari
[[ Source Mage GNU/Linux ]]

Attachment: pgpYnfeXAIP71.pgp
Description: PGP signature




Archive powered by MHonArc 2.6.24.

Top of Page