Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
How to avoid too much work to a poor printer ? [SOLVED]
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
Tin
Guru
Guru


Joined: 22 Dec 2005
Posts: 305
Location: Namur, Belgium

PostPosted: Mon Apr 20, 2009 8:54 am    Post subject: How to avoid too much work to a poor printer ? [SOLVED] Reply with quote

hello,

I have a VERY unusual question ;-)

I want to print some pictures (cartoons) on paper.

My printer is configured with cups :
Code:

cat /etc/cups/printers.conf
<Printer myprinter>
Info HP LaserJet Series PCL 6
Location
DeviceURI socket://123.123.123.123:9100
State Idle
StateTime 1239886654
Accepting Yes
Shared Yes
JobSheets none none
QuotaPeriod 0
PageLimit 0
KLimit 0
OpPolicy default
ErrorPolicy stop-printer
</Printer>


I send the pages to print with that command :
Code:

lp -d myprinter -o landscape -o fitplot *.jpg


It is working fine but it is VERY slow, around 30 seconds per page (and I have around 100 pages...)
During these 30 seconds, I see the printer "data" light blinking, so I guess that the delay is due to the printer processing and not the network nor my laptop (text printing is processing normally).

The problem is that I am quite annoyed to keep the printer busy during one hour, and even if I could launch one job per page to allow other people's jobs to be processed between them, I would prefer to avoid these people to see that I am printing cartoons :oops:

So, my question is :

How would it be possible to avoid this processing ?
I thought that printing to a file would not do any processing, so it would just delay the printing but would not shorten it.
What is the exact processing of the printer ? Convert picture to ..... to what actually ?
Perhaps I could be able to generate that "raw-printer-output-data" on my laptop, then send it directly to the printer ?
This process should be "scriptable" (don't tell me to open each picture manually in the gimp and print it with the interface)

Any ideas, great brains ? ;-)

Thank you for your advices :-)

[edit]
Héhé, I found some interesting little binary named imagetops that can be used by kde in the printer configuration panel (like a filter)
I will try to find how to use it with command line and stdin-out and keep you informed.
[/edit]

[edit2]
Hmm, not yet ok :
imagetops mypicture.jpg | lp -d myprinter -o landscape -o fitplot
=> same thing, 30 seconds looking the "processing..." display on the printer.

So it means that the real work has to be done
not between the picture and the postscript
but between the postscript and the "raw" data used by the printer.

Is it feasible a kind of
define a "virtual" hp laserjet printer which print its raw data in a file (and process the PostScript)
then, send that file to the real printer which would not have anything to process except the actual printing itself ?
[\edit2]
_________________
Tin, the gentoobie


Last edited by Tin on Tue May 05, 2009 6:07 am; edited 1 time in total
Back to top
View user's profile Send private message
Tin
Guru
Guru


Joined: 22 Dec 2005
Posts: 305
Location: Namur, Belgium

PostPosted: Mon Apr 20, 2009 9:47 am    Post subject: Reply with quote

Mmmmh, this is definitely the kind of stuff I would need :

http://pnm2ppa.sourceforge.net/ wrote:

PPA (Printing Performance Architecture) is a closed, proprietary protocol developed by Hewlett Packard for a short-lived series of DeskJet printers. In essence, the PPA protocol moves the low-level processing of the data to the host computer rather than the printer. This allows for a low-cost (to produce) printer with a small amount of memory and computing power. However, in practice the printer was often as expensive as more capable printers and HP has since discontinued the use of PPA in favour of returning to PCL3e in their latest USB-based printers.


I hope that such kind of project exists yet, which could apply to my case.

Going on searching...
_________________
Tin, the gentoobie
Back to top
View user's profile Send private message
Tin
Guru
Guru


Joined: 22 Dec 2005
Posts: 305
Location: Namur, Belgium

PostPosted: Tue Apr 21, 2009 2:45 pm    Post subject: Reply with quote

Another try :
http://www.linuxfoundation.org/en/OpenPrinting/Database/Foomatic wrote:

foomatic-filters
The universal print filter "foomatic-rip", used by spoolers to convert PostScript job data into the printer's native format as described by a printer/driver-specific PPD file.


Let's install, compile and test :-)
_________________
Tin, the gentoobie
Back to top
View user's profile Send private message
Tin
Guru
Guru


Joined: 22 Dec 2005
Posts: 305
Location: Namur, Belgium

PostPosted: Tue May 05, 2009 6:06 am    Post subject: Reply with quote

Solved :

After installing the foomatic drivers, I had to install the printer again, but I got a new step in the printer wizard with some foomatic stuff.
It works perfectly, printing is preprocessed completely and the printer has nothing to do anymore, except printing at full speed.
_________________
Tin, the gentoobie
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum