HP Laserjet P1102w & CUPS (GNU/Linux)

Linux howto's, compile information, information on whatever we learned on working with linux, MACOs and - of course - Products of the big evil....
Post Reply
User avatar
^rooker
Site Admin
Posts: 1483
Joined: Fri Aug 29, 2003 8:39 pm

HP Laserjet P1102w & CUPS (GNU/Linux)

Post by ^rooker »

This thread contains information about using the printer "HP Laserjet P1102w" with GNU/Linux systems.
By default, most systems assume to handle this printer using "HPLIP", but then requires a proprietary driver. Therefore, I'm using "foo2zjs" as driver backend, which works perfectly and is Free Software :)

Make sure you have the following packages installed:

Code: Select all

$ apt-get install cups foo2zjs
UPDATE: On newer Debian-based distros (e.g. raspbian-jessie), the package name for "foo2zjs" was changed to "printer-driver-foo2zjs". Therefore:

Code: Select all

$ apt-get install cups printer-driver-foo2zjs
As printer model/driver choose:
HP LaserJet Pro P1102w Foomatic/foo2zjs-z2 (recommended)
It already says "recommended" ;)

The following setups have worked flawlessly:
  • Xubuntu 11.10 (Precise Pangolin)
    • cups: 1.5.0-8ubuntu6
    • foo2zjs: 20110811dfsg-1ubuntu1
  • Raspbian 7 (Wheezy/Sid)
    • cups: 1.5.3-5
    • foo2zjs: 20120510dfsg0-1
Jumping out of an airplane is not a basic instinct. Neither is breathing underwater. But put the two together and you're traveling through space!
User avatar
^rooker
Site Admin
Posts: 1483
Joined: Fri Aug 29, 2003 8:39 pm

Encountered issues

Post by ^rooker »

After disconnecting and re-connecting the printer's USB from my Raspberry, it wouldn't print anymore.

Issue #1: Faulty USB connection
Check if the computer is actually "seeing" the printer over USB:

Code: Select all

$ lsusb
There must be a line for the printer. Like this:
Bus 001 Device 119: ID 03f0:102a Hewlett-Packard
In my case, I've added a USB extension cord, and... eh... well: Then the printer didn't show up anymore.
Removing the USB extension fixed that problem.
Jumping out of an airplane is not a basic instinct. Neither is breathing underwater. But put the two together and you're traveling through space!
User avatar
^rooker
Site Admin
Posts: 1483
Joined: Fri Aug 29, 2003 8:39 pm

After disconnecting you must "start" the printer in CUPS aga

Post by ^rooker »

Issue #2: Re-starting the printer
After physically disconnecting the printer's USB connection, CUPS has "stopped" the printer (which makes sense).
Now, you just have to "start" the printer again.

Go to CUPS' webinterface:
http://<computer_printer_is_connected_to>:631 (this example links to "localhost")

On the administration page select "Start Printer" in the left drop-down.
Now the printer should happily server your print jobs again :)
Jumping out of an airplane is not a basic instinct. Neither is breathing underwater. But put the two together and you're traveling through space!
User avatar
^rooker
Site Admin
Posts: 1483
Joined: Fri Aug 29, 2003 8:39 pm

Client settings

Post by ^rooker »

In our setup, the printer is physically connected to a Raspberry Pi (Running Raspbian 7), and the clients print over the Pi.

As mentioned above, there are 2 different drivers available for this printer: The one from HPIJS, and the Foo2zjs-z2.
NOTE: When selecting the printer's backend/driver in the "Make and Model" dialogue, select the following:
HP > Laserjet Pro 1102w > HP LaserJet Pro P1102w Foomatic/foo2zjs-z2 (recommended)
Caveat: If you scroll down the list, you'll also find "HP > HP LaserJet Professional p1102w", which will not list the Foo2zjs driver.

Let's assume the hostname of the printer server is "raspberrypi_hostname".

Here are the settings in the "properties" dialog in the printer setup on XFCE4 for the client side to work:

Location: raspberrypi_hostname
Device URI: ipp://raspberrypi_hostname:631/printers/HP_LaserJet_P1102w
Make and Model: HP LaserJet Pro P1102w Foomatic/foo2zjs-z2 (recommended)
Jumping out of an airplane is not a basic instinct. Neither is breathing underwater. But put the two together and you're traveling through space!
User avatar
^rooker
Site Admin
Posts: 1483
Joined: Fri Aug 29, 2003 8:39 pm

Raspbian Jessie + Xubuntu 12.04

Post by ^rooker »

Jumping out of an airplane is not a basic instinct. Neither is breathing underwater. But put the two together and you're traveling through space!
Post Reply