Help with libusb permissions to run Brother MFC-J4510DW scanner on Ubuntu 13.10
Linux - HardwareThis forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Help with libusb permissions to run Brother MFC-J4510DW scanner on Ubuntu 13.10
Hello all. I've been using Ubuntu for some time now and gradually finding my way around. Still a little tenative with some things under the bonnet but gradually getting there. I'm really having issues getting a Brother MFC-J4510DW printer/scanner to work. I am using VueScan as my scanner software, which worked straight out of the box with my old Canon scanner which has recently died (at least the priner portion of it). The printer bit of the new multi-function works fine (after a couple of attempts).
As far as I can tell with self help and a bit of help from Ed Hammick my issue from the scanning side is one of libusb permissions, where I am really stuck is how to edit/change these.
The scanner works (via VueScan) when I run it as root.
When I run sane-find-scanner as root I get the following (with my normal user account nothing is found):
Code:
# 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 0x046d/0xc52b at 002:005: Access denied (insufficient permissions)
could not open USB device 0x046d/0x0a12 at 002:008: Access denied (insufficient permissions)
could not open USB device 0x152d/0x2329 at 002:010: Access denied (insufficient permissions)
could not open USB device 0x05e3/0x0608 at 002:009: Access denied (insufficient permissions)
could not open USB device 0x05e3/0x0608 at 002:007: Access denied (insufficient permissions)
could not open USB device 0x046d/0x09a6 at 002:006: Access denied (insufficient permissions)
could not open USB device 0x05e3/0x0608 at 002:004: Access denied (insufficient permissions)
could not open USB device 0x04f9/0x02b3 at 002:011: Access denied (insufficient permissions)
could not open USB device 0x1d6b/0x0002 at 002:001: Access denied (insufficient permissions)
could not open USB device 0x1d6b/0x0003 at 008:001: Access denied (insufficient permissions)
could not open USB device 0x1d6b/0x0002 at 007:001: Access denied (insufficient permissions)
could not open USB device 0x1d6b/0x0003 at 006:001: Access denied (insufficient permissions)
could not open USB device 0x1d6b/0x0002 at 005:001: Access denied (insufficient permissions)
could not open USB device 0x1d6b/0x0003 at 004:001: Access denied (insufficient permissions)
could not open USB device 0x1d6b/0x0002 at 003:001: Access denied (insufficient permissions)
could not open USB device 0x1d6b/0x0002 at 001: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.
and scanimage-L produces the following (as root and as a normal user):
Code:
device `brother4:bus7;dev1' is a Brother MFC-J4510DW USB scanner
I'm sure this is a quick easy fix, but the deeper workings of linux are still not all that familiar to me.
It's very strange that sane-find-scanner run as root is unable to open the device file. Is there a version mismatch, perhaps? Try reinstalling the software.
Also, see if there are relevant messages in the kernel buffer or /var/log/syslog.
On my system, a Raspberry Pi running Raspbian, which is based on Debian, I had problems because of the file permissions configuration.
scanimage -L reports
Code:
$ scanimage -L
device `canon630u:libusb:001:008' is a CANON Canoscan FB630U flatbed scanner
This means that the device file for my scanner is /dev/bus/usb/001/008:
For the scanner tools to work, write permissions to /dev/bus/usb/001/008 are needed. On my installation, the tools are supposed to run as members of the "scanner" group, and an ACL has been set up to permit members of this group to write to the device file.
This is documented in /usr/share/doc/libsane/README.Debian. You may want to check what it looks like on your system.
My mistake, sane-find-scanner finds a SCSI processor as root, but no USB one. This is what is found when I run it as root:
Code:
# 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.
found SCSI processor "Marvell 91xx Config 1.01" at /dev/sg3
# Your SCSI scanner was detected. It may or may not be supported by SANE. Try
# scanimage -L and read the backend's manpage.
# 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.
Yet I can operte the scanner as root via VueScan. While this is a workaround, it's not one I wish to use permanently.
From your post am I correct in assuming that the device file for my scanner will be /dev/bus/usb/007/001 Do I chmod this file to 666 and see what happens?
J
Last edited by bendigogas; 04-17-2014 at 10:10 PM.
Replace XXXX and YYYY with the vendor:product ID from lsusb. For example,
Code:
Bus 002 Device 002: ID 046d:c00e Logitech, Inc. M-BJ58/M-BJ69 Optical Wheel Mouse
identifies vendor ID "046d" with product ID "c00e". (I haven't tested this but it looks right according to /lib/udev/rules.d/40-libsane.rules and others.)
Also, it might be time to upgrade your Ubuntu. I tend to stick with LTS releases every two years; 14.04 LTS was released yesterday.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.