Page 1 of 1

[SOLVED] Scanner installation - Brother DCP-7055W

PostPosted: Sep 27th, '13, 07:29
by aguador
Hello all,

The drivers for this printer-scanner are not in the repositories, but are available from Brother. Installing the printer proceeded normally, but the scanner has proved more problematic. One needs to install 2 files (the driver plus a settings file), with the option of installing a third file to allow scanning to be initiated from the scanner-printer itself (which I have not done). See:

http://welcome.solutions.brother.com/bs ... 7&type2=-1

Mageia recognizes the scanner after installation, but upon trying to scan produces the following error message:

“Argumento incorrecto” (at least in Spanish! Indicating that someing is wrong in the command)

I think the problem lies in the need, also noted on the Brother site, to modify the settings file in order to use the scanner as a “normal user”(http://welcome.solutions.brother.com/bs ... scn1c.html). The changes are distro speecific, with, of course, Mageia not shown. Looking at the instruction for Mandriva 2010, which I assume to be the one most likely to apply, the Brother site offers these instructions:

Mandriva2010
1. Open /etc/udev/rules.d/60-libsane.rules
2. Add the following 2 lines at the last of the device entry. (just before "# The following rule...")
# Brother
ATTRS{idVendor}=="04f9", ENV{libsane_matched}="yes"
3. Restart the OS.

However, one problem is that there is no such line in the file:
-------------

Code: Select all
#
#   udev rules sample for Brother MFP
#         version 1.0.0-1
#
#   Copyright (C) 2012 Brother. Industries, Ltd.
#
#   copy to /etc/udev/rules.d or /lib/udev/rules.d
#

ACTION!="add", GOTO="brother_mfp_end"

SUBSYSTEM=="usb", GOTO="brother_mfp_udev_1"
SUBSYSTEM!="usb_device", GOTO="brother_mfp_end"
LABEL="brother_mfp_udev_1"


SYSFS{idVendor}=="04f9", GOTO="brother_mfp_udev_2"
ATTRS{idVendor}=="04f9", GOTO="brother_mfp_udev_2"
GOTO="brother_mfp_end"
LABEL="brother_mfp_udev_2"

#  ATTRS{bInterfaceNumber}=="01", GOTO="brother_mfp_udev_3"
#  ATTRS{bInterfaceNumber}=="02", GOTO="brother_mfp_udev_3"
#  ATTRS{bInterfaceNumber}=="03", GOTO="brother_mfp_udev_3"
#  GOTO="brother_mfp_end"
#  LABEL="brother_mfp_udev_3"

ATTRS{bInterfaceClass}!="0ff", GOTO="brother_mfp_end"
ATTRS{bInterfaceSubClass}!="0ff", GOTO="brother_mfp_end"
ATTRS{bInterfaceProtocol}!="0ff", GOTO="brother_mfp_end"

#MODE="0666"
#GROUP="scanner"
ENV{libsane_matched}="yes"
#SYMLINK+="scanner-%k"


LABEL="brother_mfp_end"

---------------

So, I have three questions:

1) How to test the scanner as superuser to see that this file needs to be changed (a step I omitted.)
2) Where to modify the file if needed.
3) How to modify the file as Mageia/KDE will not allow me to edit it as superuser.

Any help here would be greatly appreciated.

Re: Scanner installation - Brother DCP-7055W - Mageia 3, KDE

PostPosted: Sep 27th, '13, 08:56
by magfan
I am using a Brother DCP-J925DW in a network and following the instructions on the Brother website I did not run into problems. There were two files which had to be installed in the following order: brscan* and brscan-skey*:
Code: Select all
# rpm -qa | grep brscan
brscan-skey-0.2.4-0
brscan4-0.4.1-3
#


After installation I just configured the new scanner:
Code: Select all
brsaneconfig4  -a  name=(name  your  device)  model=(model  name)  ip=xx.xx.xx.xx


Now I simply call xsane as normal user and everything works fine without editing any file manually. So, if a network connection is an option for you, just try it. If you need an USB connection you may have to add the appropriate lines in
Code: Select all
/lib/udev/rules.d/60-libsane.rules

Re: Scanner installation - Brother DCP-7055W - Mageia 3, KDE

PostPosted: Sep 27th, '13, 11:55
by aguador
Thanks very much, magfan. I tried to be comprehensive, but forgot the fact that, yes, I am using a USB connection. I went ahead and installed the "skey" file (which I assumed to be optional), but no luck. BTW if it matters, the scanners shows as being connected "bus2; dev3". Thanks.

Re: Scanner installation - Brother DCP-7055W - Mageia 3, KDE

PostPosted: Sep 27th, '13, 12:28
by doktor5000
When you run e.g. xsane as root, are you able to scan?

Re: Scanner installation - Brother DCP-7055W - Mageia 3, KDE

PostPosted: Sep 27th, '13, 21:27
by aguador
Ah, finally found how to run as root with krunner . . . . No, Xsane generates an error message: Fallo a encedner el escaner: argumento no válido -- again, failure in starting the scan due to an invalid term.

Re: Scanner installation - Brother DCP-7055W - Mageia 3, KDE

PostPosted: Sep 28th, '13, 01:46
by doktor5000
How did you run xsane exactly?
Normally you would want to open a terminal,
enter
Code: Select all
su -

enter your root password and then run
Code: Select all
xsane


Please also have a look at https://wiki.mageia.org/en/Triage_guide ... r_problems

Re: Scanner installation - Brother DCP-7055W - Mageia 3, KDE

PostPosted: Sep 28th, '13, 14:22
by aguador
Thank you, doktor5000. xsane can be run as root from krunner with the commad "kdesu xsane", but I have also run it from Konsole. I checked the Triage guide and the scanner shows as being present (as it does in xsane). Here is the output of the scanner listing (scanimage -L):

device `brother4:bus2;dev4' is a Brother DCP-7055W USB scanner
device `v4l:/dev/video0' is a Noname ASUS USB2.0 WebCam virtual device

As is obvious from the failures to execute as root, the problem is not with the file I listed in the original post. I should also note that I have uninstalled and reinstalled the drivers without luck.

Re: Scanner installation - Brother DCP-7055W - Mageia 3, KDE

PostPosted: Oct 1st, '13, 04:40
by David_Batson
Try turning off the firewall and doing a scan. If that works, you need to find out which ports the scanner needs and open those on the firewall.

Re: Scanner installation - Brother DCP-7055W - Mageia 3, KDE

PostPosted: Oct 3rd, '13, 16:42
by aguador
Turning off the firewall had not effect.

Re: Scanner installation - Brother DCP-7055W - Mageia 3, KDE

PostPosted: Oct 3rd, '13, 16:49
by doktor5000
How did you turn off the firewall? It may still be in effect due to a small glitch: viewtopic.php?f=8&t=4987

Re: Scanner installation - Brother DCP-7055W - Mageia 3, KDE

PostPosted: Oct 17th, '13, 17:22
by aguador
OK I have tried disabeling the firewall from (1) the control center and (2) by removing and reinstalling the shorewall file referenced in the prior response. I've also found that Brother updated its driver and have installed the latest version of the driver. The result is the same.

Since I have Linux Mint running in a netbook here and have also tried installing the 32-bit .deb package in it . . . with similar results (both as root and "normal" user).

The next step is contacting Brother. In the meantime any and all suggestions are welcome!

Re: Scanner installation - Brother DCP-7055W - Mageia 3, KDE

PostPosted: Oct 18th, '13, 14:41
by David_Batson
Here is the error on Brother's website:
Brother wrote: • When scanning I receive the error "Failed to start scanner : Invalid argument".


When the scanning area is small, you receive this error.The scan size should be more than 64*64 pixels.


http://welcome.solutions.brother.com/bs ... tml#f00106

Don't know if this helps or not. I recall I had a problem with scan size before when using a Canon scanner on a multifunction printer.

Re: Scanner installation - Brother DCP-7055W - Mageia 3, KDE

PostPosted: Oct 4th, '14, 21:32
by aguador
Responding a year after the original post is a bit crazy, but I decided to mark this thread solved even though it is not completely solved. Having been forced to install the printer as a network printer on another computer (where CUPS for some reason refused to recognize the USB connection), I returned to my computer and configured the scanner as a network scanner.

Now, when I go to scan with the printer plugged into the computer, the scanner appears with both its network and USB connections (net1;dev0 and bus1;dev2 on my system). However, only the network connection will work for scanning.

I guess Brother was serious about that "W" in the model number!