RE: Still having problems with HP OfficeJet CUPS.

2003-01-24 Thread Tzafrir Cohen
On Thu, 23 Jan 2003, Alon Weinstein wrote:


  can you show us tail of CUPS logs ?

 Here's a more detailed tail of the error log (Log Level = debug), right
 after trying to do:
 lpr ps file

 D [23/Jan/2003:14:44:39 +0200] [Job 17] /usr/lib/cups/filter/cupsomatic:
 inserted option PS code:
 D [23/Jan/2003:14:44:39 +0200] [Job 17] ptal-connect: connecting to
 device mlc:usb:OfficeJet_G85...  gs PID pid2=23181
 D [23/Jan/2003:14:44:39 +0200] [Job 17] gs command: gs -q -dBATCH
 -dSAFER -dQUIET -dNOPAUSE -sDEVICE=ijs -sIjsServer=hpijs
 -sDeviceManufacturer=HEWLETT-PACKARD -sDeviceModel=DESKJET 930
 -dDEVICEWIDTHPOINTS=612 -dDEVICEHEIGHTPOINTS=792
 -sIjsParams=Quality=0,ColorMode=2,MediaType=0,PenSet=2 -r300
 -dDuplex=0 -sOutputFile=- -
 D [23/Jan/2003:14:44:39 +0200] [Job 17] foomatic-gswrapper: gs '-dBATCH'
 '-dSAFER' '-dQUIET' '-dNOPAUSE' '-sDEVICE=ijs' '-sIjsServer=hpijs'
 '-sDeviceManufacturer=HEWLETT-PACKARD' '-sDeviceModel=DESKJET 930'
 '-dDEVICEWIDTHPOINTS=612' '-dDEVICEHEIGHTPOINTS=792'
 '-sIjsParams=Quality=0,ColorMode=2,MediaType=0,PenSet=2' '-r300'
 '-dDuplex=0' '-sOutputFile=/dev/fd/3' '/dev/fd/0' 31 12
 D [23/Jan/2003:14:44:39 +0200] [Job 17] successful.
 D [23/Jan/2003:14:44:39 +0200] [Job 17] Unrecoverable error: typecheck
 in .putdeviceprops
 D [23/Jan/2003:14:44:39 +0200] [Job 17] Couldn't exec foomatic-gswrapper
 -q -dBATCH -dSAFER -dQUIET -dNOPAUSE -sDEVICE=ijs -sIjsServer=hpijs
 -sDeviceManufacturer=HEWLETT-PACKARD -sDeviceModel=DESKJET 930
 -dDEVICEWIDTHPOINTS=612 -dDEVICEHEIGHTPOINTS=792
 -sIjsParams=Quality=0,ColorMode=2,MediaType=0,PenSet=2 -r300
 -dDuplex=0 -sOutputFile=- - at /usr/lib/cups/filter/cupsomatic line 965.

That's good, because we now have a failed command, and not just doesn't
work.

Am I right to assume that this command should recieve a postscript file as
input (or standard input?).

One thing to invastigate: Try to create have a ghostscript command-line
that will produce an output that could be sent directly to /dev/lp0

Something like:
cat test.ps | gs \
 -q -dBATCH -dSAFER -dQUIET -dNOPAUSE -sDEVICE=ijs -sIjsServer=hpijs \
 -sDeviceManufacturer=HEWLETT-PACKARD -sDeviceModel=DESKJET 930 \
 -dDEVICEWIDTHPOINTS=612 -dDEVICEHEIGHTPOINTS=792 \
 -sIjsParams=Quality=0,ColorMode=2,MediaType=0,PenSet=2 -r300 \
 -dDuplex=0 -sOutputFile=- \
 out.prn

cat out.prn /dev/lp0


recall that the printing system has two roles:

1. get a print job, translate it to printing instructions file. This
   part is also known as print filters. postscript serves as a common
   format, that can be created by most programs. But it still needs some
   translation if it is to be used in a non-postscript printer

2. Maintain the printer queue: it takes much shorter to submit a job than
   to print it. But two jobs can't be printed on the same printer at once
   (unlike two jobs running on the same CPU at once). So it is needed
   need to keep a queue of waiting jobs. While maintaining a queue, it
   would be also useful to control the queued and printed jobs etc.

(Things are more complicated when there is more than one printer, or when
the printer is handled by a remote server, but the tasks remain the same)

Foomatic is a print filter. In your configuration Cups uses foomatic to do
the translations.

The job of ghostscript is to translate postscript to any other format
In the above command, it was using the ghostscript output device ijs:
-sDEVICE=ijs

-- 
Tzafrir Cohen
mailto:[EMAIL PROTECTED]
http://www.technion.ac.il/~tzafrir

=
To unsubscribe, send mail to [EMAIL PROTECTED] with
the word unsubscribe in the message body, e.g., run the command
echo unsubscribe | mail [EMAIL PROTECTED]




RE: Still having problems with HP OfficeJet CUPS.

2003-01-23 Thread Alon Weinstein
  I've posted a message a few days ago about problems with 
 installing an 
  HP OfficeJet G85 (via USB) to use with CUPS. I've made some 
 progress 
  since then, but I can't make it work fully. I use Redhat 
 7.3, I have 
  foomatic, hpijs (HP InkJet driver), hpoj (HP OfficeJet 
 driver)  cups 
  installed. The printer is recognized and I can communicate with it 
  using hpoj's test tools. I can also send characters to the printer  
  using ptal-print (basically echoes characters to the
  printer) and it prints them ok.
  But that's all I can do. I configured the printer in CUPS using the 
  appropriate settings (according to all the how-tos), but 
 when I try to 
  send a test page the print job is automatically aborted. When I use 
  lpr to send a postscript file the print job shows as 
 completed in the 
  job queue, but nothing happens in the printer.
 
 IMHO CUPS stands for completely useless piece of sh*t. One of 
 the worst packages I've ever used. 
 
 Which test page do you use? How do you send it.
 
 Geoff.
 

The CUPS web interface has a test-page option -- I try to send it. 


=
To unsubscribe, send mail to [EMAIL PROTECTED] with
the word unsubscribe in the message body, e.g., run the command
echo unsubscribe | mail [EMAIL PROTECTED]




Re: Still having problems with HP OfficeJet CUPS.

2003-01-23 Thread Hetz Ben Hamo
 Any ideas anyone?

If you're using CUPS, what does its web status tells you? is it in idle 
mode? did you try to send a test print from the CUPS web interface? 

Thanks,
Hetz

=
To unsubscribe, send mail to [EMAIL PROTECTED] with
the word unsubscribe in the message body, e.g., run the command
echo unsubscribe | mail [EMAIL PROTECTED]




RE: Still having problems with HP OfficeJet CUPS.

2003-01-23 Thread Alon Weinstein


 If you're using CUPS, what does its web status tells you? is 
 it in idle 
 mode? did you try to send a test print from the CUPS web interface? 
 

It shows idle, and I tried to send the test print from the CUPS web
interface - the print job was automatically aborted.

I found I can do lpr some-text-file and it prints it.

I think the problem is that CUPS is trying to send a PS test file, and
this printer probably can't accept raw PS (it's not a laser printer).
What handles the translation from PS to the format known by the printer?
Is the hpijs driver? Foomatic? 


=
To unsubscribe, send mail to [EMAIL PROTECTED] with
the word unsubscribe in the message body, e.g., run the command
echo unsubscribe | mail [EMAIL PROTECTED]




RE: Still having problems with HP OfficeJet CUPS.

2003-01-23 Thread Alon Weinstein
 Let's try to check hardware configuration:
 1. How is the Parallel Port configured in your BIOS?
 2. Does the printer cable support bidirectional 
 communication? 3. According to HP's printer diagnostics 
 software, is there bidirectional
communication between the computer and the printer?

It's connected via USB. The HP OfficeJet has a low-level driver which
handles communications with it called ptal (part of the HPOJ Linux
driver project). It can talk to the printer, and I can print text files
using LPR.


=
To unsubscribe, send mail to [EMAIL PROTECTED] with
the word unsubscribe in the message body, e.g., run the command
echo unsubscribe | mail [EMAIL PROTECTED]




Re: Still having problems with HP OfficeJet CUPS.

2003-01-23 Thread Ben-Nes Michael
hmmm don't know why Alon thinks CUPS sucks, I love it, easy to install
configure and work very well with samba.
And I installed a Samsung ml-4500 laser printer which consider problematic

I can print from any Linux or windows station using ( raw data or postscript
what ever I choose )

as for Geoffrey, can you show us tail of CUPS logs ?

also I suggest you to go to cups web site and look for their news groups (
they know what they say there :)
you'll find their general groups and HP group most helpful , post to both

--
Canaan Surfing Ltd.
Internet Service Providers
Ben-Nes Michael - Manager
Tel: 972-4-6991122
Fax: 972-4-6990098
http://sites.canaan.co.il
--
- Original Message -
From: Alon Weinstein [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Cc: 'Linux-IL' [EMAIL PROTECTED]
Sent: Thursday, January 23, 2003 12:39 PM
Subject: RE: Still having problems with HP OfficeJet  CUPS.


   I've posted a message a few days ago about problems with
  installing an
   HP OfficeJet G85 (via USB) to use with CUPS. I've made some
  progress
   since then, but I can't make it work fully. I use Redhat
  7.3, I have
   foomatic, hpijs (HP InkJet driver), hpoj (HP OfficeJet
  driver)  cups
   installed. The printer is recognized and I can communicate with it
   using hpoj's test tools. I can also send characters to the printer
   using ptal-print (basically echoes characters to the
   printer) and it prints them ok.
   But that's all I can do. I configured the printer in CUPS using the
   appropriate settings (according to all the how-tos), but
  when I try to
   send a test page the print job is automatically aborted. When I use
   lpr to send a postscript file the print job shows as
  completed in the
   job queue, but nothing happens in the printer.
 
  IMHO CUPS stands for completely useless piece of sh*t. One of
  the worst packages I've ever used.
 
  Which test page do you use? How do you send it.
 
  Geoff.
 

 The CUPS web interface has a test-page option -- I try to send it.


 =
 To unsubscribe, send mail to [EMAIL PROTECTED] with
 the word unsubscribe in the message body, e.g., run the command
 echo unsubscribe | mail [EMAIL PROTECTED]




=
To unsubscribe, send mail to [EMAIL PROTECTED] with
the word unsubscribe in the message body, e.g., run the command
echo unsubscribe | mail [EMAIL PROTECTED]




RE: Still having problems with HP OfficeJet CUPS.

2003-01-23 Thread Alon Weinstein
 hmmm don't know why Alon thinks CUPS sucks, I love it, easy 
 to install configure and work very well with samba. 

I'm Alon, and I agree -- I installed a Lexmark E322 with no problems. I
started the thread, not Geoffrey, which mentioned he dislikes CUPS.

 can you show us tail of CUPS logs ?

Here'a a tail of /var/log/cups/error_log:
I [23/Jan/2003:13:24:17 +0200] Saving printers.conf...
I [23/Jan/2003:13:24:17 +0200] Printer 'hpojg85' modified by 'root'.
I [23/Jan/2003:13:24:19 +0200] Started
/usr/lib/cups/cgi-bin/printers.cgi (pid=22814)
I [23/Jan/2003:13:24:21 +0200] Started
/usr/lib/cups/cgi-bin/printers.cgi (pid=22815)
I [23/Jan/2003:13:24:21 +0200] Job 15 queued on 'hpojg85' by 'root'.
I [23/Jan/2003:13:24:21 +0200] Started filter
/usr/lib/cups/filter/pstops (PID 22816) for job 15.
I [23/Jan/2003:13:24:21 +0200] Started filter
/usr/lib/cups/filter/cupsomatic (PID 22817) for job 15.
I [23/Jan/2003:13:24:21 +0200] Started backend
/usr/lib/cups/backend/ptal (PID 22818) for job 15.
I [23/Jan/2003:13:24:23 +0200] Started
/usr/lib/cups/cgi-bin/printers.cgi (pid=22826)
I [23/Jan/2003:13:24:25 +0200] Started
/usr/lib/cups/cgi-bin/printers.cgi (pid=22827)

 
 also I suggest you to go to cups web site and look for their 
 news groups ( they know what they say there :) you'll find 
 their general groups and HP group most helpful , post to both
 

I tried searching for info but couldn't find anything relevant. I'll
post questions over there. Thanks for the reference.


=
To unsubscribe, send mail to [EMAIL PROTECTED] with
the word unsubscribe in the message body, e.g., run the command
echo unsubscribe | mail [EMAIL PROTECTED]




RE: Still having problems with HP OfficeJet CUPS.

2003-01-23 Thread Alon Weinstein

 can you show us tail of CUPS logs ?

Here's a more detailed tail of the error log (Log Level = debug), right
after trying to do:
lpr ps file

D [23/Jan/2003:14:44:39 +0200] [Job 17] /usr/lib/cups/filter/cupsomatic:
inserted option PS code:
D [23/Jan/2003:14:44:39 +0200] [Job 17] ptal-connect: connecting to
device mlc:usb:OfficeJet_G85...  gs PID pid2=23181
D [23/Jan/2003:14:44:39 +0200] [Job 17] gs command: gs -q -dBATCH
-dSAFER -dQUIET -dNOPAUSE -sDEVICE=ijs -sIjsServer=hpijs
-sDeviceManufacturer=HEWLETT-PACKARD -sDeviceModel=DESKJET 930
-dDEVICEWIDTHPOINTS=612 -dDEVICEHEIGHTPOINTS=792
-sIjsParams=Quality=0,ColorMode=2,MediaType=0,PenSet=2 -r300
-dDuplex=0 -sOutputFile=- -
D [23/Jan/2003:14:44:39 +0200] [Job 17] foomatic-gswrapper: gs '-dBATCH'
'-dSAFER' '-dQUIET' '-dNOPAUSE' '-sDEVICE=ijs' '-sIjsServer=hpijs'
'-sDeviceManufacturer=HEWLETT-PACKARD' '-sDeviceModel=DESKJET 930'
'-dDEVICEWIDTHPOINTS=612' '-dDEVICEHEIGHTPOINTS=792'
'-sIjsParams=Quality=0,ColorMode=2,MediaType=0,PenSet=2' '-r300'
'-dDuplex=0' '-sOutputFile=/dev/fd/3' '/dev/fd/0' 31 12
D [23/Jan/2003:14:44:39 +0200] [Job 17] successful.
D [23/Jan/2003:14:44:39 +0200] [Job 17] Unrecoverable error: typecheck
in .putdeviceprops
D [23/Jan/2003:14:44:39 +0200] [Job 17] Couldn't exec foomatic-gswrapper
-q -dBATCH -dSAFER -dQUIET -dNOPAUSE -sDEVICE=ijs -sIjsServer=hpijs
-sDeviceManufacturer=HEWLETT-PACKARD -sDeviceModel=DESKJET 930
-dDEVICEWIDTHPOINTS=612 -dDEVICEHEIGHTPOINTS=792
-sIjsParams=Quality=0,ColorMode=2,MediaType=0,PenSet=2 -r300
-dDuplex=0 -sOutputFile=- - at /usr/lib/cups/filter/cupsomatic line 965.
D [23/Jan/2003:14:44:39 +0200] [Job 17] tail process done writing data
to *main::STDOUT
D [23/Jan/2003:14:44:39 +0200] [Job 17] KID4 finished
D [23/Jan/2003:14:44:39 +0200] [Job 17] error closing *main::KID3 at
/usr/lib/cups/filter/cupsomatic line 769, STDIN line 285.
E [23/Jan/2003:14:44:39 +0200] PID 23175 stopped with status 32!
D [23/Jan/2003:14:44:39 +0200] UpdateJob: job 17, file 0 is complete.
D [23/Jan/2003:14:44:39 +0200] CancelJob: id = 17
D [23/Jan/2003:14:44:39 +0200] StopJob: id = 17, force = 0
D [23/Jan/2003:14:44:39 +0200] StopJob: printer state is 3


=
To unsubscribe, send mail to [EMAIL PROTECTED] with
the word unsubscribe in the message body, e.g., run the command
echo unsubscribe | mail [EMAIL PROTECTED]




Re: Still having problems with HP OfficeJet CUPS.

2003-01-23 Thread Ben-Nes Michael
Hi

I noticed that cups refer to 'DESKJET 930' and not G85

check the following link:
http://www.linuxprinting.org/show_printer.cgi?recnum=421906

I also had CUPS problem which was solved by upgrading to the latest CUPS
available.

Check if you have the latest.

--
Canaan Surfing Ltd.
Internet Service Providers
Ben-Nes Michael - Manager
Tel: 972-4-6991122
Fax: 972-4-6990098
http://sites.canaan.co.il
--
- Original Message -
From: Alon Weinstein [EMAIL PROTECTED]
To: 'Ben-Nes Michael' [EMAIL PROTECTED]
Cc: 'Linux-IL' [EMAIL PROTECTED]
Sent: Thursday, January 23, 2003 2:40 PM
Subject: RE: Still having problems with HP OfficeJet  CUPS.



  can you show us tail of CUPS logs ?

 Here's a more detailed tail of the error log (Log Level = debug), right
 after trying to do:
 lpr ps file

 D [23/Jan/2003:14:44:39 +0200] [Job 17] /usr/lib/cups/filter/cupsomatic:
 inserted option PS code:
 D [23/Jan/2003:14:44:39 +0200] [Job 17] ptal-connect: connecting to
 device mlc:usb:OfficeJet_G85...  gs PID pid2=23181
 D [23/Jan/2003:14:44:39 +0200] [Job 17] gs command: gs -q -dBATCH
 -dSAFER -dQUIET -dNOPAUSE -sDEVICE=ijs -sIjsServer=hpijs
 -sDeviceManufacturer=HEWLETT-PACKARD -sDeviceModel=DESKJET 930
 -dDEVICEWIDTHPOINTS=612 -dDEVICEHEIGHTPOINTS=792
 -sIjsParams=Quality=0,ColorMode=2,MediaType=0,PenSet=2 -r300
 -dDuplex=0 -sOutputFile=- -
 D [23/Jan/2003:14:44:39 +0200] [Job 17] foomatic-gswrapper: gs '-dBATCH'
 '-dSAFER' '-dQUIET' '-dNOPAUSE' '-sDEVICE=ijs' '-sIjsServer=hpijs'
 '-sDeviceManufacturer=HEWLETT-PACKARD' '-sDeviceModel=DESKJET 930'
 '-dDEVICEWIDTHPOINTS=612' '-dDEVICEHEIGHTPOINTS=792'
 '-sIjsParams=Quality=0,ColorMode=2,MediaType=0,PenSet=2' '-r300'
 '-dDuplex=0' '-sOutputFile=/dev/fd/3' '/dev/fd/0' 31 12
 D [23/Jan/2003:14:44:39 +0200] [Job 17] successful.
 D [23/Jan/2003:14:44:39 +0200] [Job 17] Unrecoverable error: typecheck
 in .putdeviceprops
 D [23/Jan/2003:14:44:39 +0200] [Job 17] Couldn't exec foomatic-gswrapper
 -q -dBATCH -dSAFER -dQUIET -dNOPAUSE -sDEVICE=ijs -sIjsServer=hpijs
 -sDeviceManufacturer=HEWLETT-PACKARD -sDeviceModel=DESKJET 930
 -dDEVICEWIDTHPOINTS=612 -dDEVICEHEIGHTPOINTS=792
 -sIjsParams=Quality=0,ColorMode=2,MediaType=0,PenSet=2 -r300
 -dDuplex=0 -sOutputFile=- - at /usr/lib/cups/filter/cupsomatic line 965.
 D [23/Jan/2003:14:44:39 +0200] [Job 17] tail process done writing data
 to *main::STDOUT
 D [23/Jan/2003:14:44:39 +0200] [Job 17] KID4 finished
 D [23/Jan/2003:14:44:39 +0200] [Job 17] error closing *main::KID3 at
 /usr/lib/cups/filter/cupsomatic line 769, STDIN line 285.
 E [23/Jan/2003:14:44:39 +0200] PID 23175 stopped with status 32!
 D [23/Jan/2003:14:44:39 +0200] UpdateJob: job 17, file 0 is complete.
 D [23/Jan/2003:14:44:39 +0200] CancelJob: id = 17
 D [23/Jan/2003:14:44:39 +0200] StopJob: id = 17, force = 0
 D [23/Jan/2003:14:44:39 +0200] StopJob: printer state is 3


 =
 To unsubscribe, send mail to [EMAIL PROTECTED] with
 the word unsubscribe in the message body, e.g., run the command
 echo unsubscribe | mail [EMAIL PROTECTED]




=
To unsubscribe, send mail to [EMAIL PROTECTED] with
the word unsubscribe in the message body, e.g., run the command
echo unsubscribe | mail [EMAIL PROTECTED]




RE: Still having problems with HP OfficeJet CUPS.

2003-01-23 Thread Alon Weinstein
 I noticed that cups refer to 'DESKJET 930' and not G85
 
 check the following link: 
 http://www.linuxprinting.org/show_printer.cgi?recnum=421906

I've been to linuxprinting (that's where I got the PPD file from, before
trying to generate it using foomatic-datafile). It says that the
preferred driver is hpijs which I use (this is the recommended driver
for OfficeJet inkjets everywhere)


 I also had CUPS problem which was solved by upgrading to the 
 latest CUPS available.
 
 Check if you have the latest.

I have 1.1.18, which is the latest release. Damn that OfficeJet. :-)


=
To unsubscribe, send mail to [EMAIL PROTECTED] with
the word unsubscribe in the message body, e.g., run the command
echo unsubscribe | mail [EMAIL PROTECTED]