Duplex scanning not working with some Canon/Samsung models

Bug #892915 reported by pjtait on 2011-11-21
This bug affects 3 people
Affects Status Importance Assigned to Milestone
Simple Scan
Fix Released
Fix Released
Robert Ancell
simple-scan (Ubuntu)

Bug Description

The vendor backend does support duplex - the following command correctly produces a .pnm for each side:

scanimage --batch --ScanMode Duplex

Related branches

Michael Nagel (nailor) wrote :

what does "does not work" exactly mean?

Changed in simple-scan:
status: New → Incomplete
pjtait (philip-pjtait) wrote :

I mean that simple-scan behaves exactly the same way as if Duplex were unselected. It only displays the image of the front side of the paper.

Looking at the log output, seems like the option value is not being passed to SANE - I would expect to see a log message like:

sane_control_option (6, SANE_ACTION_SET_VALUE, "Duplex")

Michael Nagel (nailor) wrote :

** (simple-scan:9555): DEBUG: simple-scan.vala:586: Starting Simple Scan 3.2.0, PID=9555

** (simple-scan:9555): DEBUG: scanner.vala:1328: sane_init () -> SANE_STATUS_GOOD
** (simple-scan:9555): DEBUG: scanner.vala:1334: SANE version 1.0.22

** (simple-scan:9555): DEBUG: scanner.vala:330: Device: name="canondr:libusb:001:010" vendor="Canon" model="P-150" type="sheetfed scanner"
** (simple-scan:9555): DEBUG: scanner.vala:330: Device: name="epkowa:libusb:002:004" vendor="Epson" model="Perfection 1660" type="flatbed scanner"

** (simple-scan:9555): DEBUG: simple-scan.vala:296: Requesting scan at 300 dpi from device 'canondr:libusb:001:010'

Changed in simple-scan:
status: Incomplete → Triaged
importance: Undecided → Low
pjtait (philip-pjtait) wrote :

In response to the previous comment, I unplugged the Epson scanner and re-ran the test - same result. New log file uploaded.

Michael Nagel (nailor) wrote :

new versions of simple scan force the order of arguments passed to sane. some arguments reset other arguments, so maybe this was an issue here. could you please retest?

Changed in simple-scan:
status: Triaged → Incomplete
mtu (mtu) wrote :

I can confirm this bug for a Samsung CLX-6220FX device running with Samsung's Unified Driver software. The command:
$ scanimage -b --doc-source "ADF Duplex - Long-Edge Binding"
correctly scans both sides of every page in the ADF (automatic document feeder), whereas setting "Scan side" to "Front and back" in simple scan doesn't produce output for both sides, only the front side for every page.

I am running 12.04 with the latest updates.

tags: added: adf
summary: - Duplex not working with Canon P-150
+ Duplex scanning not working with some Canon/Samsung models
Michael Nagel (nailor) on 2012-10-14
Changed in simple-scan:
status: Incomplete → Triaged
TJ (tj) wrote :

I can also confirm this with the Samsung CLX-6220FX on 13.04 Raring. As 'mtu' says, the scanner driver requires the option

--doc-source "ADF Duplex - Long-Edge Binding"

for conventional printed letters or

The options it accepts - vis the Samsung Unified driver - are:

$ scanimage --help --device-name "smfp:SAMSUNG CLX-6220 Series on"
Options specific to device `smfp:SAMSUNG CLX-6220 Series on':
    --preview[=(yes|no)] [no]
        Requests a preview-quality scan
  Image Quality:
    --mode Black and White - Line Art|Black and White - Halftone|Grayscale - 256 Levels|Color - 16 Million Colors [Color - 16 Million Colors]
        Sets the color composition mode of the scanned image
    --resolution 75|100|150|200|300|600|1200dpi [300]
        Sets the resolution of the scanned image
  Scan Area:
    --page-format Statement - 5.5"x8.5"|Statement (Rotated) - 8.5"x5.5"|A5 - 148x210 mm|A5 (Rotated) - 210x148 mm|B5 (JIS) - 182x257 mm|Executive - 7.25"x10.5"|A4 - 210x297 mm|Letter - 8.5"x11"|Legal - 8.5"x14"|Folio - 8.5"x13"|Custom [A4 - 210x297 mm]
        Sets the paper format of the scanned page
    -l 0..215mm [0]
        Sets left position of the scan area
    -t 0..355mm [0]
        Sets top position of the scan area
    -x 0..215mm [210]
        Width of scan-area.
    -y 0..355mm [297]
        Height of scan-area.
    --doc-source Flatbed|ADF Simplex|ADF Duplex - Long-Edge Binding|ADF Duplex - Short-Edge Binding [Flatbed]
        Selects source of the document to be scanned

Type ``scanimage --help -d DEVICE'' to get list of all options for DEVICE.

TJ (tj) on 2013-07-17
Changed in simple-scan:
status: Triaged → In Progress
assignee: nobody → TJ (tj)
TJ (tj) wrote :

I've pushed amendments adding support for the Samsung Unified Driver (SUD) to my bazaar branch


These add support for correct (colour) mode selection and ADF duplex.

[+22.38s] DEBUG: scanner.vala:1503: Scanner.scan ("smfp:SAMSUNG CLX-6220 Series on", dpi=300, scan_mode=ScanMode.COLOR,
 depth=8, type=ScanType.ADF_BOTH, paper_width=2100, paper_height=2970)
[+22.89s] DEBUG: scanner.vala:843: Getting SCAN_SOURCE source
[+22.89s] DEBUG: scanner.vala:846: Trying alternative SCAN_SOURCE doc-source
[+22.89s] DEBUG: scanner.vala:497: sane_control_option (11, SANE_ACTION_SET_VALUE, "ADF Duplex - Long-Edge Binding") -> (SANE_STATUS_GOOD, "ADF Duplex - Long-Edge Binding")
[+22.89s] DEBUG: scanner.vala:497: sane_control_option (3, SANE_ACTION_SET_VALUE, "Color - 16 Million Colors") -> (SANE_STATUS_GOOD, "Color - 16 Million Colors")
[+22.89s] DEBUG: scanner.vala:439: sane_control_option (4, SANE_ACTION_SET_VALUE, 300) -> (SANE_STATUS_GOOD, 300)
[+22.89s] DEBUG: scanner.vala:439: sane_control_option (9, SANE_ACTION_SET_VALUE, 215) -> (SANE_STATUS_GOOD, 215)
[+22.89s] DEBUG: scanner.vala:439: sane_control_option (10, SANE_ACTION_SET_VALUE, 355) -> (SANE_STATUS_GOOD, 355)
[+24.90s] DEBUG: scanner.vala:1156: sane_start (page=0, pass=0) -> SANE_STATUS_GOOD
[+64.51s] DEBUG: scanner.vala:1156: sane_start (page=2, pass=0) -> SANE_STATUS_NO_DOCS
[+67.51s] DEBUG: scanner.vala:1129: sane_cancel ()

TJ (tj) on 2013-07-17
Changed in simple-scan (Ubuntu):
status: New → In Progress
importance: Undecided → Low
assignee: nobody → TJ (tj)
TJ (tj) wrote :

A test package built for Raring will be available in my bug-fixes PPA shortly.


Michael Nagel (nailor) wrote :

patch looks good from viewing the diff. please create a merge request so it gets roberts attention.

Changed in simple-scan (Ubuntu):
status: In Progress → Fix Committed
Changed in simple-scan:
status: In Progress → Fix Committed
Changed in simple-scan:
status: Fix Committed → Fix Released
milestone: none → 3.4.3
milestone: 3.4.3 → 3.9.4
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package simple-scan -

simple-scan ( saucy; urgency=low

  * New upstream release:
    [ ]
    - Add missing gresource file to tarball
    [ 3.9.4 ]
    - Add support for Samsung devices that don't use the standard SANE
      field names (LP: #892915)
    [ 3.9.3 ]
    - Update README to mention git mirror
    - Hide C warnings
    - Compile with Vala debugging information
    [ 3.9.2 ]
    - Force an extension when saving if one not provided
    - Zero pad numbering when saving multiple files
    - Add JPEG quality settings
    - Set ICC profile and density units for JPEG files
    - Use gdk-pixbuf instead of libjpeg when writing PDF files
    [ 3.9.1 ]
    - Add copy to clipboard function
    - Compile UI files into binary
    - Update build instructions
  * debian/control:
    - Drop build-depends on libjpeg-dev
  * debian/watch:
    - Update now releases are .xz
 -- Robert Ancell <email address hidden> Thu, 18 Jul 2013 16:56:35 +1200

Changed in simple-scan (Ubuntu):
status: Fix Committed → Fix Released
TJ (tj) on 2014-08-30
Changed in simple-scan (Ubuntu):
assignee: TJ (tj) → nobody
Changed in simple-scan:
assignee: TJ (tj) → nobody
JokerGermany.tk (jokergermany) wrote :

Same Problem for me with a hp device, should i open a new bug request?

HP Officejet Pro 8620
ubuntu 14.04
simple scan 3.12.1
hplip 3.15.4
(Ubuntu 14.04 supplies HPLIP 3.14.3 by default, which does not support my printer. (First supported Version is 3.14.4 -__- ) so i had to upgrade it manually...)

Works with xsane 0.998 flawlessly

Tom Stiefel (tstiefel69) wrote :

Same problem here with HP printer "HP Color LaserJet MFP M476dn" on Linux Mint 17 (based Ubuntu 14.04.2 LTS).

Scanning duplex is working well in Xsane and gscan2pdf, but with Simple Scan only the front side of each page is scanned.

Additional info: gscan2pdf is working with interface "libsane-perl" and scanimage.

Linux Mint 17 (based Ubuntu 14.04.2 LTS)
hplip: 3.5.17 (LM17 comes with hplip 3.14.3, but printer needs 3.5.17)
simple scan: 3.12.1-0ubuntu1
Xsane: 0.998-5ubuntu1
gscan2pdf 1.2.3-1

Robert Ancell (robert-ancell) wrote :

@Tom - please open a new bug and attach ~/.cache/simple-scan/simple-scan.log after attempting a scan.

To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers