Ancient Brother MFC - cannot scan on CentOS 7
I have an ancient Brother MFC240c. I have used it on Ubuntu going back to 8.04 I believe. I have had it installed and working on CentOS 6 for 7 + years. As I need to upgrade to CentOS 7 some time in the next 4 years :D I guess I need to get the thing working on 7. Brother has a nice script to automate the installation process. It downloaded and installed the appropriate rpms etc. The printing function works to perfection. The two scanner rpms were also installed without any error message. If I run brscan-skey -l I see the scanner much as it was present on CentOS 6
Code:
CentOS 7 TIA, Ken |
Make sure that there is a udev rule for the device perhaps. For reference I have (in /etc/udev/rules.d/55-libsane.rules) this entry
Code:
# Brother MFC-3240C https://www.centos.org/forums/viewtopic.php?t=54890 |
The other thing that came to mind as you're using a Brother proprietary brscan2 driver - Make sure that /etc/sane.d/dll.conf contains 'brother2' entry uncommented.
|
Thanks ferrari.
I will check that out first thing in the morning. Ken |
Good morning ferrari,
Per your suggestion re. udev rules... There is no libsane rules file on the CentOS 7 machine. Nor is there one on the CentOS 6 machine (which works). Therefore I have nothing to copy from. Nor does the CentOS 7 machine contain a file /etc/sane.d/dll.conf. The CentOS 6 machine does and the last entry is "brother2". The comment at the top of the file on CentOS 6 states Quote:
I tried running simple-scan and xsane as root on the CentOS 7 machine. Same issue - no scanner found. I did get some information from xsane Quote:
Thanks again, Ken |
This reads like you're missing the 'sane-backends' package then. That would explain why both of the expected files are missing.
|
I will check that as soon as I finish installing 47 terabytes of updates to my new CentOS 7 Mate3 install (if it works this time), snagging a snapshot with Clonezilla and then restoring CentOS 7 to my test PC.
|
Many many thanks ferrari!
sane-backends was missing. I have installed it and - as root at least - xsane will find the machine. I need to tweak the permissions now so that a normal human can access the thing. I will post a final report once I have it working. Ken |
Very good. For user access, usually just a matter of the user being a member of the 'lp' group (USB-attached scanners), and of course that's defined by the udev rules included by 'sane-backends'.
|
Actually I was not quite as close as I thought. root could call up xsane and it would find the MFC. However, it would not scan. Still, I am a lot closer with sane-backend installed. Not sure why that was not listed as a dependency in xsane when I installed that package. I will back up and take another run at it tomorrow.
Cheers, Ken |
Okay, make sure that /etc/sane.d/dll.conf contains the 'brother2' entry, and that the user is a member of the 'lp' group.
Run these again as user (just so we can see that how scanner is now enumerated) Code:
sane-find-scanner Code:
scanimage -L |
Not to confuse you, but Centos 7 may still use the 'scanner' group based on this thread:
https://www.centos.org/forums/viewto...brscan#p245866 Anyway, do check the udev rules provided by 'sane-backends' eg Code:
rpm -ql sane-backends |grep udev |
Well this it getting ridiculous :banghead: I played with my CentOS7 test machine for a while. I found some good although probably out of date information on a couple of Ubuntu sites. So I installed Ubuntu Mate 16.04 and spent a while trying to install the thing there. No luck. Back to CentOS... I restore the CentOS 7 image to the test PC and loaded a CentOS 6 virtual machine from my production PC. It is very basic. I use it generally when I need a clean Firefox profile to test a web site which does not work with my normal browser with privacy addons etc. I tried manually installing the Brother packages as I had done on CentOS 6 several years ago. No luck. I started over clean with a fresh copy of the VM and ran the Brother provided install script. Here is the detail of what it did
Code:
[root@vmCentOS6-64bit Desktop]# ./linux-brprinter-installer-2.1.1-1 Code:
Note: xsane is not installed yet xane loaded :) I pressed the Scan button and then... Quote:
I wonder if this thing worked under CentOS 6.0 and something needed for the install has been depreciated so that I cannot install it on CentOS 6.8? The CentOS upgrade process has obsoleted 2 video cards so far but other than that I have managed to keep the machine and its peripherals running since 2010 when I moved from Ubuntu. More likely I have overlooked something. Enough of this for tonight. Ken |
Sounds like progress, just some permissions errors I think.
Quote:
This would be slightly more useful as it would show the actual rule (with group assigned) Code:
less /lib/udev/rules.d/65-libsane.rules | grep MFC-240C -A2 |
Not much in the rules file about this scanner
Code:
[ken@vmCentOS6-64bit ~]$ less /lib/udev/rules.d/65-libsane.rules | grep MFC-240C -A2 Code:
# For Linux >= 2.6.22 without CONFIG_USB_DEVICE_CLASS=y Ken p.s. The line IS commented on the working CentOS 6 machine. |
All times are GMT -5. The time now is 09:51 PM. |