I just purchased an HP Envy 5642. I can print to it from Linux without a problem but I don't see a way to scan. When I hit scan on the printer it tells me to turn on the appropriate HP application in Windows which I am not running. I followed the HP Linux links for downloading hplip (HP Linux Imaging & Printing) but I actually found that I already have that program instealled.

garrett@mint-desktop ~ $ sudo apt-get install hplip
[sudo] password for garrett:
Reading package lists... Done
Building dependency tree      
Reading state information... Done
hplip is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 47 not upgraded.

How can I scan from the HP Envy 5642 without having to scan to email or scan to flash drive. I want to be able to scan directly to my Linux Mint OS.

Dani AI

Generated

Short summary and practical steps that pick up where the thread left off.

If printing works but the scanner is invisible, the usual causes are: the SANE “hpaio” backend (the SANE driver provided by HPLIP) is not installed/enabled, udev rules that give scanner access are missing, or the distribution-provided HPLIP is too old and the model needs a newer HPLIP (or the proprietary HP plugin) to expose scanning. resolved the problem by installing HPLIP from HP — that is often the fastest fix. (launchpad.net)

Quick diagnostic checklist (do these in order):

  1. See what the SANE tools detect:

    sane-find-scanner -v
    scanimage -L

    If sane-find-scanner sees the device but scanimage does not, this means the kernel/libusb layer sees the hardware but SANE has no working backend for it. The sane utilities and manpages explain this workflow. ()

  2. On Debian/Ubuntu-derived systems ensure the HPLIP SANE backend package is present (the backend is provided as libsane-hpaio / hplip-related packages) and that /etc/sane.d/dll.conf includes the hpaio entry (uncomment or add it). If you rely on the distro package, check that the packaged HPLIP/libsane-hpaio version actually lists your model. (packages.debian.org)

  3. udev rules: HPLIP normally installs udev rules that mark HP USB devices so they get sane_hpaio set and add hpaio to dll.conf automatically; if those rules are missing the scanner can be invisible to non-root users. Look for HPLIP hpmud/udev rules in /lib/udev/rules.d or /etc/udev/rules.d and reload udev after installing them. (bugs.launchpad.net)

If the distro HPLIP is old, use the official HPLIP installer from HP (it will offer the proprietary plugin when required). For networked HP MFPs, an easier modern option is the sane-airscan backend (eSCL / WSD/AirScan) which often provides driverless scanning without HPLIP. Try the HPLIP installer path first for USB AIOs; try sane-airscan for network devices.

Thanks to and for the hp-setup/hplip hints — those are the right tools to use if the above checks show HPLIP is missing or outdated.

Recommended Answers

All 7 Replies

Hi,

on terminal write hp- then hit tab, you should see:

hp-align               hp-info                hp-query
hp-check               hp-levels              hp-scan
hp-clean               hp-logcapture          hp-setup
hp-colorcal            hp-makeuri             hp-testpage
hp-config_usb_printer  hp-pkservice           hp-timedate
hp-doctor              hp-plugin              hp-unload
hp-firmware            hp-plugin-ubuntu       
hp-hpdio               hp-probe        

Which are the utils installed by the hplip package, among them there is also the command hp-scan but you need to setup the printer, so try hp-info to see if it's detected... you can also install the GUI, package name is hplip-gui.

hp-info returned no device found and the printer/scanner is turned on and plugged in via the USB. I don't think HP has any Linux support for this model. I'm going to have to keep booting into microshaft window$ just to save a scaned image then bring it over to my Linux system. Thanks.

Did you run hp-setup ? https://help.ubuntu.com/community/sane

Edit: the hplip page gives a list of distros for which the scanner works. If your distro is in the list, there must be a way to configure this properly.

I'm running Linux Mint 17 and it's on the list but nothing I try is working. I also tried hp-setup but it couldn't find the device, it is plugged in via USB.

In hp-setup I also found an option called 'Manual Discovery' with a text box labeled 'USB bus ID:device ID (bbb:ddd):'

This is what I get from lsusb

Bus 006 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 005 Device 004: ID 0557:2212 ATEN International Co., Ltd 
Bus 005 Device 003: ID 0461:4d64 Primax Electronics, Ltd 
Bus 005 Device 002: ID 0557:8021 ATEN International Co., Ltd 
Bus 005 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 001 Device 003: ID 03f0:cc11 Hewlett-Packard 
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub

I tyred entering 001:003 & 03f0:cc11 into the that text area but it still couldn't find anything.

I finally got it. I didnt' have the latest version of hplip and the latest isn't the latest version in the Ubuntu repositories either. I was able to download it directly from the site and now everything is working just fine.

the latest isn't the latest version in the Ubuntu repositories

This is not so unusual. I often have this issue with python modules, which I then install with pip instead of apt-get, until the correct version comes into the ubuntu repositories.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.