I too have the same issue with a Brother DCP-L2540DW on Ubuntu 16.04.

$ dpkg -l |grep libsane
ii  libsane:amd64                               1.0.27+git20180209-xenial0      
             amd64        API library for scanners
ri  libsane-common                              1.0.27+git20180209-xenial0      
             amd64        API library for scanners -- documentation and support 
files
ii  libsane-hpaio:amd64                         3.16.3+repack0-1                
             amd64        HP SANE backend for multi-function peripherals


Output from simple-scan -d
[+0.00s] DEBUG: simple-scan.vala:674: Starting Simple Scan 3.20.0, PID=19090
[+0.00s] DEBUG: Connecting to session manager
[+0.10s] DEBUG: ui.vala:2032: Loading state from 
/home/mfoster/.cache/simple-scan/state
[+0.10s] DEBUG: ui.vala:1995: Restoring window to 684x996 pixels
[+0.10s] DEBUG: autosave-manager.vala:64: Loading autosave information
[+0.10s] DEBUG: autosave-manager.vala:259: Waiting to autosave...
[+0.10s] CRITICAL: gtk_event_controller_reset: assertion 
'GTK_IS_EVENT_CONTROLLER (controller)' failed
[+0.15s] DEBUG: scanner.vala:1447: sane_init () -> SANE_STATUS_GOOD
[+0.15s] DEBUG: scanner.vala:1453: SANE version 1.0.27
[+0.15s] DEBUG: scanner.vala:1514: Requesting redetection of scan devices
[+0.15s] DEBUG: scanner.vala:803: Processing request
[+0.20s] DEBUG: autosave-manager.vala:281: Autosaving book information
[+0.30s] DEBUG: ui.vala:2124: Saving state to 
/home/mfoster/.cache/simple-scan/state
[+3.30s] DEBUG: simple-scan.vala:404: Requesting scan at 150 dpi from device 
'(null)'
[+3.30s] DEBUG: scanner.vala:1560: Scanner.scan ("(null)", dpi=150, 
scan_mode=ScanMode.GRAY, depth=2, type=ScanType.ADF_BOTH, paper_width=2159, 
paper_height=2794, brightness=0, contrast=0)
[+6.39s] DEBUG: scanner.vala:338: sane_get_devices () -> SANE_STATUS_GOOD
[+6.39s] DEBUG: scanner.vala:350: Device: name="brother4:bus3;dev1" 
vendor="Brother" model="DCP-L2540DW" type="USB scanner"
[+6.39s] DEBUG: scanner.vala:803: Processing request
[+6.40s] DEBUG: scanner.vala:864: sane_open ("brother4:bus3;dev1") -> 
SANE_STATUS_INVAL
[+6.40s] WARNING: scanner.vala:868: Unable to get open device: Invalid argument
[+6.77s] DEBUG: ui.vala:2124: Saving state to 
/home/mfoster/.cache/simple-scan/state

-- 
You received this bug notification because you are a member of Desktop
Packages, which is subscribed to sane-backends in Ubuntu.
https://bugs.launchpad.net/bugs/1512027

Title:
  open of device pixma:MX7600_... failed: invalid argument

Status in sane-backends package in Ubuntu:
  Confirmed

Bug description:
  Up until recently, I've been able to scan fine with my Canon Pixma
  MX7600. Then I upgraded to Ubuntu Wily and I've started getting:

  $ scanimage
  scanimage: open of device pixma:MX7600_192.168.2.107 failed: Invalid argument

  The device pings and I can get to its HTTP port. Everything appears
  OK.

  If I run

  strace -f -s 256 -o /tmp/trace.txt scanimage

  the relevant output appears to be:

  socket(PF_INET, SOCK_DGRAM, IPPROTO_UDP) = 204
  connect(204, {sa_family=AF_INET, sin_port=htons(8612),
  sin_addr=inet_addr("192.168.2.107")}, 16) = 0
  sendto(204, "BJNP\2\1\0\0\0\0\0\0\0\0\0\0", 16, 0, NULL, 0) = 16
  select(205, [204], NULL, NULL, {4, 0}) = 1 (in [204], left {3, 998257})
  recvfrom(204, 
"BJNP\202\1\0\0\0\0\0\0\0\0\0\20\0\1\10\0\6\4\0\0\205\316\356\343\300\250\2k",
  2048, 0, NULL, N
  ULL) = 32
  close(204)
  write(2, "scanimage: open of device pixma:MX7600_192.168.2.107 failed:
  Invalid argument\n", 78) = 78

  It appears to me that the scanner is responding but the driver doesn't
  like the response. I'm running sane 1.0.14-11 and sane-utils
  1.0.25+git201505.

  WORKAROUND: Use the PPA from
  https://launchpad.net/~rolfbensch/+archive/ubuntu/sane-git

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/sane-backends/+bug/1512027/+subscriptions

-- 
Mailing list: https://launchpad.net/~desktop-packages
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~desktop-packages
More help   : https://help.launchpad.net/ListHelp

Reply via email to