How to get an HP OfficeJet scanner to work in Linux

This howto is likely to work for any Hewlett Packard OfficeJet printer / scanner / fax but it has been tested in for HP OfficeJet d135.

Installation

 * Software
 * hplip, sane, xsane, cups
 * Optional: usbutils


 * Steps
 * 1) Installation
 * 2) Install cups for printing, http://www.cups.org/
 * 3) * for Gentoo: emerge cups
 * 4) Start cups
 * 5) * for Gentoo: /etc/init.d/cupsd start
 * 6) Install HPLIP drivers, http://hplip.sourceforge.net/
 * 7) * for Gentoo:
 * 8) ** add USE="ppds" to make.conf
 * 9) ** emerge hplip
 * 10) Install Sane for scanning, http://www.sane-project.org/
 * 11) * for Gentoo: emerge media-gfx/sane-backends
 * 12) Install XSane for scanning, http://www.xsane.org/
 * 13) * for Gentoo: media-gfx/xsane
 * 14) Optional: Install usbutils for testing and debuging
 * 15) * for Gentoo: sys-apps/usbutils
 * 16) Configuration
 * 17) sane configurations
 * This step may be required for some scanners to work
 * 1) edit: /etc/sane.d/dll.conf
 * 2) Add line: hpaio
 * 3) Run: hp-setup
 * 4) * Use defaults
 * 5) ** If it doesn't work you may need to click select other, and find your model in a list
 * 6) Run xsane as non-root user, and see if works

Testing and debugging

 * Execute: lsusb
 * Requires usbutils
 * Check to see if your scanner listed
 * Example output: Bus 002 Device 005: ID 03f0:2311 Hewlett-Packard


 * Execute: hp-probe
 * Check to see if your scanner listed
 * Example output


 * DEVICE DISCOVERY |

Device URI                                     Model -- -  hp:/usb/officejet_d_series?serial=SG24G412J9RQ  HP officejet d series

Found 1 printer(s) on the 'usb' bus.


 * Execute: sane-find-scanner
 * This may not display scanner even when it works


 * Check Log for errors
 * View: /var/log/messages
 * Example output:
 * May 15 10:45:15 ComputerName python: hp-scan[29310]: error: No scanning devices found.

Other method (HPOJ)
HPOJ is obsolete, hplib replaced hpoj


 * Howto get an HP OfficeJet scanner to work in Linux/HPOJ method

External Wiki's

 * HOWTO HP OfficeJet 6310 : scanner and printer configuration

External Source

 * 123.hp.com
 * 123 hp com setup

From HowTo Wiki, a Wikia wiki.