[SOLVED] Need help: Getting Brother printer/scanner to work in LinuxMint
Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Need help: Getting Brother printer/scanner to work in LinuxMint
I am having trouble getting LinuxMint to recognize the scanner on my Brother Printer/Scanner. Printing works fine, but "Simple Scan" does not recognize the scanner UNLESS I invoke it via sudo. Then it recognizes the scanner. Sounds like a simple permissions problem. I noticed the normal user was not in the "scanner" /etc/group. So I added the normal user to that group and logged off/on and verified that the user was now part of that group. But Simple Scan still could not access the scanner when run as a normal user.
Environment:
Brother printer/scanner DCP-L2540DW, connected via USB
LinuxMint 18.1
Drivers installed via Brothers tool: "linux-brprinter-installer"
Any ideas?
Also, I noted that the Simple Scan GUI looks different if invoked as root than it does if invoked as a normal user.
Here are the contents of the normal users Download directory after running the Brother driver install tool (the tool was run as root). You can see that the tool downloaded LPR debs, CUPS wrapper debs, and scanner debs as well as some uninstall tools. dpkg -l confirms that these debs were successfully installed:
Code:
$ ls -l
total 3624
-rw-r--r-- 1 root root 74110 May 23 18:24 brscan4-0.4.4-3.amd64.deb
-rw-r--r-- 1 root root 50852 Sep 4 2013 brscan-skey-0.2.4-1.amd64.deb
-rw-r--r-- 1 root root 17506 Jun 12 16:25 dcpl2540dwcupswrapper-3.2.0-1a.i386.deb
-rw-r--r-- 1 root root 18996 Jun 14 2015 dcpl2540dwcupswrapper-3.2.0-1.i386.deb
-rw-r--r-- 1 root root 26254 Jun 12 16:25 dcpl2540dwlpr-3.2.0-1a.i386.deb
-rw-r--r-- 1 root root 35576 Jun 14 2015 dcpl2540dwlpr-3.2.0-1.i386.deb
-rwxr-xr-x 1 user1 user1 94320 Jun 12 16:20 linux-brprinter-installer-2.1.1-1
-rwxr--r-- 1 root root 46 Jun 12 16:26 uninstaller_brscan4
-rwxr--r-- 1 root root 50 Jun 12 16:26 uninstaller_brscan-skey
-rwxr--r-- 1 root root 1297 Jun 12 16:26 uninstaller_DCPL2540DW
$
$ dpkg -l | grep Brother
ii brscan-skey 0.2.4-1 amd64 Brother Linux scanner S-KEY tool
ii brscan4 0.4.4-3 amd64 Brother Scanner Driver
ii dcpl2540dwcupswrapper:i386 3.2.0-1 i386 Brother DCP-L2540DW CUPS wrapper driver
ii dcpl2540dwlpr:i386 3.2.0-1 i386 Brother DCP-L2540DW LPR driver
ii printer-driver-brlaser 3-5~ubuntu1 amd64 printer driver for (some) Brother laser printers
ii printer-driver-ptouch 1.4-1 amd64 printer driver Brother P-touch label printers
$
The first screenshot below is Simple Scan invoked as a normal user. The second screenshot is when it is invoked as root. Same executable: /usr/bin/simple-scan. Must be something different in the environments causing the different look of the GUIs?
Thanks for that link. The article looked very promising, but the structure the article mentioned in /usr/lib64 vs /usr/lib does not exist on my system. That article must be referencing an older Brother installation. Mine doesn't match. For example, the article mentions files named libbrscandec*.so* There are no such files like that anywhere on my system. The article specifically mentions "64-bit Linux Mint 18.x" and that describes my installation 100%, but the article is wrong about existing files and their locations.
Thanks for the link though. It certainly looked promising, but the devil was in the details, and they were wrong.
The article covers creating a scanner udev rule (for setting device permissions). Did you check that such a rule exists? If 'sane-find-scanner' detects a USB-connected scanner device as root but not as user that usually means that a suitable udev rule is missing.
It also mentioned some quirk regarding simple-scan (just in case it is relevant to your situation)...
Quote:
Note: some reports indicate that it might be necessary to run Simple Scan once (and only once) with root permissions, in order to have it recognize the scanning feature of your Brother MFC. So if Simple Scan can't use the scanning feature yet, execute this terminal command:
gksudo simple-scan
This launches Simple Scan with root permissions. Now it should recognize the Brother scanner. After the recognition, close Simple Scan and launch it again normally, i.e. without root permissions. It should work fine now.
I did run Simple Scan as a normal user initally (it didn't work), then as root (it worked), and then again as a normal user (it still didn't work). That was before I posted my initial question.
I did not check the udev rule after seeing the article above that part was off-base with my installation. But you're right in your implication - it's really two separate things - (1) Brother driver locations and (2) udev rules. I'll go check udev later this evening and see what's there, adding what the article suggests if it's missing. I'm not a udev expert to be able to understand exactly what that rule is doing, but I can still cluelessly mimic what they show in the article and see if it works.
I'm not running Ubuntu/Mint so can't inspect the rules, but it may be that there is a common section within that udev rules file that sets the device node permissions and group for all scanner devices matched in that file.
SOLVED: Need help: Getting Brother printer/scanner to work in LinuxMint
Thank you @ferrari!!! Adding the udev rule worked.
=======
Summarizing the fix for anyone in the same situation that stumbles upon this thread:
Environment:
LinuxMint 18.1 x64 XFCE
Brother DCP-L2540DW printer/scanner connected via USB
Steps:
(1) Go to http://support.brother.com, click "Downloads, then "Search by Model Name" (enter your printer/scanner model). Click "Linux", then "Linux (deb)", then "Search". Then click "Driver Install Tool". Agree to the EULA and download the tool. Unzip the download and run the tool as "root". When the tool asks you if you will be specifying the URI, answer "no" if printer is USB connected, "yes" if network connected.
(2) Add all userids that will need access to the scanner to the group "scanner".
(3) Add the following to /lib/udev/rules.d/*libsane.rules, right before the last line of the file:
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.