Installing the scanner function on a multifunction Brother dcp153 under U12.04
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.
Installing the scanner function on a multifunction Brother dcp153 under U12.04
I have downloaded the drivers for the scanner from the Brother website. After that I am a bit lost. I have activated the dpkg -i commands but the scanner is still not recognised.
Any suggestions appreciated.
Installing the scanner function on a multifunction Brother dcp153 under U12.04
I ran the 'sane-find-scanner' command with the following result.
It detected the scanner as being on the USB port. The scanner is plugged in as it is part of the printer. Not sure where to go to now.
# 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.
found USB scanner (vendor=0x04f9, product=0x01e1) at libusb:004:002
# Your USB scanner was (probably) detected. It may or may not be supported by
# SANE. Try scanimage -L and read the backend's manpage.
# 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.
david@david-System-Product-Name:~$ scanimage -L
No scanners were identified. If you were expecting something different,
check that the scanner is plugged in, turned on and detected by the
sane-find-scanner tool (if appropriate). Please read the documentation
which came with this software (README, FAQ, manpages).
david@david-System-Product-Name:~$
Did you install the 32 bit drivers, or the 64 bit drivers? Did you follow the instructions on Brothers web site?
Did you update the udev rules via these instructions?
Quote:
Ubuntu 9.10, 10.04, 10.10, 11.4, 11.10, 12.04
1. Open "/lib/udev/rules.d/40-libsane.rules" file.
2. Add the following two lines to the end of the device list. (Before the line "# The following rule will disable ..."):
Installing the scanner function on a multifunction Brother dcp153 under U12.04
I installed the 64 bit drivers so that should be OK.
Then did the following:
david@david-System-Product-Name:~$ open /lib/udev/rules.d/40-libsane.rules
Couldn't get a file descriptor referring to the console
david@david-System-Product-Name:~$
This reflects my inexperience with Linux as I suspect I have not parsed something correctly.When I tried to do this as a bash shell, permission denied.
david@david-System-Product-Name:~$ sudo open /lib/udev/rules.d/40-libsane.rules
[sudo] password for david:
david@david-System-Product-Name:~$ sudo open /lib/udev/rules.d/40-libsane.rules
david@david-System-Product-Name:~$ sudo open /lib/udev/rules.d/40-libsane.rules Brother scanners
david@david-System-Product-Name:~$ ATTRS{idVendor}=="04f9", ENV{libsane_matched}="yes"
ATTRS{idVendor}==04f9,: command not found
david@david-System-Product-Name:~$
Distribution: Ubuntu Linux 16.04, Debian 10, LineageOS 14.1
Posts: 1,572
Rep:
When my scanner is not recognized, I find that unplugging it and plugging it back in helps the system to find it. As Napoleon once said, "From the sublime to the ridiculous is but a step."
Distribution: Ubuntu Linux 16.04, Debian 10, LineageOS 14.1
Posts: 1,572
Rep:
Another thought: perhaps you're not a member of the group "scanner". At the command line, enter "groups" to see. For me, I get the following:
Code:
vector:/~
mark:$ groups
mark disk lp floppy audio video cdrom games slocate plugdev power netdev scanner users
If "scanner" is not a group you belong to, then enter the following:
Code:
sudo addgroup user scanner
That should add your user to the group "scanner" (note: "user" is in italics, meaning that you need to enter the correct name of your user within this command). Another suggestion I'd make is to install the package "xsane". It's a good gui for working with scanners, and installing it will ensure that you've got other important sane (scanner access now easy) packages also installed.
PS, I got the addgroup command from an old Linux Cookbook, but they may have changed this command. So, it's likely best to just use the gui supplied under system tools for administering users and groups on your system.
Last edited by mark_alfred; 08-05-2012 at 01:24 PM.
Reason: clarity
Distribution: Ubuntu Linux 16.04, Debian 10, LineageOS 14.1
Posts: 1,572
Rep:
Quote:
Originally Posted by walkerdr2911
I installed the 64 bit drivers so that should be OK.
Then did the following:
david@david-System-Product-Name:~$ open /lib/udev/rules.d/40-libsane.rules
Couldn't get a file descriptor referring to the console
david@david-System-Product-Name:~$
"open" is not a command. Instead, try using an editor. "nano" is a command line editor that may work out. So, try the following in the terminal (aka console) to be able to edit and add whatever camorri was referring to, in her/his post, to the "40-libsane.rules" file:
Code:
sudo nano /lib/udev/rules.d/40-libsane.rules
Even easier for you might be to open it in a gui editor like gedit. So, try entering the following:
Code:
sudo gedit /lib/udev/rules.d/40-libsane.rules
You may get a message stating "sudo is not required for running the command 'gedit'" -- I just use good old root rather than sudo, so I'm not terribly familiar with distros like Ubuntu that disable root for sudo -- my apologies.
If the preceding doesn't work, then try pressing Alt-F2, type "gksu gedit" in the run application dialogue (this is to get the application running with the proper permissions -- you may need to install gksu first to do this -- find it with synaptic and install it), and then open the file "/lib/udev/rules.d/40-libsane.rules" to edit it.
Good luck!
Last edited by mark_alfred; 08-05-2012 at 01:53 PM.
Installing the scanner function on a multifunction Brother dcp153 under U12.04
Following on, I edited the libsane rules file and added the statements proposed by cammori, however I note that there is no ID product to be entered, and all the other devices in the libsane rules seem to have one. Also restarted the OS, and plugged/unplugged the scanner to no avail. The Brother entries are at the bottom of the USB entries.I stripped out a whole chunk as it was way too long.
Saved the libsane rules as below.
# This file was automatically created based on description files (*.desc)
# by sane-desc 3.5 from sane-backends 1.0.22
#
# udev rules file for supported USB and SCSI devices
#
# The SCSI device support is very basic and includes only
# scanners that mark themselves as type "scanner" or
# SCSI-scanners from HP and other vendors that are entitled "processor"
# but are treated accordingly.
#
# To add a USB device, add a rule to the list below between the
# LABEL="libsane_usb_rules_begin" and LABEL="libsane_usb_rules_end" lines.
#
# To run a script when your device is plugged in, add RUN+="/path/to/script"
# to the appropriate rule.
#
# If your scanner isn't listed below, you can add it as explained above.
#
# If your scanner is supported by some external backend (brother, epkowa,
# hpaio, etc) please ask the author of the backend to provide proper
# device detection support for your OS
#
# If the scanner is supported by sane-backends, please mail the entry to
# the sane-devel mailing list (sane-devel@lists.alioth.debian.org).
#
ACTION!="add", GOTO="libsane_rules_end"
ENV{DEVTYPE}=="usb_device", GOTO="libsane_create_usb_dev"
SUBSYSTEMS=="scsi", GOTO="libsane_scsi_rules_begin"
SUBSYSTEM=="usb_device", GOTO="libsane_usb_rules_begin"
SUBSYSTEM!="usb_device", GOTO="libsane_usb_rules_end"
# Kernel >= 2.6.22 jumps here
LABEL="libsane_create_usb_dev"
# For Linux >= 2.6.22 without CONFIG_USB_DEVICE_CLASS=y
# If the following rule does not exist on your system yet, uncomment it
# ENV{DEVTYPE}=="usb_device", MODE="0664", OWNER="root", GROUP="root"
# Kernel < 2.6.22 jumps here
LABEL="libsane_usb_rules_begin"
# Brother scanners
ATTRS{idVendor}=="04f9", ENV{libsane_matched}="yes"
# The following rule will disable USB autosuspend for the device
ENV{libsane_matched}=="yes", RUN+="/bin/sh -c 'if test -e /sys/$env{DEVPATH}/power/control; then echo on > /sys/$env{DEVPATH}/power/control; elif test -e /sys/$env{DEVPATH}/power/level; then echo on > /sys/$env{DEVPATH}/power/level; fi'"
Following on, I edited the libsane rules file and added the statements proposed by cammori, however I note that there is no ID product to be entered
First of all, what I posted is a direct copy from Brothers web site on how to get your scanner working. The instructions on located with the How to Install the drivers info. It is a separate link.
The command lsusb will list the scanners idVendor and idProduct. So in a command prompt run lsusb, it will look something like this.
Quote:
Bus 001 Device 005: ID 03f0:4505 Hewlett-Packard ScanJet G4010
This is my scanner. Brother idVendor will be 04f9 there is a colon, and the idproduct follows. Edit the file as root, and add the info.
Installing the scanner function on a multifunction Brother dcp153 under U12.04
Hi, After some domestic engineering, I have restarted this mini project.
I tried to scan a document using simple scan- no scanner detected.
Then tried using xsane again could not detect the scanner.said "No devices available. The Help screen indicated that ?permissions do not allow its use.? The backend has not been loaded by SANE( man-sane-dll) or the backend is not configured correctly (man-sane-"backendname"). I believe the libsane is OK but am not sure what the next step is.
The libsane usb rules are as below, which seems to be K, though the idProduct of "01e1",concerns me slightly.;
Distribution: Ubuntu Linux 16.04, Debian 10, LineageOS 14.1
Posts: 1,572
Rep:
permissions
Quote:
Originally Posted by walkerdr2911
Then tried using xsane again could not detect the scanner.said "No devices available. The Help screen indicated that ?permissions do not allow its use.?
There's another suggestion for dealing with permission issues at this Ubuntu site. They state that running the following code may help:
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.