LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   [SOLVED]...Brother MFC-440CN Scanner Issues (https://www.linuxquestions.org/questions/linux-newbie-8/%5Bsolved%5D-brother-mfc-440cn-scanner-issues-4175549629/)

dbrew4 08-02-2015 07:11 AM

[SOLVED]...Brother MFC-440CN Scanner Issues
 
Is there any issue running Simple Scan or gscan2pdf in ROOT? When I try to run these programs in normal they don't recognize my scanner (printer works fine)? They work fine in ROOT. Xsane works in ROOT but when I save a file to pdf I don't have permission to open it with document viewer. While reading numerous posts in numerous forums I understand there can be issues with Linux Mint 17 recognizing scanners. I'm a newbie and I don't have the skills to change files as recommended by some posts. If the directions were simple, I think I would give it a try.
Tks
Dennis B

ardvark71 08-02-2015 11:15 AM

Hi...

Welcome to the forum :)

This does sound like a permissions issue. What is the exact error message you receive when you try to use xsane in your regular user account?

Just as a possible quick fix, you can try installing the following packages in your package manager, if you don't already have them: sane, libsane and libsane-extras. :)

Regards...

dbrew4 08-02-2015 11:40 AM

Message when opening xsane as a regular user

Error: Failed to Open Device 'brother2:bus2:dev;1': Invalid Argument

Already Installed:
xsane-common
libsane
sane-utils
libsane-common

Just installed:
sane

still NG...same error message

also ran

db@db-EX318AA-ABA-SR1920NX-NA630 ~ $ brscan-skey -l

MFC-440CN : brother2:bus2;dev1 : USB Active

ardvark71 08-03-2015 12:08 AM

Hi...

Do the instructions here help?

Remember that "yourusername" and "allyourgroups,commaseparated" in the instructions mean your personal username and groups (separated by a comma) on your system. ;)

Here is mine using "groups yourusername", as an example...

Code:

aaron@aaron:~$ groups aaron
aaron : aaron adm cdrom sudo dip plugdev lpadmin sambashare
aaron@aaron:~$

Let us know how it goes...

Regards...

ferrari 08-03-2015 12:46 AM

Check that you have a udev rule for assigning the correct device permissions as explained for Ubuntu (=Mint) users here:

http://support.brother.com/g/s/id/li...rect=on#u13.04

dbrew4 08-03-2015 08:25 AM

this is what I got when I followed your command:

db@db-EX318AA-ABA-SR1920NX-NA630 ~ $ usermod -G db,lp,db
Usage: usermod [options] LOGIN

Options:
-c, --comment COMMENT new value of the GECOS field
-d, --home HOME_DIR new home directory for the user account
-e, --expiredate EXPIRE_DATE set account expiration date to EXPIRE_DATE
-f, --inactive INACTIVE set password inactive after expiration
to INACTIVE
-g, --gid GROUP force use GROUP as new primary group
-G, --groups GROUPS new list of supplementary GROUPS
-a, --append append the user to the supplemental GROUPS
mentioned by the -G option without removing
him/her from other groups
-h, --help display this help message and exit
-l, --login NEW_LOGIN new value of the login name
-L, --lock lock the user account
-m, --move-home move contents of the home directory to the
new location (use only with -d)
-o, --non-unique allow using duplicate (non-unique) UID
-p, --password PASSWORD use encrypted password for the new password
-R, --root CHROOT_DIR directory to chroot into
-s, --shell SHELL new login shell for the user account
-u, --uid UID new UID for the user account
-U, --unlock unlock the user account
-v, --add-subuids FIRST-LAST add range of subordinate uids
-V, --del-subuids FIRST-LAST remvoe range of subordinate uids
-w, --add-subgids FIRST-LAST add range of subordinate gids
-W, --del-subgids FIRST-LAST remvoe range of subordinate gids
-Z, --selinux-user SEUSER new SELinux user mapping for the user account

now what?

ferrari
after downloading and saving the recommended file (brother-udev-rule-type1-1.0.0-1.all.deb, ver.1.0.0-1, 2KB)
This is what I got with the command

db@db-EX318AA-ABA-SR1920NX-NA630 ~ $ dpkg -i brother-udev-rule-type1-1.0.0-1.all.deb
dpkg: error: requested operation requires superuser privilege

Now what?

I sure wish there was a Linux hotline to call in order to have someone walk me through this...difficult with emails, post, etc....especially to a newbie.

Tks
Dennis B

ferrari 08-03-2015 02:12 PM

Quote:

ferrari
after downloading and saving the recommended file (brother-udev-rule-type1-1.0.0-1.all.deb, ver.1.0.0-1, 2KB)
This is what I got with the command

Code:

]db@db-EX318AA-ABA-SR1920NX-NA630 ~ $ dpkg -i brother-udev-rule-type1-1.0.0-1.all.deb
dpkg: error: requested operation requires superuser privilege


You need to install as superuser (as with most administrative tasks), so use sudo
Code:

sudo dpkg -i brother-udev-rule-type1-1.0.0-1.all.deb

dbrew4 08-03-2015 02:21 PM

ferrari

Installed dpkg -i brother-udev-rule-type1-1.0.0-1.all.deb

System still not recognizing scanner as normal user



http://imagebin.ca/v/2Atoz6LutkLy

ardvark71 08-03-2015 04:00 PM

Quote:

Originally Posted by dbrew4 (Post 5400154)
Now what?

I sure wish there was a Linux hotline to call in order to have someone walk me through this...difficult with emails, post, etc....especially to a newbie.

Hi...

There are these services available but they tend to be for corporate users and you have to pay for them. ;)

Did you use "sudo" at the beginning of the command? Example...

Code:

sudo usermod -G allyourgroups,commaseparated,lp yourusername
Regards...

dbrew4 08-03-2015 05:17 PM

this is what I got from that command

db@db-EX318AA-ABA-SR1920NX-NA630 ~ $ sudo usermod -G db,lp,db
Usage: usermod [options] LOGIN

Options:
-c, --comment COMMENT new value of the GECOS field
-d, --home HOME_DIR new home directory for the user account
-e, --expiredate EXPIRE_DATE set account expiration date to EXPIRE_DATE
-f, --inactive INACTIVE set password inactive after expiration
to INACTIVE
-g, --gid GROUP force use GROUP as new primary group
-G, --groups GROUPS new list of supplementary GROUPS
-a, --append append the user to the supplemental GROUPS
mentioned by the -G option without removing
him/her from other groups
-h, --help display this help message and exit
-l, --login NEW_LOGIN new value of the login name
-L, --lock lock the user account
-m, --move-home move contents of the home directory to the
new location (use only with -d)
-o, --non-unique allow using duplicate (non-unique) UID
-p, --password PASSWORD use encrypted password for the new password
-R, --root CHROOT_DIR directory to chroot into
-s, --shell SHELL new login shell for the user account
-u, --uid UID new UID for the user account
-U, --unlock unlock the user account
-v, --add-subuids FIRST-LAST add range of subordinate uids
-V, --del-subuids FIRST-LAST remvoe range of subordinate uids
-w, --add-subgids FIRST-LAST add range of subordinate gids
-W, --del-subgids FIRST-LAST remvoe range of subordinate gids
-Z, --selinux-user SEUSER new SELinux user mapping for the user account

what is your thoughts on using Hexchat and using the Linux Help Chat room?

ardvark71 08-03-2015 06:39 PM

Hi...

Hmmm, something isn't right. Please show me the exact command you're typing in.

Thanks...

ferrari 08-03-2015 08:23 PM

The udev rules are designed to provide read/write access to users who are a member of the 'scanner' group, so as ardvark71 has suggested already, you need to make sure that this is the case.

The following utility should find a USB-attached scanner
Code:

sane-find-scanner
Try running it as regular user, then using sudo.

dbrew4 08-04-2015 06:02 AM

This is the command I used for "usermod -G allyourgroups,commaseparated,lp yourusername"

sudo usermod -G db,lp,db

my user name is db but I don't know what "allmygroups" is. I also ran "sane-find-scanner" and here are the results:

# sane-find-scanner will now attempt to detect your scanner. If the
# result is different from what you expected, first make sure your
# scanner is powered up and properly connected to your computer.

# No SCSI scanners found. If you expected something different, make sure that
# you have loaded a kernel SCSI driver for your SCSI adapter.

could not open USB device 0x2001/0xf103 at 001:002: Access denied (insufficient permissions)
could not open USB device 0x1d6b/0x0002 at 001:001: Access denied (insufficient permissions)
could not open USB device 0x058f/0x9360 at 002:004: Access denied (insufficient permissions)
could not open USB device 0x045e/0x076c at 002:003: Access denied (insufficient permissions)
could not open USB device 0x0556/0x0001 at 002:002: Access denied (insufficient permissions)
could not open USB device 0x1d6b/0x0001 at 002:001: Access denied (insufficient permissions)
# No USB scanners found. If you expected something different, make sure that
# you have loaded a kernel driver for your USB host controller and have setup
# the USB system correctly. See man sane-usb for details.

# Not checking for parallel port scanners.

# Most Scanners connected to the parallel port or other proprietary ports
# can't be detected by this program.

# You may want to run this program as root to find all devices. Once you
# found the scanner devices, be sure to adjust access permissions as
# necessary.

I also ran "sane-find-scanner" in ROOT and here are the results:

# sane-find-scanner will now attempt to detect your scanner. If the
# result is different from what you expected, first make sure your
# scanner is powered up and properly connected to your computer.

# No SCSI scanners found. If you expected something different, make sure that
# you have loaded a kernel SCSI driver for your SCSI adapter.

could not fetch string descriptor: Pipe error
could not fetch string descriptor: Pipe error
could not fetch string descriptor: Pipe error
could not fetch string descriptor: Pipe error
# No USB scanners found. If you expected something different, make sure that
# you have loaded a kernel driver for your USB host controller and have setup
# the USB system correctly. See man sane-usb for details.

# Not checking for parallel port scanners.

# Most Scanners connected to the parallel port or other proprietary ports
# can't be detected by this program.

ardvark71 08-04-2015 11:08 AM

Hi...

It's what I suspected, the command you're entering appears incorrect. You don't put you username "db" directly after the "-G." ;)

You find out what all your user groups are by entering...

Code:

groups db
Also, please post the output of...

Code:

lsusb
That should help us determine the which of the devices is your scanner/printer. ;)

Hang in there, learning a new operating system can definitely be a challenge. I struggled when I first started learning how to use Linux, too. :)

Regards...

dbrew4 08-04-2015 11:18 AM

[SOLVED]

ardvark71

Tks for all your patience...output below...thought...maybe my 7 port external USB hub may be interfering?

$ groups db
db : db adm cdrom sudo dip plugdev lpadmin scanner sambashare


$ lsusb
Bus 001 Device 006: ID 04f9:01af Brother Industries, Ltd MFC-440CN
Bus 001 Device 002: ID 2001:f103 D-Link Corp. DUB-H7 7-port USB 2.0 hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 004: ID 058f:9360 Alcor Micro Corp. 8-in-1 Media Card Reader
Bus 002 Device 003: ID 045e:076c Microsoft Corp. Comfort Mouse 4500
Bus 002 Device 002: ID 0556:0001 Asahi Kasei Microsystems Co., Ltd AK5370 I/F A/D Converter
Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub

Ardvark71 and all other responders...tks for all the help and patience...Dennis B

ardvark71 08-04-2015 11:53 PM

Hi Dennis...

You're welcome :)

I'm glad you got it fixed but could you explain what exactly the problem was and how you fixed it?

Thanks!

dbrew4 08-05-2015 05:46 AM

ardvark71
I have a external powered USB hub plugged into one of the USB ports in the back of my desktop. This hub is powered by a AC adapter and provides 7 additional USB ports for additional USB hardware. My Brother printer-fax-scanner-copier was plugged into this hub. My printer worked fine but apparently Linux Mint 17 couldn't recognize the scanner when you tried to run any scanner programs in normal. It did recognize the scanner when you used the terminal to open a program. All I did was unplug the scanner from the external hub and plug it into one of the USB ports directly in back of my desktop. All my scanner programs work fine now in normal.
Thanks again for all your help and patience.
Dennis B

ardvark71 08-05-2015 04:35 PM

Quote:

Originally Posted by dbrew4 (Post 5401150)
All I did was unplug the scanner from the external hub and plug it into one of the USB ports directly in back of my desktop. All my scanner programs work fine now in normal.

Wow, sometimes it really is just that easy. :D :doh:

Regards...

Gerry P. 12-10-2017 04:19 PM

Extra information
 
After following instruction posted by Ferrari, make sure you reboot


All times are GMT -5. The time now is 04:10 AM.