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: Flavien Bridault <vlaaad AT sourcemage.org>
  • To: sm-discuss AT lists.ibiblio.org
  • Subject: Re: [SM-Discuss] udev, usb and cups
  • Date: Wed, 10 May 2006 12:11:31 +0200

Le mercredi 10 mai 2006 à 12:58 +0300, Juuso Alasuutari a écrit :
> On Wednesday 10 May 2006 10:54, Treeve Jelbert wrote:
> > I am using udev-091 with linux-2.6.16.14 using only the rules from the
> > udev
> > spell
> >
> >
> > I have 2 usb printers which are identified as /dev/lp0 and /dev/lp1.
> > There
> > are no parallel port devices.
> >
> > The latest version of cups (1.2.0) does automatic printer detection and
> > considers these devices as parallel LPT devices.
> >
> > New Printers Found:
> > EPSON Stylus Photo R800 (EPSON Stylus Photo R800 LPT #2
> >
> > It gets rather confusing when usb://EPSON/Stylus%20Photo%20R800 does not
> > work but parallel:/dev/lp1 does.
> >
> > In the past there were /dev/usblp* or /dev/usb/lp* nodes
>
> 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 ?
--
Flavien Bridault

Disk, Graphics, Graphics-libs sections Guru
Source Mage GNU/Linux - http://www.sourcemage.org

irc: vlaaad
jabber: vlaaad AT amessage.be

Attachment: signature.asc
Description: Ceci est une partie de message numériquement signée




Archive powered by MHonArc 2.6.24.

Top of Page