LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Hardware (https://www.linuxquestions.org/questions/linux-hardware-18/)
-   -   Brother MFC-J4510DW scanner problem (https://www.linuxquestions.org/questions/linux-hardware-18/brother-mfc-j4510dw-scanner-problem-4175439814/)

FlyerDan69 12-03-2012 09:32 AM

Brother MFC-J4510DW scanner problem
 
Ok I am a newbie here and having the darndest time trying to get my printer/scanner to work I have followed all of the steps as to what to download in order to get it to work but nada. I got the printer portion of it working fine. But the scanner wont work no matter what I do. Xsane gives me a brother4:bus6;dev1':Invalid Argument, error and on Gscan it comes up error opening device: Invalid Argument. PLEASE HELP I dont have much hair left.:newbie: Thanks in advance. Dan and if this is in the wrong area please set me straight. Thanks again

camorri 12-03-2012 10:41 AM

A few questions.

What distro and release?

After installing the driver, are you able to access the scanner as root user? Can you post the link to the instructions you followed to install the driver. ( I'm guessing you followed the instructions on Brothers web site ), just want to make sure.

What groups does your user belong to? This can be difficult. Some distros you may need to belong to the scanner group, others do not make you belong to that group; lp group only.

FlyerDan69 12-03-2012 12:21 PM

Sorry but I am so new to this stuff i have no idea the answers to your questions. I did download the drivers for the scanner and printer got the printer to work fine. When I try to scan using Gscan i see the scanner for a split second then it says Error opening device Invalid arguement. When I use Xsane it also gives me a Invalid Argument message. Im sorry I dont know much about this stuff yet. And yes i did download them from the Brothers website.Thanks Dan

markush 12-03-2012 12:39 PM

Well, the user who wants to use a multifunction device must be member of both, the lp and the scanner group. Please open an terminal and execute the command
Code:

groups
and post the output here.
You can as root execute
Code:

scanimage -L
which will show you the available devices. There's also a command
Code:

sane-find-scanner
Markus

camorri 12-03-2012 01:19 PM

I understand your lack of experience. If you could post Markush's requests, that will help. If you need guidance on how to make a command happen, please ask.

This link -->http://welcome.solutions.brother.com...nload_scn.html lists the printer and scanner driver for your MFP.

Is this device USB or network connected? Did you update the udev rules according to the instructions here? -->http://welcome.solutions.brother.com...ion_scn1c.html

FlyerDan69 12-03-2012 02:33 PM

yes please help me with the command thing. I dont understand any of it. thank you guys for helping so far. And it is a USB.

markush 12-03-2012 02:43 PM

Well, do you know how to open a terminal? There should be an icon anywhere on your desktop which looks like a Computermonitor or the DOS-shell in Windows.

Markus

FlyerDan69 12-03-2012 02:47 PM

I dont know how to open a terminal either. And I dont see what you are describing anywhere.

markush 12-03-2012 02:50 PM

https://help.ubuntu.com/community/UsingTheTerminal read here

Markus

akolff 12-03-2012 02:52 PM

Dan,
The instructions given are correct.
To be able to type the the commands you need to be in a terminal (text only interface (black window with a cursor to type at)).
To get into the terminal (Goto the prompt so to speak) try typing Ctrl+Alt+T all at once.
then type in the commands followed by pushing the enter key.

FlyerDan69 12-03-2012 02:57 PM

OK figured out how to open a terminal now what should I do. Thanks again for being patient with me.

markush 12-03-2012 02:58 PM

First type
Code:

groups
at the terminal prompt and press the enter button, then copy the ouput and past it into your next posting here.

Markus

FlyerDan69 12-03-2012 03:23 PM

flyerdan69 adm cdrom sudo dip plugdev lpadmin sambashare

markush 12-03-2012 03:40 PM

yup, here we are, you'll have to add the user to the lp and scanner group. Execute the following command in the terminal
Code:

sudo usermod -a -G lp,scanner flyerdan69
Afterwards please execute the "groups" command again and look at the changes.

Markus

markush 12-03-2012 03:49 PM

Sorry, I made a mistake, there must be a comma between the groups
Code:

sudo usermod -a -G lp,scanner flyerdan69
Markus

FlyerDan69 12-03-2012 03:50 PM

do I need to use spaces and caps and dashes where you have them?

markush 12-03-2012 03:53 PM

Yes, as in my second post, a - before the a, a - before the G and a comma , between lp and scanner.

Markus

FlyerDan69 12-03-2012 03:57 PM

When I type it like you have it it asks me for a password. but then wont let me type anything to put in a password.

markush 12-03-2012 04:02 PM

The password isn't shown, you'll have to type in your userpassword (the password which you use to login on your computer). Just type it in and press enter. There will only be an errormessage if you typed the wrong password.

Markus

FlyerDan69 12-03-2012 04:14 PM

here is what comes up after i type in groups. flyerdan69 adm cdrom sudo dip plugdev lpadmin sambashare so i am not sure what to do next

markush 12-03-2012 04:16 PM

mh, it didn't work, did you get any errormessages?

You could try
Code:

sudo scanimage -L
and post the output here.

Markus

FlyerDan69 12-03-2012 04:24 PM

It might have helped if i had it pluged in. My daughter unplugged the scanner from my computer I dont know if it would make a diff but i am trying again.

markush 12-03-2012 04:26 PM

Well, the usermod command is independent of the scanner. But the scanimage command can only work if the device is plugged in.

Markus

FlyerDan69 12-03-2012 04:32 PM

device `brother4:bus6;dev1' is a Brother MFC-J4510DW USB scanner here is what comes up

markush 12-03-2012 04:35 PM

Quote:

Originally Posted by FlyerDan69 (Post 4842037)
device `brother4:bus6;dev1' is a Brother MFC-J4510DW USB scanner here is what comes up

Well, then it is configured correctly! The driver is installed.

Only question is if you can use the scanner as a normal user, could you please open xsane and try to scan? if it does not recognize the scanner, you'll have to add your user to the lp and scanner group which you've tried already.

Markus

FlyerDan69 12-03-2012 04:36 PM

I still get the error message. So now what do I have to try and do next?

markush 12-03-2012 04:42 PM

Well, it is a permission problem. The user must be member of lp and scanner in order to get the permission to connect to the device.

You should once again try to add the user to both groups. Here is how this is done: http://www.cyberciti.biz/faq/ubuntu-add-user-to-group/

ahh, question: your users name is flyerdan69 if I understood correctly?

Markus

FlyerDan69 12-03-2012 04:50 PM

According to my sign in page my user name is my first and last name with a space seperating them. Not FlyerDan69 I feel so dumb.

markush 12-03-2012 04:54 PM

Code:

whoami
will show you the username.

this username has to be used at the end of the usermod command.
Code:

usermod -a -G lp,scanner username
substitute username with the name whoami shows.

Markus

FlyerDan69 12-03-2012 04:58 PM

says flyerdan69

markush 12-03-2012 05:05 PM

Well, you can edit the /etc/group file with an editor. Did you already use an editor with Linux?

You can also use sed
Code:

sudo sed -i.bkp 's/\(scanner.*\)/\1flyerdan69/' /etc/group
sudo sed -i.bkp1 's/\(lp.*\)/\1flyerdan69/' /etc/group

without any warranty!

Afterwards use the groups command again.

Markus

cmcanulty 12-03-2012 05:07 PM

scanner
 
I tried for months to get a brother MFC networked with ubuntu . It printed but I finally gave up on scanning and got an HP MFC which does it all fine with no hassles. Good luck.

markush 12-03-2012 05:11 PM

Quote:

Originally Posted by cmcanulty (Post 4842067)
I tried for months to get a brother MFC networked with ubuntu . It printed but I finally gave up on scanning and got an HP MFC which does it all fine with no hassles. Good luck.

Well, for scanning in the network there's a tutorial here at LQ http://www.linuxquestions.org/linux/...r_over_network

And the problem of flyerdan is only a permissionproblem, the device is recognized by the system, it will work soon.

Markus

FlyerDan69 12-03-2012 05:23 PM

I feel like a dope cause I dont know how to do what that link is telling me to do.

FlyerDan69 12-03-2012 05:51 PM

I did not use an editor with linux

FlyerDan69 12-03-2012 05:58 PM

flyerdan69@Satellite-A205:~$ sudo sed -i.bkp 's/\(scanner.*\)/\1flyerdan69/' /etc/group
[sudo] password for flyerdan69:
flyerdan69@Satellite-A205:~$ sudo sed -i.bkpl 's/\(lp.*\)/\1flyerdan69/' /etc/group

was anything supposed to happen after i did this? Markhus I really appreciate all of your help!!!!!

markush 12-03-2012 06:27 PM

I forgot to write that you should have to log out and login again after changing the group membership.

And both commands have to be executed one after the other because you have to enter the password for the first command before entering the second.

Probably the usermod command did already work. But you will see this when you login next time

Markus

FlyerDan69 12-03-2012 06:38 PM

flyerdan69@Satellite-A205:~$ sudo sed -i.bkp1 's/\(lp.*\)/\1flyerdan69/' /etc/group
[sudo] password for flyerdan69:
flyerdan69@Satellite-A205:~$ groups
flyerdan69 adm cdrom sudo dip plugdev lpadmin sambashare
flyerdan69@Satellite-A205:~$


here is what comes up after i did the two steps you told me about and the groups command again

markush 12-04-2012 12:12 AM

Could you please post the output of
Code:

cat /etc/group
but at first (since you've now restarted the computer) check if scanning works now.

Markus

FlyerDan69 12-04-2012 03:37 PM

syslog:x:103:
fuse:x:104:
messagebus:x:105:
bluetooth:x:106:
scanner:x:107:flyerdan69flyerdan69flyerdan69
colord:x:108:
lpadmin:x:109:flyerdan69flyerdan69flyerdan69flyerdan69
ssl-cert:x:110:
lightdm:x:111:
nopasswdlogin:x:112:
netdev:x:113:
whoopsie:x:114:
mlocate:x:115:
ssh:x:116:
avahi-autoipd:x:117:
avahi:x:118:
pulse:x:119:
pulse-access:x:120:
utempter:x:121:
rtkit:x:122:
saned:x:123:
flyerdan69:x:1000:
sambashare:x:124:flyerdan69

markush 12-04-2012 03:51 PM

Well, the commands worked, but not as expected.

You will have to open the group file in an editor and remove the redundant flyerdan69. You will have to use the sudo command with the editor. Probably gedit is installed
Code:

sudo gedit /etc/group
the lines to be altered:
Code:

syslog:x:103:
fuse:x:104:
messagebus:x:105:
bluetooth:x:106:
scanner:x:107:flyerdan69
colord:x:108:
lpadmin:x:109:flyerdan69
ssl-cert:x:110:
lightdm:x:111:
nopasswdlogin:x:112:
netdev:x:113:
whoopsie:x:114:
mlocate:x:115:
ssh:x:116:
avahi-autoipd:x:117:
avahi:x:118:
pulse:x:119:
pulse-access:x:120:
utempter:x:121:
rtkit:x:122:
saned:x:123:
flyerdan69:x:1000:
sambashare:x:124:flyerdan69

The lp group doesn't exist, probably it isn't needed.

Note that you will have to logout and afterwards login after changing the group file in order the changes to take place.

Markus

FlyerDan69 12-04-2012 04:28 PM

Do i romove the whole scanner and flyerdan69 or just the flyerdan69s ?

markush 12-04-2012 04:33 PM

No, the lines in red in my above posting should look like in my posting! one flyerdan69 at the end of the line, no space after the colon ":"

Markus

FlyerDan69 12-04-2012 05:15 PM

Markush you are the man!!!! Thank you so much for helping me I dont know what i would have done without you.Works like a charm now. God Bless and thanks again. Dan

markush 12-04-2012 05:19 PM

You're welcome,

I'm happy to read that you've the scanner working now.

Btw, if you want to learn a bit more about Linux you can read here: http://rute.2038bug.com/index.html.gz

Markus

FlyerDan69 12-04-2012 05:41 PM

One other question when it scans it scans as a pnm how do i get it to scan as a pdf or change it so it does cause when i send it as an email the people I send it to cant open it. Thanks again. Dan

FlyerDan69 12-04-2012 05:54 PM

Nevermind I figured something out myself Woowhooo! Thanks again Markush for all your help. Have a Merry Christmas!!!!

akolff 12-04-2012 06:42 PM

Thank you Markush. I was able to get him into a terminal interface. But you really walked him through the problem.

btw: the other thing that can cause a almost identical problem is a blank line at the end of a config file.

shakti.mickey 06-02-2013 12:16 AM

There is no change...I tried it

SerenaVictoria 03-07-2016 08:47 AM

scanner DCP 1612W not working
 
Hi everyone,

i'm having a similar problem.
Printer/scanner DCP-1612W, connected wifi. The printer works fine but I can't scan...it seems like the pc doesn't recognise the device as a scanner, but only like a printer.

I have tried to follow the instruction markush gave but i'm probably doing something wrong

These are my groups:
serena : serena adm cdrom sudo dip plugdev sambashare scanner lp
(I have added scanner and lp as before there where not included)

And these are the scanners seen:
device `brother4:net1;dev2' is a Brother *Brother Brother
device `brother4:net1;dev1' is a Brother *SCANNER Brother
device `brother4:net1;dev0' is a Brother *Brother-DCP-1612W DCP-1612W

actually, i'm only using the third one, the other two don't exist (how can i cancel them? it just was my mistake as i added them with a mistaken name)

Thanks for helping me

Serena


All times are GMT -5. The time now is 12:49 AM.