Setting up basic device connectivity

This file documents the procedure to set up basic device connectivity (low-level communication) with the HP OfficeJet Linux driver (hpoj) software, whether you're setting up the hpoj software for the first time, upgrading from an older version, or adding a new device later.

In case of difficulty

If something goes wrong with these instructions, then refer to the separate connectivity details and troubleshooting document for more information.

Adding or removing devices

Connect and power on your device if you haven't already.

Log in as root and enter the command "ptal-init setup".

This setup wizard is now used to set up hpoj-managed devices with all supported connection types (parallel, USB, and JetDirect). It asks you a few questions and guides you through the following steps:

  1. Deleting one or more devices that are already set up (possibly to re-probe it in a later step)

  2. Probing for and setting up parallel-connected devices

  3. Probing for and setting up USB-connected devices

  4. Setting up JetDirect-connected devices

  5. Setting the default device (only if more than one device is defined or a default device is already set)

Starting and stopping the hpoj driver

At any time as root, you may invoke the commands "ptal-init start" and "ptal-init stop" to start and stop the hpoj daemons for the devices that have been previously set up using "ptal-init setup".

Testing basic device connectivity

Here are some simple tests you can run to be sure you have basic connectivity to the device, before you proceed to subsequent tasks such as setting up printing, scanning, or photo-card access, all of which depend on having a working I/O path to the device.

In the following examples, you may provide the optional [devname] parameter to specify the PTAL device name of the desired device. (In general, square brackets indicate an optional parameter and should not actually be typed.) If you omit it, then an already configured device is arbitrarily picked. If you have set up more than one device, then you should use "ptal-init setup" as described above to set the default device.

Optional: Reboot to make sure everything still works

As described in the main and troubleshooting documents for compiling and installing the software, you should ensure that the ptal-init script is set up to start when your computer boots, and most importantly, to start before your print spooler.

If you'd like to verify that this is set up correctly before proceeding to the next steps, then reboot your computer now. Watch the startup messages very carefully for a message about starting ptal-init or "the HP OfficeJet Linux driver", and make sure it happens before your print spooler is started.

Caution: If ptal-init does not start before the print spooler, then you may experience problems setting up printing (if using CUPS), or subsequent reboots may hang after you set up print queues (if using LPRng). You should fix this if possible, before proceeding to set up printing.

After your system has come back up, you may also want to re-run the connectivity tests suggested above, in order to verify that everything still works after a reboot.

In case of difficulty

If something goes wrong with these instructions, then refer to the separate connectivity details and troubleshooting document for more information.

Next steps

Now you're ready to set up printing, scanning, and/or photo-card access (depending on your model), or return to the index.