Scanning fails with many Samsung multifunctions (SCX-3200, SCX-3400, CLX-6260) after upgrading to Ubuntu 17.10/18.04 (SANE_USB_WORKAROUND=1 needed)
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
sane-backends (Baltix) |
Triaged
|
High
|
Mantas Kriaučiūnas | ||
sane-backends (Fedora) |
Fix Released
|
High
|
|||
sane-backends (Ubuntu) |
Confirmed
|
Undecided
|
Unassigned |
Bug Description
Upgraded from kubuntu 17.04 to 17.10. Before the upgrade I was able to use my printer/scanner Samsung SCX-3200 without problems, with 17.10 I can only use the printer part.
sane-find-scanner finds the scanner
$ sane-find-scanner -q
[...]
product=0x3441 [SCX-3200 Series]) at libusb:003:019
[...]
Scanning fails with many Samsung multifunctions (including SCX-3400, SCX-4624f, CLX-6260) after upgrading to Ubuntu 17.10/18.04
It seems the best solution for now is to add SANE_USB_
echo "SANE_USB_
or to /etc/systemd/
For more info why SANE_USB_
Note 3: The Linux USB3 workaround which was added in version 1.0.25 is now disabled by default. If you have difficulty using a scanner which previously worked, or intermittent scanner availability, try setting the new environment variable SANE_USB_
I found this info in comments of bug #1728012 and https:/
When I start scanimage the first time, it can talk to the scanner just fine:
$ export SANE_DEBUG_
$ scanimage -L
[sanei_debug] Setting debug level of xerox_mfp to 255.
[xerox_mfp] sane_init: Xerox backend (build 13), version != null, authorize != null
[xerox_mfp] sane_xerox_
[xerox_mfp] list_one_device: libusb:003:018
[xerox_mfp] usb_dev_open: open 0x55d2e393c5d0
[xerox_mfp] :: dev_command(
[xerox_mfp] [70] a8 00 43 10 53 61 6d 73 75 6e 67 20 53 61 6d 73 75 6e 67 20 53 43 58 2d 33 32 30 30 20 53 65 72 69 65 73 20 19 33 84 2b 00 00 27 d8 00 00 36 d8 00 01 51 00 00 01 00 00 00 00 36 d8 00 00 36 d8 00 01 05 05 00...
[xerox_mfp] dev_inquiry: found Samsung/Samsung SCX-3200 Series
[xerox_mfp] usb_dev_close: closing dev 0x55d2e393c5d0
device `xerox_
When I start scanimage a second time it cannot talk to the scanner anymore:
$ scanimage -L
[sanei_debug] Setting debug level of xerox_mfp to 255.
[xerox_mfp] sane_init: Xerox backend (build 13), version != null, authorize != null
[xerox_mfp] sane_xerox_
[xerox_mfp] list_one_device: libusb:003:018
[xerox_mfp] usb_dev_open: open 0x56138cfa1870
[xerox_mfp] :: dev_command(
[xerox_mfp] usb_dev_request: sanei_usb_
[xerox_mfp] dev_command: dev_request: Error during device I/O
[xerox_mfp] usb_dev_close: closing dev 0x56138cfa1870
[xerox_mfp] list_one_device: dev_inquiry(
Unplugging the usb cable and plugging it back in allows scanimage to talk to the scanner once. After that it fails again. The USB cable is not a problem, as it worked with 16.10.
I downloaded VueScan and it has not problems to repeatedly scan pages using the same hw, which also indicates that this is a sw and not a hw problem. And just to mention it again, printing also works fine using the same cable. And yes, I tried multiple USB ports. All exhibit the same behaviour. When I execute scanimage -L once and start VueScan afterwards, then VueScan also doesn't see the scanner anymore. After unplugging and replugging the UBS cable and restarting VueScan, it's able to scan again.
Looks to me like sane doesn't know how to talk to the scanner anymore. It seems that something get's messed up during the first usb command, which prevents subsequent usb commands from succeeding.
I just downloaded 16.04.3 LTS and booted it from a USB stick. I can confirm that the scanner still works with 16.04.
ProblemType: Bug
DistroRelease: Ubuntu 17.10
Package: sane-utils 1.0.27-
ProcVersionSign
Uname: Linux 4.13.0-21-generic x86_64
ApportVersion: 2.20.7-0ubuntu3.7
Architecture: amd64
CurrentDesktop: KDE
Date: Mon Jan 8 20:53:07 2018
InstallationDate: Installed on 2016-04-03 (645 days ago)
InstallationMedia: Kubuntu 15.10 "Wily Werewolf" - Release amd64 (20151021)
SourcePackage: sane-backends
UpgradeStatus: Upgraded to artful on 2018-01-05 (2 days ago)
summary: |
- SCX-3200, scanning fails after migration to Kubuntu 17.10 + Samsung SCX-3200, SCX-3400, CLX-6260 scanning fails after upgrading to + Ubuntu 17.10/18.04 |
tags: |
added: bionic regression removed: amd64 |
summary: |
- Samsung SCX-3200, SCX-3400, CLX-6260 scanning fails after upgrading to - Ubuntu 17.10/18.04 + Scanning fails with many Samsung multifunctions (SCX-3200, SCX-3400, + CLX-6260) after upgrading to Ubuntu 17.10/18.04 (SANE_USB_WORKAROUND=1 + needed) |
description: | updated |
Changed in sane-backends (Baltix): | |
status: | New → Triaged |
importance: | Undecided → High |
assignee: | nobody → Mantas Kriaučiūnas (mantas) |
Changed in sane-backends (Fedora): | |
importance: | Unknown → High |
status: | Unknown → Fix Released |
Changed in sane-backends (Baltix): | |
milestone: | none → baltix-18.04 |
Description of problem:
Lack of USB3 xhci patch makes SANE quite unusable with USB3 hardware;
example with Fujitsu fi-6130 (theoretically fully supported by SANE):
[root@tux ~]# scanimage -L # First run fi-6130dj: 108292' is a FUJITSU fi-6130dj scanner
device `fujitsu:
[root@tux ~]#
[root@tux ~]# scanimage -L # Second run a few moments later
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).
[root@tux ~]#
Version-Release number of selected component (if applicable): 1.0.24- 9.el7
sane-backends-
How reproducible:
Everytime, see above and below.
Actual results:
Lack of USB3 xhci patch makes SANE quite unusable with USB3 hardware.
Expected results:
Applying upstream USB3 xhci patch solves the issue (tested myself).
[root@tux ~]# scanimage -L # First run fi-6130dj: 108292' is a FUJITSU fi-6130dj scanner
device `fujitsu:
[root@tux ~]#
[root@tux ~]# scanimage -L # Second run a few moments later fi-6130dj: 108292' is a FUJITSU fi-6130dj scanner
device `fujitsu:
[root@tux ~]#
[root@tux ~]# scanimage -L # Third run a few moments later fi-6130dj: 108292' is a FUJITSU fi-6130dj scanner
device `fujitsu:
[root@tux ~]#
Additional info: /src.fedoraproj ect.org/ cgit/rpms/ sane-backends. git/plain/ sane-backends- 1.0.24- usb3-xhci. patch?id= e0bd4233ccf2315 1f4adfa14f45f32 8ae57c7c20
https:/