Mint 18 and Brother scanner (Solved)

Forum rules
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
chiefjim
Level 6
Level 6
Posts: 1157
Joined: Sun Jun 07, 2009 7:26 am
Location: South Texas, USA

Mint 18 and Brother scanner (Solved)

Post by chiefjim »

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 LockBot on Wed Dec 28, 2022 7:16 am, edited 2 times in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
Mint-21.0 Mate 64 bit / LMDE-5 64 bit
Gigabyte H370M D3H
Intel G3258
Crucial Ballistic Sport 32GB DDR4 2400
8TB HDD Seagate Baracuda 5400rpm
User avatar
all41
Level 19
Level 19
Posts: 9498
Joined: Tue Dec 31, 2013 9:12 am
Location: Computer, Car, Cage

Re: Mint 18 and Brother scanner

Post by all41 »

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.
Everything in life was difficult before it became easy.
chiefjim
Level 6
Level 6
Posts: 1157
Joined: Sun Jun 07, 2009 7:26 am
Location: South Texas, USA

Re: Mint 18 and Brother scanner

Post by chiefjim »

Mine is connected via USB. Wouldn't that negate the firewall issue?
Mint-21.0 Mate 64 bit / LMDE-5 64 bit
Gigabyte H370M D3H
Intel G3258
Crucial Ballistic Sport 32GB DDR4 2400
8TB HDD Seagate Baracuda 5400rpm
User avatar
all41
Level 19
Level 19
Posts: 9498
Joined: Tue Dec 31, 2013 9:12 am
Location: Computer, Car, Cage

Re: Mint 18 and Brother scanner

Post by all41 »

Mine is connected via USB. Wouldn't that negate the firewall issue?
One would think--easy to tell via sudo disable ufw
Everything in life was difficult before it became easy.
chiefjim
Level 6
Level 6
Posts: 1157
Joined: Sun Jun 07, 2009 7:26 am
Location: South Texas, USA

Re: Mint 18 and Brother scanner

Post by chiefjim »

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.
Mint-21.0 Mate 64 bit / LMDE-5 64 bit
Gigabyte H370M D3H
Intel G3258
Crucial Ballistic Sport 32GB DDR4 2400
8TB HDD Seagate Baracuda 5400rpm
Duveltje

Re: Mint 18 and Brother scanner

Post by Duveltje »

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 6
Level 6
Posts: 1157
Joined: Sun Jun 07, 2009 7:26 am
Location: South Texas, USA

Re: Mint 18 and Brother scanner

Post by chiefjim »

Mine is the MFC-J450DW. Working fine with Mint 17.3. Can't get scanner recognized with Mint 18.
Mint-21.0 Mate 64 bit / LMDE-5 64 bit
Gigabyte H370M D3H
Intel G3258
Crucial Ballistic Sport 32GB DDR4 2400
8TB HDD Seagate Baracuda 5400rpm
JChristensen
Level 3
Level 3
Posts: 113
Joined: Sat Apr 25, 2015 8:52 pm

Re: Mint 18 and Brother scanner

Post by JChristensen »

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
JChristensen
Level 3
Level 3
Posts: 113
Joined: Sat Apr 25, 2015 8:52 pm

Re: Mint 18 and Brother scanner

Post by JChristensen »

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.
Duveltje

Re: Mint 18 and Brother scanner

Post by Duveltje »

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

Re: Mint 18 and Brother scanner

Post by Chrisnz »

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 6
Level 6
Posts: 1157
Joined: Sun Jun 07, 2009 7:26 am
Location: South Texas, USA

Re: Mint 18 and Brother scanner

Post by chiefjim »

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.
Mint-21.0 Mate 64 bit / LMDE-5 64 bit
Gigabyte H370M D3H
Intel G3258
Crucial Ballistic Sport 32GB DDR4 2400
8TB HDD Seagate Baracuda 5400rpm
PeterBell

Re: Mint 18 and Brother scanner (Solved)

Post by PeterBell »

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 3
Level 3
Posts: 113
Joined: Sat Apr 25, 2015 8:52 pm

Re: Mint 18 and Brother scanner (Solved)

Post by JChristensen »

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.
JChristensen
Level 3
Level 3
Posts: 113
Joined: Sat Apr 25, 2015 8:52 pm

Re: Mint 18 and Brother scanner (Solved)

Post by JChristensen »

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.
observativetiger

Re: Mint 18 and Brother scanner (Solved)

Post by observativetiger »

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!
burgersplus

Re: Mint 18 and Brother scanner (Solved)

Post by burgersplus »

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

Re: Mint 18 and Brother scanner (Solved)

Post by olanbee »

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: 35
Joined: Wed Jan 18, 2012 1:38 pm

Re: Mint 18 and Brother scanner (Solved)

Post by kingsthane »

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: 23
Joined: Mon Oct 13, 2014 9:38 am

Re: Mint 18 and Brother scanner

Post by meduser »

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.
Locked

Return to “Printers & Scanners”