On Tue, 2015-12-15 at 16:14 -0800, Geoffrey Leach wrote:
On 12/14/2015 11:58:53 PM, Berend De Schouwer wrote:
> On Mon, 2015-12-14 at 11:46 -0800, Geoffrey Leach wrote:
> > On 12/13/2015 10:40:10 PM, Berend De Schouwer wrote:
> > >
> > > Will "echo -en 'hello world\n\f' > /dev/usb/lp0"
print? This
> > > should
> > > print the text, with a form feed. I assume it will block (wait
> > > forever)
> >
> > Submitted by root, the command prints fine. dev/usb/lp0 is
> > character
> > special (180/0)
>
>
> OK, so does Cups print to usb://, parallel:// or file:// ? What's
> the
> device URI?
>
> You can get the device URI using 'lpstat -t' or using
> 'http://localhost
> :631/'
% lpstat -t
scheduler is running
system default destination: HP_LaserJet_1300
device for HP_LaserJet_1300: usb://HP/LaserJet%201300
You should note if Cups ever disables your printer automatically. In
that case you want to set the option ErrorPolicy to retry-job. It
means that if the printer times out (bad cable) cups will try again,
instead of just halting permanently. You should see 'enabled' or
'disabled' somewhere in 'lpstat -t'
If you have tried a different cable, you can try a different URI:
'lpadmin -p HP_LaserJet_1300 -v parallel://dev/usb/lp0'. The point is to just try
a different protocol, and hopefully different error tolerances.
Don't use parallel: or file: if you have more than one USB printer.
The print jobs can end up on the wrong printer.