View Single Post

   
  #4 (permalink)  
Old 02-21-2008, 11:54 AM
ken scharf
 
Posts: n/a
Default Re: usb printing problem

ken scharf wrote:
> ken scharf wrote:
>> I have two usb printers, an epson r300 and an HP LJ1320.
>> I first configured the epson and later added the HP.
>> The epson was configured as usb/lp0 and the HP as usb/lp1.
>> Now, unless I turn the epson on first and then power up the HP it
>> appears that cups can't find the printers. IE: only powering up the HP
>> and it isn't lp1 anymore. Also if I power them up in reverse order, I'd
>> expect chaos. Maybe someone knows how to configure udev to fix this
>> automagicly?

>
>
> I added the following lines /etc/udev/rules.d/10-local.rules:
>
> BUS=="usb", SYSFS{manufacturer}=="EPSON", NAME="usb/lp0"
> BUS=="usb", SYSFS{manufacturer}=="Hewlett-Packard", SYSFS{product}=="hp
> LaserJet 1320 series", NAME="usb/lp1"
>
> Now I'm forcing the printers to specific device names.
>
> I suspect there might be a cleaner way, perhaps with a simlink, but I'm
> not sure that the kde printer config would allow using other than the
> 'offical' device names. Also I didn't fully qualify the Epson printer,
> but I currently have no other devices made by Epson on my system.

Well it almost, but doesn't work.
If I DON'T modify the rules I get in response to "ls -l /dev/usb"

crw-rw---- 1 root lp 180, 1 Nov 23 16:59 lp0
crw-rw---- 1 root lp 180, 0 Nov 23 16:59 lp1

If I add my two rules I get this:

crw-rw---- 1 root lp 21, 1 Nov 23 16:59 lp0
crw-rw---- 1 root lp 21, 0 Nov 23 16:59 lp1

The latter DOESN'T work, nothing prints.
The former does print.

I added GROUP="lp" to the rules and nothing changed.
So I've missed something. Anybody have any ideas?
Reply With Quote