vBulletin Search Engine Optimization
| |||||||
| Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| ||||
| 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? |
| |||
| 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. |
| |||
| On Thursday 23 November 2006 21:07, ken scharf stood up and addressed the masses in /alt.os.linux.gentoo/ as follows...: > 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. I'm still very new to the whole USB and /udev/ thing - I don't use /udev/ on this system and my current distro has problems with USB anyway; in addition, my printer is connected to the parallel port - but from what it looks like to me, you've done this the cleanest way possible. ;-) -- With kind regards, *Aragorn* (registered GNU/Linux user #223157) |
| |||
| 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? |
| |||
| ken scharf wrote: > 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? Actually it's crw-rw---- 1 root lp 180, 0 Nov 23 16:59 lp0 crw-rw---- 1 root lp 180, 1 Nov 23 16:59 lp1 and crw-rw---- 1 root lp 21, 0 Nov 23 16:59 lp0 crw-rw---- 1 root lp 21, 1 Nov 23 16:59 lp1 (bad cut and paste) |
| |||
| ken scharf wrote: > ken scharf wrote: >> 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. Why don't you try hplip? http://hplip.sourceforge.net/support...ces/index.html It worked for my hp (usb) printer. I looked for your lj model and it's supported... Good luck ! |
| |||
| Hal wrote: > ken scharf wrote: >> ken scharf wrote: >>> 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. > Why don't you try hplip? > http://hplip.sourceforge.net/support...ces/index.html > It worked for my hp (usb) printer. > I looked for your lj model and it's supported... > Good luck ! I don't have a driver problem, the standard postscript driver works just fine. My problem is that since I have two usb printers the driver (ANY DRIVER) might have a problem if it is assigned to the wrong device. udev will assign usb devices to /dev/usb/lp# in the order that the devices are powered up in. If you set up the driver with the LJ as lp1 and then power it up first next time it won't work (because it's now lp0 and the driver is looking for lp1!) So, I need to figure out this udev stuff. |
| |||
| ken scharf wrote: >>> 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" > Actually it's > crw-rw---- 1 root lp 180, 0 Nov 23 16:59 lp0 > crw-rw---- 1 root lp 180, 1 Nov 23 16:59 lp1 > > and > crw-rw---- 1 root lp 21, 0 Nov 23 16:59 lp0 > crw-rw---- 1 root lp 21, 1 Nov 23 16:59 lp1 Perhaps a later rule changes the device numbers. Does it help if you append OPTIONS+="last_rule" to your rules? http://www.reactivated.net/writing_u...xample-printer uses a symlink instead of a name change. The KDE printer config has a text field to change the URI of your printer from usb:/dev/usb/lp0 to e.g. usb:/dev/usb/epson, so it should probably work with that symlink. Regards... Michael |
| |||
| On Thu, 23 Nov 2006 15:07:14 -0500, 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. Those rules match the wrong node. They match the printer node when you really want its child, the lp node. Try something like this instead: KERNEL=="lp[0-9]*", BUS="usb", SYSFS{manufacturer}=="Canon", SYSFS{product}=="iP4200", NAME="usb/%k", SYMLINK="canon_ip4200", GROUP="lp" Notice I skip messing about trying to cryptically number lp nodes myself. The 'canon_ip4200' symlink makes plain what it refers to. Lastly, remember to run udevstart to update the configuration before trying the rule out (no need to reboot PC). Hth, -- Ben Measures $email =~ s/is@silly/@/ |
| ||||
| ken scharf wrote: > Hal wrote: >> ken scharf wrote: >>> ken scharf wrote: >>>> 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. >> Why don't you try hplip? >> http://hplip.sourceforge.net/support...ces/index.html >> It worked for my hp (usb) printer. >> I looked for your lj model and it's supported... >> Good luck ! > I don't have a driver problem, the standard postscript driver works just > fine. My problem is that since I have two usb printers the driver > (ANY DRIVER) might have a problem if it is assigned to the wrong device. > udev will assign usb devices to /dev/usb/lp# in the order that the > devices are powered up in. If you set up the driver with the LJ as lp1 > and then power it up first next time it won't work (because it's now lp0 > and the driver is looking for lp1!) So, I need to figure out this udev > stuff. Have you checked the wiki that goes over udev rules on Gentoo's wiki? (URL: http://gentoo-wiki.com/HOWTO_Customizing_UDEV) I would use that to set up the rules you need, and see if you can get your symlinks you want as well. Regards, Alunduil -- Student, B.S. Physics & Computer Science Department of Physics and Astronomy, MSUM Department of Computer Science and Information Services, MSUM www.alunduil.com |