How To Wiki

How to get an HP OfficeJet scanner to work in Linux

1,795pages on
this wiki
Add New Page
Add New Page Talk0

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


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

Testing and debuggingEdit

  • 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 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)Edit

HPOJ is obsolete, hplib replaced hpoj

See AlsoEdit

External Wiki'sEdit

Also on Fandom

Random Wiki