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 12:58:42 +0300

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.

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

Attachment: pgp6D7d7lVqVd.pgp
Description: PGP signature




Archive powered by MHonArc 2.6.24.

Top of Page