LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   No Scanner Found...Brother MFC-440CN (https://www.linuxquestions.org/questions/linux-software-2/no-scanner-found-brother-mfc-440cn-4175588353/)

dbrew4 08-30-2016 05:58 PM

No Scanner Found...Brother MFC-440CN
 
2 Attachment(s)
Need help with drivers I assume. Dell Inspiron 546, 64bit, running Linux Mint 18. Installed drivers (see attachment) for my USB MFC-440CN. Printer works fine but no scanner found (see Find Scanner attachment). After reading many, many posts, I'm more confused than when I started. There are many suggestions on what to try but up to now...NG. Any help will be appreciated.
Tks
Dennis

allend 08-30-2016 07:54 PM

You have two scanner drivers installed. The correct driver for your device is the brscan2 0.2.5-1.
I suggest that you check the contents of your /etc/sane.d/dll.conf file. There should be an entry 'brother2' at the end of that file.
Alternatively, remove both drivers and then reinstall the appropriate driver.
I find that the 'scanimage -L' command is required to show my Brother device. The 'sane-find-scanner' command fails.

dbrew4 08-31-2016 08:10 AM

2 Attachment(s)
allend
I removed brscan2 & 3 and reinstalled brscan2 as shown on the "Brothers Drivers" file and ran a scanimage -L command and still no scanner listed. I'm not sure what you mean by "check the contents of your /etc/sane.d/dll.conf file" Attached is a file of the dll file and at the very bottom it lists a "Brother 2". If this is not the correct way of checking on what you suggested please provide proper instructions. I'm not a Techie here so I appreciate your patience.
Tks
Dennis

allend 08-31-2016 08:51 AM

OK - That all looks good for the driver installation.

Does the device appear in the output of 'lsusb'?
Have you tried an alternative USB port? I recall a previous thread where a device that was plugged into a USB 3.0 port was failing, but was successful when plugged into a USB 2.0 port.

dbrew4 08-31-2016 08:56 AM

I've tried 3 different USB ports and still the same results.

dbrew4@dbrew4-Inspiron-546 ~ $ lsusb
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 006 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 005 Device 003: ID 045e:076c Microsoft Corp. Comfort Mouse 4500
Bus 005 Device 002: ID 1c4f:0002 SiGma Micro Keyboard TRACER Gamma Ivory
Bus 005 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 004 Device 002: ID 04f9:01af Brother Industries, Ltd MFC-440CN
Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub

allend 08-31-2016 09:21 AM

Quote:

Bus 004 Device 002: ID 04f9:01af Brother Industries, Ltd MFC-440CN
Good - There is your device.
I am only seeing USB 1.1 and 2.0 hubs, so the USB 3.0 issue does not seem to apply.
Have you tried running 'sudo scanimage -L'? http://support.brother.com/g/s/id/li...ll&redirect=on

PS - Did you first uninstall the scan-key-tool before uninstalling the scanner drivers? http://support.brother.com/g/s/id/li...ll&redirect=on

dbrew4 08-31-2016 10:20 AM

Scan tool was uninstalled prior to driver installation. Just ire-installed scan tool..results:

dbrew4@dbrew4-Inspiron-546 ~ $ dpkg -l | grep Brother
ii brother-cups-wrapper-common 1.0.0-10-0ubuntu6 amd64 Common files for Brother cups wrapper packages
ii brscan-skey 0.2.4-1 amd64 Brother Linux scanner S-KEY tool
ii brscan2 0.2.5-1 amd64 Brother Scanner Driver
ii mfc440cncupswrapper:i386 1.0.1-1 i386 Brother CUPS Inkjet Printer Definitions
ii mfc440cnlpr:i386 1.0.1-1 i386 Brother lpr Inkjet Printer Definitions
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
dbrew4@dbrew4-Inspiron-546 ~ $ scanimage -L

No scanners were identified. If you were expecting something different,
check that the scanner is plugged in, turned on and detected by the
sane-find-scanner tool (if appropriate). Please read the documentation
which came with this software (README, FAQ, manpages).
dbrew4@dbrew4-Inspiron-546 ~ $ lsusb
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 006 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 005 Device 003: ID 045e:076c Microsoft Corp. Comfort Mouse 4500
Bus 005 Device 002: ID 1c4f:0002 SiGma Micro Keyboard TRACER Gamma Ivory
Bus 005 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 004 Device 002: ID 04f9:01af Brother Industries, Ltd MFC-440CN
Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub

allend 08-31-2016 05:28 PM

Some thoughts:
Are you confident that libsane is correctly installed in your Linux Mint 18? There have been reports of some problems. http://blog.linuxmint.com/?p=3068
Are the Brother libraries present?
Code:

ls /usr/lib{,64}/sane/* | grep "libsane-brother"
Is there an appropriate entry for your device in your "/lib/udev/rules.d/40-libsane.rules" file?
Code:

grep "MFC-4.0CN" -A1 /lib/udev/rules.d/40-libsane.rules
If not, you could add a local rule by creating a file called "40-libsane.rules" in the /etc/udev/rules.d/ directory containing the following:
Code:

# Brother MFC-440CN
ATTRS{idVendor}=="04f9", ATTRS{idProduct}=="01af", MODE="0660", GROUP="lp", ENV{libsane_matched}="yes"


dbrew4 09-01-2016 08:53 AM

40-libsane.rules File
 
1 Attachment(s)
Fairly certain that libsane was installed correctly. One thing that may be a issue, and I am not certain, but from what I have been reading, sane project does not support the MFC-440CN scanner. Below is the terminal command results:

dbrew4@dbrew4-Inspiron-546 ~ $ ls /usr/lib{,64}/sane/* | grep "libsane-brother"
ls: cannot access '/usr/lib/sane/*': No such file or directory
/usr/lib64/sane/libsane-brother2.so
/usr/lib64/sane/libsane-brother2.so.1
/usr/lib64/sane/libsane-brother2.so.1.0.7

Attached is the 40-lbsane.rules file and no Brother MFC-440CN scanner is listed but there is a note about Brother and other scanners that were not listed.

Don't quite understand "If not, you could add a local rule by creating a file called "40-libsane.rules" in the /etc/udev/rules.d/ directory containing the following:" There already is a file with that name under that directory as per the attached. I'm not sure I know how to create this file if necessary. Detailed instructions would help. Thanks for your patience.

allend 09-01-2016 09:27 AM

Good - The Brother libraries are present.

Hmm - No entries for Brother in your /etc/udev/rules.d/40-libsane.rules file.
Seems odd. The idea is that there is a /lib/udev/rules.d/ directory that contains files with a general set of udev rules. This can be be overridden by adding entries in the /etc/udev/rules.d/ directory to suit local configuration. Your file seems overly long and repetitive.
From 'man udev'
Quote:

However, files with identical filenames replace each other. Files in /etc have the highest priority, files in /run take precedence over files with the same name in /usr/lib.
I do not use Linux Mint, but to bastardise L.P.Hartley, "Linux Mint is a foreign distro: they do things differently there."

Quote:

Detailed instructions would help.
Code:

sudo echo '# Brother MFC-440CN' >> /etc/udev/rules.d/40-libsane.rules
sudo echo 'ATTRS{idVendor}=="04f9", ATTRS{idProduct}=="01af", MODE="0660", GROUP="lp", ENV{libsane_matched}="yes"' >> /etc/udev/rules.d/40-libsane.rules

Thanks for your perseverance.

dbrew4 09-01-2016 09:40 AM

Tried entering first command under your Code: ...results

dbrew4@dbrew4-Inspiron-546 ~ $ sudo echo '# Brother MFC-440CN' >> /etc/udev/rules.d/40-libsane.rules
bash: /etc/udev/rules.d/40-libsane.rules: Permission denied

Did I do this correctly?

allend 09-01-2016 09:56 AM

Err - probably my bad.
Can you use a text editor to add those lines in post#8 to the file?

dbrew4 09-01-2016 10:10 AM

Modified File
 
1 Attachment(s)
I modified the file as per attached but did not replace the original yet. It this correct?

dbrew4 09-01-2016 10:15 AM

The file is saved in a temp folder on my desktop but the original file is "40-libsane.rules" and the modified file is "40-libsane.txt"...different format? I modified it in Libre Office Writer but maybe not the correct file extension used.

allend 09-01-2016 10:19 AM

1 Attachment(s)
Please find attached my suggestion. I have moved the lines up in the text.

Edit - When using LQ, text files can get an additional .txt extension. Maintain the "40-libsane.rules" filename.


All times are GMT -5. The time now is 01:13 PM.