HP LaserJet Problem

classic Classic list List threaded Threaded
6 messages Options
Reply | Threaded
Open this post in threaded view
|

HP LaserJet Problem

bluesun08
Hi,

i connected my HP LaserJet 1320 to a USB-Port. The message is:

ulpt0 at uhub1
openbsd /bsd:  port 4 configuration 1 interface 0 "Hewlett-Packard hp LaserJet 1320 series" rev 1.10/1.00 addr 4
openbsd /bsd: ulpt0: using bi-directional mode

After the command "textfile" > /dev/ulpt0
i get the message:

cannot create /dev/ulpt0: Device busy

The printer don't print. What goes wrong here?

Regards Alex
Reply | Threaded
Open this post in threaded view
|

Re: HP LaserJet Problem

Stefan Sperling-5
On Tue, Dec 01, 2015 at 07:37:05AM -0700, bluesun08 wrote:

> Hi,
>
> i connected my HP LaserJet 1320 to a USB-Port. The message is:
>
> ulpt0 at uhub1
> openbsd /bsd:  port 4 configuration 1 interface 0 "Hewlett-Packard hp
> LaserJet 1320 series" rev 1.10/1.00 addr 4
> openbsd /bsd: ulpt0: using bi-directional mode
>
> After the command "textfile" > /dev/ulpt0
> i get the message:
>
> cannot create /dev/ulpt0: Device busy
>
> The printer don't print. What goes wrong here?
>
> Regards Alex

Some HP LaserJet printers need firmware. See the ulpt(4) man page.
Your model is not listed there.

Does your printer need firmware?

Reply | Threaded
Open this post in threaded view
|

Re: HP LaserJet Problem

Stefan Sperling-5
On Tue, Dec 01, 2015 at 05:12:26PM +0100, Stefan Sperling wrote:

> On Tue, Dec 01, 2015 at 07:37:05AM -0700, bluesun08 wrote:
> > cannot create /dev/ulpt0: Device busy
> >
> > The printer don't print. What goes wrong here?
> >
> > Regards Alex
>
> Some HP LaserJet printers need firmware. See the ulpt(4) man page.
> Your model is not listed there.
>
> Does your printer need firmware?

It's also possible that another program has already opened the ultp0 device.

Reply | Threaded
Open this post in threaded view
|

Re: HP LaserJet Problem

bluesun08
In reply to this post by Stefan Sperling-5
hmm, the "device busy" message is gone.
But now there is a new message:

# ./testfile > /dev/ulpt0
ksh: ./testfile: cannot execute - Permission denied

So what permissions fail?
Reply | Threaded
Open this post in threaded view
|

Re: HP LaserJet Problem

Richard Toohey
On 12/05/15 07:33, bluesun08 wrote:
> hmm, the "device busy" message is gone.
> But now there is a new message:
>
> # ./testfile > /dev/ulpt0
> ksh: ./testfile: cannot execute - Permission denied
>
> So what permissions fail?
You don't have execute permissions on testfile?

$ touch testfile
$ ./testfile
ksh: ./testfile: cannot execute - Permission denied

>
>
>
>
> --
> View this message in context: http://openbsd-archive.7691.n7.nabble.com/HP-LaserJet-Problem-tp284216p284602.html
> Sent from the openbsd user - misc mailing list archive at Nabble.com.

Reply | Threaded
Open this post in threaded view
|

Re: HP LaserJet Problem

Ryan Freeman
In reply to this post by bluesun08
On Fri, Dec 04, 2015 at 11:33:20AM -0700, bluesun08 wrote:
> hmm, the "device busy" message is gone.
> But now there is a new message:
>
> # ./testfile > /dev/ulpt0
> ksh: ./testfile: cannot execute - Permission denied
>
> So what permissions fail?

unless 'testfile' is a script set to output something, that won't work.
if its just a text file, try this:

# cat testfile > /dev/ulpt0

>
>
>
>
> --
> View this message in context: http://openbsd-archive.7691.n7.nabble.com/HP-LaserJet-Problem-tp284216p284602.html
> Sent from the openbsd user - misc mailing list archive at Nabble.com.