Page 1 of 1

HP Laserjet P1102w & CUPS (GNU/Linux)

Posted: Sat Aug 17, 2013 3:57 pm
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

Encountered issues

Posted: Sat Aug 17, 2013 4:09 pm
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.

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

Posted: Sat Aug 17, 2013 4:10 pm
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 :)

Client settings

Posted: Sat Sep 27, 2014 6:53 pm
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)

Raspbian Jessie + Xubuntu 12.04

Posted: Sat Nov 05, 2016 2:47 am
by ^rooker