Setting up the HP LaserJet Pro P1102w

Setting up my HP LaserJet Pro P1102w was not as straightforward as I had hoped, but it is just a question of knowing what to do and in what order.

1. Set up the printer via USB (Linux)

Connect the printer to a computer via USB. Turn the printer on. Install the hplip package via your package manager.

As root, hp-setup. This is done as root in order to have the printer available for all computer users. You must already be root; running sudo hp-setup as a user will fail with an error message about GUI access.

In Device Discovery, choose USB. In Select From Discovered Devices, choose the correct detected printer. TODO: Finish.

2. Set up wireless services on the printer

On the same computer, open the HP Devices Manager. Select the desired printer. In the Actions tab, select “Wireless/wifi setup using USB”. At the end of the process you will be shown a screen similar to:

 Network: Satie
 Address Mode: autoip
 Hostname:
 IP Address: 192.168.0.257
 Gateway Address: 192.168.0.1
 DNS Address: 0.0.0.0

Your printer has been connected to the wireless network and has been assigned a IP. Now run "hp-setup 192.168.0.257".

I ran that command as user. The HP Device Manager re-opened and I followed the on-screen instructions. Because I was running as user, I was prompted for root’s credentials. I choose to set up a printer and print a test page, which worked.

Record the IP address; you will need this to administer and troubleshoot the printer.

3. Set up the printer on a wifi-enabled computer (Linux)

Install hplip via your package manager.

As root, hp-setup. Again, this is done as root in order to have the printer available for all computer users.

In Device Discovery, choose Network. Select the correct detected printer. On one computer, nothing was detected, so I had to go back, enter the advanced settings, and provide the printer’s IP as determined above. Doing so allowed the printer to be discovered. In the final page, choose to create the printer and print a test page.

4. Set up the printer on a wifi-enabled computer (Mac)

macOS 10.12 detected the wireless printer automatically. No special setup was required.

5. Set up wireless printing from mobiles and tablets

TODO

Troubleshooting

Being a networked printer, the first thing to do is determine if the problem is with the printer itself, the network, or the computer that is trying to communicate with it.

One way to test for this is to simply try to use the printer from a different device that had previously been set up to use it.

Another method is to open a web browser and attempt to view the printer’s internal web server. It will have an address of the form http://192.168.0.257/, matching the IP address you were given in step 2. If you lost the address, check your router’s list of IP address assignments. Assuming you can visit the printer’s internal web server, go to Information – Print Info Pages and attempt to print one of the info pages. If any of the pages print, that’s a good indication that the printer is fine and the problem is with the computer trying to communicate with it.

One day printing no longer worked from any device connected via Wi-Fi, nor was the printer’s internal web server reachable at its address. However, printing did work fine from a device that was connected via a USB cable. I printed a self test and configuration page by pressing and holding the cancel (red X) button on the printer until the ready light started to blink, then released the button. Surprise! The configuration page revealed that the printer’s network configuration has somehow been reset to intriguing values:

  • IP configured by: Manual (so it would ignore IP assignations via DHCP)
  • IPv4 address: 0.0.0.0 (which is null)

With those settings, not only would wireless printing not work, neither would the internal web server be available to let me reconfigure it, nor could I have the router reassign it a new IP address via DHCP. What should have worked was the utility hp-wificonfig, but it silently failed. So I used WPS to regain wireless access to the printer in 30 seconds. Here’s how:

  1. Open the router’s configuration and enable Wi-Fi Protected Setup (WPS).
  2. Still in the router’s configuration, initiate a WPS session. On the printer, press the wireless button on the printer. After a moment, the router will confirm success and you are in.

Confirm that all is well by printing another self test and configuration page.  It should say “IP configured by: DHCP” and for IPv4 address it should give the address that the router has assigned it. Further confirm this visiting it’s assigned address in a web browser; the printer’s web server should appear.

In the router’s configuration, I like to reserve the printer’s IP address so the router doesn’t change it later, and of course disable WPS again. The printer has a new IP address, so you will need to reconfigure the printer in the devices that used to be able to print to it wirelessly.

References

Advertisements

About Warren Post

So far: Customer support guy, jungle guide, IT consultant, beach bum, entrepreneur, teacher, diplomat, over-enthusiastic cyclist. Tomorrow: who knows?
This entry was posted in Uncategorized and tagged , , , , . Bookmark the permalink.

2 Responses to Setting up the HP LaserJet Pro P1102w

  1. Pingback: Software I commonly install and remove | A maze of twisty little passages

  2. Pingback: Upgrading to openSUSE 42.3 | A maze of twisty little passages

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s