Xsane & Simplescan not detecting scanner

Asked by John Wilson

I have a Lexmark MC3326 and Lexmark provide proprietary drivers which provide USB connectivity and I had the scanner working until I moved back to town.
When I start Xsane it searches for scanners but never find them and freezes.
The same with Simplescan.
Have reinstalled everything using Synaptic or by download from Lexmark
Here is the output of sane-find-scanner:
john@john-H81M-S2H-GSM:~$ sudo sane-find-scanner
[sudo] password for john:

  # sane-find-scanner will now attempt to detect your scanner. If the
  # result is different from what you expected, first make sure your
  # scanner is powered up and properly connected to your computer.

  # No SCSI scanners found. If you expected something different, make sure that
  # you have loaded a kernel SCSI driver for your SCSI adapter.

could not fetch string descriptor: Pipe error
could not fetch string descriptor: Pipe error
found USB scanner (vendor=0x043d [Lexmark], product=0x0335 [Lexmark MC3326adwe]) at libusb:003:002
  # Your USB scanner was (probably) detected. It may or may not be supported by
  # SANE. Try scanimage -L and read the backend's manpage.

  # Not checking for parallel port scanners.

  # Most Scanners connected to the parallel port or other proprietary ports
  # can't be detected by this program.

What should I do next?

Question information

Language:
English Edit question
Status:
Solved
For:
HPLIP Edit question
Assignee:
No assignee Edit question
Solved by:
John Wilson
Solved:
Last query:
Last reply:
Revision history for this message
John Wilson (jwilsondmartin) said :
#1

When I run scanimage -L there is no output, even after 5 minutes.

Revision history for this message
brian_p (claremont102) said :
#2

> I have a Lexmark MC3326..

Lexmark? This is a channel for supporting *HP* devices.

What is your distribution?

Revision history for this message
John Wilson (jwilsondmartin) said :
#3

Sorry for my error.
Should I post my question on the Ubuntu channel?
My distribution is Ubuntu 21.04 Hirsute Hippo

Revision history for this message
brian_p (claremont102) said :
#4

> Sorry for my error.

No problem.

> Should I post my question on the Ubuntu channel?

It would have been more appropriate. OTOH, you are already here,
so post what you get for

  scanimage -L

and

  airscan-discover

Revision history for this message
John Wilson (jwilsondmartin) said :
#5

scanimage -L does not produce any output
john@john-H81M-S2H-GSM:~$ sudo scanimage -L
[sudo] password for john:

Here is the output of airscan-discover:
john@john-H81M-S2H-GSM:~$ sudo airscan-discover
[sudo] password for john:
[devices]
  Lexmark MC3326adwe = http://192.168.1.75:80/eSCL/, eSCL
  Lexmark MC3326adwe = https://192.168.1.75:443/eSCL/, eSCL
  Lexmark MC3326adwe = http://[2001:569:bd12:9e00:76ee:2aff:febc:fb66]:65004/Scanner1/WebServices, WSD
  Lexmark MC3326adwe = http://192.168.1.75:65004/Scanner1/WebServices, WSD
  Lexmark MC3326adwe (USB) = http://127.0.0.1:60001/eSCL/, eSCL

Revision history for this message
brian_p (claremont102) said :
#6

Can you scan with

  xsane "http://192.168.1.75:80/eSCL/"
  xsane "http://127.0.0.1:60001/eSCL/"
  xsane "http://192.168.1.75:65004/Scanner1/"

simple-scan in place of xsane is also suitable.

Revision history for this message
John Wilson (jwilsondmartin) said :
#7

No.

Running the command in a terminal produced:
Failed to load module "canberra-gtk-module"

Running xsane "http://127.0.0.1:60001/eSCL/" in a terminal produced:
john@john-H81M-S2H-GSM:~$ xsane "http://127.0.0.1:60001/eSCL/"
Gtk-Message: 16:52:03.343: Failed to load module "canberra-gtk-module"

and opening xsane "http://192.168.1.75:65004/Scanner1/" in a terminal produced:
john@john-H81M-S2H-GSM:~$ xsane "http://192.168.1.75:65004/Scanner1/"
Gtk-Message: 16:53:40.176: Failed to load module "canberra-gtk-module"

I found a libcanberra-gtk-module on Synaptic and installed it but it doesn't allow me to scan

Revision history for this message
brian_p (claremont102) said :
#8

Sorry, John. I cannot take this any further. No output from 'scanimage -L'
is worrying.

Revision history for this message
John Wilson (jwilsondmartin) said :
#9

Thank you for your help
John

Revision history for this message
brian_p (claremont102) said :
#10

Apologies, John. My previous advice was sub-optimal because the lack of
'scanimage -L' output disturbed me..

 Please try scanimage -d "airscan:e0:192.168.1.75:80/" > image.pnm

Revision history for this message
John Wilson (jwilsondmartin) said :
#11

Hi Brian
Thank you for getting back to me.
I opened the question on the Ubuntu channel as question 699066 so I am posting this there as well.

The output of scanimage -d "airscan:e0:192.168.1.75:80/" > image.pnm is:
john@john-H81M-S2H-GSM:~$ scanimage -d "airscan:e0:192.168.1.75:80/" > image.pnm
Output format is not set, using pnm as a default.

The desktop scanner starts up and scans an image in .pnm format into my home folder

Revision history for this message
brian_p (claremont102) said :
#12

> The desktop scanner starts up and scans an image in .pnm format
> into my home folder

Good. You should be able to substitute xsane or simple-scan for scaniage.
in the command (leave off the -d). No output from 'scanimage -L' will
probably still prevent auto-scanning with xsane. However, you now have a
way of scanning.

Revision history for this message
brian_p (claremont102) said :
#13

I had better inform you that you scanned with the sane-airscan driver.
sane-aircan is installed and used by default on 21.04. The Lexmark
driver is not being used and will not be used because you are also
using ipp-usb by default. See sections 14, 15 and 16 at

  https://wiki.debian.org/CUPSDriverlessPrinting

Revision history for this message
John Wilson (jwilsondmartin) said :
#14

john@john-H81M-S2H-GSM:~$ xsane "airscan:e0:192.168.1.75.80/" > image.pnm
Killed
Produced xsane searching for scanners and unresponsive.
Is my command correct?

Revision history for this message
brian_p (claremont102) said :
#15

The correct command is

  xsane "airscan:e0:192.168.1.75.80/"

How's that?

Revision history for this message
John Wilson (jwilsondmartin) said :
#16

Thank you for the correct command.
when I run it a window opes to tell me Xsane 0.999 is searching for devices and there the process stalls.
Next I get a message saying Xsane is not responding and I can quit or wait.

Revision history for this message
brian_p (claremont102) said :
#17

How about

  xsane "airscan:w0:192.168.1.75.80/" ?

Revision history for this message
John Wilson (jwilsondmartin) said :
#18

The same thing.
Xsane is searching for devices which it never finds.

Revision history for this message
brian_p (claremont102) said :
#19

This could be a feature of xsane or simple-scan, if you have
tried it. scanimage is (or was) OK.

I hope you realise the lack of output from 'scanimage -L' is a
critical factor. Maybe purge the Lexmark scanner driver. It is
unneeded.

Revision history for this message
John Wilson (jwilsondmartin) said :
#20

I completely removed the Lexmark driver using Synaptic.
Now scanimage -L has an output which is:
john@john-H81M-S2H-GSM:~$ scanimage -L
device `escl:https://192.168.1.75:443' is a Lexmark MC3326adwe platen,adf scanner
device `escl:http://127.0.0.1:60001' is a Lexmark MC3326adwe (USB) platen,adf scanner
device `airscan:e0:Lexmark MC3326adwe' is a eSCL Lexmark MC3326adwe ip=192.168.1.75
device `airscan:e1:Lexmark MC3326adwe (USB)' is a eSCL Lexmark MC3326adwe (USB) ip=127.0.0.1

Now xsane finds two devices and I am able to scan using the flatbed and the ADF!

Many thanks

Revision history for this message
brian_p (claremont102) said :
#21

Would you confirm you can scan with

  xsane "airscan:e0:Lexmark MC3326adwe" ?

Revision history for this message
John Wilson (jwilsondmartin) said :
#22

Yes.
Simple scan is also working
Many thanks