Mint 18 and Brother scanner (Solved)

Forum rules
Before you post please read this
chiefjim
Level 5
Level 5
Posts: 716
Joined: Sun Jun 07, 2009 7:26 am
Location: South Texas, USA

Mint 18 and Brother scanner (Solved)

Post by chiefjim » Sat Jun 11, 2016 9:42 am

Testing the Mint 18 beta using Mate. Pretty good so far. Having trouble setting up the scanner for my MFC-J450DW though. Printer function works fine. Have tried the .debs as well as the installer script.

Not declaring it to be a bug yet.

Would appreciate learning from other MFC users if, and how, they got a working scanner. Perhaps I overlooked something.
Last edited by chiefjim on Tue Jul 12, 2016 7:15 pm, edited 1 time in total.
Desktop:
Mint-18.3 Mate 64 bit
MSI B85M-E45
Intel G3258
Crucial Ballistic Sport 8GB DDR3 1600
2TB HDD WD Black 7200rpm

Laptop:
Acer Aspire AS5552-5898
Mint-17.3 Mate 64 bit
AMD Phenom II Triple-Core N830
4GB Memory DDR3
500GB HDD 5400rpm

User avatar
all41
Level 12
Level 12
Posts: 4103
Joined: Tue Dec 31, 2013 9:12 am
Location: Computer, Car, Cage

Re: Mint 18 and Brother scanner

Post by all41 » Sat Jun 11, 2016 11:58 am

Hi chiefjim,

I had a similar situation with an Epson all-in-one.
The printer worked great--but the scanner was not recognized.
Turned out--the scanner was being blocked by the firewall.
So with the help of the goodly forum folks I added a firewall rule to
allow the scanner from the network--and simple scan immediately
recognized the scanner.
Proud to be a supporter and monthly contributor to Mint.

chiefjim
Level 5
Level 5
Posts: 716
Joined: Sun Jun 07, 2009 7:26 am
Location: South Texas, USA

Re: Mint 18 and Brother scanner

Post by chiefjim » Sat Jun 11, 2016 12:38 pm

Mine is connected via USB. Wouldn't that negate the firewall issue?
Desktop:
Mint-18.3 Mate 64 bit
MSI B85M-E45
Intel G3258
Crucial Ballistic Sport 8GB DDR3 1600
2TB HDD WD Black 7200rpm

Laptop:
Acer Aspire AS5552-5898
Mint-17.3 Mate 64 bit
AMD Phenom II Triple-Core N830
4GB Memory DDR3
500GB HDD 5400rpm

User avatar
all41
Level 12
Level 12
Posts: 4103
Joined: Tue Dec 31, 2013 9:12 am
Location: Computer, Car, Cage

Re: Mint 18 and Brother scanner

Post by all41 » Sat Jun 11, 2016 12:48 pm

Mine is connected via USB. Wouldn't that negate the firewall issue?
One would think--easy to tell via sudo disable ufw
Proud to be a supporter and monthly contributor to Mint.

chiefjim
Level 5
Level 5
Posts: 716
Joined: Sun Jun 07, 2009 7:26 am
Location: South Texas, USA

Re: Mint 18 and Brother scanner

Post by chiefjim » Sat Jun 11, 2016 3:09 pm

Gave that a try. Discovered the command to actually be sudo ufw disable

No change. Correction to my earlier post, this is connected via my esata docking station, not usb. Mint 17.3 on this main system handles the scanner just fine.

I keep trying while 18 progresses from beta to rc to final.
Desktop:
Mint-18.3 Mate 64 bit
MSI B85M-E45
Intel G3258
Crucial Ballistic Sport 8GB DDR3 1600
2TB HDD WD Black 7200rpm

Laptop:
Acer Aspire AS5552-5898
Mint-17.3 Mate 64 bit
AMD Phenom II Triple-Core N830
4GB Memory DDR3
500GB HDD 5400rpm

Duveltje
Level 1
Level 1
Posts: 13
Joined: Fri May 13, 2016 8:32 pm

Re: Mint 18 and Brother scanner

Post by Duveltje » Tue Jun 14, 2016 3:25 am

I have a brother all-in-one printer and I use Mint 17.3. I managed to get the scanning done by scanning from the computer.
How that has to be installed is described in the support section from Brother. Make sure, that you find all the preconditions. They are a bit scattered through the support pages, but they're there. It has to be done by console commands.
What type/model scanner do you have?

chiefjim
Level 5
Level 5
Posts: 716
Joined: Sun Jun 07, 2009 7:26 am
Location: South Texas, USA

Re: Mint 18 and Brother scanner

Post by chiefjim » Tue Jun 14, 2016 7:45 am

Mine is the MFC-J450DW. Working fine with Mint 17.3. Can't get scanner recognized with Mint 18.
Desktop:
Mint-18.3 Mate 64 bit
MSI B85M-E45
Intel G3258
Crucial Ballistic Sport 8GB DDR3 1600
2TB HDD WD Black 7200rpm

Laptop:
Acer Aspire AS5552-5898
Mint-17.3 Mate 64 bit
AMD Phenom II Triple-Core N830
4GB Memory DDR3
500GB HDD 5400rpm

JChristensen
Level 2
Level 2
Posts: 65
Joined: Sat Apr 25, 2015 8:52 pm

Re: Mint 18 and Brother scanner

Post by JChristensen » Tue Jun 14, 2016 8:27 am

I have a Brother MFCJ4620DW connected via Wi-Fi. The printer works fine; at some point the scanner stopped working, but I'm not sure exactly when. This is with my old Dell desktop. I've just started playing with Mint 18 on my laptop, I don't have the Brother drivers installed yet but will continue to experiment as I can and report back if I find anything.

Desktop: Linux Mint 17.3 Rosa
Kernel: 3.19.0-32-generic x86_64 (64 bit) Desktop: Cinnamon 2.8.8
Machine: Dell OptiPlex 745 11/30/2006
CPU: Dual core Intel Core2 6600 (-MCP-) cache: 4096 KB

Laptop: Linux Mint 18 Sarah
Kernel: 4.4.0-21-generic x86_64 (64 bit) Desktop: Cinnamon 3.0.5
Machine: HP Pavilion dv6 Notebook PC 04/03/2013
CPU: Quad core Intel Core i7-3610QM (-HT-MCP-) cache: 6144 KB
LM18.3 C64 on Dell Optiplex 745, HP Pavilion dv6, dv7; LM18 C64 on HP h8.

JChristensen
Level 2
Level 2
Posts: 65
Joined: Sat Apr 25, 2015 8:52 pm

Re: Mint 18 and Brother scanner

Post by JChristensen » Tue Jun 14, 2016 6:31 pm

Installed the Brother driver software on the Mint 18 system and all is well, printing and scanning (Simple Scan) work fine.

Uninstalled and reinstalled the driver software on the Mint 17.3 system and all is well there now too. Simple Scan and xsane both work for scanning.

Before the reinstall on the 17.3 system,

Code: Select all

scanimage --list-devices
would find the scanner OK and list it but

Code: Select all

scanimage --test
would hang for about 130 seconds then return an error message that I did not capture but that complained about an "invalid argument".

Bottom line, I don't know what caused the problem on the 17.3 system. Sorry I can't shed more light on things.
LM18.3 C64 on Dell Optiplex 745, HP Pavilion dv6, dv7; LM18 C64 on HP h8.

Duveltje
Level 1
Level 1
Posts: 13
Joined: Fri May 13, 2016 8:32 pm

Re: Mint 18 and Brother scanner

Post by Duveltje » Thu Jun 16, 2016 9:33 am

It might be the 40-libsane.rules:

Open a shell/terminal by ctrl-alt-T
execute: sudo gedit /lib/udev/rules.d/40-libsane.rules
Then enter the following 2 lines just before the line LABEL="libsane_rules_end":
# Brother scanners
ATTRS{idVendor}=="04f9", ENV{libsane_matched}="yes"

Save the file and restart your computer.

If this doesn't worrk de-install your brother device, and follow the next procedure:
Just to be sure,
sudo gedit /lib/udev/rules.d/40-libsane.rules the following 2 lines: and check if the following lines haven't been removed.
# Brother scanners
ATTRS{idVendor}=="04f9", ENV{libsane_matched}="yes"

Save the file and restart your computer.

Open a shell/terminal again and execute:
sudo lppasswd -g sys -a root
When you've done this you're prompted to give a password. That must be the password you usually use for root actions. Press enter
You're prompted again and enter the same password.
sudo apt-get install apparmor-utils
sudo aa-complain cupsd
sudo mkdir /usr/share/cups/model (Just the word model, not the model you have)
sudo mkdir /var/spool/lpd
sudo apt-get install ia32-libs
sudo apt-get install csh
sudo apt-get install sane-utils
sudo aa-complain cupsd (I'm not really sure if this has to be repeated, but it won't hurt)
sudo apt-get install psutils
If you use a firewall: The following ports are required to be open.
Inbound direction : UDP Port 54925
Outbound direction : TCP Port 54921

Make sure your device is connected to your computer
Open this url: http://support.brother.com/g/b/download ... &type3=625
That downloads the installation file and you find the remaining part of the installation instructions.

Restart your computer, every thing should be fine now.

Chrisnz
Level 2
Level 2
Posts: 64
Joined: Sun May 20, 2012 6:08 am
Location: New Zealand

Re: Mint 18 and Brother scanner

Post by Chrisnz » Mon Jul 11, 2016 8:00 pm

And Another...

I was running Mint 17.1 and Brother (MFC-j430w) failed to detect scanner (32bit software installed), then today upgraded to Mint 18 ... same problem still fails to detect scanner. Prints fine!

Been through the extras installs and made no difference? No Scanner detected. Hmpf!

So One last attempt - I go to Brothers site and decide to load/ install Scanner driver 64bit. It comes up in Gdebi installer and says already installed after the installation process? So I try it... Now it works!?
So confusing... but ...hey its working for now and Ive got stacks to scan.

Thanks for all the useful info here - hope it helps you too?
Last edited by Chrisnz on Tue Jul 12, 2016 7:53 pm, edited 1 time in total.

chiefjim
Level 5
Level 5
Posts: 716
Joined: Sun Jun 07, 2009 7:26 am
Location: South Texas, USA

Re: Mint 18 and Brother scanner

Post by chiefjim » Tue Jul 12, 2016 7:24 pm

Duveltje wrote:It might be the 40-libsane.rules:

Open a shell/terminal by ctrl-alt-T
execute: sudo gedit /lib/udev/rules.d/40-libsane.rules
Then enter the following 2 lines just before the line LABEL="libsane_rules_end":
# Brother scanners
ATTRS{idVendor}=="04f9", ENV{libsane_matched}="yes"

.
That provided the fix. So many thanks. Kind of explains why I wasn't able to resolve it on my own. Way above my skill level.

Curious though why none of the installers performed that task? Is this something new and unique to Mint 18? I was getting super frustrated after installing Mint 18 on a clean drive. No leftover drivers to scramble things up. Yet I was still being blocked. Always worked before! :)

Again many thanks for identifying the solution.
Desktop:
Mint-18.3 Mate 64 bit
MSI B85M-E45
Intel G3258
Crucial Ballistic Sport 8GB DDR3 1600
2TB HDD WD Black 7200rpm

Laptop:
Acer Aspire AS5552-5898
Mint-17.3 Mate 64 bit
AMD Phenom II Triple-Core N830
4GB Memory DDR3
500GB HDD 5400rpm

PeterBell
Level 1
Level 1
Posts: 7
Joined: Thu Mar 03, 2016 11:22 pm

Re: Mint 18 and Brother scanner (Solved)

Post by PeterBell » Thu Jul 21, 2016 6:22 am

I appear to have a similar problem. The scanner on my networked Brother MFC was working great under Rosa, but failed to respond after I upgraded to Sarah.

scanimage -L totally failed to find the scanner. I looked at my Arch Linux system, where the scanner works perfectly. This led me to believe that I needed to move the libsane-brother*.so files from /usr/lib64/sane/, where Brscan3 (as downloaded from the Brother site) had placed them, into /usr/lib/x86_64-linux-gnu/sane/

Code: Select all

sudo cp -a /usr/lib64/sane/libsane-brother* /usr/lib/x86_64-linux-gnu/sane/
This has been partially successful in that scanimage -L now finds the scanner:

Code: Select all

peter@Sala ~ $ scanimage -L
device `brother3:net1;dev0' is a Brother MFC-8880DN MFC8880
However, the scanner still doesn't work, reporting 'Invalid argument':

Code: Select all

peter@Sala ~ $ scanimage -d brother3:net1;dev0
scanimage: open of device brother3:net1 failed: Invalid argument
dev0: command not found
I tried adding the Brother into 40-libsane.rules, as suggested above, but this makes absolutely no difference.

What else might I be missing?

Update:
I found this and following the advice there, I now have the scanner working under Sarah! I did remove the files which I had copied to /usr/lib/x86_64-linux-gnu/sane/ earlier.

JChristensen
Level 2
Level 2
Posts: 65
Joined: Sat Apr 25, 2015 8:52 pm

Re: Mint 18 and Brother scanner (Solved)

Post by JChristensen » Thu Aug 04, 2016 4:48 pm

Today I went to do a scan (on LM18 Cinnamon 64-bit) and it failed. It was working previously.

Code: Select all

$ scanimage --list-devices
device `brother4:net1;dev0' is a Brother MFC-J4620DW MFC-J4620DW
$ scanimage --test
scanimage: open of device brother4:net1;dev0 failed: Invalid argument
Deinstalling and reinstalling the Brother driver fixed things up (again). At one point in the install process, it asks for an IP address for the scanner:

Code: Select all

Setting up brscan-skey (0.2.4-1) ...
 enter IP address ->
I'm wondering if this could be as simple as it's using a hard-coded address to access the scanner. Previously I didn't make a note of the printer's IP address, so I don't know whether it's changed. I have done so now, if it fails again I'll be able to check. Maybe it's just a matter of setting up a reserved IP address for the scanner/printer.
LM18.3 C64 on Dell Optiplex 745, HP Pavilion dv6, dv7; LM18 C64 on HP h8.

JChristensen
Level 2
Level 2
Posts: 65
Joined: Sat Apr 25, 2015 8:52 pm

Re: Mint 18 and Brother scanner (Solved)

Post by JChristensen » Wed Aug 24, 2016 9:30 pm

My theory seems to be correct, i.e. the software uses a fixed IP address for the scanner. I solved the issue by reserving a static IP for the printer/scanner in my router, then editing /etc/opt/brother/scanner/brscan4/brsanenetdevice4.cfg to contain that IP address.
LM18.3 C64 on Dell Optiplex 745, HP Pavilion dv6, dv7; LM18 C64 on HP h8.

User avatar
observativetiger
Level 1
Level 1
Posts: 4
Joined: Fri Sep 23, 2016 3:56 am
Contact:

Re: Mint 18 and Brother scanner (Solved)

Post by observativetiger » Fri Sep 23, 2016 4:49 am

I've dealt with this bug for several releases now, same as the op and others have indicated, the only difference being I'm using a MFC-7440N.
In the end is was three simple steps that solved my connectivity issues for printing and scanning in LM17.x and LM18 while using Brother products.
  1. Install the Brother drivers using the official Brother install script for your model.
    • Go to Brother Downloads.
    • Search for your model and download the INSTALL script. It is run from the terminal as su or sudo.
    • This ensures that an ip is configured on your system and any dependencies are installed.
  2. (As stated by Duveltje) If you use a firewall:
    • The following ports are required to be open:
    • Inbound direction : UDP Port 54925
    • Outbound direction : TCP Port 54921
  3. This is usually why the scanner wont connect and is stated by PeterBell (Arch config identified) and
    the Brother's support website FAQ.
I hope this helps others. Thank you to everyone on this thread, all very important input!
The most complex things are simply explained.
LM18 Cinnamon 64 on HP14 Chromebook Falco

burgersplus
Level 1
Level 1
Posts: 4
Joined: Fri Feb 13, 2009 2:31 pm

Re: Mint 18 and Brother scanner (Solved)

Post by burgersplus » Sat Sep 24, 2016 1:44 pm

I had the same problem but found it to be the wrong IP address for the printer/scanner. The printer shows 192.168.002.011 whereas the router address is 192.168.2.11. I went to the /etc/opt/brother/scanner/brscan4/brsanenetdevice4.cfg file and changed it to the router address and boom, it works.
I also made the router address permanent (fixed) Hope this helps.

olanbee
Level 1
Level 1
Posts: 1
Joined: Tue Oct 04, 2016 7:56 pm

Re: Mint 18 and Brother scanner (Solved)

Post by olanbee » Tue Oct 04, 2016 8:16 pm

Duveltje wrote on June 16:
It might be the 40-libsane.rules:

Open a shell/terminal by ctrl-alt-T
execute: sudo gedit /lib/udev/rules.d/40-libsane.rules
Then enter the following 2 lines just before the line LABEL="libsane_rules_end":
# Brother scanners
ATTRS{idVendor}=="04f9", ENV{libsane_matched}="yes"
This also solved my problem on Mint 17 Quina 32 bit with Brothers MFC-J475DW. Many thanks.

kingsthane
Level 1
Level 1
Posts: 25
Joined: Wed Jan 18, 2012 1:38 pm

Re: Mint 18 and Brother scanner (Solved)

Post by kingsthane » Fri Oct 21, 2016 2:10 pm

Thanks observativetiger! In the past I've always installed the lpr, cupswrapper and brscan3 drivers separately using Brother's suggested methods and have had no problems. Hadn't worked though with the new Mint18 64bit cinnamon. Printing no problem but wouldn't recognize scanner. I had already added the 2 lines to the /lib/udev/rules.d/40-libsane.rules" file and had checked for sane-utils being present. I checked the /usr/lib64/ folder before using the installer program you suggested from the Brother site and the 6 listed files weren't in there. After using Brother's all-in-one installer this time as you suggested, everything seemed to go well, although even after rebooting the scanner wasn't recognized and wouldn't start. Upon checking the /usr/lib64 folder again though, there were the files - 3 standalones and 3 in a sane subfolder. They must have been installed with the all-in-one installer, which hadn't been done on numerous installations of the 3 individual drivers. After copying the files over to the /usr/lib/ folder the scanner works fine. The 6 files being present and transfered seems to have done the trick. Would be interested to learn where those 6 files came from. Back up and running. Many thanks.

Just realized I probably should have included my printer/scanner type: Brother DCP-7030.

meduser
Level 1
Level 1
Posts: 21
Joined: Mon Oct 13, 2014 9:38 am

Re: Mint 18 and Brother scanner

Post by meduser » Wed Nov 23, 2016 2:25 am

Duveltje wrote:It might be the 40-libsane.rules:

Open a shell/terminal by ctrl-alt-T
execute: sudo gedit /lib/udev/rules.d/40-libsane.rules
Then enter the following 2 lines just before the line LABEL="libsane_rules_end":
# Brother scanners
ATTRS{idVendor}=="04f9", ENV{libsane_matched}="yes"

Save the file and restart your computer.

This worked perfectly for me. Thank you.

Post Reply

Return to “Printers & Scanners”