PDA

View Full Version : HP LaserJet 1022, hplip or foo2zjs



Seyyapc
09-18-2006, 03:04 AM
I have a HP Laserjet 1022 on my Linux system Debian Etch (before knoppix v3.7).

Before I used this guide: Samba Printer share (http://www.knoppix.net/forum/viewtopic.php?t=21582&highlight=share+printer) with HPLIP & CUPS + SAMBA. For almost 11 months I used this configuration to print from Windows to my linux box, when I want to print from Windows or Linux I usually had to wait between 40-75 seconds before my printer start to print. I thought it was because my USB on the linux system is USB 1.0 (ohci) and never give anymore thought "if it works...don't touch it"
on USB 1.0 uhci is confirmed to give HALT or corruption errors on the printer, it's recommended to use USB 2.0 ehci
Reading my bookmarks I found another solution wich is foo2zjs & CUPS + SAMBA, at the time it seemed complicated, but kinuxprinting.org Printer: HP LaserJet 1022 (http://www.linuxprinting.org/show_printer.cgi?recnum=HP-LaserJet_1022) thinks is the best config:
Recommended: foo2zjs (Home page, view PPD, download PPD)
The installation of Foo2zjs (http://foo2zjs.rkkda.com/) is more simple than HPLIP, it only need apt-get install foomatic-db foomatic-db-engine foomatic-filter for foomatic-db
*** DON'T USE the foo2zjs package from Ubuntu, SUSE, Mandrake/Manrivia, Debian, RedHat, Gentoo

For the HP LaserJet 1022 after apt-get foomatic... the next commands were (A more complete Install Guide: HERE (http://foo2zjs.rkkda.com/INSTALL))

$ wget -O foo2zjs.tar.gz http://foo2zjs.rkkda.com/foo2zjs.tar.gz
$ tar zxf foo2zjs.tar.gz
$ cd foo2zjs
$ make
$ make install
$ make install-hotplug
$ /etc/init.d/cupsys restart
Turn on the printer, On the browser go to http://localhost:631 and click ADMINISTRATION-->>ADD THIS PRINTER. It 'll take 10-20 seconds with CPU at 100% (don't worry it's normal). Select your printer device or add directly your HP LaserJet 1022.PPD (Get it HERE (http://www.linuxprinting.org/show_driver.cgi?driver=foo2zjs&fromprinter=HP-LaserJet_1022))

After configurated again my Windows box for changes on the printer from the linux box like the name (For the Samba & Cups configuration check the guide: Samba Printer share (http://www.knoppix.net/forum/viewtopic.php?t=21582&highlight=share+printer)) my installation was completed, and now the testing.


Before After
Print TEST page from Windows 38-65 secs 4-7 secs
Print TEST page from Linux 50-70 secs 6-9 secs

And another surprise from the foo2zjs driver

Note that "foo2zjs" makes the printer printing much faster and more reliable than HPIJS, and it has a 1200x600-dpi mode wereas HPIJS (and other drivers for PCL 5e) have a maximum resolution of 600x600 dpihttp://img87.imageshack.us/img87/8135/untitledpa1.th.png (http://img87.imageshack.us/my.php?image=untitledpa1.png)
Working perfectly at 1200x600 dpi.

:shock: Duron 1GHz 256MB, SiS 300 onboard
Kernel 2.6.17 ck-1, Debian ETCH 8)