Many 3rd party scanner drivers are broken by a sane change

Bug #1728012 reported by PeterPall on 2017-10-27
400
This bug affects 79 people
Affects Status Importance Assigned to Milestone
sane-backends (Ubuntu)
High
Unassigned

Bug Description

Many scanners can no more be used since sane has changed something: The 3rd-party plug-in the vendor provides as .deb package will still install. But the scanner is no more recognized.

Scanners that are affected are(besides others):
 - Epson Perfection V10
 - Epson Perfection V1000
 - Epson WorkForce GT-1500
 - Brother MFC-8510DN
 - Epson Perfection V33

It is to note that the probability that the scanner manufacturers fix things others broke is below 100%.

ProblemType: Bug
DistroRelease: Ubuntu 18.04
Package: libsane1 1.0.27-1~experimental2ubuntu2
Uname: Linux 4.14.0-041400rc5-lowlatency x86_64
ApportVersion: 2.20.7-0ubuntu3.1
Architecture: amd64
Date: Fri Oct 27 12:35:52 2017
EcryptfsInUse: Yes
SourcePackage: sane-backends
UpgradeStatus: No upgrade log present (probably fresh install)

PeterPall (peterpall) wrote :
description: updated
description: updated
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in sane-backends (Ubuntu):
status: New → Confirmed
Jeremy Bicha (jbicha) on 2017-10-27
Changed in sane-backends (Ubuntu):
importance: Undecided → High

I can confirm that the Epson Perfection V300 is also affected

Using libsane1 1.0.27-1~experimental2ubuntu2.1 allows me to install the drivers without conflicts.

But the scanner is not recognized. Neither by scanimage, simple-scan or iscan

lsusb shows that the scanner is attached

lsusb
Bus 002 Device 002: ID 8087:8001 Intel Corp.
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 001 Device 002: ID 8087:8009 Intel Corp.
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 004 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 003 Device 006: ID 04b8:0131 Seiko Epson Corp. GT-F720 [GT-S620/Perfection V30/V300 Photo]
Bus 003 Device 005: ID 046d:c069 Logitech, Inc. M-U0007 [Corded Mouse M500]
Bus 003 Device 004: ID 08bb:2707 Texas Instruments
Bus 003 Device 003: ID 0409:005a NEC Corp. HighSpeed Hub
Bus 003 Device 002: ID 24f0:0137
Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

Kubuntu 17.04
Fail to use Epson Perfection V30

$ lsusb |grep -i epson

Bus 003 Device 005: ID 04b8:0131 Seiko Epson Corp. GT-F720 [GT-S620/Perfection V30/V300 Photo]

$ apt list --installed |grep -e esci -e iscan -e libsane -e sane-utils

esci-interpreter-gt-f720/now 0.1.1-2 amd64 [installed,local]
iscan/now 2.30.2-2 amd64 [installed,local]
iscan-data/now 1.36.0-1 all [installed,local]
libsane-common/now 1.0.27-1~experimental2ubuntu2.1 all [installed,local]
libsane-extras/artful,now 1.0.22.5 amd64 [installed]
libsane-extras-common/artful,artful,now 1.0.22.5 all [installed,automatic]
libsane-hpaio/artful,now 3.17.7+repack0-3 amd64 [installed]
libsane1/now 1.0.27-1~experimental2ubuntu2.1 amd64 [installed,local]
sane-utils/now 1.0.27-1~experimental2ubuntu2.1 amd64 [installed,local]

$ scanimage -L

No scanners were identified. If you were expecting something different,
check that the scanner is plugged in, turned on and detected by the
sane-find-scanner tool (if appropriate). Please read the documentation
which came with this software (README, FAQ, manpages).

Xerox Workcentre 3225 with the drivers version 1.00.25:00.05 that used to work very well with Zesty's libsane still not functional.
My malfunction hasn't changed a bit with the 1.0.27-1~experimental2ubuntu2.1 package.
Like before xsane crashes with the following message:
  Not a JPEG file: starts with 0x00 0x00
and/or hangs with scanning status.
mariusz:~> dpkg -l | grep sane
ii libkf5sane-data 17.04.3-0ubuntu1 all scanner library (data files)
ii libkf5sane5 17.04.3-0ubuntu1 amd64 scanner library (runtime)
ii libksane-data 4:17.04.3-0ubuntu1 all scanner library (data files) - transitional package
ii libksane0 4:15.08.3-1ubuntu2 amd64 scanner library (runtime)
ii libsane-common 1.0.27-1~experimental2ubuntu2.1 all API library for scanners -- documentation and support files
ii libsane-extras:amd64 1.0.22.5 amd64 API library for scanners -- extra backends
ii libsane-extras-common 1.0.22.5 all API library for scanners -- documentation and support files
rc libsane-hpaio:amd64 3.16.7+repack0-1ubuntu1 amd64 HP SANE backend for multi-function peripherals
ii libsane1:amd64 1.0.27-1~experimental2ubuntu2.1 amd64 API library for scanners
ii sane 1.0.14-12build1 amd64 scanner graphical frontends
ii sane-utils 1.0.27-1~experimental2ubuntu2.1 amd64 API library for scanners -- utilities
ii xsane 0.999-5ubuntu2 amd64 featureful graphical frontend for SANE (Scanner Access Now Easy)
ii xsane-common 0.999-5ubuntu2 all xsane architecture independent files

I could use some/any guidance for providing more details to anyone if reverting back to working libsane is not an option.

Forgot to mention that I use or rather attempt to use the scanner over the TCP.

Michael Hill (wrendriff) wrote :

Add to list of scanner "broken" - Epson Perfection V300 Photo.

dependency errors occurring after upgrade from Ubuntu 17.04 to 17.10 are
iscan depending on libsane (>=1.0.11-3)
esci-interpreter-gt-f720 depends on iscan (>=2.16.1)

luca.mg (luca-mg) wrote :

Cross posting from https://bugs.launchpad.net/ubuntu/+source/sane-backends/+bug/1707352?comments=all

On artful, libsane1 1.0.27-1~experimental2ubuntu2.1, in short: the Epson 4490 Photo scanner doesn't work, the Brother MDC-1910W scanner only works as root; both were fully working on zesty. In details:

Epson 4490 Photo as user
sane-find-scanner detects a bunch of USB devices including the scanner, but has not enough permission
scanimage -l no SANE devices found
iscan, simple-scan, and xsane do not work

Epson 4490 Photo as root
sane-find-scanner ok
scanimage -l no SANE devices found
iscan, simple-scan, and xsane do not work

Brother MFC-1910W as user
sane-find-scanner detects a bunch of USB devices including the scanner, but has not enough permission
scanimage -l no SANE devices found
simple-scan and xsane do not work

Brother MFC-1910W as root
sane-find-scanner ok
scanimage -l ok
simple-scan ok
xsane ok

Bo Lundberg (bo-lundberg) wrote :

Epson 2400 photo doesn't work in Iscan (can't send to scanner). Works fine with xsane.

Yves D. Mercier (ymerj) wrote :

Epson v370 photo doesn't work either. Purchased only 3 months ago, it was fully functionnal in zesty. Now totally unusable in artful even with libsane1 1.0.27-1~experimental2ubuntu2.1

Today I managed to bring back my dead Epson V300 alive :-)

1. Install libsane1 1.0.27-1~experimental2ubuntu2.1

2. Install iscan-gt-f720-bundle-1.0.1.x64.deb.tar.gz

3. Copy (or move) the files from /usr/lib/sane (libsane-epkowa.la, libsane-epkowa.so.1, libsane-epkowa.so.1.0.15 in my case) to /usr/lib/x86_64-linux-gnu/sane

4. reboot.

Guess this works with all Iscan depend scanners from Epson

Just for the record

scanimage -L
device `epkowa:interpreter:003:007' is a Epson Perfection V300 flatbed scanner
device `imagescan:esci:networkscan://192.168.50.24:1865' is a Epson XP-540

Iscan, simple-scan, Xsane are working as expected.

BRScan users can you try what happens when copy the files (libsane-brother*) from /usr/lib64/sane/ to /usr/lib/x86_64-linux-gnu/sane.

Maybe the fix for brother scanners is as easy as the one for the epson ones ...

Yves D. Mercier (ymerj) wrote :

Sorry to say that staedtler-przyborski solution did not work for me (epson V370 photo). Deb file is different in my case (iscan-perfection-v370-bundle-1.0.1.x64.deb.tar.gz)

Yves D. Mercier (ymerj) wrote :

Update: Just tried it as root. I works.

Thats interesting. I don't need to be root to scan.

So whats different is the question ? I don't believe it's the different plugin. Iscan is identical I suppose.

Just for completeness:

 apt list --installed |grep -e esci -e iscan -e libsane -e sane-utils

WARNING: apt does not have a stable CLI interface. Use with caution in scripts.

esci-interpreter-gt-f720/now 0.1.1-2 amd64 [Installiert,lokal]
iscan/now 2.30.2-2 amd64 [Installiert,lokal]
iscan-data/now 1.36.0-1 all [Installiert,lokal]
libsane-common/now 1.0.27-1~experimental2ubuntu2.1 all [Installiert,lokal]
libsane-hpaio/artful,now 3.17.7+repack0-3 amd64 [installiert]
libsane1/now 1.0.27-1~experimental2ubuntu2.1 amd64 [Installiert,lokal]
sane-utils/now 1.0.27-1~experimental2ubuntu2.1 amd64 [Installiert,lokal]

Are on x-org or wayland ? Can you try what happens if you switch to X-org ?

X-Org or wayland doens't matter. My scanner works with both (verfied).

Do you have a file named 79-udev-epson.rules in /etc/udev/rules.d ?

Mine has the following content:

# chmod device EPSON group
# ACTION=="add", ATTRS{manufacturer}=="EPSON", DRIVERS=="usb", SUBSYSTEMS=="usb", ATTRS{idVendor}=="04b8", ATTRS{idProduct}=="*", MODE="0666"
ATTRS{manufacturer}=="EPSON", DRIVERS=="usb", SUBSYSTEMS=="usb", ATTRS{idVendor}=="04b8", ATTRS{idProduct}=="*", MODE="0777"

A Test here showed:

without 79-udev-epson.rules in /etc/udev/rules.d

only 'sudo scanimage -L works'

with 79-udev-epson.rules in /etc/udev/rules.d

no root needed, a simple 'scanimage -L' is sufficient

maybe for the brscan scanners also only the udev rule is missing

try to add
# Brother scanners
ATTRS{idVendor}=="04f9", ATTRS{idProduct}=="0255", MODE="0660", GROUP="scanner", ENV{libsane_matched}="yes"

to e.g. /lib/udev/rules.d/60-libsane1.rules

Yves D. Mercier (ymerj) wrote :

I did not have the 79-udev-epson.rules file, so I created one with the content you posted. My scanner works now. No root needed. Many thanks.

My Brother MFC-J220 works now with the 1.0.27-1~experimental2ubuntu2.1 packages.

The brscan3 driver installs files in /usr/lib64 and /usr/lib64/sane.
I linked them by
'sudo ln -sfr /usr/lib64/libbrscandec* /usr/lib/x86_64-linux-gnu'
and
'sudo ln -sfr /usr/lib64/sane/libsane-brother* /usr/lib/x86_64-linux-gnu/sane'

Thanks to staedtler-przyborski for the hint.

@ Hans Schwimmbeck

Great, so we have a fix for brother brscan3 scanners too.

Ah yes, linking is definitely a better way than copying (you may forgive me, my workaround was only a first try).

Now we only need to know if, brscan, brscan2 and brscan4 scanners can be fixed too by linking directories

For Xerox Workcentre 3225 I have mentioned in this and the original sane bug the solution is:
1. Link the files in /usr/lib/sane to /usr/lib/x86_64-linux-gnu/sane,
2. Add the user that needs to use the scanner to the "lp" group.
Otherwise the "Not a JPEG file: starts with 0x00 0x00" issue persists.

Thanks Mariusz. Can you please specify which files are in /usr/lib/sane (just to make the command below more precise) ?

To summarize we have now the following workarounds (all 64-bit):

1. Brother brscan3

a) 'sudo ln -sfr /usr/lib64/libbrscandec* /usr/lib/x86_64-linux-gnu'
b) 'sudo ln -sfr /usr/lib64/sane/libsane-brother* /usr/lib/x86_64-linux-gnu/sane'

2. Epson Iscan

a) 'sudo ln -sfr /usr/lib/sane/libsane-epkowa* /usr/lib/x86_64-linux-gnu/sane'
b) generate '/etc/udev/rules.d/79-udev-epson.rules'
content:
# chmod device EPSON group
ATTRS{manufacturer}=="EPSON", DRIVERS=="usb", SUBSYSTEMS=="usb", ATTRS{idVendor}=="04b8", ATTRS{idProduct}=="*", MODE="0777"

3. Xerox Workcentre 3225

a) 'sudo ln -sfr /usr/lib/sane/* /usr/lib/x86_64-linux-gnu/sane'
b) 'sudo adduser $USER lp'

PeterPall (peterpall) wrote :

You are a genius! My MFC8510 and my Epson WorkForce GT-1500 now work fine...
...now we should forward this info to the sane programmers (perhaps they can make the program look in both the old and the new locations), to Debian - and to the manufacturers: Symlinks isn't hard to create in the postinstall scripts. Perhaps they will add the necessary lines.

> ls -la /usr/lib/sane/
total 40
drwxr-xr-x 2 root root 4096 Oct 27 12:10 .
drwxr-xr-x 147 root root 36864 Oct 17 15:30 ..
lrwxrwxrwx 1 root root 31 Oct 27 12:10 libsane-smfp.so -> /usr/lib/sane/libsane-smfp.so.1
lrwxrwxrwx 1 root root 35 Oct 27 12:10 libsane-smfp.so.1 -> /usr/lib/sane/libsane-smfp.so.1.0.1
lrwxrwxrwx 1 root root 50 Oct 27 12:10 libsane-smfp.so.1.0.1 -> /opt/smfp-common/scanner/lib/libsane-smfp.so.1.0.1

Xerox has an "universal", script based driver installer available at http://download.support.xerox.com/pub/drivers/WC3225/drivers/linux/en_GB/Xerox_WorkCentre_3225_Linux-Driver.tar.gz

PPDs and about 5 installed binaries, French locale and a bunch of scripts for arm, i386, and x86_64.

In the meanwhile I had a look on different brscan drivers ...

Unfortunately brscan4 has a complete different structure (so at least one real user is needed)

Summary is now:

1. Brother brscan, brscan2, brscan 3

a) 'sudo ln -sfr /usr/lib64/libbr* /usr/lib/x86_64-linux-gnu'
b) 'sudo ln -sfr /usr/lib64/sane/libsane-brother* /usr/lib/x86_64-linux-gnu/sane'

2. Epson Iscan

a) 'sudo ln -sfr /usr/lib/sane/libsane-epkowa* /usr/lib/x86_64-linux-gnu/sane'
b) generate '/etc/udev/rules.d/79-udev-epson.rules'
content:
# chmod device EPSON group
ATTRS{manufacturer}=="EPSON", DRIVERS=="usb", SUBSYSTEMS=="usb", ATTRS{idVendor}=="04b8", ATTRS{idProduct}=="*", MODE="0777"

3. Xerox Workcentre 3225

a) 'sudo ln -sfr /usr/lib/sane/libsane-smfp* /usr/lib/x86_64-linux-gnu/sane'
b) 'sudo adduser $USER lp'

I forgot to mention that also needed is something like /etc/udev/rules.d/59-local.rules.
In my upgraded installation it has not changed since 16.04 and looks like this:
---------------
# Brother MFC-J220
ATTRS{idVendor}=="04f9", ATTRS{idProduct}=="0259", MODE="0664", GROUP="scanner", ENV{libsane_matched}="yes"

---------------

Of course 'idProduct' has to match the local scanner model, 'lsusb' and 'sane-find-scanner' are your friends.

Dear Hans could you please test if a more generic solution like the one provided by Epson would also work for local attached Brother Scanners ?

A possible Example:

# chmod device BROTHER group
ATTRS{manufacturer}=="BROTHER", DRIVERS=="usb", SUBSYSTEMS=="usb", ATTRS{idVendor}=="04f9", ATTRS{idProduct}=="*", MODE="0777"

Thanks

luca.mg (luca-mg) wrote :

I can confirm that the Epson Perfection 4490 Photo scanner, iscan-gt-x750-bundle-1.0.0.x64 based, works by creating symlinks of the /usr/lib/sane/libsane-epkowa* files into the /usr/lib/x86_64-linux-gnu/sane directory by issuing the command 'sudo ln -sfr /usr/lib/sane/libsane-epkowa* /usr/lib/x86_64-linux-gnu/sane' as said above; no need to tinker with the udev rules files in my case. This doesn't look like a bug fix to me, it's a workaround, needing a user tweak, libsane1 should look for third party sane drivers (once called backends IIRC) in the "legacy" directories as well as in the new ones, for backward compatibility.

luca.mg (luca-mg) wrote :

The Brother MFC-1910W printer-fax-scanner, brscan4 based, does not work with the symlink trick, the scanner is detected by sane-find-scanner, but is not listed by scanimage -l, and will only work after enabling the root account and issuing the 'su root' and 'xsane' commands in a terminal; a simple sudo xsane won't work. Although it seems to me a permission issue, creating appropriate (to the best of my knowledge!) udev rules files in the /etc/udev/rules.d directory and/or in /lib/udev/rules.d directory has no positive outcome, nor editing the the /lib/udev/rules.d/60-libsane1.rules file; my attempts were using the lines

## Brother MFC-1910W
ATTRS{idVendor}=="04f9", ATTRS{idProduct}=="035d", MODE="0666", GROUP="scanner", ENV{libsane_matched}="yes"

with several flavours of the MODE= option (0660 0666 0664 0777 and the like).
Again: if only libsane1 will also look for sane backends in the "legacy" locations other than the new ones perhaps this insane mess would be sorted out.

I don't like MODE="0777" in the Epson derived example.

This works for me and _should_ work for all brscan3 devices:

# Brother brscan3 devices
ATTRS{idVendor}=="04f9", ATTRS{idProduct}=="*", MODE="0664", GROUP="scanner", ENV{libsane_matched}="yes"

luca.mg (luca-mg) wrote :

Thank You for Your time Hans, I do not like 0777 as well, but I was shooting in the dark. As stated, I tried
## Brother MFC-1910W
ATTRS{idVendor}=="04f9", ATTRS{idProduct}=="035d", MODE="0666", GROUP="scanner", ENV{libsane_matched}="yes" (or 0660 0664 0777 modes)

which should be the equivalent of Your
# Brother brscan3 devices
ATTRS{idVendor}=="04f9", ATTRS{idProduct}=="*", MODE="0664", GROUP="scanner", ENV{libsane_matched}="yes"

no joy.

luca.mg (luca-mg) wrote :

PS I'm on brscan 4.

I have no glue why Epson has chosen '0777', maybe it's because they upload a firmware to their scanners ...

Actual summary:

1.Brother:

brscan4 no luck until now (btw. the installer already seems to respect /usr/lib/x86_64-linux-gnu/sane)

brscan, brscan2, brscan3

a) 'sudo ln -sfr /usr/lib64/libbr* /usr/lib/x86_64-linux-gnu'
b) 'sudo ln -sfr /usr/lib64/sane/libsane-brother* /usr/lib/x86_64-linux-gnu/sane'
c) generate '/etc/udev/rules.d/59-udev-local.rules'
content:
# Brother brscan devices
ATTRS{idVendor}=="04f9", ATTRS{idProduct}=="*", MODE="0664", GROUP="scanner", ENV{libsane_matched}="yes"

2. Epson Iscan

a) 'sudo ln -sfr /usr/lib/sane/libsane-epkowa* /usr/lib/x86_64-linux-gnu/sane'
b) generate '/etc/udev/rules.d/79-udev-epson.rules'
content:
# chmod device EPSON group
ATTRS{manufacturer}=="EPSON", DRIVERS=="usb", SUBSYSTEMS=="usb", ATTRS{idVendor}=="04b8", ATTRS{idProduct}=="*", MODE="0777"

3. Xerox Workcentre 3225

a) 'sudo ln -sfr /usr/lib/sane/libsane-smfp* /usr/lib/x86_64-linux-gnu/sane'
b) 'sudo adduser $USER lp'

@luca.mg

Are you aware of these informations ?

http://stepsilon.com/ubuntu/install-scanner-brother-dcp-7055-ubuntu

"The Brother Linux scanner driver works only with a superuser by default, as noted on the brother solutions site.

If you want to allow normal users to also use the scanner, this is the solution:

Download following deb package. Open a terminal and paste following line

       wget www.brother.com/pub/bsc/linux/dlf/brother-udev-rule-type1-1.0.0-1.all.deb"

Can you please try ?

luca.mg (luca-mg) wrote :

Hi staedtler-przyborski, and thank You for taking the time to further investigate the matter. Yes indeed, I did try to install the brother-udev-rule-type1 package You kindly linked, also tinkering with the various settings, and tested with a later release too, even if both weren't needed in zesty, nor in xenial (I guess that the package was required with earlier ubuntu releases), but it doesn't make any difference: the scanner is found by sane-find-scanner, but is not detected by scanimage -l, and it only works running xsane from the terminal after the 'su root' command, while 'sudo xsane' won't work at all. I'm quite sure that it's a permission issue, but I'm out of ideas as to how to fix it, and using the scanner as root is not a feasible option.

@luca.mg

Im sorry to hear that.

BTW. Are you on wayland or xorg. If wayland, have you tried with xorg ?

luca.mg (luca-mg) wrote :

@staedtler-przyborski
I'm on xorg... I forgot to mention: the Brother scanner only works as root AND with xsane, simple-scan doesn't work at all.

tags: added: patch
122 comments hidden view all 202 comments
Peter Bennett (pgbennett) wrote :

No. sudo scanimage -L gives the same result. It does not detect the scanner. However schroot with chroot of Ubuntu 16.04 detects it correctly. See below.

peter@andromeda:~$ scanimage -L

No scanners were identified. If you were expecting something different,
check that the scanner is plugged in, turned on and detected by the
sane-find-scanner tool (if appropriate). Please read the documentation
which came with this software (README, FAQ, manpages).

peter@andromeda:~$ sudo scanimage -L
[sudo] password for peter:

No scanners were identified. If you were expecting something different,
check that the scanner is plugged in, turned on and detected by the
sane-find-scanner tool (if appropriate). Please read the documentation
which came with this software (README, FAQ, manpages).

peter@andromeda:~$ schroot -c chroot:xenial
(xenial)peter@andromeda:~$ scanimage -L
device `brother4:net1;dev0' is a Brother Brother_DCP7065DN DCP-7065DN
(xenial)peter@andromeda:~$

Steven Tryon (stryon) wrote :

Clean install of sane and Epson drivers and reseating cables appears to have taken care my problems with my Epson V500.

Karl Kastner (kastner-karl) wrote :

Samsung SCX-470x,04e8:3457 Samsung Electronics Co., Ltd, is affected as well, the scanner is detected, but if a scan is attempted, the error "Failed to start scanner: error during device i/o" is displayed. Then the connection to the device is lost and I need to restart the device.

Rajasekharan workaround fixed the problem, thanks for posting it!

Veron Rado (junket) wrote :

Samsung SCX-4600 ID 04e8:3433 suffers from this issue too.
It worked fine on Ubuntu 16.04 and 16.10. 17.10 seems to have caused it.

Simple Scan doesn't find the scanner anymore.
Xsane finds it. Sometimes it doesn't.
When it does find it, it fails to scan with "Failed to start scanner:Error during device I/O"

Scanimage finds it and works.
(It does crash with a segmentation fault trying `scanimage --test` but that might be a separate issue?)

I think the fix might be #80. But I don't have most ot the files listed:
- I don't have `/usr/lib/sane` directory at all.
- My `/etc/udev/rules.d` is empty.

Any pointers or tips are appreciated.

Ubuntu 18.04
uname -a
Linux atlantic 4.15.0-23-generic #25-Ubuntu SMP Wed May 23 18:02:16 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux
The backend that's used is `xerox_mfp`

Veron Rado (junket) wrote :

Bit of a breakthrough :)

Launching simple scan and xsane via the terminal with the USB3 workaround[1] environmental variable works:
 $ SANE_USB_WORKAROUND=1 xsane
Or
 $ SANE_USB_WORKAROUND=1 simple-scan

The weird thing is I had previously set that variable by adding `export SANE_USB_WORKAROUND=1` in my ~/.bashrc as outlined here.[2]

But that *did not work*.

It's only by chance I tried this.
So, apparently for the SCX-4600, the USB3 issue is the culprit.

[1] See 'Note 3' in the 'Latest News' banner https://web.archive.org/web/20180630125520/http://www.sane-project.org/
[2] https://askubuntu.com/questions/966834/ubuntu-17-10-and-samsung-scx-4624f-scanner-not-working/966835#966835

Veron Rado (junket) wrote :

Found a permanent fix for Samsung SCX-4600 and USB3 issue.

According to ArchWiki[1] systemd and dbus don't pickup environment variables set in ~/.bashrc.
That explains why the .bashrc fix didn't work.
So the solution I finally found and went for was number 2 in the list on ArchWiki here[2]

Using nano I edited /etc/systemd/user.conf.
I appended this at the bottom of it:

DefaultEnvironment=SANE_USB_WORKAROUND=1

Then I rebooted (I don't know how to get systemd to reload /etc/systemd/user.conf with out rebooting)

And tah-dah!
Simple scan and Xsane now work as normal.

[1] https://wiki.archlinux.org/index.php?title=Environment_variables&oldid=518529#Per_user
[2] https://wiki.archlinux.org/index.php?title=Systemd/User&oldid=528307#Environment_variables

Adam Gwizdz (amgwizdz) wrote :

Thanks staedtler-przyborski. Your solution #14 helped me for my Brother MFC-495CW scanner.

Ken Wright (wizard-bnnorth) wrote :

Well, tanj-dammit! I had this problem fixed and now it's happening again! I've gone through all the fixes in this thread to no avail. Should I start another issue or stay here with people who understand?

Ilja (ilja-schmelzer) wrote :

I also have a problem installing Panasonic KX-MB1500 on Ubuntu 18.04 LTS. Drivers taken from https://panasonic.net/cns/pcc/support/fax/common/table/linuxdriver.html#SD As a printer and a copy device it works. Installation itself seemed unproblematic. In the past, version 14., it has worked, it failed in 16 but I have not tried hard.

lsusb gives:

Bus 001 Device 005: ID 04da:0f0b Panasonic (Matsushita)
Bus 001 Device 002: ID 0bda:8179 Realtek Semiconductor Corp. RTL8188EUS 802.11n Wireless Network Adapter

sudo sane-find-scanner gives:

found USB scanner (vendor=0x0bda [Realtek], product=0x8179 [802.11n NIC]) at libusb:001:002
could not fetch string descriptor: Pipe error

sudo scanimage -L gives nothing.

The end of my /lib/udev/rules.d/60-libsane1.rules looks like
-----
# Hewlett-Packard ScanJet 6300C
ATTRS{type}=="3", ATTRS{vendor}=="HP", ATTRS{model}=="C7670A", ENV{libsane_matched}="yes"

# Panasonic MFS scanners
ATTRS{idVendor}=="04da", ENV{libsane_matched}="yes"

LABEL="libsane_rules_end"
----

Rob Cannell (r-cannell) wrote :

Thanks Staedtler. I can confirm the problem still exists on 18.04 with Epson V200. Your solution worked for me.

fabianbur (fabianbur) wrote :

I can confirm the problem still exists on 18.04 with Samsung SCX-3200.
Thanks Staedtler. What would be a solution with this scanner?

Yevhen (onegin-ua) wrote :

Thanks Staedtleк-przyborski and Luca-mg!
After update Ubuntu 16.04 to Ubuntu 18.04 my Brother DCP-J315W hasn't worked as scanner.
Your solution helped me and my scanner works again on brscan4.

Peter Bennett (pgbennett) wrote :

There is an updated driver for the Brother DCP-7065DN scanner on the Brother web site, dated 5/31/2018. This fixes the problem. see https://www.brother-usa.com/support/DCP7065DN

RadekB (rrrbbb) wrote :

Confirmed for Epson V37.

robbielink (robbielink) wrote :

#36 worked for me - Brother MFC420CN
Thanks!

Maximilian Borm (bormolino) wrote :

Same on my Samsung 2070M. Works perfect under ubuntu 16.04 LTS but not under 18.04 LTS. Scanner not found by simple scan and sane.

Laszlo Keki (ssabra) wrote :

Hello. I have the same problem. Just changed from 16 to Ubuntu 18.04.1 LTS and my Brother DS-620 scanner which was working perfectly before, now not working. I tried all the recipes mentioned above but nothing scanner is not identified. Solution, updates?

Wilhelm Hagg (wilhelmhagg) wrote :

Same problem for Epson Perfection V39

Wladimir Mutel (mwg) wrote :

Dear package maintainers,
as you see, 'epkowa' and some other Epson backends are clearly mispackaged.
Also, Epson USB device permissions should be set properly by udev
Let's see if this problem does have any chances to be fixed in Ubuntu 18.04 before 20.04 is released

Hello, I can confirm I was having the same problem with an Epson Perfection V10 in 18.04 that was solved creating the file '/etc/udev/rules.d/79-udev-epson.rules' and creating links to the libraries ('ln -sfr /usr/lib/sane/libsane-epkowa* /usr/lib/x86_64-linux-gnu/sane')

Thanks

Bruno leite (brunocleite) wrote :

Same problem here for Xerox WorkCentre 3025

I'm having the same problem with Samsung M2070 scanner, but thanks to the information here I was able to patch it working. I linked the files located in /usr/lib/sane (copied there likely by the samsung driver installer) to /usr/lib/x86_64-linux-gnu/sane and now the scan works both over the usb and the network.

Barry Harding (barryha) wrote :

This is a problem with an Epson GT-1500 in ubuntu 18.04 and the work around does not help. This problem seems to have been here for a long long time. Isn't there anyone to try to fix it??

Wladimir Mutel (mwg) wrote :

well, what is really mispackaged, is Epson's iscan 1.0.1 package which places its .so backends into /usr/lib/sane , which is now went our of sync with multi-arch library paths like /usr/lib/x86_64-*-*/sane , introduced in some of past Ubuntu release

Seiko Epson Corp. GT-F650 [GT-S600/Perfection V10/V100] doesn't work in simple-scan in 18.04.1 LTS (Bionic Beaver). It worked without issues in the previous LTS release. After extracting the firmware and setting up the symlinks mentioned in this topic, at least XSane is working. I'm using it now in a virtual machine in 16.04. :(

Polló László (lpollo1) wrote :

I have a Epson L382 printer/scanner machine and i use the software available from Epson. The scanner software do not find the scanner - after the upgrade. sane-find-scanner write this: found USB scanner (vendor=0x04b8 [EPSON], product=0x1120 [L382 Series]) at libusb:002:004 could not open USB device 0x1d6b/0x0002 at 002:001: Access denied (insufficient permissions) scanimage -L write this: No scanners were identified. If you were expecting something different, check that the scanner is plugged in, turned on and detected by the sane-find-scanner tool (if appropriate). Please read the documentation which came with this software (README, FAQ, manpages). The printer part of the machine working properly.

Jeremy Bicha (jbicha) wrote :

I understand why /usr/lib64/ doesn't work right now on Ubuntu (that's a directory commonly used by Fedora and Red Hat distros).

I don't understand why /usr/lib/sane/ doesn't work according to the comments here. When sane-backends was converted to multiarch, a patch was added that I think was supposed to enable /usr/lib/sane/ to still be supported.

https://jff.email/cgit/sane-backends.git/commit/?id=ac1cb335be
https://jff.email/cgit/sane-backends.git/tree/debian/patches/0125-multiarch_dll_search_path.patch

If that patch worked, then maybe it makes sense to just add /usr/lib64/ there too.

I don't have a scanner myself to test any of this.

PeterPall (peterpall) wrote :

Making the library automatically look for plug-ins in all possible places they can be found would be a great idea: This would mean that it doesn't matter if the plug-in expects the library multiarch or not.

If I interpret the 0125-patch correctly it changes the path plugins are found in instead of adding a second one.

Lloyd Hayes (hayeslloyd) wrote :

I also have this problem, but not with all Epson scanners. My combination Artisan 837 printer/scanner works fine. But my Epson Perfection V600 won't work. And after following the directions here I ended up with 2 drivers for my Epson Artisan 837. But the Epson V600 is still not working.

The V600 is used for high-res scans of prints and negatives/transparencies. It naturally works on my old Windows computer, which I want to get rid of. The reason for this V600 scanner is that it can scan at over 12,000 dpi. It has a 2nd IR lens built-in for restoring old images.

In the past, I have been able to get this scanner to work on my Linux system. But that was in the past, and may have been before I upgraded to the current Ubuntu Linux version...

Cześć

Udało ci się może rozwiązać problem skanowania w Xerox Workcentre 3225?
Mam to samo, po update do 18.04, skaner przestał działać.
Sposób z linkami symbolicznymi nie działa.

Pozdrawiam

Jeremy Bicha (jbicha) wrote :

PeterPall, thank you for your help. I opened LP: #1795725 for the multiarch issue and forwarded the bug to Debian.

Is there a complete list of the udev rules collected so far that we should consider adding to the Ubuntu packaging?

Thierry B. (thierrybo2) wrote :

Latest Epson 1.3.38 driver released 10-18-2018 use multiarch folders now

e-fernbach (e-fernbach) wrote :

I have a problem with a HP ScanJet 4370. The scanner is correctly recognized (lsusb output: Bus 001 Device 012: ID 03f0:4105 Hewlett-Packard ScanJet 4370).

sudo scanimage -L output: device `hp3900:libusb:001:013' is a Hewlett-Packard Scanjet 4370 flatbed scanner

scanimage --test output: scanimage: sane_start: Invalid argument

after power cycling the scanner scanimage --test results vary from passing results over scanimage: scanning image of size 433x590 pixels at 24 bits/pixel
scanimage: acquiring RGB frame, 8 bits/sample
scanimage: reading one scanline, 1299 bytes... FAIL Error: End of file reached
to scanimage: sane_start: Invalid argument

The scanner worked fine under Linux Mint 18 and Ubuntu 17.10.

System: Ubuntu 18.04.1

Epson V370 Scanner working for me with simple scan on Ubuntu18.04 after using Staedtler's suggestions above.

ie. - install the driver from epson site, then.

~$ sudo cp /usr/lib/sane/libsane-epk* /usr/lib/x86_64-linux-gnu/sane/
~$ sudo vim /etc/udev/rules.d/79-udev-epson.rules

(inserting the following).

# chmod device EPSON group
# ACTION=="add", ATTRS{manufacturer}=="EPSON", DRIVERS=="usb", SUBSYSTEMS=="usb", ATTRS{idVendor}=="04b8", ATTRS{idProduct}=="*", MODE="0666"
ATTRS{manufacturer}=="EPSON", DRIVERS=="usb", SUBSYSTEMS=="usb", ATTRS{idVendor}=="04b8", ATTRS{idProduct}=="*", MODE="0777"

Many thanks.

e-fernbach (e-fernbach) wrote :

I am just a user, thus this post may sound naive but perhaps it gives a different perspective:

Sane used to work until "something" was changed an now it doesn't work anymore for many people. My naive questions:
what was/is the benefit of the change?
do the benefits outweigh the created problems?
if not is there a way to fall back to the original situation?

Hartmut Jürgens (quantfin) wrote :

Brother MFC-215C: Installing drivers from support.brother.com is not sufficient.
But it worked after setting two symbolic links:
~$ sudo ln -s /usr/lib/sane/libsane-brother2.so.1.0.7 /usr/lib/x86_64-linux-gnu/sane/libsane-brother2.so.1.0.7
~$ sudo ln -s /usr/lib/x86_64-linux-gnu/sane/libsane-brother2.so.1.0.7 /usr/lib/x86_64-linux-gnu/sane/libsane-brother2.so.1

Peter Hebert (peterhebert) wrote :

Can confirm that louBurnard's method mentioned in comment #96 also worked for me with Ubuntu 18.04 and the Epson Perfection V500. Thanks also to staedtler-przyborski for his tip in #36.

Jaime Cruz (jaime-cruz) wrote :

Another vote for LouBurnard's method here. Bionic with Epson Perfection V33 scanner.

James C March (jamescmarch) wrote :

@luca.mg Your suggestion in comment #157 worked! I had to install libsane-extras (and libsane-common) using Synaptic Package Manager. Not sure why those weren't already part of the install. I also added the line "brother4" to the file /etc/sane.d/dll.d/libsane-extras. Now my home wifi networked Brother MFC-J470DW scanner (brscan4) shows up and works with XSANE and Simple Scan! Thank you!

luca.mg (luca-mg) wrote :

Hi James, glad it worked!

Hi all, on Ubuntu 18.04, with a multifunction HP printer/scanner I could only run the scanner as root; it was not my system and the relevant files were already /usr/lib/x86_64-linux-gnu/sane, don't know if they were there by default or if the owner of the system put them in place. Anyhow, I applied my workaround in post #73 and 74, changing file names and vendor ID/product ID according to the HP driver, and the scanner can now be run as a user. Hope this can be of help to anyone struggling with HP devices.

Regards, Luca

Displaying first 40 and last 40 comments. View all 202 comments or add a comment.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers