Usb printer problem after upgrade

2010-08-02 Thread nixlists
Hi.

I upgraded from a few months old -current snapshot to the August 1
i386 snapshot, and now any attempt to write to /dev/ulpt0 (my usb
printer) results in Device busy. Booting with the old kernel - no
problem, I can print. Is this a bug in the new snapshot? Is anyone
else having issues with their USB printers with this snapshot?

Thanks.


ulpt0 at uhub0 port 2 configuration 1 interface 0 Hewlett-Packard hp
LaserJet 2420 rev 2.00/1.00 addr 2
ulpt0: using bi-directional mode



printer problem

2009-08-21 Thread igor denisov

Hi there,

I have a problem with Samsung ML-2015

/etc/printcap

lp|local printer|ML2015:\
:lp=/dev/lpt0:\
:sd=/var/spool/output:\
:lf=/var/log/lpd-errs:

rc.conf

lpd_flags=

ps ax | grep lpd
114 ?? Is 0:00.00 lpd
25472 S+ 0:00.00 grep lpd

Run

#lptest 70 5 | lpr -PML2015

LCD blincks, printer sounds promising and no any output at all.

Regards,
Igor.

--
igor denisov.

--
Internet Explorer 8 - sqjnphrek| hmrepmer`! http://ie.rambler.ru/



Re: printer problem

2009-08-21 Thread Luis Useche
Don't you need a filter for your printer?

In my case, my /etc/printcap looks something like:

lp|home:\
:lp=/dev/ulpt0:\
:af=/etc/foomatic/HP-DeskJet_F4100-hpijs.ppd:\
:if=/usr/local/bin/foomatic-rip:\
:sd=/var/spool/output:\
:lf=/var/log/lpd-errs:

With the foomatic-rip filter.

Luis


2009/8/21 igor denisov denisovigor1...@rambler.ru:
 Hi there,

 I have a problem with Samsung ML-2015

 /etc/printcap

 lp|local printer|ML2015:\
:lp=/dev/lpt0:\
:sd=/var/spool/output:\
:lf=/var/log/lpd-errs:

 rc.conf

 lpd_flags=

 ps ax | grep lpd
 114 ?? Is 0:00.00 lpd
 25472 S+ 0:00.00 grep lpd

 Run

 #lptest 70 5 | lpr -PML2015

 LCD blincks, printer sounds promising and no any output at all.

 Regards,
 Igor.

 --
 igor denisov.

 --
 Internet Explorer 8 - sqjnphrek| hmrepmer`! http://ie.rambler.ru/



Re: printer problem

2009-08-21 Thread Predrag Punosevac
2009/8/21 igor denisov denisovigor1...@rambler.ru:
 Hi there,

 I have a problem with Samsung ML-2015

 /etc/printcap

 lp|local printer|ML2015:\
:lp=/dev/lpt0:\
:sd=/var/spool/output:\
:lf=/var/log/lpd-errs:

 rc.conf

 lpd_flags=

 ps ax | grep lpd
 114 ?? Is 0:00.00 lpd
 25472 S+ 0:00.00 grep lpd

 Run

 #lptest 70 5 | lpr -PML2015

 LCD blincks, printer sounds promising and no any output at all.

 Regards,
 Igor.

 --
 igor denisov.

 --
 Internet Explorer 8 - sqjnphrek| hmrepmer`! http://ie.rambler.ru/

I could not find that particular model in Open Printing database but
most of those cheep Samsung printers require Splix 2.0 driver since
they speak Samsung proprietary language. Splix 2.0 is ported to OpenBSD.
Are you sure that your printer speaks PostScript? You printcap looks 
OK for a PostScript printer. 

Cheers,
Predrag



Re: printer problem

2009-08-21 Thread Predrag Punosevac
igor denisov denisovigor1...@rambler.ru wrote:

 * Predrag Punosevac punoseva...@gmail.com [Fri, 21 Aug 2009 14:02:44 
 -0400]:
  2009/8/21 igor denisov denisovigor1...@rambler.ru:
   Hi there,
  
   I have a problem with Samsung ML-2015
  
   /etc/printcap
  
   lp|local printer|ML2015:\
  :lp=/dev/lpt0:\
  :sd=/var/spool/output:\
  :lf=/var/log/lpd-errs:
  
   rc.conf
  
   lpd_flags=
  
   ps ax | grep lpd
   114 ?? Is 0:00.00 lpd
   25472 S+ 0:00.00 grep lpd
  
   Run
  
   #lptest 70 5 | lpr -PML2015
  
   LCD blincks, printer sounds promising and no any output at all.
  
   Regards,
   Igor.
  
   --
   igor denisov.
  
   --
   Internet Explorer 8 - sqjnphrek| hmrepmer`! http://ie.rambler.ru/
 
  I could not find that particular model in Open Printing database but
  most of those cheep Samsung printers require Splix 2.0 driver since
  they speak Samsung proprietary language. Splix 2.0 is ported to 
 OpenBSD.
  Are you sure that your printer speaks PostScript? You printcap looks
  OK for a PostScript printer.
 
  Cheers,
  Predrag

 Well, when I issue
 #gs -h

 Available 
 devices:,samsunggdi,..

 sumsunggdi supports ML2010 so looks like should run.

 Regards,
 Igor.


 --
 igor denisov.

 --
 Internet Explorer 8 - ?? ?! http://ie.rambler.ru/

You are contradicting yourself. You showed us a printcap file for 
PostScript capable printer. Now you are telling me that there is 
a GhostScript driver for it. Then your printcap is not correct as
you need a input filter. You have a choice of using foomatic-rip or
writing a small filter yourself. 
It should look something like
more /usr/local/libexec/lpfilter-ps
#!/bin/sh
# Treat LF as CR+LF
printf \033k2G || exit 2
# Print the postscript file
/usr/local/bin/gs -dSAFER -dBATCH -dQUIET -dNOPAUSE -q -sDEVICE=ljet4 \
-sOutputFile=- -sPAPERSIZE=a4 -  exit 0
exit 2

Replace ljet4 with the name of the driver which you believe supports
your printer. 

Printcap should look like

lp|local|HP:\
:lp=/dev/lpt0:\
:sd=/var/spool/output:\
:lf=/var/log/lpd-errs:
:sh:mx#0:if=/usr/local/libexec/lpfilter-ps:

You just need to edit device node /dev/lpt0 otpion (maybe).

Cheers,
Predrag

P.S. I would check OpenPrinting data base before I really believe that
Samsung printer can be driven by GhostScript. I am not saying it is not
possible. I am just saying that in my experience those cheep one tend
to require Splix.



usb printer problem

2006-03-18 Thread Carlos Alberto Pereira Gomes
Hi,
I'm trying to configure an Epson Stylus C67 usb inkjet printer without
success.

My system is an snapshot from:
OpenBSD 3.9-beta (GENERIC) #591: Thu Jan 19 12:32:39 MST 2006

I have a simple /etc/printcap:  

   
lp|lpjet|EpsonC67:\
:lp=/dev/ulpt0:\
:mx#0:\
:rs=false:\
:sd=/var/spool/output/lp:\
:lf=/var/log/lpd-errs:\
:sh:

The printer is detected with a similar message both at the usb 1.1 
and usb 2.0 ports:

ulpt0 at uhub0 port 2 configuration 1 interface 0
ulpt0: EPSON USB Printer, rev 1.10/1.00, addr 2, iclass 7/1
ulpt0: using bi-directional mode


But when I use:

sudo cat sometextfile  /dev/ulpt0

or

lpr sometextfile

the printer makes some noise, moves the printing head and stops without 
printing anything.

commands like lpc restart all, lpc clean all, lprm - don't help.

I've searched google and found that a similar problem was solved by using 
/dev/unlpt0 but this device is not present in openbsd.

http://www.onlamp.com/pub/a/bsd/2003/11/06/Big_Scary_Daemons.html 

Have anyone had such a problem?

Am I missing some configuration?


Thanks,

-- 
Carlos 



Re: usb printer problem

2006-03-18 Thread Tom
Hello,
I had very similar problems with a HP 3845 following the same guide. I was
advised to try apsfilter which is in ports but still had no luck. Eventually
I tried using foomatic using the guide at
http://www.jakemsr.com/openbsd/foomatic.html
Worked for me, although it keeps printing using my now empty colour
cartridge, and ignores my black one.
Perhaps you'll have more luck.
Regards,
T

On 18/03/06, Carlos Alberto Pereira Gomes [EMAIL PROTECTED] wrote:

 Hi,
 I'm trying to configure an Epson Stylus C67 usb inkjet printer without
 success.

 My system is an snapshot from:
 OpenBSD 3.9-beta (GENERIC) #591: Thu Jan 19 12:32:39 MST 2006

 I have a simple /etc/printcap:
 lp|lpjet|EpsonC67:\
 :lp=/dev/ulpt0:\
 :mx#0:\
 :rs=false:\
 :sd=/var/spool/output/lp:\
 :lf=/var/log/lpd-errs:\
 :sh:

 The printer is detected with a similar message both at the usb 1.1
 and usb 2.0 ports:

 ulpt0 at uhub0 port 2 configuration 1 interface 0
 ulpt0: EPSON USB Printer, rev 1.10/1.00, addr 2, iclass 7/1
 ulpt0: using bi-directional mode


 But when I use:

 sudo cat sometextfile  /dev/ulpt0

 or

 lpr sometextfile

 the printer makes some noise, moves the printing head and stops without
 printing anything.

 commands like lpc restart all, lpc clean all, lprm - don't help.

 I've searched google and found that a similar problem was solved by using
 /dev/unlpt0 but this device is not present in openbsd.

 http://www.onlamp.com/pub/a/bsd/2003/11/06/Big_Scary_Daemons.html

 Have anyone had such a problem?

 Am I missing some configuration?


 Thanks,

 --
 Carlos