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:
Ubuntu 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.
Using Ubuntu 21.04

Revision history for this message
actionparsnip (andrew-woodhead666) said :
#2

How did you install the drivers? What steps did you take?
If you run xsane using sudo does it work OK (May be a permissions issue)

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

I downloaded the Lexmark driver and tried installing it with ubuntu software and when that didn't work I tried extracting it with Archive Manager and then installing it.from the extracted files.
When I run xsane as root it freezes at searching for scanners.

Revision history for this message
Manfred Hampl (m-hampl) said (last edit ):
#4

If you execute the command
strace scanimage -L
and let it run for a while, what are the last ten lines shown on screen when it stops?

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

Went back to the Lexmark support site and found they had updated the firmware
Installed the new firmware, still the same problem.
Here are the last 10 lines of strace scanimag -L:
      = 4244
getpid() = 4244
getpid() = 4244
getpid() = 4244
getpid() = 4244
getpid() = 4244
getpid() = 4244
pselect6(4, [3], NULL, NULL, {tv_sec=5, tv_nsec=0}, NULL) = 1 (in [3], left {tv_sec=4, tv_nsec=442430506})
getpid() = 4244
getpid() = 4244
recvfrom(3, "\0\0\0\0\0\1\0\0\0\1\0\0\vdlinkap8D52\5local\0\0"..., 1024, 0, NULL, NULL) = 51
getpid() = 4244
getpid() = 4244
pselect6(4, [3], NULL, NULL, {tv_sec=5, tv_nsec=0}, NULL) = 1 (in [3], left {tv_sec=4, tv_nsec=744963441})
getpid() = 4244
getpid() = 4244
recvfrom(3, "\0\0\0\0\0\1\0\0\0\1\0\0\vdlinkap8D52\5local\0\0"..., 1024, 0, NULL, NULL) = 51
getpid() = 4244
getpid() = 4244
pselect6(4, [3], NULL, NULL, {tv_sec=5, tv_nsec=0}, NULL) = 1 (in [3], left {tv_sec=4, tv_nsec=750970034})
getpid() = 4244
getpid() = 4244
recvfrom(3, "\0\0\0\0\0\1\0\0\0\1\0\0\vdlinkap8D52\5local\0\0"..., 1024, 0, NULL, NULL) = 51
getpid() = 4244
getpid() = 4244
pselect6(4, [3], NULL, NULL, {tv_sec=5, tv_nsec=0}, NULL) = 1 (in [3], left {tv_sec=4, tv_nsec=746383329})
getpid() = 4244
getpid() = 4244
recvfrom(3, "\0\0\204\0\0\0\0\2\0\0\0\2\00265\0011\003168\003192\7in-add"..., 1024, 0, NULL, NULL) = 119
getpid() = 4244
getpid() = 4244
getpid() = 4244
getpid() = 4244
getpid() = 4244
getpid() = 4244
getpid() = 4244

Actually, it never settled down and finished but goes continuously through this loop.

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

This problem started as a post on the HPLIP channel, question 699033 who thought he could not help me any more.

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
John Wilson (jwilsondmartin) said :
#7

brian_p suggested that I purge the Lexmark driver as it was superfluous .
When I did that it all worked