Brother WLAN Scanner DCP-7055W not working (“invalid argument”)Brother MFC-7420 Scanner on Ubuntu 12.04: Invalid ArgumentBrother MFC-7420 Scanner on Ubuntu 12.04: Invalid ArgumentBrother MFC7420 and Ubuntu 12.10Invalid argument - Brother scanner not working after upgrade (brscan2 driver)USB 2.0 device (scanner) does not work with xhci_hcd on USB 3.0 systemHow do I get Artec e+ 48u to work on Xubuntu 14.10 (amd64)How to get a Brother DCP-350C scanner working?Brother DCP-7055W scanner not foundSimple Scan not detecting my scanner (Brother DCP-7055W)

Why did George Lucas set Star Wars in the past instead of the future?

Keeping a healthy immune system on a generation-ship

New manager unapproved PTO my old manager approved, because of a conference at the same time that's now a "condition of my employment here"

Sci-fi novel from 1980s(?) about colony on Mars

Creating a wavy dot pattern in a Cycles shader

Lead based stain from 1800’s?

Are there examples of democratic states peacefully changing their constitution without abiding by the rules spelled out in the former constitution?

Why doesn't knowledge of how magic works break magic in this world?

What does the word 「ちゃらくさい」mean?

Simulating these special dice on more regular dice

When was Newton "not good enough" for spaceflight; first use and first absolute requirement for relativistic corrections?

Largest smallest gap

Should I replace fillable PDFs?

What is this large fan in front of the Space Shuttle during Ground Turnaround?

What are the ethical implications of lying to get into a course?

Coin at the edge of the pocket

Is there a way to plan/organize your LEGO project like a github hosted software?

ampersand "&" causes if-else-fi to fail

Why is "runway behind you" useless?

iOS app submission - access to username/password

How important is quick release for a tripod?

How long should a hash be to be absolutely secure?

Who is the narrator of Star Wars?

What specifically can swap do that RAM can't



Brother WLAN Scanner DCP-7055W not working (“invalid argument”)


Brother MFC-7420 Scanner on Ubuntu 12.04: Invalid ArgumentBrother MFC-7420 Scanner on Ubuntu 12.04: Invalid ArgumentBrother MFC7420 and Ubuntu 12.10Invalid argument - Brother scanner not working after upgrade (brscan2 driver)USB 2.0 device (scanner) does not work with xhci_hcd on USB 3.0 systemHow do I get Artec e+ 48u to work on Xubuntu 14.10 (amd64)How to get a Brother DCP-350C scanner working?Brother DCP-7055W scanner not foundSimple Scan not detecting my scanner (Brother DCP-7055W)






.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty
margin-bottom:0;









0


















I'm having trouble getting the scanner of my Brother DCP-7055W working over WLAN. I've already installed the official drivers from Brother, and the printer itself is working fine.



I've set up the scanner to use a static IP address (192.168.002.150). Using Brother's brsaneconfig4 I've added the scanner as follows (using 002 instead of 2 following this tip):



brsaneconfig4 -a name=DCP-7055W model=DCP-7055W ip=192.168.002.150


Pinging the scanner works fine:



$ brsaneconfig4 -p
test DCP-7055W
ping 192.168.002.150 -w 10

PING 192.168.002.150 (192.168.2.150) 56(84) bytes of data.
64 bytes from 192.168.2.150: icmp_req=1 ttl=255 time=9.21 ms
64 bytes from 192.168.2.150: icmp_req=2 ttl=255 time=5.67 ms
64 bytes from 192.168.2.150: icmp_req=3 ttl=255 time=6.01 ms
64 bytes from 192.168.2.150: icmp_req=4 ttl=255 time=3.33 ms


I've also made sure that the issue with 64bit drivers is fixed:



$ ls -l /usr/lib/sane/libsane-brother4*
lrwxrwxrwx 1 root root 35 Sep 25 07:18 /usr/lib/sane/libsane-brother4.so -> /usr/lib/sane/libsane-brother4.so.1
lrwxrwxrwx 1 root root 39 Sep 25 07:18 /usr/lib/sane/libsane-brother4.so.1 -> /usr/lib/sane/libsane-brother4.so.1.0.7
-rwxr-xr-x 1 root root 129376 Sep 25 07:18 /usr/lib/sane/libsane-brother4.so.1.0.7


I've also fixed the UDEV rules according to this answer:



$ grep saned /lib/udev/rules.d/40-libsane.rules 
ENVDEVTYPE=="usb_device", MODE="0664", OWNER="root", GROUP="saned"


However, I cannot actually scan: Whatever tool I try, I get the following error:



$ scanimage -T
scanimage: open of device brother4:net1;dev0 failed: Invalid argument


This happens both as normal user and when using sudo, so it shouldn't be a permission problem.



What am I missing?



UPDATE 1: Now with some more verbose debug output:



# SANE_DEBUG_BROTHER4=255 scanimage
[sanei_debug] Setting debug level of brother4 to 255.
[brother4] brother init
[brother4] brother version: 1000001
[brother4] starting bus scan
[brother4] scanning bus 005
[brother4] found dev 0483/2016
[brother4] found dev 1D6B/0001
[brother4] scanning bus 004
[brother4] found dev 1D6B/0001
[brother4] scanning bus 003
[brother4] found dev 1D6B/0001
[brother4] scanning bus 002
[brother4] found dev 1D6B/0001
[brother4] scanning bus 001
[brother4] found dev 18A5/0302
[brother4] found dev 1D6B/0002
scanimage: open of device brother4:net1;dev0 failed: Invalid argument


UPDATE 2: I now also tried using the scanner via USB. I get the same error ("Invalid argument"), but at a later point in the scanning process:



# SANE_DEBUG_BROTHER4=255 scanimage -T
[sanei_debug] Setting debug level of brother4 to 255.
[brother4] brother init
[brother4] brother version: 1000001
[brother4] starting bus scan
[brother4] scanning bus 005
[brother4] found dev 0483/2016
[brother4] found dev 1D6B/0001
[brother4] scanning bus 004
[brother4] found dev 1D6B/0001
[brother4] scanning bus 003
[brother4] found dev 1D6B/0001
[brother4] scanning bus 002
[brother4] found dev 1D6B/0001
[brother4] scanning bus 001
[brother4] found dev 04F9/02CE
[brother4] found dev 1D6B/0002
scanimage: rounded value of br-x from 215.9 to 215.88
scanimage: rounded value of br-y from 355.6 to 355.567
scanimage: sane_start: Invalid argument
[brother4] cancel called...


A Brother scanner FAQ mentions that this could be due to the scanning area being to small, but passing -x 100 -y 100 to scanimage doesn't change anything. I also tried to explicitly pass all other arguments that scanimage -h returned for the scanner, but without success.



Installing libsane-extras, as suggested here did not change anything.



Following the troubleshooting of a similar problem, I've run



# strace -o strace.out -f scanimage -T


At the end of the output, there's the following:



4019 ioctl(151, USBDEVFS_SUBMITURB or USBDEVFS_SUBMITURB32, 0xbfbfe0a8) = -1 ENOENT (No such file or directory)
4019 gettimeofday(1387487538, 170759, NULL) = 0
4019 ioctl(151, USBDEVFS_SUBMITURB or USBDEVFS_SUBMITURB32, 0xbfbfe0a8) = -1 ENOENT (No such file or directory)
4019 gettimeofday(1387487538, 170926, 4294967236, 0) = 0
4019 gettimeofday(1387487538, 171013, 4294967236, 0) = 0
4019 gettimeofday(1387487538, 171104, NULL) = 0
4019 ioctl(151, USBDEVFS_SUBMITURB or USBDEVFS_SUBMITURB32, 0xbfbfe068) = -1 ENOENT (No such file or directory)
4019 write(2, "scanimage: sane_start: Invalid a"..., 40) = 40
4019 ioctl(151, USBDEVFS_CONTROL or USBDEVFS_CONTROL32, 0xbfbfe2e0) = 5
4019 ioctl(151, USBDEVFS_RELEASEINTERFACE, 0xbfbfe304) = 0
4019 semop(1245186, 0, 1, SEM_UNDO, 1) = 0
4019 semctl(1245186, 0, IPC_64|IPC_RMID, 0xbfbfe2b8) = 0
4019 close(151) = 0
4019 munmap(0xb755a000, 134532) = 0
4019 munmap(0xb7525000, 104424) = 0
4019 munmap(0xb751b000, 38084) = 0
4019 munmap(0xb74ef000, 176256) = 0
4019 exit_group(4) = ?


The whole log is full of ioctl calls referring to USBDEFVS_SUBMITURB and getting a No such file or directory. However I don't know enough about the Linux USB internals to make sense of that.



UPDATE 3: My kernel:



# uname -r
3.2.0-57-generic-pae


Relevant output from dmesg:



[10210.399432] usb 1-1: usbfs: interface 0 claimed by usblp while 'scanimage' sets config #1
[10210.399446] usb 1-1: usbfs: process 5347 (scanimage) did not claim interface 1 before use
[10211.428906] usb 1-1: usbfs: interface 0 claimed by usblp while 'scanimage' sets config #1
[10213.519554] usb 1-1: usbfs: interface 0 claimed by usblp while 'scanimage' sets config #1
[10213.519567] usb 1-1: usbfs: process 5352 (scanimage) did not claim interface 1 before use
[10214.549025] usb 1-1: usbfs: interface 0 claimed by usblp while 'scanimage' sets config #1









share|improve this question

































    0


















    I'm having trouble getting the scanner of my Brother DCP-7055W working over WLAN. I've already installed the official drivers from Brother, and the printer itself is working fine.



    I've set up the scanner to use a static IP address (192.168.002.150). Using Brother's brsaneconfig4 I've added the scanner as follows (using 002 instead of 2 following this tip):



    brsaneconfig4 -a name=DCP-7055W model=DCP-7055W ip=192.168.002.150


    Pinging the scanner works fine:



    $ brsaneconfig4 -p
    test DCP-7055W
    ping 192.168.002.150 -w 10

    PING 192.168.002.150 (192.168.2.150) 56(84) bytes of data.
    64 bytes from 192.168.2.150: icmp_req=1 ttl=255 time=9.21 ms
    64 bytes from 192.168.2.150: icmp_req=2 ttl=255 time=5.67 ms
    64 bytes from 192.168.2.150: icmp_req=3 ttl=255 time=6.01 ms
    64 bytes from 192.168.2.150: icmp_req=4 ttl=255 time=3.33 ms


    I've also made sure that the issue with 64bit drivers is fixed:



    $ ls -l /usr/lib/sane/libsane-brother4*
    lrwxrwxrwx 1 root root 35 Sep 25 07:18 /usr/lib/sane/libsane-brother4.so -> /usr/lib/sane/libsane-brother4.so.1
    lrwxrwxrwx 1 root root 39 Sep 25 07:18 /usr/lib/sane/libsane-brother4.so.1 -> /usr/lib/sane/libsane-brother4.so.1.0.7
    -rwxr-xr-x 1 root root 129376 Sep 25 07:18 /usr/lib/sane/libsane-brother4.so.1.0.7


    I've also fixed the UDEV rules according to this answer:



    $ grep saned /lib/udev/rules.d/40-libsane.rules 
    ENVDEVTYPE=="usb_device", MODE="0664", OWNER="root", GROUP="saned"


    However, I cannot actually scan: Whatever tool I try, I get the following error:



    $ scanimage -T
    scanimage: open of device brother4:net1;dev0 failed: Invalid argument


    This happens both as normal user and when using sudo, so it shouldn't be a permission problem.



    What am I missing?



    UPDATE 1: Now with some more verbose debug output:



    # SANE_DEBUG_BROTHER4=255 scanimage
    [sanei_debug] Setting debug level of brother4 to 255.
    [brother4] brother init
    [brother4] brother version: 1000001
    [brother4] starting bus scan
    [brother4] scanning bus 005
    [brother4] found dev 0483/2016
    [brother4] found dev 1D6B/0001
    [brother4] scanning bus 004
    [brother4] found dev 1D6B/0001
    [brother4] scanning bus 003
    [brother4] found dev 1D6B/0001
    [brother4] scanning bus 002
    [brother4] found dev 1D6B/0001
    [brother4] scanning bus 001
    [brother4] found dev 18A5/0302
    [brother4] found dev 1D6B/0002
    scanimage: open of device brother4:net1;dev0 failed: Invalid argument


    UPDATE 2: I now also tried using the scanner via USB. I get the same error ("Invalid argument"), but at a later point in the scanning process:



    # SANE_DEBUG_BROTHER4=255 scanimage -T
    [sanei_debug] Setting debug level of brother4 to 255.
    [brother4] brother init
    [brother4] brother version: 1000001
    [brother4] starting bus scan
    [brother4] scanning bus 005
    [brother4] found dev 0483/2016
    [brother4] found dev 1D6B/0001
    [brother4] scanning bus 004
    [brother4] found dev 1D6B/0001
    [brother4] scanning bus 003
    [brother4] found dev 1D6B/0001
    [brother4] scanning bus 002
    [brother4] found dev 1D6B/0001
    [brother4] scanning bus 001
    [brother4] found dev 04F9/02CE
    [brother4] found dev 1D6B/0002
    scanimage: rounded value of br-x from 215.9 to 215.88
    scanimage: rounded value of br-y from 355.6 to 355.567
    scanimage: sane_start: Invalid argument
    [brother4] cancel called...


    A Brother scanner FAQ mentions that this could be due to the scanning area being to small, but passing -x 100 -y 100 to scanimage doesn't change anything. I also tried to explicitly pass all other arguments that scanimage -h returned for the scanner, but without success.



    Installing libsane-extras, as suggested here did not change anything.



    Following the troubleshooting of a similar problem, I've run



    # strace -o strace.out -f scanimage -T


    At the end of the output, there's the following:



    4019 ioctl(151, USBDEVFS_SUBMITURB or USBDEVFS_SUBMITURB32, 0xbfbfe0a8) = -1 ENOENT (No such file or directory)
    4019 gettimeofday(1387487538, 170759, NULL) = 0
    4019 ioctl(151, USBDEVFS_SUBMITURB or USBDEVFS_SUBMITURB32, 0xbfbfe0a8) = -1 ENOENT (No such file or directory)
    4019 gettimeofday(1387487538, 170926, 4294967236, 0) = 0
    4019 gettimeofday(1387487538, 171013, 4294967236, 0) = 0
    4019 gettimeofday(1387487538, 171104, NULL) = 0
    4019 ioctl(151, USBDEVFS_SUBMITURB or USBDEVFS_SUBMITURB32, 0xbfbfe068) = -1 ENOENT (No such file or directory)
    4019 write(2, "scanimage: sane_start: Invalid a"..., 40) = 40
    4019 ioctl(151, USBDEVFS_CONTROL or USBDEVFS_CONTROL32, 0xbfbfe2e0) = 5
    4019 ioctl(151, USBDEVFS_RELEASEINTERFACE, 0xbfbfe304) = 0
    4019 semop(1245186, 0, 1, SEM_UNDO, 1) = 0
    4019 semctl(1245186, 0, IPC_64|IPC_RMID, 0xbfbfe2b8) = 0
    4019 close(151) = 0
    4019 munmap(0xb755a000, 134532) = 0
    4019 munmap(0xb7525000, 104424) = 0
    4019 munmap(0xb751b000, 38084) = 0
    4019 munmap(0xb74ef000, 176256) = 0
    4019 exit_group(4) = ?


    The whole log is full of ioctl calls referring to USBDEFVS_SUBMITURB and getting a No such file or directory. However I don't know enough about the Linux USB internals to make sense of that.



    UPDATE 3: My kernel:



    # uname -r
    3.2.0-57-generic-pae


    Relevant output from dmesg:



    [10210.399432] usb 1-1: usbfs: interface 0 claimed by usblp while 'scanimage' sets config #1
    [10210.399446] usb 1-1: usbfs: process 5347 (scanimage) did not claim interface 1 before use
    [10211.428906] usb 1-1: usbfs: interface 0 claimed by usblp while 'scanimage' sets config #1
    [10213.519554] usb 1-1: usbfs: interface 0 claimed by usblp while 'scanimage' sets config #1
    [10213.519567] usb 1-1: usbfs: process 5352 (scanimage) did not claim interface 1 before use
    [10214.549025] usb 1-1: usbfs: interface 0 claimed by usblp while 'scanimage' sets config #1









    share|improve this question





























      0













      0









      0








      I'm having trouble getting the scanner of my Brother DCP-7055W working over WLAN. I've already installed the official drivers from Brother, and the printer itself is working fine.



      I've set up the scanner to use a static IP address (192.168.002.150). Using Brother's brsaneconfig4 I've added the scanner as follows (using 002 instead of 2 following this tip):



      brsaneconfig4 -a name=DCP-7055W model=DCP-7055W ip=192.168.002.150


      Pinging the scanner works fine:



      $ brsaneconfig4 -p
      test DCP-7055W
      ping 192.168.002.150 -w 10

      PING 192.168.002.150 (192.168.2.150) 56(84) bytes of data.
      64 bytes from 192.168.2.150: icmp_req=1 ttl=255 time=9.21 ms
      64 bytes from 192.168.2.150: icmp_req=2 ttl=255 time=5.67 ms
      64 bytes from 192.168.2.150: icmp_req=3 ttl=255 time=6.01 ms
      64 bytes from 192.168.2.150: icmp_req=4 ttl=255 time=3.33 ms


      I've also made sure that the issue with 64bit drivers is fixed:



      $ ls -l /usr/lib/sane/libsane-brother4*
      lrwxrwxrwx 1 root root 35 Sep 25 07:18 /usr/lib/sane/libsane-brother4.so -> /usr/lib/sane/libsane-brother4.so.1
      lrwxrwxrwx 1 root root 39 Sep 25 07:18 /usr/lib/sane/libsane-brother4.so.1 -> /usr/lib/sane/libsane-brother4.so.1.0.7
      -rwxr-xr-x 1 root root 129376 Sep 25 07:18 /usr/lib/sane/libsane-brother4.so.1.0.7


      I've also fixed the UDEV rules according to this answer:



      $ grep saned /lib/udev/rules.d/40-libsane.rules 
      ENVDEVTYPE=="usb_device", MODE="0664", OWNER="root", GROUP="saned"


      However, I cannot actually scan: Whatever tool I try, I get the following error:



      $ scanimage -T
      scanimage: open of device brother4:net1;dev0 failed: Invalid argument


      This happens both as normal user and when using sudo, so it shouldn't be a permission problem.



      What am I missing?



      UPDATE 1: Now with some more verbose debug output:



      # SANE_DEBUG_BROTHER4=255 scanimage
      [sanei_debug] Setting debug level of brother4 to 255.
      [brother4] brother init
      [brother4] brother version: 1000001
      [brother4] starting bus scan
      [brother4] scanning bus 005
      [brother4] found dev 0483/2016
      [brother4] found dev 1D6B/0001
      [brother4] scanning bus 004
      [brother4] found dev 1D6B/0001
      [brother4] scanning bus 003
      [brother4] found dev 1D6B/0001
      [brother4] scanning bus 002
      [brother4] found dev 1D6B/0001
      [brother4] scanning bus 001
      [brother4] found dev 18A5/0302
      [brother4] found dev 1D6B/0002
      scanimage: open of device brother4:net1;dev0 failed: Invalid argument


      UPDATE 2: I now also tried using the scanner via USB. I get the same error ("Invalid argument"), but at a later point in the scanning process:



      # SANE_DEBUG_BROTHER4=255 scanimage -T
      [sanei_debug] Setting debug level of brother4 to 255.
      [brother4] brother init
      [brother4] brother version: 1000001
      [brother4] starting bus scan
      [brother4] scanning bus 005
      [brother4] found dev 0483/2016
      [brother4] found dev 1D6B/0001
      [brother4] scanning bus 004
      [brother4] found dev 1D6B/0001
      [brother4] scanning bus 003
      [brother4] found dev 1D6B/0001
      [brother4] scanning bus 002
      [brother4] found dev 1D6B/0001
      [brother4] scanning bus 001
      [brother4] found dev 04F9/02CE
      [brother4] found dev 1D6B/0002
      scanimage: rounded value of br-x from 215.9 to 215.88
      scanimage: rounded value of br-y from 355.6 to 355.567
      scanimage: sane_start: Invalid argument
      [brother4] cancel called...


      A Brother scanner FAQ mentions that this could be due to the scanning area being to small, but passing -x 100 -y 100 to scanimage doesn't change anything. I also tried to explicitly pass all other arguments that scanimage -h returned for the scanner, but without success.



      Installing libsane-extras, as suggested here did not change anything.



      Following the troubleshooting of a similar problem, I've run



      # strace -o strace.out -f scanimage -T


      At the end of the output, there's the following:



      4019 ioctl(151, USBDEVFS_SUBMITURB or USBDEVFS_SUBMITURB32, 0xbfbfe0a8) = -1 ENOENT (No such file or directory)
      4019 gettimeofday(1387487538, 170759, NULL) = 0
      4019 ioctl(151, USBDEVFS_SUBMITURB or USBDEVFS_SUBMITURB32, 0xbfbfe0a8) = -1 ENOENT (No such file or directory)
      4019 gettimeofday(1387487538, 170926, 4294967236, 0) = 0
      4019 gettimeofday(1387487538, 171013, 4294967236, 0) = 0
      4019 gettimeofday(1387487538, 171104, NULL) = 0
      4019 ioctl(151, USBDEVFS_SUBMITURB or USBDEVFS_SUBMITURB32, 0xbfbfe068) = -1 ENOENT (No such file or directory)
      4019 write(2, "scanimage: sane_start: Invalid a"..., 40) = 40
      4019 ioctl(151, USBDEVFS_CONTROL or USBDEVFS_CONTROL32, 0xbfbfe2e0) = 5
      4019 ioctl(151, USBDEVFS_RELEASEINTERFACE, 0xbfbfe304) = 0
      4019 semop(1245186, 0, 1, SEM_UNDO, 1) = 0
      4019 semctl(1245186, 0, IPC_64|IPC_RMID, 0xbfbfe2b8) = 0
      4019 close(151) = 0
      4019 munmap(0xb755a000, 134532) = 0
      4019 munmap(0xb7525000, 104424) = 0
      4019 munmap(0xb751b000, 38084) = 0
      4019 munmap(0xb74ef000, 176256) = 0
      4019 exit_group(4) = ?


      The whole log is full of ioctl calls referring to USBDEFVS_SUBMITURB and getting a No such file or directory. However I don't know enough about the Linux USB internals to make sense of that.



      UPDATE 3: My kernel:



      # uname -r
      3.2.0-57-generic-pae


      Relevant output from dmesg:



      [10210.399432] usb 1-1: usbfs: interface 0 claimed by usblp while 'scanimage' sets config #1
      [10210.399446] usb 1-1: usbfs: process 5347 (scanimage) did not claim interface 1 before use
      [10211.428906] usb 1-1: usbfs: interface 0 claimed by usblp while 'scanimage' sets config #1
      [10213.519554] usb 1-1: usbfs: interface 0 claimed by usblp while 'scanimage' sets config #1
      [10213.519567] usb 1-1: usbfs: process 5352 (scanimage) did not claim interface 1 before use
      [10214.549025] usb 1-1: usbfs: interface 0 claimed by usblp while 'scanimage' sets config #1









      share|improve this question
















      I'm having trouble getting the scanner of my Brother DCP-7055W working over WLAN. I've already installed the official drivers from Brother, and the printer itself is working fine.



      I've set up the scanner to use a static IP address (192.168.002.150). Using Brother's brsaneconfig4 I've added the scanner as follows (using 002 instead of 2 following this tip):



      brsaneconfig4 -a name=DCP-7055W model=DCP-7055W ip=192.168.002.150


      Pinging the scanner works fine:



      $ brsaneconfig4 -p
      test DCP-7055W
      ping 192.168.002.150 -w 10

      PING 192.168.002.150 (192.168.2.150) 56(84) bytes of data.
      64 bytes from 192.168.2.150: icmp_req=1 ttl=255 time=9.21 ms
      64 bytes from 192.168.2.150: icmp_req=2 ttl=255 time=5.67 ms
      64 bytes from 192.168.2.150: icmp_req=3 ttl=255 time=6.01 ms
      64 bytes from 192.168.2.150: icmp_req=4 ttl=255 time=3.33 ms


      I've also made sure that the issue with 64bit drivers is fixed:



      $ ls -l /usr/lib/sane/libsane-brother4*
      lrwxrwxrwx 1 root root 35 Sep 25 07:18 /usr/lib/sane/libsane-brother4.so -> /usr/lib/sane/libsane-brother4.so.1
      lrwxrwxrwx 1 root root 39 Sep 25 07:18 /usr/lib/sane/libsane-brother4.so.1 -> /usr/lib/sane/libsane-brother4.so.1.0.7
      -rwxr-xr-x 1 root root 129376 Sep 25 07:18 /usr/lib/sane/libsane-brother4.so.1.0.7


      I've also fixed the UDEV rules according to this answer:



      $ grep saned /lib/udev/rules.d/40-libsane.rules 
      ENVDEVTYPE=="usb_device", MODE="0664", OWNER="root", GROUP="saned"


      However, I cannot actually scan: Whatever tool I try, I get the following error:



      $ scanimage -T
      scanimage: open of device brother4:net1;dev0 failed: Invalid argument


      This happens both as normal user and when using sudo, so it shouldn't be a permission problem.



      What am I missing?



      UPDATE 1: Now with some more verbose debug output:



      # SANE_DEBUG_BROTHER4=255 scanimage
      [sanei_debug] Setting debug level of brother4 to 255.
      [brother4] brother init
      [brother4] brother version: 1000001
      [brother4] starting bus scan
      [brother4] scanning bus 005
      [brother4] found dev 0483/2016
      [brother4] found dev 1D6B/0001
      [brother4] scanning bus 004
      [brother4] found dev 1D6B/0001
      [brother4] scanning bus 003
      [brother4] found dev 1D6B/0001
      [brother4] scanning bus 002
      [brother4] found dev 1D6B/0001
      [brother4] scanning bus 001
      [brother4] found dev 18A5/0302
      [brother4] found dev 1D6B/0002
      scanimage: open of device brother4:net1;dev0 failed: Invalid argument


      UPDATE 2: I now also tried using the scanner via USB. I get the same error ("Invalid argument"), but at a later point in the scanning process:



      # SANE_DEBUG_BROTHER4=255 scanimage -T
      [sanei_debug] Setting debug level of brother4 to 255.
      [brother4] brother init
      [brother4] brother version: 1000001
      [brother4] starting bus scan
      [brother4] scanning bus 005
      [brother4] found dev 0483/2016
      [brother4] found dev 1D6B/0001
      [brother4] scanning bus 004
      [brother4] found dev 1D6B/0001
      [brother4] scanning bus 003
      [brother4] found dev 1D6B/0001
      [brother4] scanning bus 002
      [brother4] found dev 1D6B/0001
      [brother4] scanning bus 001
      [brother4] found dev 04F9/02CE
      [brother4] found dev 1D6B/0002
      scanimage: rounded value of br-x from 215.9 to 215.88
      scanimage: rounded value of br-y from 355.6 to 355.567
      scanimage: sane_start: Invalid argument
      [brother4] cancel called...


      A Brother scanner FAQ mentions that this could be due to the scanning area being to small, but passing -x 100 -y 100 to scanimage doesn't change anything. I also tried to explicitly pass all other arguments that scanimage -h returned for the scanner, but without success.



      Installing libsane-extras, as suggested here did not change anything.



      Following the troubleshooting of a similar problem, I've run



      # strace -o strace.out -f scanimage -T


      At the end of the output, there's the following:



      4019 ioctl(151, USBDEVFS_SUBMITURB or USBDEVFS_SUBMITURB32, 0xbfbfe0a8) = -1 ENOENT (No such file or directory)
      4019 gettimeofday(1387487538, 170759, NULL) = 0
      4019 ioctl(151, USBDEVFS_SUBMITURB or USBDEVFS_SUBMITURB32, 0xbfbfe0a8) = -1 ENOENT (No such file or directory)
      4019 gettimeofday(1387487538, 170926, 4294967236, 0) = 0
      4019 gettimeofday(1387487538, 171013, 4294967236, 0) = 0
      4019 gettimeofday(1387487538, 171104, NULL) = 0
      4019 ioctl(151, USBDEVFS_SUBMITURB or USBDEVFS_SUBMITURB32, 0xbfbfe068) = -1 ENOENT (No such file or directory)
      4019 write(2, "scanimage: sane_start: Invalid a"..., 40) = 40
      4019 ioctl(151, USBDEVFS_CONTROL or USBDEVFS_CONTROL32, 0xbfbfe2e0) = 5
      4019 ioctl(151, USBDEVFS_RELEASEINTERFACE, 0xbfbfe304) = 0
      4019 semop(1245186, 0, 1, SEM_UNDO, 1) = 0
      4019 semctl(1245186, 0, IPC_64|IPC_RMID, 0xbfbfe2b8) = 0
      4019 close(151) = 0
      4019 munmap(0xb755a000, 134532) = 0
      4019 munmap(0xb7525000, 104424) = 0
      4019 munmap(0xb751b000, 38084) = 0
      4019 munmap(0xb74ef000, 176256) = 0
      4019 exit_group(4) = ?


      The whole log is full of ioctl calls referring to USBDEFVS_SUBMITURB and getting a No such file or directory. However I don't know enough about the Linux USB internals to make sense of that.



      UPDATE 3: My kernel:



      # uname -r
      3.2.0-57-generic-pae


      Relevant output from dmesg:



      [10210.399432] usb 1-1: usbfs: interface 0 claimed by usblp while 'scanimage' sets config #1
      [10210.399446] usb 1-1: usbfs: process 5347 (scanimage) did not claim interface 1 before use
      [10211.428906] usb 1-1: usbfs: interface 0 claimed by usblp while 'scanimage' sets config #1
      [10213.519554] usb 1-1: usbfs: interface 0 claimed by usblp while 'scanimage' sets config #1
      [10213.519567] usb 1-1: usbfs: process 5352 (scanimage) did not claim interface 1 before use
      [10214.549025] usb 1-1: usbfs: interface 0 claimed by usblp while 'scanimage' sets config #1






      12.04 scanner sane






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Apr 13 '17 at 12:23









      Community

      1




      1










      asked Dec 17 '13 at 22:52









      Florian BruckerFlorian Brucker

      3133 silver badges14 bronze badges




      3133 silver badges14 bronze badges























          2 Answers
          2






          active

          oldest

          votes


















          0



















          Try the link below;



          • For Brother hardware

          Problem :



          -name=Scanner---adding type brother
          -name=SCANNER_DCP770CW


          My Brother type MFC-J430W.






          share|improve this answer


































            0



















            It Seems that the Brother driver .deb package installs the sane driver in the wrong directory for Ubuntu 16.04.
            Try the following:




            1. Copy all files from /usr/lib64 to /usr/lib



              sudo cp /usr/lib64/* /usr/lib




            2. Copy all files from /usr/lib64/sane to /usr/lib/x86_64-linux-gnu/sane or /usr/lib/sane



              sudo cp /usr/lib64/sane/* /usr/lib/sane



              sudo cp /usr/lib64/sane/* /usr/lib/x86_64-linux-gnu/sane







            share|improve this answer


























              Your Answer








              StackExchange.ready(function()
              var channelOptions =
              tags: "".split(" "),
              id: "89"
              ;
              initTagRenderer("".split(" "), "".split(" "), channelOptions);

              StackExchange.using("externalEditor", function()
              // Have to fire editor after snippets, if snippets enabled
              if (StackExchange.settings.snippets.snippetsEnabled)
              StackExchange.using("snippets", function()
              createEditor();
              );

              else
              createEditor();

              );

              function createEditor()
              StackExchange.prepareEditor(
              heartbeatType: 'answer',
              autoActivateHeartbeat: false,
              convertImagesToLinks: true,
              noModals: true,
              showLowRepImageUploadWarning: true,
              reputationToPostImages: 10,
              bindNavPrevention: true,
              postfix: "",
              imageUploader:
              brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
              contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/4.0/"u003ecc by-sa 4.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
              allowUrls: true
              ,
              onDemand: true,
              discardSelector: ".discard-answer"
              ,immediatelyShowMarkdownHelp:true
              );



              );














              draft saved

              draft discarded
















              StackExchange.ready(
              function ()
              StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f392311%2fbrother-wlan-scanner-dcp-7055w-not-working-invalid-argument%23new-answer', 'question_page');

              );

              Post as a guest















              Required, but never shown


























              2 Answers
              2






              active

              oldest

              votes








              2 Answers
              2






              active

              oldest

              votes









              active

              oldest

              votes






              active

              oldest

              votes









              0



















              Try the link below;



              • For Brother hardware

              Problem :



              -name=Scanner---adding type brother
              -name=SCANNER_DCP770CW


              My Brother type MFC-J430W.






              share|improve this answer































                0



















                Try the link below;



                • For Brother hardware

                Problem :



                -name=Scanner---adding type brother
                -name=SCANNER_DCP770CW


                My Brother type MFC-J430W.






                share|improve this answer





























                  0















                  0











                  0









                  Try the link below;



                  • For Brother hardware

                  Problem :



                  -name=Scanner---adding type brother
                  -name=SCANNER_DCP770CW


                  My Brother type MFC-J430W.






                  share|improve this answer
















                  Try the link below;



                  • For Brother hardware

                  Problem :



                  -name=Scanner---adding type brother
                  -name=SCANNER_DCP770CW


                  My Brother type MFC-J430W.







                  share|improve this answer















                  share|improve this answer




                  share|improve this answer








                  edited Feb 12 '14 at 14:20









                  AzkerM

                  8,8025 gold badges24 silver badges49 bronze badges




                  8,8025 gold badges24 silver badges49 bronze badges










                  answered Feb 12 '14 at 13:29









                  Amin BunyaminAmin Bunyamin

                  1




                  1


























                      0



















                      It Seems that the Brother driver .deb package installs the sane driver in the wrong directory for Ubuntu 16.04.
                      Try the following:




                      1. Copy all files from /usr/lib64 to /usr/lib



                        sudo cp /usr/lib64/* /usr/lib




                      2. Copy all files from /usr/lib64/sane to /usr/lib/x86_64-linux-gnu/sane or /usr/lib/sane



                        sudo cp /usr/lib64/sane/* /usr/lib/sane



                        sudo cp /usr/lib64/sane/* /usr/lib/x86_64-linux-gnu/sane







                      share|improve this answer





























                        0



















                        It Seems that the Brother driver .deb package installs the sane driver in the wrong directory for Ubuntu 16.04.
                        Try the following:




                        1. Copy all files from /usr/lib64 to /usr/lib



                          sudo cp /usr/lib64/* /usr/lib




                        2. Copy all files from /usr/lib64/sane to /usr/lib/x86_64-linux-gnu/sane or /usr/lib/sane



                          sudo cp /usr/lib64/sane/* /usr/lib/sane



                          sudo cp /usr/lib64/sane/* /usr/lib/x86_64-linux-gnu/sane







                        share|improve this answer



























                          0















                          0











                          0









                          It Seems that the Brother driver .deb package installs the sane driver in the wrong directory for Ubuntu 16.04.
                          Try the following:




                          1. Copy all files from /usr/lib64 to /usr/lib



                            sudo cp /usr/lib64/* /usr/lib




                          2. Copy all files from /usr/lib64/sane to /usr/lib/x86_64-linux-gnu/sane or /usr/lib/sane



                            sudo cp /usr/lib64/sane/* /usr/lib/sane



                            sudo cp /usr/lib64/sane/* /usr/lib/x86_64-linux-gnu/sane







                          share|improve this answer














                          It Seems that the Brother driver .deb package installs the sane driver in the wrong directory for Ubuntu 16.04.
                          Try the following:




                          1. Copy all files from /usr/lib64 to /usr/lib



                            sudo cp /usr/lib64/* /usr/lib




                          2. Copy all files from /usr/lib64/sane to /usr/lib/x86_64-linux-gnu/sane or /usr/lib/sane



                            sudo cp /usr/lib64/sane/* /usr/lib/sane



                            sudo cp /usr/lib64/sane/* /usr/lib/x86_64-linux-gnu/sane








                          share|improve this answer













                          share|improve this answer




                          share|improve this answer










                          answered Sep 27 '16 at 9:06









                          samysamy

                          2512 silver badges8 bronze badges




                          2512 silver badges8 bronze badges































                              draft saved

                              draft discarded















































                              Thanks for contributing an answer to Ask Ubuntu!


                              • Please be sure to answer the question. Provide details and share your research!

                              But avoid


                              • Asking for help, clarification, or responding to other answers.

                              • Making statements based on opinion; back them up with references or personal experience.

                              To learn more, see our tips on writing great answers.




                              draft saved


                              draft discarded














                              StackExchange.ready(
                              function ()
                              StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f392311%2fbrother-wlan-scanner-dcp-7055w-not-working-invalid-argument%23new-answer', 'question_page');

                              );

                              Post as a guest















                              Required, but never shown





















































                              Required, but never shown














                              Required, but never shown












                              Required, but never shown







                              Required, but never shown

































                              Required, but never shown














                              Required, but never shown












                              Required, but never shown







                              Required, but never shown









                              Popular posts from this blog

                              Tamil (spriik) Luke uk diar | Nawigatjuun

                              Align equal signs while including text over equalitiesAMS align: left aligned text/math plus multicolumn alignmentMultiple alignmentsAligning equations in multiple placesNumbering and aligning an equation with multiple columnsHow to align one equation with another multline equationUsing \ in environments inside the begintabularxNumber equations and preserving alignment of equal signsHow can I align equations to the left and to the right?Double equation alignment problem within align enviromentAligned within align: Why are they right-aligned?

                              Where does the image of a data connector as a sharp metal spike originate from?Where does the concept of infected people turning into zombies only after death originate from?Where does the motif of a reanimated human head originate?Where did the notion that Dragons could speak originate?Where does the archetypal image of the 'Grey' alien come from?Where did the suffix '-Man' originate?Where does the notion of being injured or killed by an illusion originate?Where did the term “sophont” originate?Where does the trope of magic spells being driven by advanced technology originate from?Where did the term “the living impaired” originate?