0

scanner found in terminal and in simplescan, but does not work for xsane in simplescan or gimp, says “unable to connect to scanner”

found USB scanner (vendor=0x03f0 [Hewlett-Packard], product=0x332a [HP Color LaserJet Pro 
Bus 003 Device 003: ID 03f0:332a Hewlett-Packard

roger@roger-desktop:~$ sane-find-scanner found USB scanner (vendor=0x03f0 [Hewlett-Packard], product=0x332a [HP Color LaserJet Pro MFP M177fw]) at libusb:003:003

roger@roger-desktop:~$ scanimage -L device `hpaio:/usb/HP_Color_LaserJet_Pro_MFP_M177fw?serial=CNG6J1J7WD' is a Hewlett-Packard HP_Color_LaserJet_Pro_MFP_M177fw all-in-one

roger@roger-desktop:~$ scanimage -T scanimage: open of device hpaio:/usb/HP_Color_LaserJet_Pro_MFP_M177fw?serial=CNG6J1J7WD failed: Error during device I/O

roger@roger-desktop:~$ scanimage -V scanimage (sane-backends) 1.0.27; backend version 1.0.27

---> Scan used to work ok, but some time ago ---> Works fine for printing.

1 Answers1

0

I would suggest you dispense with using HPLIP and its non-free plugin and employ a more modern method for scanning. This technique is employed by default on Ubuntu 21.04 so you could get packages from its archive. However, it is probably more convenient and reliable to do the following:

  • Go here (main page), read and move on to this page (Debian packages).
  • Download and install sane-airscan and ipp-usb.
  • Plug the device into USB and execute scanimage -L. The output should show an entry beginning with device 'airscan:....
  • Check scanning with simple-scan airscan:...

Further info

  • Downloading and installing sane-airscan and ipp-usb id linked from the main page under Installation from pre-build binaries.
  • HPLIP becomes redundant.
  • WiFi is not necessary to use sane-airscan.
  • AirScan uses the eSCL protocol
brian_p
  • 916