usb/cups printing difficulties
Does anyone know why I sometimes get the status: "Unable to open USB port device file: No such device" This is the completer report: Description: Hewlett-Packard DeskJet 895C Location: First USB port (/dev/usblp0) Printer State: idle, accepting jobs. "Unable to open USB port device file: No such device" Device URI: usb:/dev/usblp0 I've been to print to the printer, but it stopped. I did not try to reboot to see if I get it to print again. The above report comes from the cups web admin page (localhost:631). Restarting the usbmgr does not help either. Any tricks? Should I go back using lpr, or just use the parallel port of the printer? -- Richard Bos For those without home the journey is endless
- Can you still see the printer with 'usbview' or from KDE's Control Centre ? - What happens if you power cycle the printer ? - Is the cupsd daemon still running ? I would be surprised if CUPS was the culprit here. Try bypassing it and writing to the printer directly with this: $ cd /usr/share/ghostscript/5.50/examples $ cat tiger.ps | gs -q -sDEVICE=hpijs -sDeviceName=DJ9xx \ -r300x300 -sPAPERSIZE=a4 -dNOPAUSE -dSAFER \ -sOutputFile=- - > /dev/usblp0 That works for me on an OfficeJet K60, with the exception that I don't write to /dev/usblp0 because the the OfficeJet needs extra (hpoj) software to handle its OfficeJet protocols over usb. But in theory it should work for you too as the DeskJet 895C uses the same print driver ; unless your usb is screwed of cause. Other than that I'm finding that CUPS is handling things brilliantly. I wouldn't want to give it up either because it integrates so well with KDE. John On Sunday 28 October 2001 10:46 pm, Richard Bos wrote:
Does anyone know why I sometimes get the status: "Unable to open USB port device file: No such device"
This is the completer report: Description: Hewlett-Packard DeskJet 895C Location: First USB port (/dev/usblp0) Printer State: idle, accepting jobs. "Unable to open USB port device file: No such device" Device URI: usb:/dev/usblp0
I've been to print to the printer, but it stopped. I did not try to reboot to see if I get it to print again. The above report comes from the cups web admin page (localhost:631). Restarting the usbmgr does not help either.
Any tricks? Should I go back using lpr, or just use the parallel port of the printer?
On Sunday 28 October 2001 16:46, Richard Bos wrote:
Does anyone know why I sometimes get the status: "Unable to open USB port device file: No such device"
This is the completer report: Description: Hewlett-Packard DeskJet 895C Location: First USB port (/dev/usblp0) Printer State: idle, accepting jobs. "Unable to open USB port device file: No such device" Device URI: usb:/dev/usblp0
I've been to print to the printer, but it stopped. I did not try to reboot to see if I get it to print again. The above report comes from the cups web admin page (localhost:631). Restarting the usbmgr does not help either.
Any tricks? Should I go back using lpr, or just use the parallel port of the printer?
I had a similar problem while attempting to setup a Samsung ML4500, which turned out to be an unsupported GDI printer. When I ran YaST2 to setup CUPS, YaST2 always removed my lp driver (which was setup using "lp parport=0") and prevented me from printing. When I opened a terminal and modprobed again, lp would appear again. Here is how my boot.local is now. Before, the last line was before the imm command, not after it. Now the printer and the 250MB zip drive both work ok on my single parallel port. /sbin/modprobe parport /sbin/modprobe parport_pc /sbin/modprobe parport_probe /sbin/modprobe imm /sbin/modprobe sg /sbin/modprobe sd_mod /opt/oss/soundon /usr/sbin/rcpostgresql start /sbin/modprobe lp parport=0 JLK
Try changing the URI to usb:/dev/usb/lp0 and check that ls -als /dev/usb/lp0 gives 0 crw-rw---- 1 root lp 180, 0 Sep 24 02:55 /dev/usb/lp0 The 180 and 0 matter. JDL Richard Bos wrote:
Does anyone know why I sometimes get the status: "Unable to open USB port device file: No such device"
This is the completer report: Description: Hewlett-Packard DeskJet 895C Location: First USB port (/dev/usblp0) Printer State: idle, accepting jobs. "Unable to open USB port device file: No such device" Device URI: usb:/dev/usblp0
Thank you all (for now), it gives a lot food for thought (practise ;) Op maandag 29 oktober 2001 08:22, schreef je:
Try changing the URI to usb:/dev/usb/lp0 and check that ls -als /dev/usb/lp0 gives
0 crw-rw---- 1 root lp 180, 0 Sep 24 02:55 /dev/usb/lp0
this is interesting both uri's exist: richard@dar:/dev > ls -l usblp0 crw-rw---- 1 root lp 180, 0 May 21 14:21 usblp0 richard@dar:/dev > cd usb richard@dar:/dev/usb > ls -l lp0 crw-rw---- 1 root lp 180, 0 May 21 14:21 lp0
The 180 and 0 matter.
They don't seem to be linked. How and where can I change the URI? I installed the printer using yast2... Are /dev/usblp0 and /dev/usb/lp0 different devices?
JDL
Richard Bos wrote:
Does anyone know why I sometimes get the status: "Unable to open USB port device file: No such device"
This is the completer report: Description: Hewlett-Packard DeskJet 895C Location: First USB port (/dev/usblp0) Printer State: idle, accepting jobs. "Unable to open USB port device file: No such device" Device URI: usb:/dev/usblp0
-- Richard Bos For those without home the journey is endless
participants (4)
-
jk05308
-
John Lamb
-
John McNulty
-
Richard Bos