You are not logged in.

#1 2015-11-09 21:39:31

JLucien
Member
Registered: 2011-06-26
Posts: 30

Brother MFC-7840W Scanner No Longer Working - Invalid Argument Error

My Brother MFC-7840W is no longer scanning across the network.  I have no idea at what upgrade it stopped working.

Steps I have taken to get it going:

1. Installed Brother driver from AUR - https://aur.archlinux.org/brother-mfc-7840w.git
2. Installed brscan3 from AUR - https://aur.archlinux.org/brscan3.git
3. Run

# brsaneconfig3 -a name=SCANNER model=MFC-7840W ip=192.168.001.060

4. Copied the libraries to proper locations for 64-bit:

 cd /usr/lib 
$ sudo ln -s ../lib64/libbrscandec2.so.1 .
$ sudo ln -s ../lib64/libbrscandec3.so .
$ sudo ln -s ../lib64/libbrscandec3.so.1.0.0 .
$ sudo ln -s ../lib64/libbrcomplpr2.so .

cd sane
$ sudo ln -s ../../lib64/sane/libsane-brother3.so .
$ sudo ln -s ../../lib64/sane/libsane-brother3.so.1 .
$ sudo ln -s ../../lib64/sane/libsane-brother3.so.1.0.7 .

5. Installed SANE and enabled via systemd
6.

$ scanimage -L
device 'brother3:net1;dev0' is a Brother MFC-7840W SCANNER

7.

$ scanimage --test
scanimage: open of device brother3:net1;dev0 failed: Invalid argument

What am I missing?  I have reinstalled the drivers, brscan3 and sane.  It prints fine.

Offline

#2 2015-11-10 11:46:50

Lone_Wolf
Administrator
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 15,556

Re: Brother MFC-7840W Scanner No Longer Working - Invalid Argument Error

On an archlinux x86_64 system /usr/lib64 is a symlink to /usr/lib .
The brscan3 and Sane pacakges support both i686 and x86_64 architecture, why did you feel the need for step 4  ?
Those symlinks you manually created are very likely the cause of your problems.


- remove the symlinks created in step 4
- just to be safe, remove brscan3 and build it fresh.


Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.

clean chroot building not flexible enough ?
Try clean chroot manager by graysky

Offline

#3 2015-11-10 15:14:40

JLucien
Member
Registered: 2011-06-26
Posts: 30

Re: Brother MFC-7840W Scanner No Longer Working - Invalid Argument Error

I removed all of the symlinks.

Rebuilt and reinstalled brscan3 and added the scanner back, still getting the same error.

I don't know if it's related, but when I try:

$ sudo scanimage -d 'brother3:net1;dev0' --format=tiff > test.tiff
scanimage: open of device brother3:net1;dev0 failed: Invalid argument

$ sudo scanimage -d brother3 --format=tiff > test.tiff
Segmentation fault

When I look at dmesg:

scanimage[22430]: segfault at 1040 ip 00007f81cc49baf9 sp 00007ffe4b35aff0 error 4 in libusb-0.1.so.4.4.4[7f81cc499000+4000]

It seems to be looking for a usb device.  Maybe that is completely unrelated as the "net1;dev0" is part of a valid argument, I don't know.

The brother3 driver is listed in /etc/sane.d/dll.conf so I don't know where this is going wrong.

Offline

#4 2015-11-10 15:43:48

c0mm0ner
Member
Registered: 2015-11-09
Posts: 93

Re: Brother MFC-7840W Scanner No Longer Working - Invalid Argument Error

Activate debug output via

export SANE_DEBUG_DLL=255

prior to

scanimage --test

and post the output.

Last edited by c0mm0ner (2015-11-10 15:44:04)

Offline

#5 2015-11-10 15:59:27

JLucien
Member
Registered: 2011-06-26
Posts: 30

Re: Brother MFC-7840W Scanner No Longer Working - Invalid Argument Error

$ scanimage --test
[sanei_debug] Setting debug level of dll to 255.
[dll] sane_init: SANE dll backend version 1.0.13 from sane-backends 1.0.25
[dll] sane_init/read_dlld: attempting to open directory `./dll.d'
[dll] sane_init/read_dlld: using config directory `./dll.d'
[dll] sane_init/read_dlld: done.
[dll] sane_init/read_config: reading dll.conf
[dll] add_backend: adding backend `net'
[dll] add_backend: adding backend `brother3'
[dll] sane_get_devices
[dll] load: searching backend `brother3' in `/usr/lib/sane'
[dll] load: trying to load `/usr/lib/sane/libsane-brother3.so.1'
[dll] load: dlopen()ing `/usr/lib/sane/libsane-brother3.so.1'
[dll] init: initializing backend `brother3'
[dll] init: backend `brother3' is version 1.0.1
[dll] load: searching backend `net' in `/usr/lib/sane'
[dll] load: trying to load `/usr/lib/sane/libsane-net.so.1'
[dll] load: dlopen()ing `/usr/lib/sane/libsane-net.so.1'
[dll] init: initializing backend `net'
[dll] init: backend `net' is version 1.0.25
[dll] sane_get_devices: found 1 devices
[dll] sane_open: trying to open `brother3:net1;dev0'
scanimage: open of device brother3:net1;dev0 failed: Invalid argument
[dll] sane_exit: exiting
[dll] sane_exit: calling backend `brother3's exit function
[dll] sane_exit: calling backend `net's exit function
[dll] sane_exit: finished

Offline

#6 2015-11-10 16:26:50

c0mm0ner
Member
Registered: 2015-11-09
Posts: 93

Re: Brother MFC-7840W Scanner No Longer Working - Invalid Argument Error

Ok, that's not too helpful. You could try the solution from this superuser.com question, as the second part ooks similar. In your case you would have to modify 50-brscan3.rules accordingly. As it differs by also setting the rights and groups, i would suggest to make a backup copy of the file and just remove the ENV{libsane_matched}="yes".

Offline

#7 2015-11-10 17:53:44

JLucien
Member
Registered: 2011-06-26
Posts: 30

Re: Brother MFC-7840W Scanner No Longer Working - Invalid Argument Error

I have tried all variations I can think of in my /lib/udev/rules.d/49-sane.rules file.

I copied 50-brscan3.rules to the /lib/udev/rules.d directory as it was only in my build dir before, but no joy.

Also, I should point out I get the same error on a 32-bit Arch as well as a 64-bit Arch.

Offline

#8 2015-11-10 19:43:04

c0mm0ner
Member
Registered: 2015-11-09
Posts: 93

Re: Brother MFC-7840W Scanner No Longer Working - Invalid Argument Error

I assume you already checked the according wiki article and checked the journals?

Offline

#9 2015-11-10 19:46:06

JLucien
Member
Registered: 2011-06-26
Posts: 30

Re: Brother MFC-7840W Scanner No Longer Working - Invalid Argument Error

You assume correct.

I have worked around this by using the scanner's scan-to-ftp function, but I would not mark it as solved.

Offline

Board footer

Powered by FluxBB