LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   New Printer Scanner in Xsane finds new printer/scanner (Brother MFC-6520DW) with error message (https://www.linuxquestions.org/questions/linux-newbie-8/new-printer-scanner-in-xsane-finds-new-printer-scanner-brother-mfc-6520dw-with-error-message-4175575355/)

TrinityBeing 03-19-2016 09:16 AM

New Printer Scanner in Xsane finds new printer/scanner (Brother MFC-6520DW) with error message
 
I have a Toshiba laptop with Windows totally replaced by Debian 8 Installation about a year ago. I recently switched from Epson Workforce 645 to Brother MFC0J6520DW Printer/Scanner Inkjet and followed the installation instructions for the terminal as given on their website, as much as I could. I have ethernet cable running for computer, usb cable attached and wireless selected for printer sorted, however when I try to use the xsane application, the printer/scanner shows as: Brother MFC-J6520DW USB scanner [brother4:bus;dev1] with that same message once I click okay to use the selected device show, comes up error message: Failed to open device 'brother4:bus4;dev1' Any suggestions? If I try to use the scan to pc file option on the printer/scanner touch panel no idea where it goes or if it works either? Will check the other answers shown as well.

sgosnell 03-19-2016 09:32 AM

You have to select the correct drivers on the Brother site, and install the scanner and scankey files, then run the brsaneconfig? utility, with the question mark replaced by a number, 1-4, depending on which you installed. I don't know which your model uses, but if it's new it's probably 4. There are other Brother threads here, which might help if you read them carefully.

offgridguy 03-19-2016 09:37 AM

Welcome to the forum.:)
This link works to install Brother drivers in ubuntu,Mint and lubuntu. I haven't tried Debian
but it will probably work.

https://sites.google.com/site/easylinuxtipsproject/15

TrinityBeing 03-19-2016 10:13 AM

Thank you, I did already install the correct drivers and install the scanner and scankey files, but I didn't see anything about running the brsaneconfig? utility with the qu

Not sure how or what qu is but will re-check that out. The other response also helped as in applications for printer settings the old printer still needed removing and drivers could be checked. Will let you know if any more issues to sort. The browser link to add the printer didn't work when other connections worked, so not sure if permissions in Iceweasel blocked it or if for other reasons?

Thank you both for your help.

Trinity

offgridguy 03-19-2016 04:47 PM

This thread sounds something like your issue, but it doesn't seem to offer a solution either.
http://www.linuxquestions.org/questi...-a-4175500801/

This one looks more promising.
http://www.linuxquestions.org/questi...-xsane-886934/

sgosnell 03-19-2016 08:54 PM

I don't know what you're referring to with "qu". To run the configuration setup, run brsaneconfig4, or brsaneconfig3, or whichever is installed. You can find out by running
Code:

ls /usr/bin/brsaneconfig*
in a terminal. Run it with the -q option to see what it thinks is currently installed. My brsaneconfig4 doesn't show the MFC-J6520DW as supported, but it does show MFC-J6510DW. The 6520 may be in one of the other config setups, but I haven't checked.

You can run it using
Code:

brsaneconfig4 -a name=MFC-J6520DW model=MFC-J6520DW ip=xx.xx.xx.xx
replacing the ip=xx.xx.xx.xx with whatever the ip address of the device is. You can get that from the device or from accessing your router. Also replace the 4 in brsaneconfig4 with the number of the setup you have.

Until you run the setup, xsane won't find the scanner.

Alternatively, I found a different place to get files on the Brother website. Go to this web page and click on the Driver Install Tool link. After accepting the EULA, the file will download and you'll see the installation instructions.

Code:

How to Install
Step1. Download the tool.(linux-brprinter-installer-*.*.*-*.gz)
The tool will be downloaded into the default "Download" directory.
(The directory location varies depending on your Linux distribution.)
e.g. /home/(LoginName)/Download
Step2. Open a terminal window and go to the directory you downloaded the file to in the last step.
Step3. Enter this command to extract the downloaded file:
Command: gunzip linux-brprinter-installer-*.*.*-*.gz
Step4. Get superuser authorization with the "su" command or "sudo su" command.
Step5. Run the tool:
Command: bash linux-brprinter-installer-*.*.*-* Brother machine name
Step6. The driver installation will start. Follow the installation screen directions.
 
 When you see the message "Will you specify the DeviceURI ?",
 For USB Users: Choose N(No)
 For Network Users: Choose Y(Yes) and DeviceURI.
The install process may take some time. Please wait until it is complete.

When you run the bash script, replace "Brother machine name" with the name you want to give to your scanner. You can use MFC-J6520DW or something else. When you select Yes for DeviceURI, there will be a pause and then you will be given a list of URIs from which to select. The last one is probably the best, if it indicates a Brother device. That script, if followed correctly, will install all the necessary drivers and run the config script for you. After running, you should be able to scen via xsane. To scan from the scanner directly to a file, you have to be connected by a USB cable, it won't work via network, but you can scan to xsane or simplescan. You can also scan directly to Google Drive, Dropbox, OneDrive, or Box by pressing the Web icon. You have to have one of those accounts already, obviously, and jump through a few hoops to connect the scanner to the drive. Not difficult, but it takes a few minutes. After that one-time setup, scanning to the cloud is quick and easy, actually quicker than a local scan to xsane.

allend 03-19-2016 09:20 PM

Quote:

brsaneconfig4 -a name=MFC-J6520DW model=MFC6520DW ip=xx.xx.xx.xx
I think that should be:
Code:

brsaneconfig4 -a name=MFCJ6520DW model=MFC-6520DW ip=xx.xx.xx.xx

sgosnell 03-19-2016 10:05 PM

The name doesn't matter, but yes, I inadvertently omitted the dash and the J in the model option. I fixed it. Thanks for the proofread.

TrinityBeing 03-20-2016 05:52 AM

Thank you so much for all the help.. I have printed the info out so I can check through it all more thoroughly. Very much appreciated. See how it goes. Muchos gracias TrinityBeing

elfaroui 03-20-2016 09:16 AM

Thank you bro

offgridguy 03-20-2016 09:46 AM

Quote:

Originally Posted by elfaroui (Post 5518598)
Thank you bro

Welcome to the forum.

TrinityBeing 03-22-2016 09:18 AM

Hello folks, After trying quite a few suggestions I can share what is installed as below:
~/Downloads$ dpkg -l | grep Brother
ii brscan-skey 0.2.4-1 amd64 Brother Linux scanner S-KEY tool
ii brscan4 0.4.2-1 amd64 Brother Scanner Driver
ii mfcj6520dwcupswrapper 3.0.0-1 i386 Brother CUPS Inkjet Printer Definitions
ii mfcj6520dwlpr 3.0.0-1 i386 Brother lpr Inkjet Printer Definitions
ii printer-driver-brlaser 3-3 amd64 printer driver for (some) Brother laser printers
ii printer-driver-ptouch 1.3-8 amd64 printer driver Brother P-touch label printers

Unfortunately it is still not working, but like one member here, I noticed that one of the sections does not include this model only the one before like MFC-J6510DW so i used that install driver/scan, so if you have any other suggestions based on what you can see above I would appreciate your help. I can't scan from the printer to pc as file that I can tell has happened though the touch panel seems to show it is doing it. Much appreciated for any more assistance. This is as you can see Debian 8 Jessie amd64 .. that's another thing.. no deb8 in the lists either only up to deb6 or 4 on the driver specific tools. Nice and simple for Linux Dummy please. Thank you This is a USB connected printer scanner with wifi enabled too. The error message when trying to scan from the application is still not valid and the list in the application shows two lots of Brother MFC-J6520DW one with Model Name repeated in the centre and [brother4:net1;dev0] and the one below that shows same machine name at beginning with USB scanner in the middle and [brother4:bus2;dev1] and the end and still doesn't work after long attempt at starting..
Failed to open device 'brotherinvalid argument etc... sorry if I couldn't follow some of the instructions given already. Hopefully we will get there in the end

offgridguy 03-22-2016 11:11 AM

Just wondering, when you installed the drivers, did you select N for USB printer? As in the instructions here.
"At the question about the Device URI, you answer N for a USB printer and Y for a network printer."

edit: I noticed this in your original post.
[quote] I recently switched from Epson Workforce 645 to Brother MFC0J6520DW Printer/Scanner Inkjet and followed the installation instructions for the terminal as given on their website, as much as I could."

I have never had success using the instructions from the Brother site, I have always had to get help, usually from the forum, until I
found the instructions in the link which I provided before.
https://sites.google.com/site/easylinuxtipsproject/15

If you use this, follow the instructions given, NOT the instructions from the Brother site.
Caveat; I have used these instructions for ubuntu and ubuntu based distros, I haven't personally tried it with Debian 8. Although I do have an install disk with Debian 8.2 Cinnamon ready to go.

TrinityBeing 03-22-2016 08:15 PM

Yes I did select N for that part and I didn't follow all of your site instructions as I had already mostly installed from the Brother site.. Already unzipped with gunzip in the terminal for the drivers, but will check some of those steps again. In the Applications Menu Under Settings I find my printer listed ok, when I select Print Settings and when I double click on the printer image shown the properties window comes up and shows in the Device URI as usb://Brother/MFC-J6520DW?serial=BROL5F172539 and Make and Model line shows: Brother MFC-J6520DW CUPS both of which have change option button next to them.

The Applications Menu does not show any printer except in settings nor anyway to add one and printer is not in removable drives and media under the tab for printers.. only shows a printer image generic with an option to tick a box for Automatically run a program when a printer is connected .. which when ticked has a command line now active and a folder image at the end which when clicked on goes to usr bin folders and has some of the br items listed such as brprintconf_mfcJ6520dw
brsaneconfig4
brscan0skey
Do I select the brscan-skey to open it from there? I will try it and see what happens after restart of machine and attempt to scan

TrinityBeing 03-22-2016 09:00 PM

No not working with option ticked either


All times are GMT -5. The time now is 04:39 PM.